Learning When to Think: Adaptive Reasoning for Test-Time Compute Allocation
This paper introduces a method for training reasoning language models to adaptively allocate test-time compute by learning to select between "NoThink," "Short," and "Long" reasoning modes via Group Relative Policy Optimization, achieving significant token reduction while maintaining or improving accuracy across various benchmarks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Large language models have become remarkably skilled at solving complex problems, often by breaking a question down into a long series of intermediate steps, much like a human working through a difficult math problem on a piece of paper. This step-by-step approach, known as chain-of-thought reasoning, allows these systems to reach high levels of accuracy on tasks involving mathematics and coding. However, this capability comes with a significant cost: the models often generate far more text than is necessary, consuming vast amounts of computing power and time. Even when a problem is simple, the model might produce a lengthy, verbose explanation, wasting resources on tasks that could be solved instantly. Researchers have long suspected that these systems lack the ability to judge how much effort a specific problem actually requires, leading to a situation where easy questions get the same heavy treatment as difficult ones.
A team of researchers at Vrije Universiteit Amsterdam set out to teach a model to make this judgment for itself. They worked with a relatively small reasoning model, containing 1.5 billion parameters, which had been trained to solve mathematical problems. Instead of forcing the model to always think for a fixed amount of time, they gave it a simple choice at the very start of its response: it could decide to answer immediately without thinking, reason briefly, or engage in extended, deep reasoning. The model was trained using a method called reinforcement learning, where it receives feedback based on whether its answer is correct and how efficiently it arrived there. The goal was to see if the model could learn to match its effort to the difficulty of the problem, saving time on easy tasks while still dedicating enough resources to solve hard ones.
The researchers designed a system where the model emits a single word as its first token to signal its chosen mode of operation. If the model selects "NoThink," it attempts to answer directly. If it chooses "Short," it is allowed to generate a brief explanation, but with a strict limit on how many words it can use. If it picks "Long," it is permitted to reason at length without a cap. To ensure the model actually stuck to these choices, the researchers imposed hard limits on the length of the response for the shorter modes. If a model tried to use the "Short" mode but kept writing past the limit, the system would mark the attempt as incorrect, regardless of whether the final answer was right. This forced the model to learn that the label it chose at the beginning had real consequences for its behavior.
To prevent the model from simply ignoring the choice and defaulting to the longest, safest option every time, the researchers adjusted the rewards it received. They made the "NoThink" and "Short" modes more rewarding for very short answers, while the "Long" mode offered a steady reward regardless of length. This created a landscape where the best strategy depended on the problem: for a trivial question, the quickest answer yielded the highest score, while a difficult problem required the extended effort of the "Long" mode to succeed. They also added a balancing mechanism that gently nudged the model to use all three options, ensuring it didn't collapse into using just one strategy for every single problem.
The results showed that the model successfully learned to sort problems by difficulty. On a set of 500 held-out math problems, the model began to route easy questions to the "NoThink" or "Short" modes and difficult questions to the "Long" mode. Over the course of training, the model's accuracy remained nearly identical to the original, unmodified version, but the average length of its responses dropped significantly. The researchers found that the new policy reduced the average number of words generated by 41 percent, cutting the response length from nearly 4,800 tokens down to about 2,800. This meant the model was solving the same number of problems correctly while using less than half the computational effort.
Crucially, this efficiency did not come at the cost of performance on problems the model had never seen before. When tested on a different set of elementary math word problems, the model saved an even larger amount of text, reducing the token count by 76 percent while maintaining high accuracy. On a set of extremely difficult competition math problems, where deep reasoning is almost always required, the model correctly chose the "Long" mode for nearly every question, matching the performance of the baseline without wasting time on shortcuts. The study demonstrates that a reasoning model can be trained to self-regulate its effort, allocating more thinking time only when the problem demands it. This suggests a path forward for making artificial intelligence more efficient, allowing systems to be both smart and economical, rather than simply verbose.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.