mlsanityData to 14 Oct 2026

CRANE: Reasoning with constrained LLM generation

arXiv 2502.09061 ↗First posted 13 Feb 2025cs.PL cs.LGcited by 38

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

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.

Key facts. Cited by 38 papers in the map (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 14 of its 40 references that are in the map. First posted on arXiv 13 Feb 2025.

Builds on

14 of 40 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning20 May
  2. 2022FOLIO: Natural Language Reasoning with First-Order Logic2 Sep

Other references · 12

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  3. 2024A Survey on Large Language Models for Code Generationcited by 658
  4. 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
  5. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
  6. 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
  7. 2024Grammar-Aligned Decodingcited by 54
  8. 2024CoRNStack: High-Quality Contrastive Data for Better Code Retrieval and Rerankingcited by 37
  9. 2024IterGen: Iterative Semantic-aware Structured LLM Generation with Backtrackingcited by 29
  10. 2024Constrained Decoding for Fill-in-the-Middle Code Language Models via Efficient Left and Right Quotienting of Context-Sensitive Grammarscited by 8
  11. 2024Is The Watermarking Of LLM-Generated Code Robust?cited by 8
  12. 2024Approximately Aligned Decodingcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 14; 2026: 24.

38 papers.

Sort:

By area:

  1. 2025Enforcing Temporal Constraints for LLM Agentscited by 34
  2. 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 21
  3. 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesiscited by 16
  4. 2025DINGO: Constrained Inference for Diffusion LLMscited by 16
  5. 2026SEVerA: Verified Synthesis of Self-Evolving Agentscited by 8
  6. 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesiscited by 5
  7. 2025TreeCoder: Systematic Exploration and Optimisation of Decoding and Constraints for LLM Code Generationcited by 5
  8. 2026Thinking Before Constraining: A Unified Decoding Framework for Large Language Modelscited by 5
  9. 2025MyCulture: Exploring Malaysia's Diverse Culture under Low-Resource Language Constraintscited by 3
  10. 2025When Large Language Models Know the Table: A Framework for Assessing Data Contamination in Tabular Datasetscited by 3
  11. 2025UTF-8 Plumbing: Byte-level Tokenizers Unavoidably Enable LLMs to Generate Ill-formed UTF-8cited by 3
  12. 2026The Format Taxcited by 3
26 more
  1. 2026Typed Decision Models: An Early Evidence Audit and Evaluation Checklistcited by 3
  2. 2025DiCoRe: Enhancing Zero-shot Event Detection via Divergent-Convergent LLM Reasoningcited by 2
  3. 2025BEAVER: An Efficient Deterministic LLM Verifiercited by 2
  4. 2026Verifier-Guided Code Translation via Meta-Step Decodingcited by 2
  5. 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compressioncited by 2
  6. 2025Training with Pseudo-Code for Instruction Followingcited by 1
  7. 2026Grading the Unspoken: Evaluating Tacit Reasoning in Quantum Field Theory and String Theory with LLMscited by 1
  8. 2026AgentSpec: Understanding Embodied Agent Scaffolds Through Controlled Compositioncited by 1
  9. 2025Improving Procedural Skill Explanations via Constrained Generation: A Symbolic-LLM Hybrid Architecturecited by 0
  10. 2025From Coverage to Causes: Data-Centric Fuzzing for JavaScript Enginescited by 0
  11. 2026Suffix-Constrained Greedy Search Algorithms for Causal Language Modelscited by 0
  12. 2026Prompt Complexity Dilutes Structured Reasoning: A Follow-Up Study on the Car Wash Problemcited by 0
  13. 2026ATLAS-RTC: Closing the Loop on LLM Agent Output with Token-Level Runtime Controlcited by 0
  14. 2026Scientific Knowledge-driven Decoding Constraints Improving the Reliability of LLMscited by 0
  15. 2026Improving Quantized Model Performance in Qualitative Analysis with Multi-Pass Prompt Verificationcited by 0
  16. 2026Dynamic Infilling Anchors for Format-Constrained Generation in Diffusion Large Language Modelscited by 0
  17. 2026RECAP: Regression Evaluation for Continual Adaptation of Promptscited by 0
  18. 2026GRID: Grammar-Railed Decoding for Enterprise SQL Generationcited by 0
  19. 2026Policy-Conditioned Constrained Decoding for Column-Level Access Control in Text-to-SQLcited by 0
  20. 2026Imprompt: A Language Framework for Prompt Programmingcited by 0
  21. 2026PICTURE: Enhancing Theory-of-Mind in Large Language Models by Revealing, Not Hiding, Characters' Lack of Knowledgecited by 0
  22. 2026Constraint-Guided Enterprise Data Mapping with Large Language Modelscited by 0
  23. 2026In-Place Instruction Following in Diffusion Language Modelscited by 0
  24. 2026Semantic Prefix Oracles for LLM Decoding: Contracts and Differential Validationcited by 0
  25. 2026Making Grid Beam Search Less Greedycited by 0
  26. 2026GrammarRL: Effective Grammar-Constrained Decoding via Reinforcement Learningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Evaluating Intermediate Reasoning of Code-Assisted Large Language Models for Mathematics
  2. 2026MathConstraint: Automated Generation of Verified Combinatorial Reasoning Instances for LLMs
  3. 2024Enhancing Reasoning Capabilities of LLMs via Principled Synthetic Logic Corpus
  4. 2024HYBRIDMIND: Meta Selection of Natural Language and Symbolic Language for Enhanced LLM Reasoning
  5. 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification
  6. 2026Learning and Enforcing Context-Sensitive Control for LLMs
  7. 2025LLMSR@XLLM25: An Empirical Study of LLM for Structural Reasoning
  8. 2024A Closer Look at Logical Reasoning with LLMs: The Choice of Tool Matters