paper-with-me

Papers

CRANE: Reasoning with constrained LLM generation

2025-02-13 · Debangshu Banerjee, Tarun Suresh, Shubham Ugare, Sasa Misailovic, Gagandeep Singh

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.

📄 PDF Abstract BibTeX arXiv:2502.09061

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationMathvalid

Similar Papers 제목 키워드 기반

CRANE: Constrained Reasoning Injection for Code Agents via Nullspace Editing

2026-05-13 · Mingzhi Zhu, Michele Merler, Raju Pavuluri, Stacy Patterson arxiv

Code agents must both reason over long-horizon repository state and obey strict tool-use protocols. In paired Instruct/Thinking checkpoints, these capabilities are complementary but misaligned. The Instruct model is conc…

CRANE: Knowledge Editing for Reasoning MLLMs

2026-06-08 · Han Huang, Hao Wang, Mengqi Zhang, Shu Wu 외 arxiv

The emergence of reasoning multimodal large language models (MLLMs), which generate explicit chain-of-thought (CoT) reasoning before producing answers, has introduced a new challenge for knowledge editing: methods that a…

knowledge editing

Behavioral Data-Driven Optimal Trajectory Generation for Rotary Cranes

2026-05-14 · Iskandar Khemakhem, Manuel Zobel, Johannes Schüle, Oliver Sawodny 외 arxiv

With the growth of the construction industry and the global shortage of skilled labor, the automation of crane control has become increasingly important for safe and efficient operations. A central challenge in automatic…

Modelling and Control of a Knuckle Boom Crane

2021-03-30 · M. Ambrosino, E. Garone

Cranes come in various sizes and designs to perform different tasks. Depending on their dynamic properties, they can be classified as gantry cranes and rotary cranes. In this paper we will focus on the so called 'knuckle…

Flatness-based trajectory planning for 3D overhead cranes with friction compensation and collision avoidance

2025-10-28 · Jorge Vicente-Martinez, Edgar Ramirez-Laboreo arxiv

This paper presents an optimal trajectory generation method for 3D overhead cranes by leveraging differential flatness. This framework enables the direct inclusion of complex physical and dynamic constraints, such as non…

Collision AvoidanceTrajectory Planning