SelfBudgeter: Adaptive Token Allocation for Efficient LLM Reasoning

Zheng Li, Qingxiu Dong, Jingyuan Ma, Di Zhang, Kai Jia, Zhifang Sui

TL;DR

SelfBudgeter addresses the "overthinking" problem in large reasoning LLMs by training them to self-estimate a minimal token budget before generating an answer. Using a two-stage training process with budget-guided reinforcement learning, it compresses response lengths by an average of 61% on math tasks while maintaining or even improving accuracy, providing users with predictable wait times and explicit length control.

What Problem Does This Paper Address?

Modern reasoning models (like OpenAI's o1 or DeepSeek-R1) achieve state-of-the-art accuracy by scaling test-time compute through long chains of thought (CoT). However, these models suffer from an "overthinking" phenomenon: they often deploy excessively long reasoning chains even for trivial questions. For instance, asking a model to solve "2+3" might trigger hundreds of tokens of redundant reasoning and multiple redundant solutions, wasting computational resources and increasing user latency.

Prior attempts to control response length—such as prompt instructions, hard truncation, or router-based classifiers—either lack precise control, incur heavy computational overhead, or severely degrade the model's final accuracy.

Methods

The authors introduce SelfBudgeter, a framework that forces the model to explicitly predict its token budget before generating a solution using a specific template: <budget>integer</budget><solution>response</solution>.

The training pipeline consists of two primary stages:

  1. Cold-Start Stage: The model undergoes Supervised Fine-Tuning (SFT) to learn the new output format. The training data is pre-populated with token counts derived from successful baseline runs.
  2. RL Training Stage: The model is optimized using Group Relative Policy Optimization (GRPO). The core innovation is a multi-component reward function that balances correctness and length constraint:
  3. Budget Penalty ($P_B$): Penalizes the model if its self-estimated budget exceeds a maximum acceptable budget ($b_{\max}$).
  4. Precise Budget Control Reward (PreB): A cosine-shaped reward function that penalizes deviations between the actual response length and the predicted budget. It uses a tightness coefficient ($\alpha$) to relax the constraint to an approximate range.
  5. Dynamic Alpha Schedule: To prevent "reward hacking"—where the model inflates its predicted budget to easily match its output length—the authors linearly decrease $\alpha$ over the training steps, gradually tightening the budget tolerance.
Overview of the SelfBudgeter training framework.

Datasets

  • Cold-Start SFT: GSM8K, MATH, and s1k-1.1 (a dataset of 1,000 high-quality, long-CoT math problems generated by DeepSeek-R1).
  • RL Training: STILL-3-Preview-RL-Data, which contains 30K high-quality samples based on MATH, NuminaMathCoT, and AIME datasets.
  • Evaluation: Math benchmarks (GSM8K, MATH500, AIME2025) and general-domain knowledge benchmarks (GPQA and SCoRE) to test generalization.

Key Insights and Ideas

  • Shorter CoT Can Improve Accuracy: Counterintuitively, trimming the length of reasoning chains does not inherently degrade performance. By eliminating redundant steps and distractions, the compressed models often achieved higher accuracy than their verbose baselines.
  • The Reward Hacking Trap: If budget adherence constraints are static, models quickly learn to game the system by over-estimating the required tokens so they can easily stay under budget. A dynamic schedule that tightens constraints over time is essential for true budget-logical convergence.
  • Trimming Filler, Not Logic: A detailed case study revealed that 96.06% of token reductions came from eliminating conversational filler (e.g., "Let me check," "Hmm, okay") rather than skipping crucial logical steps.

Key Results

  • Substantial Compression: SelfBudgeter achieved an average response length compression of 61% on math reasoning tasks.
  • 1.5B Model Performance: On GSM8K, SelfBudgeter-1.5B improved accuracy by 11.01 percentage points while compressing response length to 43% of the original baseline. On MATH500, it achieved a 3.54-point accuracy gain with length reduced to 44%.
  • Scalability to 7B Models: SelfBudgeter-7B achieved the highest accuracy on MATH500 (86.87%) and AIME2025 (30.00%) among all baselines while maintaining a ~48% compression ratio.
  • User-Defined Control: When users pre-fill a specific token budget constraint, the model successfully adapts, demonstrating a robust linear relationship between user-defined budgets and actual output lengths.
Overview of the SelfBudgeter interface and behavior under constraints.

Limitations and Future Work

The authors note that while the methodology is theoretically sound, it may face practical challenges when applied to highly complex, open-ended, or diverse real-world scenarios beyond structured mathematical reasoning. Additionally, external factors not covered in the scope of the study could potentially influence how well these budgeting behaviors generalize to non-reasoning tasks (e.g., creative writing or roleplay). Future work will likely focus on expanding adaptive token budgeting to broader, multi-modal, and general-domain applications.

Summary updated

BibTeX
@inproceedings{li2026selfbudgeter,
  author = {Zheng Li and Qingxiu Dong and Jingyuan Ma and Di Zhang and Kai Jia and Zhifang Sui},
  title = {{SelfBudgeter: Adaptive Token Allocation for Efficient LLM Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1063},
}
Figure