TL;DR
AutoCRAT introduces a plug-and-play, decoder-side controller that dynamically and jointly adjusts an LLM's decoding stochasticity and reasoning budget during a single generation trajectory. By coordinating these two coupled dimensions at natural semantic boundaries, it improves relative reasoning accuracy by 1.5% to 4.5% while slashing token consumption by up to 52.7%.
What Problem Does This Paper Address?
When large language models (LLMs) tackle complex reasoning tasks, their success heavily depends on inference-time configurations: decoding stochasticity (e.g., temperature, which controls exploration vs. exploitation) and reasoning compute (e.g., token budget or thinking length).
Traditionally, these parameters are fixed before generation begins. However, a model's needs change as it reasons through a problem. Early stages might require broad, creative exploration, while later stages require deterministic consolidation and answer commitment.
While recent adaptive methods attempt to dynamically adjust these parameters, they do so along a single axis in isolation—either modifying temperature or implementing early stopping. They fail to model how stochasticity and compute interact within a single trajectory.
Methods
The authors propose AutoCRAT (Within-trajectory Joint Control of Stochasticity and Compute), a lightweight, decoder-side controller that attaches to frozen LLM backbones without altering their parameters or accessing hidden states.
Key components of the method include:
- Joint Control Head: A lightweight Multi-Layer Perceptron (MLP) maps decoder-side observables (like token entropy, margin, and progress ratios) and the previous control state to a joint discrete action space: a sampling level (temperature) and a budget level (remaining reasoning tokens).
- Boundary-Aware Updates: Instead of updating at every token—which introduces high-frequency noise and disrupts reasoning mid-thought—AutoCRAT only revises its control decisions at eligible semantic boundaries (e.g., line breaks, sentence endings, or step markers).
- Offline Training from Static Traces: To avoid online exploration noise, the controller is trained entirely offline. The authors collect static generation traces across a grid of fixed configurations, score them using a reward function that balances accuracy and token efficiency ($r(\tau) = Acc(\tau) - \lambda \tilde{C}(\tau)$), and optimize the control head using a combination of behavior cloning and preference learning.
Datasets
AutoCRAT was trained on a pooled training set of 981 problems (yielding over 312,000 boundary-level samples) and evaluated across six diverse, reasoning-intensive benchmarks:
- Math Reasoning: GSM8K, MATH-500
- Challenging QA: ARC-Challenge (ARC-C), GPQA-Diamond (GPQA-D)
- Code Generation: HumanEval, MBPP
To test out-of-distribution generalization, the authors also evaluated the controller on two completely unseen datasets without any retraining: SVAMP and CommonsenseQA.
Key Insights and Ideas
- The Completeness of the Two-Dimensional Space: The authors provide a formal argument showing that within a single-trajectory, forward-only decoding process, intervening on the shape of the sampling distribution ($c_{s,t}$) and the continuation condition ($c_{c,t}$) exhausts all available degrees of freedom. No third structural class of control exists.
- Semantic Boundaries Provide Stability: Token-level adjustments cause erratic oscillations. Waiting for semantic boundaries provides a stable observation window, ensuring that budget reductions act as clean, interpretable step-level terminations.
- Strong Cross-Backbone Transferability: Because AutoCRAT relies purely on surface-level decoding metadata rather than model-specific internal embeddings, a controller trained on a small model (Qwen3-4B) transfers seamlessly to larger models (Qwen3-8B, Qwen3-30B) and entirely different model families (DeepSeek-R1-Distill-Llama-8B) without retraining.
Key Results
- Token Efficiency: AutoCRAT reduced token consumption by 13.8% to 52.7% compared to standard recommended static configurations.
- Accuracy Boost: It consistently outperformed static baselines, improving average relative accuracy by 2.2% to 4.0% across different backbones.
- Beating Single-Axis Baselines: AutoCRAT achieved a superior accuracy-compute tradeoff compared to single-axis adaptive methods like EDT (entropy-based temperature control) and DEER (dynamic early exit), proving that joint coordination is necessary.
- Task-Dependent Behavior: The controller actively shifts its strategy based on the domain. As shown in Figure 3, simpler QA tasks (ARC-C) require fewer control switches, whereas complex coding tasks (MBPP) demand frequent, highly variable adjustments to navigate algorithmic uncertainty.
Limitations and Future Work
- Restricted Action Space: The current implementation is limited to temperature scaling and token-budget constraints. Future work could expand this to include top-p sampling, repetition penalties, or token-level rollbacks and backtracking.
- Distribution Shift: Because the controller is trained on static-configuration traces but deployed in an adaptive environment, it faces a distribution shift that might cap its maximum performance. Iterative training loops could mitigate this.
- Susceptibility to False Convergence: If a model generates a highly fluent but fundamentally incorrect derivation, the local decoder uncertainty will be low. This can trick AutoCRAT into prematurely reducing the budget, leaving no room for self-correction.
Summary updated