Introduction
Large Reasoning Models (LRMs) like OpenAI’s o1 and DeepSeek-R1 have demonstrated remarkable capabilities by employing internal "Chains of Thought" (CoT) to solve complex problems. However, these models often produce unpredictably long outputs, making them difficult to deploy under strict inference-time budgets. Salesforce AI Research introduces Elastic Reasoning, a framework that enables LRMs to adapt their thinking length to specific constraints without sacrificing accuracy or logical coherence.
The Challenge of Inference-Time Budgets
In real-world applications, models must often adhere to hard token limits or latency requirements. Standard CoT models frequently fail when their reasoning process is truncated; they may lose the logical thread or fail to provide a final answer entirely. Existing methods to control length, such as length penalties during training, often degrade performance or require separate models for different budget levels. Elastic Reasoning addresses this by ensuring the model can always produce a valid solution, even when its "thinking" time is cut short.
Methodology: Separate Budgeting and Constrained Rollouts
The Elastic Reasoning framework relies on two core innovations: Separate Budgeting and Budget-Constrained Rollout.
- Separate Budgeting: Instead of a global token limit, the inference budget is split into a thinking phase ($t$) and a solution phase ($s$). If the thinking limit is reached, the system forces a transition to the solution phase (e.g., by appending a
</think>tag). This ensures the model always has a dedicated budget to articulate its final answer. - Budget-Constrained Rollout: Using Group Relative Policy Optimization (GRPO), models are trained to be robust to these interruptions. During training, the thinking process is simulated with various truncations, and the model is rewarded for reaching the correct answer despite the constraint. This allows a single model to generalize across a wide range of budgets at test time.
Evaluation and Results
The framework was evaluated using E1-Math-1.5B (fine-tuned from DeepScaleR-1.5B) and E1-Code-14B (fine-tuned from DeepCoder-14B) on benchmarks including AIME, MATH500, and LiveCodeBench.
As shown in the results, E1 models significantly outperform baselines under constraints. On AIME2024, E1-Math-1.5B achieved 35.0% accuracy, while E1-Code-14B reached a Codeforces rating of 1987, comparable to high-compute proprietary models. Notably, these models also became more efficient; even without constraints, they produced reasoning chains 30-37% shorter than their predecessors while maintaining peak performance.
Discussion and Future Work
A key insight from this research is that the "solution" segment is sacred. By guaranteeing a budget for the final answer, the model can synthesize a conclusion from partial reasoning. Furthermore, training under constraints naturally encourages conciseness, effectively teaching the model to "get to the point."
While highly effective for math and coding, future work is needed to apply Elastic Reasoning to domains where reasoning and output are more interleaved, such as creative writing. Additionally, exploring the impact of concise reasoning on human interpretability remains an open question.
Summary updated