Concise Reasoning in the Lens of Lagrangian Optimization

Chengqian Gao, Haonan Li, Taylor W. Killian, Jianshu She, Renxi Wang, Liqun Ma, Zhoujun Cheng, Shibo Hao, zhiqiang xu · Submission to ICLR 2026 · Withdrawn

TL;DR

Reasoning models like DeepSeek-R1 often suffer from "overthinking," generating verbose, redundant reasoning traces for straightforward tasks. PALU (Performance-Aware Length Updating) reframes concise reasoning as a constrained optimization problem—minimizing response length subject to an accuracy threshold—and solves it via a practical, quantile-driven approximation of Lagrangian optimization. Without heuristic reward shaping or extra training compute, PALU reduces token length by ~64% while increasing accuracy by ~16% on DeepSeek-R1-Distill-Qwen-1.5B across six reasoning benchmarks.

What Problem Does This Paper Address?

While long test-time chains of thought improve large language model (LLM) performance on complex mathematical and scientific tasks, they often introduce severe "overthinking"—repetitive verification, circular reasoning, and redundant self-reflection. This inflates API latency and training/inference compute.

Existing reinforcement learning (RL) solutions typically resort to ad-hoc heuristics:

  1. Length-penalized reward functions: Adding negative rewards proportional to length or target-length deviation.
  2. Hard truncation budgets: Forcibly cutting off rollouts after a fixed token count.

These heuristics are brittle. Fixed-length targets fail to adapt across tasks (e.g., STEM vs. complex Olympiad math) and across model parameter scales. More critically, aggressive length penalties frequently collapse accuracy because they reward brevity over logical correctness.

Methods

PALU establishes a mathematically principled foundation for concise reasoning:

$$\min_{\theta, L > 0} L \quad \text{s.t.} \quad R(\theta, L, q) \ge C$$

where $L$ is the per-query token budget, $R(\theta, L, q)$ is the expected reward (pass rate) of policy $\pi_\theta$, and $C \in [0, 1]$ is a global performance constraint.

To convert this constrained problem into an unconstrained min-max objective, the authors apply Lagrangian optimization:

$$\min_{\theta, L>0} \max_{\lambda \ge 0} \left[ L + \lambda (C - R(\theta, L, q)) \right]$$

Standard dual-gradient ascent is too brittle and computationally prohibitive for LLM post-training. PALU therefore implements three pragmatic approximations:

  1. Off-Policy Performance Estimation: Reuses rollout pass rates from the previous training epoch rather than taking expensive on-policy evaluation rollouts. Because pre-trained models generally improve monotonically during RL, this acts as a conservative proxy that prevents premature budget tightening.
  2. Two-Regime ("Bang-Bang") Controller: Replaces continuous tracking of the Lagrange multiplier $\lambda$ with a discrete boundary controller: $$L \leftarrow \begin{cases} L - \alpha_\tau^{(q)} & \text{if } R(\theta, L, q) \ge C \\ L_{\max} & \text{otherwise} \end{cases}$$
  3. Quantile-Driven Budget Updates ($\alpha_\tau^{(q)}$): Because rule-based reward metrics are non-differentiable with respect to sequence length, PALU uses an inverse-sensitivity surrogate based on rollout lengths: $$\alpha_\tau^{(q)} = Q_{1.0}^{(q)} - Q_{1.0-\tau}^{(q)}$$ Here, $\alpha_\tau^{(q)}$ is the difference between the maximum length of a correct response and the $(1-\tau)$-quantile length of correct responses for prompt $q$. If correct answers cluster tightly, updates are small and cautious; if there is a long tail of redundant correct answers, the budget is aggressively pruned.

PALU integrates directly into Group Relative Policy Optimization (GRPO) without modifying the base policy optimization objective.

Datasets

  • Training:
  • DeepScaler subset (12k): Curated math problems used to train DeepSeek-R1-Distill-Qwen-1.5B and Phi-4-mini-reasoning.
  • GURU Multi-domain subset (5k): 2k math, 2k STEM-web, and 1k logic puzzle questions used for domain and scale-transfer analyses (1.5B, 7B, 14B).
  • Evaluation: Standard reasoning benchmarks evaluated via Pass@1 and the composite Accuracy-Efficiency (AE) Score:
  • MATH-500, AIME 2024, AIME 2025, AMC 2023, Minerva-Math, and OlympiadBench.

Key Insights and Ideas

  • Correct answers have wide length variance: Empirical verification showed that correct generations from open reasoning models vary by a factor of 2–3× in token length for the exact same prompt. This non-trivial variance justifies using data-driven quantiles to prune length without sacrificing accuracy.
  • Two phases of redundancy elimination: Monitoring the Spearman correlation between accuracy and length reveals an initial negative correlation (pruning easy, extraneous self-talk directly improves accuracy), followed by a positive correlation (pruning harder steps introduces real trade-offs). PALU automatically navigates this by preserving length for difficult prompts while trimming simpler ones.
  • Avoiding the "brevity trap": Reward-penalty methods (such as ShorterBetter) over-penalize length, creating an unnatural peak of ultra-short answers (<320 tokens) and harming harder problems. PALU maintains a healthy distribution of moderate-length reasoning paths.
  • Zero added compute overhead: Because length budgets are set prior to rollout generation, prompts can be bucketed by budget into balanced training batches, reducing inference idle time during RL training by ~9.2%.

Key Results

  • DeepSeek-R1-Distill-Qwen-1.5B: Across the six evaluation benchmarks, PALU slashed macro-average response length from 11,297 to 4,093 tokens (63.8% reduction) while boosting average accuracy from 44.2% to 51.6% (+16.8% relative), outperforming heuristic baselines like ThinkPrune, DIET, and Kimi 1.5 RL.
  • Architecture Generalization: On Phi-4-mini-reasoning, PALU decreased average length from 8,265 to 4,283 tokens while improving accuracy from 50.8% to 55.7%.
  • Cross-Domain & Cross-Scale Robustness: When tested across Math, Logic, and STEM up to 14B parameters, heuristic fixed-budget baselines degraded in domains like STEM (where baseline traces were already under the heuristic budget). PALU adapted dynamically across all three domains and scales without hyperparameter sweeps.

Limitations and Future Work

  • Narrow Length Variance Failure Mode: PALU assumes non-trivial dispersion in the length of correct responses. If a base model produces nearly identical lengths for correct answers, budget adjustments could become too conservative or cause accuracy collapses.
  • Out-of-Distribution Generalization: The authors note that concise reasoning behavior does not necessarily transfer to unseen domains out-of-distribution without diverse multi-domain training data.
  • Coarse Constraint Enforcement: The two-regime reset to $L_{\max}$ acts as a hard safety switch; smoother adaptive recovery mechanisms could be explored in future work.

Summary updated

Abstract

Concise reasoning in large language models seeks to generate only essential intermediate steps needed to arrive at a final answer, thereby alleviating issues of overthinking. Most proposed approaches hinge on carefully hand-crafted heuristics, struggling to balance concision with performance, often failing to adapt across domains and model scales. In this work, we address these challenges by introducing a principled and pragmatic strategy, performance-aware length updating (PALU). As a principled algorithm, PALU formulates concise reasoning as a constrained optimization problem, minimizing response length subject to a performance constraint, and then applies *Lagrangian* optimization to convert it into a tractable unconstrained problem. As a pragmatic solution, PALU streamlines complicated update rules through three approximations: *(i)* estimating performance with off-policy rollouts, *(ii)* truncating the *Lagrange* multiplier to two extremes, and *(iii)* replacing gradient-based updates with quantile-driven length adjustments. PALU reduces output length by 65\% while improving accuracy by 15\% when applied to *DeepSeek-Distill-Qwen-1.5B*, averaged over five benchmarks, outperforming a range of alternative methods. Furthermore, PALU is demonstrated to adapt across both domain (logic, STEM and math) and model scale (1.5B, 7B, 14B) entrenching the algorithm as a practical and effective concise reasoning approach.
BibTeX
@misc{gao2025concise,
  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 in the Lens of Lagrangian Optimization}},
  year = {2025},
  eprint = {2510.10168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.10168},
}
Figure