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

Manuscript Offprint

arXiv:2608.29988

AutoCRAT: Within-trajectory Joint Control of Stochasticity and Compute for LLM Reasoning

Hanjun Luo, Qiushi Liu, Jingya Zhang, Haihong Pang, Jiaheng Wen, Yifei Ma, Yu Yao, Chengxi Zhang, Hanrong Zhang, Yankai Chen, Hanan Salam

Abstract

Large language models (LLMs) achieve strong reasoning performance, which depends critically on inference-time decisions. Yet these decisions are commonly handled by static, one-size-fits-all policies, limiting adaptation to diverse tasks and reasoning stages. Recent adaptive methods partially address this limitation, but they primarily adapt either decoding stochasticity (how the model explores) or reasoning compute (how long the model reasons) in isolation, leaving their interaction within a single reasoning trajectory unmodeled. To address this challenge, we shift toward a within-trajectory joint control view, and instantiate it in AutoCRAT, a decoder-side controller for frozen backbones. Using only signals available during decoding, AutoCRAT jointly adjusts sampling stochasticity and reasoning budget during generation. AutoCRAT operates over a discrete action space and updates control decisions only at semantic boundaries, improving stability while remaining responsive to the evolving reasoning process. Comprehensive evaluation across 6 benchmarks demonstrates that AutoCRAT (I) uses 13.8 ~ 52.7% fewer inference tokens on average than recommended static configurations, (II) surpasses recommended static and adaptive baselines by 1.5 ~ 4.5% in relative accuracy, and (III) enjoys strong cross-backbone transferability.

1 Introduction

Large language models (LLMs) have demonstrated strong performance on complex reasoning tasks such as mathematics and code generation (Chen et al., 2025b). In practice, their reasoning performance depends not only on the underlying capabilities but also heavily on inference-time configurations, including decoding stochasticity (e.g., temperature, top-p) and reasoning compute (e.g., reasoning depth and allocation of test-time compute), which are often manually pre-specified (Ji et al., 2025). Even when adjustments are available, they are primarily limited to per-request configurations fixed before generation begins, or rely on external human intervention (Zou et al., 2026a; Li et al., 2026b), without a mechanism to adapt as the optimal configurations evolve within a single trajectory. For instance, early stages may require broader exploration, while later stages require consolidation and answer commitment. Consequently, such fixed configurations are often ill-suited to the varying needs across tasks and reasoning stages (Parashar et al., 2025; Li et al., 2026c; Fan et al., 2026b).

Figure

Figure 1: Existing methods adapt only part of the reasoning process, while the optimal workflow requires joint, within-trajectory coordination across stages.

Recent work has increasingly explored adaptive mechanisms for calibrating these factors during reasoning (Alomrani et al., 2025). One line of work adjusts decoding stochasticity through dynamic temperature scheduling or sampling adjustments (Zhu et al., 2024); another line adjusts reasoning compute through adaptive thinking length, dynamic budget allocation, early stopping, or self-correction (Pu et al., 2025; Wu et al., 2025b). However, prior studies suggest that these two dimensions interact and should be coordinated jointly (Wu et al., 2024), as demonstrated in Figure 1. Yet existing methods still lack a unified within-trajectory control perspective that jointly models their interaction.

*h16266@nyu.edu

†^{\dagger}Corresponding author

To address this gap, we propose AutoCRAT, a decoder-side controller that performs joint within-trajectory coordination. Technically, we build AutoCRAT on a two-dimensional stochasticity-compute control view. It simultaneously regulates sampling stochasticity and reasoning budget as the generation unfolds. AutoCRAT operates solely on signals observable during decoding and its own control state, without accessing hidden states of backbones, which supports transferability across models and interfaces (Zhang et al., 2026; Du et al., 2026). To balance adaptivity and stability in this joint control setting, we introduce two designs: (i) control decisions are made over a discrete action space rather than continuous values, and (ii) are updated only at natural semantic boundaries (e.g., sentence endings, step markers), avoiding the instability of token-level switching while remaining more responsive than per-request configuration (Yu et al., 2025a).

We conduct comprehensive evaluations on 6 widely adopted benchmarks, covering diverse use cases in code generation, mathematical reasoning, and challenging QA. Empirical results demonstrate that AutoCRAT is (I) token-economical, using 13.8 ~ 52.7% fewer inference tokens on average than recommended static configurations; (II) high-performing, surpassing recommended static and adaptive baselines by 1.5 ~ 4.5% in relative accuracy; (III) transferable across LLM-backbones; (IV) insightful, demonstrating the significance of a unified view of LLM reasoning.

Our contributions are summarized as follows:

① Unified View. We introduce a unified view of inference-time adaptation for LLM reasoning, arguing that stochasticity and compute should be coordinated within a trajectory rather than adjusted in isolation or only at the request level.

② Practical Solution. We propose AutoCRAT, a decoder-side controller for frozen backbones that jointly coordinates sampling stochasticity and reasoning budget. Its discrete action design and boundary-aware updates balance adaptivity, stability, and transferability.

③ Experimental Evaluation. Extensive experiments on 6 benchmarks show that AutoCRAT achieves a substantially better accuracy–compute tradeoff than baselines, exhibits strong transferability, and provides insights into the dynamics of LLM reasoning control.

References (75)