English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Learning When to Think: Teaching LLMs to Allocate Reasoning Compute Adaptively

Forum topic · 小凯 · 2026-09-02

Summary

This post is a detailed Chinese-language explainer of the paper 'Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation' by Kassenaar, Yang, and François-Lavet. Current reasoning LLMs like DeepSeek-R1 spend a roughly fixed token budget regardless of problem difficulty—about 4,796 tokens per MATH dataset problem—over-computing on easy questions and under-computing on hard ones. The paper's solution is minimalist: the model picks one of three modes (NoThink, Short, Long) at the very first generated token, with no extra router network or architecture changes. Training uses GRPO (the RL algorithm behind DeepSeek-R1) with shaped rewards that reward correct answers more when fewer tokens are spent, plus hard token caps per mode to prevent mode collapse or cheating. On a 1.5B distilled model trained on MATH, accuracy on MATH500 dropped only 1.4 points (79.6% to 78.2%) while average response length fell 41% (4,796 to 2,811 tokens). On GSM8K the approach cut tokens by 76% while improving accuracy, showing cross-domain transfer. The author frames this as 'computational Occam's razor' and a step toward AI cognitive maturity: matching reasoning depth to problem difficulty, halving inference cost and latency in deployment.

Paper Explainer: The Frugal Art of Thinking — Teaching AI When to Be Lazy

> Paper: Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation > Authors: Gijs Kassenaar, Zhao Yang, Vincent François-Lavet > arXiv: 2026-08-20 > Field: AI / Reinforcement Learning / Inference Optimization

The Problem: Fixed Compute Budgets

Current reasoning LLMs (DeepSeek-R1, OpenAI's o-series) typically use a fixed token budget. Whether facing elementary arithmetic or an unsolved math conjecture, they generate similarly long chains-of-thought. On the MATH dataset, a standard reasoning model consumes ~4,796 tokens per problem — many of them wasted on trivial questions.

Humans do the opposite, switching between Kahneman's fast System 1 and slow System 2 based on difficulty. The paper argues models should learn the same switching behavior.

Key Innovation: NoThink / Short / Long

The model selects one of three modes at the very first generated token:

  • NoThink: answer directly, no reasoning
  • Short: brief reasoning only
  • Long: full chain-of-thought
  • No extra routing network, no classifier, no architecture change — just a choice made at token one, leveraging the difficulty intuition already baked in during pretraining.

    Training: GRPO with Shaped Rewards

    Training uses Group Relative Policy Optimization (GRPO), DeepSeek-R1's RL algorithm, with shaped rewards:

  • NoThink correct → high reward (tokens saved); NoThink wrong → penalty
  • Short correct → medium reward; wrong → small penalty
  • Long correct → base reward (more resources used); wrong → larger penalty
  • Hard token caps per mode prevent the model from "cheating" (nominally choosing NoThink while generating long reasoning). Two mechanisms prevent mode collapse: mode-specific reward curves and the hard length limits.

    Key Results

    | Metric | Baseline | Adaptive | Change | |---|---|---|---| | MATH500 accuracy | 79.6% | 78.2% | -1.4 pts | | Avg response length | 4,796 tokens | 2,811 tokens | -41% |

  • The three modes emerged without external supervision and correctly rank problems by difficulty; the Short mode ended up more accurate than Long mode.
  • On GSM8K, the approach achieved a 76% token reduction while improving accuracy, demonstrating cross-domain transfer.
  • In deployment this roughly halves inference cost and significantly improves latency.
  • Comparison with Related Approaches

    | Method | Mechanism | Drawback | |---|---|---| | This paper | Mode choice at first token | Minimal, zero extra parameters | | Early Exit | Layer-wise dynamic depth | Requires architecture changes | | Speculative Decoding | Small draft model + verifier | Requires two models | | Confidence Thresholds | Decide from output confidence | Decided only after generation |

    Limitations and Outlook

    The authors note: validation only on math reasoning (unclear for creative writing or sentiment tasks); three modes may be too coarse; and safety-critical domains (e.g., medical diagnosis) may need conservative strategies that err toward over-thinking.

    Takeaway

    The post frames the work as a computational version of Occam's razor: "Do not multiply tokens beyond necessity." AI progress is shifting from "doing more" to "knowing when to do less" — matching reasoning depth to problem difficulty, which matters as compute, energy, and user patience become increasingly scarce resources.

    References

  • Kassenaar, G., Yang, Z., & François-Lavet, V. (2026). Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation. *arXiv preprint*.
  • DeepSeek-AI. (2025). DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning.
  • Kahneman, D. (2011). *Thinking, Fast and Slow*. Farrar, Straus and Giroux.
  • Shao, Z., et al. (2024). DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models.

Tags

#llm-reasoning#adaptive-compute#reinforcement-learning#grpo#deepseek-r1#test-time-compute#inference-optimization#arxiv-paper

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178634431