Making Small Language Models Efficient Reasoners: Intervention, Supervision, Reinforcement

Xuechen Zhang, Zijian Huang, Chenshun Ni, Ziyang Xiong, Jiasi Chen, Samet Oymak

TL;DR

Distilling reasoning models into Small Language Models (SLMs) via supervised fine-tuning (SFT) often creates verbose models prone to infinite reasoning loops—especially when they are wrong. This paper introduces two complementary remedies: Post-hoc Temperature Scaling (TS) to boost the end-of-sequence token at test time, and TLDR (Trace Length Control for Dynamic Reasoning), an RL method based on GRPO that incorporates user-steerable length penalties. Together, they cut token consumption by roughly 50% across competitive math benchmarks without degrading accuracy.

What Problem Does This Paper Address?

Recent frontier models (like OpenAI o1 and DeepSeek-R1) achieve impressive reasoning through long chain-of-thought (CoT) traces. Distilling these traces into smaller models (1.5B–7B parameters) using standard Supervised Fine-Tuning (SFT) produces capable models, but at a severe cost: extreme verbosity and repetitive generation loops.

Because standard SFT treats the end-of-sequence (<EOS>) token identically to any regular reasoning token during cross-entropy minimization, distilled SLMs never learn when to stop. When faced with hard problems, smaller models frequently get trapped in cyclic reasoning loops (e.g., repeating variations of "Wait, let me rethink..." hundreds of times). Existing test-time fixes like "Budget Forcing" forcibly inject <EOS> into the thinking trace, but models often compensate by spewing excessively long final answers instead.

Methods

The authors propose two approaches depending on whether training is permissible:

  1. Post-hoc Temperature Scaling (TS) [Training-Free]: The authors observed that even when an SFT model loops indefinitely, the <EOS> token is already among the top 5 next-token candidates in 87.5% of cases. TS scales down the temperature $T < 1$ applied exclusively to the <EOS> logit ($l'_{\text{eos}} = l_{\text{eos}} / T$) at test time. This nudges the model to terminate early without distorting the probabilities of its internal reasoning tokens.

  2. TLDR (Trace Length Control for Dynamic Reasoning) [RL-Based]: Building on Group Relative Policy Optimization (GRPO), TLDR incorporates length penalties into the reward function: $r = \hat{r} - \zeta(L)$.

  3. Sweet Spot Penalty: A mild linear penalty $\eta(L) = \alpha \frac{L}{L_{\max}}$ discourages unnecessary token consumption without penalizing correct reasoning steps.

  4. Multi-Level Length Penalty: To allow dynamic test-time control via user prompts (e.g., [Response Length: SHORT/MODERATE/LONG]), threshold-based penalties are applied:
  5. Correct answers exceeding targeted length thresholds (e.g., $L_{\max}/4$ for SHORT, $L_{\max}/2$ for MODERATE) receive a penalty $\beta$.
  6. Incorrect answers always receive a length penalty $\eta(L)$ to teach the model to give up and stop early when a problem exceeds its capacity.

Datasets

  • Training: A mixture of training splits from MATH, AIME, AMC, STILL, and OlympiadBench (the same recipe used by DeepScaleR-1.5B-Preview).
  • Evaluation: Evaluated across four standard mathematical reasoning benchmarks:
  • MATH500
  • AMC
  • AIME24
  • OlympiadBench (Additional ablations in the appendix also evaluate on GPQA-Diamond).

Key Insights and Ideas

  • Failure modes are disproportionately long: In distilled SLMs, wrong answers are consistently much longer than correct answers. In a 1.5B model distilled on long traces, over 60% of all incorrect responses were direct consequences of looping repetitions.
  • Forced thinking budgets backfire: Truncating reasoning at test time (Budget Forcing) doesn't solve verbosity—it merely shifts tokens from the thinking phase to the final answer generation phase.
  • RL naturally learns termination: Unlike SFT, RL treats generation as sequential decision-making. Adding even a modest length penalty enables the model to prune redundant thinking steps and terminate promptly when it cannot solve a problem, delivering a "free lunch" Pareto improvement.

Key Results

  • Temperature Scaling vs. Budget Forcing: On SFT-S1-7b, TS trimmed average length from 4,843 to 1,984 tokens while maintaining 77.0% accuracy on MATH500 (outperforming Budget Forcing, which required 3,591 tokens for 77.1% accuracy).
  • Token Reductions with TLDR: TLDR reduced response lengths by up to ~50% while matching or improving base model accuracy. For instance, on DeepSeek-R1-Distill-Qwen-1.5B, RL with length penalty raised MATH500 accuracy from 80.6% to 80.4%–80.6% while dropping average response length from 5,770 tokens to just 1,105 tokens.
  • Prompt-Guided Control: Models successfully adhered to prompt instructions (SHORT, MODERATE, LONG), shifting their average length smoothly along the Pareto frontier.
  • Training Efficiency: TLDR achieved results competitive with L1 (Aggarwal & Welleck, 2025) while requiring only a single 100-epoch training run starting from a weaker base model, compared to L1's two-phase, 820-epoch training schedule.

Limitations and Future Work

  • Maximum Length Constraint: RL experiments were capped at $L_{\max} = 4096$ tokens due to computational constraints, leaving scaling properties for ultra-long context horizons (e.g., 32k+) partially uncharacterized.
  • Domain Scope: Evaluation focuses primarily on competitive mathematics; extending controllable length penalties to interactive code generation, open-ended reasoning, and multi-turn chat remains future work.
  • Hyperparameter Sensitivity: The balance between accuracy reward and length penalties ($\alpha, \beta$) requires task-specific calibration to avoid over-penalizing necessary, rigorous steps on unusually complex queries.

Summary updated

BibTeX
@inproceedings{zhang2025making,
  author = {Xuechen Zhang and Zijian Huang and Chenshun Ni and Ziyang Xiong and Jiasi Chen and Samet Oymak},
  title = {{Making Small Language Models Efficient Reasoners: Intervention, Supervision, Reinforcement}},
  booktitle = {ES-FoMo-III @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=aPtDOzJ56p},
}

Loading related content...

Figure