arXiv(opens in a new tab)cs.AIAug 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2608.20256

Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation

Gijs Kassenaar, Zhao Yang, Vincent François-Lavet

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reasoning language models trained with reinforcement learning typically operate under a fixed token budget rather than an explicitly adaptive one, which can lead to over-computation on easy problems and insufficient computation on difficult ones. We study whether a model can learn to allocate its own reasoning effort by choosing, as the first token of its response, one of three modes: NoThink (answer as quickly as possible), Short (brief reasoning), or Long (extended reasoning). The choice is learned inside Group Relative Policy Optimization (GRPO) with no separate router, through a shaped reward that makes each mode worthwhile at a different response length, together with hard per-mode token caps that keep the modes distinct. On a 1.5B distilled model trained on MATH, the three modes emerge without collapsing to a single choice, and the brief modes end up more accurate than Long, which shows that the router sorts problems by difficulty rather than at random. Averaged over three seeds, the resulting policy stays close to the base model’s accuracy on the held-out MATH500 (0.7820.782 vs. 0.7960.796) while cutting the mean response length from 4,7964{,}796 to 2,8112{,}811 tokens (a 41%41\% reduction). Interestingly, it also transfers to other benchmarks without retraining, with the largest savings where problems are easier, with for instance 76% token reduction on GSM8K and at higher accuracy than the baselines at similar response length. In short, we build a reasoning model that adaptively chooses how much to reason for each problem.

Vrije Universiteit Amsterdam

g.kassenaar@student.vu.nl, z.yang3@vu.nl, vincent.francoislavet@vu.nl

Introduction

Figure 1: Three-mode self-routing GRPO. The model emits a routing token (NoThink/Short/Long) as the first token of its response and then reasons under that mode’s shaped reward and hard token cap; the routing token is part of the main policy and is trained end-to-end by GRPO, with no separate router.

Large language models (LLMs) have achieved remarkable performance on complex reasoning tasks, driven largely by Chain-of-Thought (CoT) prompting (Wei et al. 2022). By breaking problems into intermediate steps, models such as DeepSeek-R1 (Guo et al. 2025) reach state-of-the-art results across mathematical and coding benchmarks. This capability, however, comes at a substantial computational cost: extended reasoning chains consume large numbers of tokens, increasing both inference latency and training cost. The burden falls hardest on smaller models, which often exhibit “verbosity compensation,” generating unnecessarily long explanations to compensate for limited capacity (Chen et al. 2024; Zhang et al. 2024). Empirically, incorrect answers tend to be markedly longer than correct ones, indicating that current models frequently spend reasoning tokens inefficiently (Agentica Team 2025).

Reinforcement Learning with Verifiable Rewards (RLVR) has become the dominant paradigm for fine-tuning reasoning models (Shao et al. 2024). Standard algorithms such as PPO (Schulman et al. 2017) and GRPO (Shao et al. 2024) operate with a single maximum response length applied uniformly across all training samples. This couples two competing inefficiencies: early in training, the model wastes compute generating long, incorrect traces; later, the same fixed ceiling can prevent the extended chains needed to solve genuinely hard problems. Recent analysis further suggests that RLVR functions primarily as an elicitation mechanism, improving pass@k\mathrm{pass}@k for small kk but remaining bounded by the base model’s latent capability for large kk (Yue et al. 2025).

A principled response to the length problem is temporal discounting: scaling reward by a per-token factor penalizes long rollouts directly, and discount-based variants of GRPO have been shown to shorten reasoning while preserving accuracy (Parthasarathi et al. 2025; Ayoub et al. 2025; Zhang and Zuo 2025; Yang et al. 2026). Discounting, however, is non-adaptive: it imposes a fixed length penalty regardless of a prompt’s difficulty or the response length its solution actually requires. An easy question and a hard question are pressured to be equally brief, even though the optimal reasoning budget differs. The natural next step is to let the model decide, per prompt, how much reasoning a problem warrants, applying brevity pressure only where it is justified.

We study this question directly. We ask a 1.5B distilled reasoning model to emit, as the very first token of its response, one of three discrete routing decisions—NoThink, Short, or Long—and then to reason accordingly. The routing token is part of the main policy and receives gradient through the standard GRPO objective, there is no separate router network. The central difficulty is routing collapse: because the routing decision is a single self-reinforcing discrete token, a mode with even a small reward edge is sampled more, reinforced more, and quickly drives the alternatives out of the policy.

Our method overcomes collapse with two mechanisms working together. First, hard per-mode token caps make the modes distinct by construction, so the routing label cannot decouple from behavior. Second, a simple balance term added directly to the advantage, similar to the load-balancing penalties used to discourage expert collapse in Mixture-of-Experts routing (Fedus et al. 2022), keeps the policy from settling on a single mode. A forced-rollout warmup stabilizes the early dynamics.

Our contributions are twofold. First, we show that a 1.5B reasoning model can be taught to route problems by difficulty, choosing among three reasoning modes as its first generated token, end-to-end inside GRPO, with no separate router and no supervised warm-up. Second, we show that this routing cuts the reasoning-token budget substantially while placing the policy on or above the accuracy–length Pareto frontier traced by the single-mode baselines — both in-distribution on MATH and on held-out benchmarks. As part of the analysis, a negative result on the Countdown task explains when difficulty routing is and is not learnable.

References (20)