Concise Reasoning Through the Lens of Lagrangian Optimization

Chengqian Gao, Haonan Li, Taylor W. Killian, Jianshu She, Renxi Wang, Liqun Ma, Zhoujun Cheng, Shibo Hao, zhiqiang xuNeurIPS 2026

TL;DR

Reasoning-focused Large Language Models (LLMs) suffer from chronic "overthinking," burning through thousands of extra tokens to second-guess simple answers. Instead of relying on brittle, hand-tuned length penalties to curb this verbosity, this paper frames conciseness as a constrained optimization problem: make the answer as short as possible, provided accuracy stays above a hard floor. Their resulting algorithm cuts token generation by 64% while actually boosting accuracy, using a single set of settings that seamlessly transfers across domains and model sizes.

What Problem Does This Paper Address?

When we train LLMs using Reinforcement Learning (RL) to reason through tough problems, they develop a habit of rambling—looping through redundant self-reflection, backtracking, and over-validating obvious steps. This inflates inference costs without improving the final answer.

Existing fixes try to force brevity by subtracting a hand-crafted length penalty from the RL reward or imposing a global, pre-scheduled token cap. The authors point out a structural flaw here: these methods commit to an arbitrary target length or "exchange rate" between tokens and accuracy in advance, completely blind to whether the model is actually getting the answers right. Because optimal reasoning length varies wildly by topic and model size, these methods are notoriously brittle—a penalty tuned for a 1.5B math model will break a 14B STEM model.

Methods

Instead of blending length and accuracy into one messy objective, the authors formulate a constrained problem: minimize per-prompt token budget $L$ subject to expected accuracy $R \ge C$ (say, an 80% pass rate).

Classically, you solve this with Lagrangian duality, which uses gradients and a dual variable to dynamically adjust pressure on the constraint. However, LLM rewards are discrete, policies are non-convex, and post-training only runs for a handful of epochs—meaning standard Lagrangian math fails in practice.

To bridge the gap, the authors treat the Lagrangian as a blueprint and replace its three intractable steps with clever, lightweight surrogates, creating Performance-Aware Length Update (PALU) (instantiated on top of standard GRPO):

  1. Read (Off-policy Pass Rate): Instead of running expensive extra generations to check current accuracy, PALU reuses the prompt's pass rate from the previous training epoch at zero extra rollout cost.
  2. Decide (Binary Regime Controller): Rather than slowly tuning a continuous dual variable over epochs it doesn't have, PALU uses a crisp two-state switch. If a prompt's pass rate meets the floor ($R \ge C$), shrink its token budget. If accuracy drops below $C$, immediately reset its budget to the maximum ($L_{\max}$) so the model can recover.
  3. Move (Quantile-Driven Step Size): Because you can't take the derivative of discrete accuracy with respect to token length, PALU looks at the length spread of correct rollouts for that prompt. If correct answers span a wide range of lengths (a large quantile gap), accuracy isn't sensitive to truncation, so PALU takes a big cut. If correct lengths cluster tightly, it takes a cautious, tiny step.

Datasets

No new benchmarks were introduced; the authors rely on established reasoning suites:

  • Training: 12k math problems from DeepScaleR, plus a mixed dataset spanning Math, Logic, and STEM (from * Guru* / [37]) for generalization tests.
  • Evaluation: Six math benchmarks—MATH-500, AIME 2024, AIME 2025, AMC 2023, Minerva-Math, and OlympiadBench—alongside held-out evaluations on the mixed Math/Logic/STEM tasks.

Key Insights and Ideas

  • An accuracy floor is universal; a token target is not. Saying "get this right 80% of the time" means the exact same thing whether a model is solving a 4,000-token logic puzzle or a 15,000-token Olympiad problem. This eliminates hyperparameter re-tuning across domains and scales.
  • Per-prompt budgets unlock compression even when global trade-offs turn hostile. Early in training, trimming fluff improves accuracy (easy redundancy). Later on, population-level length and accuracy begin to genuinely trade off. While global-penalty methods stall or lose accuracy here, PALU keeps compressing because individual, mastered prompts can still safely shrink at their own pace.
Figure 1: Accuracy-length evolution during PALU training. Background color: rolling Spearman ρ.
  • Historical rollouts provide "free" early-training caution. Reusing the previous epoch's pass rate naturally underestimates the improving policy's true accuracy by ~1–3 percentage points early on, acting as a built-in safety buffer against premature budget collapse that fades as the policy stabilizes.

Key Results

  • Dominating the Pareto Frontier: On DeepSeek-R1-Distill-Qwen-1.5B, PALU slashes average response length across six math benchmarks by 63.8% (from 11,297 to 4,093 tokens) while increasing Pass@1 accuracy from 44.2% to 51.6%. It matches standard GRPO's accuracy (51.4%) under a 2.5× tighter token budget.
  • Zero-Shot Hyperparameter Transfer: Using the exact same settings ($C = 0.8$), PALU outperforms baselines on a different model family (Phi-4-mini-reasoning, +4.9% accuracy and ~48% shorter than base) and across a 3×3 grid of Math, Logic, and STEM tasks at 1.5B, 7B, and 14B scales. Fixed-target baselines reduced length in only 4 of 9 grid cells (stalling whenever initial responses started below their 8k target); PALU compressed in all 9 of 9.
  • Faster Training: Because per-prompt budgets are known before generation, prompts can be sorted by length to balance GPU batches—cutting idle time and making training 9.2% faster than standard GRPO, while adding just ~144 KB of memory overhead.

Limitations and Future Work

  • Identical-Length Edge Case: PALU relies on correct rollouts having a varied length distribution. In an extreme scenario where a model outputs the exact same token count every time, the quantile gap collapses to zero and compression stalls.
  • Out-of-Distribution Generalization: The authors explicitly do not claim that PALU itself grants conciseness on completely unseen, out-of-distribution domains, noting that such generalization depends on training data diversity and the underlying RL algorithm. Future directions are not explicitly discussed in the paper.

Summary updated

Abstract

Concise reasoning in large language models (LLMs) seeks to generate only essential steps needed to arrive at a final answer, thereby alleviating issues of *overthinking*. Most proposed approaches scalarize length and reward into a single objective, requiring coefficients or thresholds that must be re-tuned across domains and model scales. We address this brittleness by treating concise reasoning as a constrained problem that minimizes length subject to an accuracy floor, and deriving a tractable algorithm, Performance-Aware Length Update (PALU), which replaces each intractable update of Lagrangian optimization with a tractable surrogate while preserving its structural prescription. On *DeepSeek-R1-Distill-Qwen-1.5B*, PALU cuts generation length by 64\% *and* improves accuracy from 44.2\% to 51.6\% across six benchmarks, a level matched by GRPO only with 2.5× more tokens. The Lagrangian dynamics yields a two-phase compression: an initial phase where the residual signal still allows compression without performance cost, followed by a trade-off phase where performance gates further length reduction. The same hyperparameters transfer across math, logic and STEM, and across 1.5B to 14B models, suggesting that constrained optimization is a productive design scaffold for training reasoning LLMs.
BibTeX
@inproceedings{gao2026concise,
  author = {Chengqian Gao and Haonan Li and Taylor W. Killian and Jianshu She and Renxi Wang and Liqun Ma and Zhoujun Cheng and Shibo Hao and zhiqiang xu},
  title = {{Concise Reasoning Through the Lens of Lagrangian Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=a8ifmvW6IK},
}
Figure