CRANE: Reasoning with constrained LLM generation
원문 초록
Code generation, symbolic math reasoning, and other tasks require LLMs to produce outputs that are both syntactically and semantically correct. Constrained LLM generation is a promising direction to enforce adherence to formal grammar, but prior works have empirically observed that strict enforcement of formal constraints often diminishes the reasoning capabilities of LLMs. In this work, we first provide a theoretical explanation for why constraining LLM outputs to very restrictive grammars that only allow syntactically valid final answers reduces the reasoning capabilities of the model. Second, we demonstrate that by augmenting the output grammar with carefully designed additional rules, it is always possible to preserve the reasoning capabilities of the LLM while ensuring syntactic and semantic correctness in its outputs. Building on these theoretical insights, we propose a reasoning-augmented constrained decoding algorithm, CRANE, which effectively balances the correctness of constrained generation with the flexibility of unconstrained generation. Experiments on multiple open-source LLMs and benchmarks show that CRANE significantly outperforms both state-of-the-art constrained decoding strategies and standard unconstrained decoding, showing up to 10% points accuracy improvement over baselines on challenging symbolic reasoning benchmarks GSM-symbolic and FOLIO.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
EvoAgentX: An Automated Framework for Evolving Agentic Workflows
ViCrit: A Verifiable Reinforcement Learning Proxy Task for Visual Perception in VLMs
LLM Performance for Code Generation on Noisy Tasks
Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training
Where to find Grokking in LLM Pretraining? Monitor Memorization-to-Generalization without Test
Xolver: Multi-Agent Reasoning with Holistic Experience Learning Just Like an Olympiad Team
토론
이 논문과 연결된 포럼 글이 아직 없습니다.