AI
New Framework Lets AI Models Reason Flexibly Under Varying Compute Budgets
Researchers introduce a method to train language models that think efficiently at any token budget, improving both training speed and deployment flexibility.
A new training framework called AnytimeReasoner addresses a key inefficiency in how large language models use computing resources during reasoning tasks. While existing approaches optimize reasoning performance only under a single, fixed token budget, the framework enables models to perform well across a range of different budget constraints—a shift that matters for both development speed and real-world deployment.
The Problem with Fixed Budgets#
Current reinforcement learning methods for scaling test-time compute focus narrowly on maximizing final performance within one predetermined token limit. This approach wastes flexibility: either a model trains for a large budget and can't adapt to tighter constraints, or it trains for a small budget and leaves potential performance gains on the table. Neither scenario is efficient for practical systems that may encounter varying computational conditions.
How AnytimeReasoner Works#
The framework operates by truncating a complete reasoning chain at multiple points sampled from a distribution of token budgets. At each truncation point, the model produces both the optimal answer it can reach and a summary of its reasoning so far—both of which can be verified and rewarded.
This approach introduces what the researchers call "verifiable dense rewards" throughout the reasoning process, rather than only at the end. Dense rewards make it easier for the learning algorithm to assign credit correctly, improving training efficiency.
The team optimizes two separate components—the thinking policy (how the model reasons) and the summary policy (how it presents conclusions)—in a decoupled manner to maximize total reward across all budget levels.
Budget Relative Policy Optimization#
To strengthen the training process, the researchers introduce a variance reduction technique called Budget Relative Policy Optimization (BRPO). This method improves the robustness and stability of learning, particularly when training the thinking policy under diverse budget constraints.
Results and Impact#
Testing on mathematical reasoning tasks, AnytimeReasoner consistently outperformed an existing baseline (GRPO) across all thinking budgets under various prior distributions. The method improves both training efficiency—requiring fewer iterations to converge—and token efficiency during deployment, allowing models to deliver solid reasoning performance across a spectrum of compute constraints.

