Adaptive Stopping of Streamed Reasoning for Language Model Agents

JunHyeok Oh, Byung-Jun Lee

Korea University

arXiv preprint

0.0 / 0.0 s

Adaptive reasoning before each action. A WebShop test episode with Qwen3.8-27B under Full thinking, a fixed 352-token budget, and StreamStop. All three agents complete the task; StreamStop adapts the amount of reasoning to each decision. The replay uses recorded actions and the paper's H200-based timing.

Abstract

Reasoning-enabled language model agents can incur substantial computation before acting, although the reasoning needed varies across decisions. Existing stopping signals, such as confidence and intermediate-answer stability, can vary in effectiveness across reasoning models; signals obtained from hidden states or token probabilities also require internal access that may be unavailable or impractical. We introduce StreamStop, which learns model-specific stopping policies offline from prefix-level action agreement. A frozen prefix reader encodes available reasoning text for a lightweight stop head, allowing stopping without access to the reasoning model's internal signals. We construct and publicly release a dataset of agent reasoning trajectories with prefix-level action annotations. These annotations compare each prefix action with the full-reasoning reference action, enabling offline comparison of stopping rules and exact expected-return optimization of a discounted action-agreement objective. Conditioning the head on the discount factor allows the agreement–token trade-off to be adjusted at inference without retraining. In closed-loop evaluations on WebShop and ScienceWorld, StreamStop achieves higher observed success than most validation-selected fixed-budget settings while using fewer reasoning tokens than Full thinking. On WebShop with Qwen3.8-27B, it uses 42% fewer reasoning tokens per episode with similar observed task success.

How much reasoning does one decision need?

Language model agents can generate substantial reasoning before acting, but the amount needed varies across decisions. A short fixed budget can interrupt useful reasoning; a long one can continue after the action is already determined. StreamStop learns when the available reasoning is sufficient to preserve the reasoning model's full-reasoning action.

Panel (a): action agreement with the full-reasoning action as a function of the number of thinking tokens read, for a 1.7B prefix reader and for the 27B reasoning model forced to answer at that point. Panel (b): cumulative distribution over decisions of the sufficient prefix length for the reader and for the reasoning model, together with the full reasoning length.
Action agreement across reasoning prefixes. WebShop validation decisions with Qwen3.8-27B as the reasoning model. (a) Agreement with the full-reasoning action after reading the first k thinking tokens, for a small prefix reader (Qwen3-1.7B, scoring the valid candidate actions) and for the reasoning model itself forced to answer at k. (b) Cumulative distribution of the sufficient prefix, the earliest prefix after which every later action agrees with the reference, against the full reasoning length. Thinking-token axes are logarithmic.

A small reader guides adaptive stopping

The reasoning model \(\mathcal M\) streams its reasoning in chunks. After each chunk a frozen prefix reader \(\mathcal R\) encodes the prefix read so far, and a lightweight stop head \(\pi_\theta\), conditioned on a discount factor \(\gamma\), chooses between two control actions:

WAITReceive the next reasoning chunk and update the stopping decision.
STOPAsk \(\mathcal M\) to generate an action from the selected prefix.

Once trajectories and prefix-action annotations have been collected, the stop head is trained offline without additional reasoning-model calls or environment rollouts. Both language models remain frozen. Each annotated prefix \(t\) of a recorded trajectory \(\xi\) is labelled with whether the action generated from it agrees with the full-reasoning action, \(y_t\in\{0,1\}\), and the expected discounted agreement is computed exactly over stopping times on each recorded trajectory, with \(q_t\) the probability of first stopping at prefix \(t\):

\[ J(\theta \mid \xi, \gamma) = \sum_{t=0}^{T} q_t\, \gamma^{t}\, y_t . \]

The head is conditioned on \(\gamma\), so a single trained policy supports different agreement–token trade-offs without retraining. Smaller values place more weight on early agreement; values closer to one place less penalty on waiting.

Left: during agent interaction the frozen reasoning model streams reasoning chunks; a frozen prefix reader encodes the public context and the available prefix into features; a trainable stop head conditioned on the discount factor outputs WAIT or STOP; on STOP the reasoning model generates the action from the current prefix. Right: recorded prefix actions are annotated with whether they agree with the full-reasoning reference action, and the stop head is trained on the exact expected discounted agreement over stopping times.
StreamStop at a glance. (a) Inference: reasoning model, prefix reader and stop head during one decision. (b) Training: recorded trajectories with per-prefix agreement labels, the exact expected return over stopping times, and one γ-conditioned policy for different trade-offs.
Four panels of action agreement against reasoning tokens per decision on validation decisions: WebShop with Qwen3.8 and with Nemotron, ScienceWorld with Qwen3.8 and with Gemini. StreamStop at a sweep of discount factors is compared with constant budgets, EAT-proxy settings, a Dynasor-CoT sweep, no thinking and full thinking.
Validation agreement–token curves. Validation action agreement against reasoning tokens per decision for four environment and reasoning-model pairs. The StreamStop curve is a single stop head swept over γ; Const-k stops after k tokens; EAT-proxy and Dynasor-CoT are swept over their own settings. For Gemini 3.1 Flash-Lite the observable explicit plan stands in for the hidden native reasoning.

Results

StreamStop achieves higher observed success than most validation-selected fixed-budget settings across the evaluated environment–model configurations. On WebShop with Qwen3.8-27B, it uses 42% fewer reasoning tokens per episode with similar observed success to Full thinking. The relative performance of confidence- and consistency-based stopping varies across reasoning models, motivating a stopping criterion learned from each model's prefix-action behavior.

MethodWebShop
Qwen3.8-27B
WebShop
Nemotron-30B
ScienceWorld
Qwen3.8-27B
ScienceWorld
Gemini 3.1 FL
success %tok/epsuccess %tok/epsuccess %tok/epsuccess %tok/ep
Full thinking (reference)43.05,94534.55,37452.145,38047.110,980
No thinking13.2018.3032.0039.90
Const-M (validation-matched)35.72,11932.51,59950.112,56245.46,500
EAT-proxy33.22,36929.52,03548.815,09549.28,596
Dynasor-CoT31.72,08236.22,33848.117,86844.67,718
StreamStop, γ = 0.9840.32,67535.52,69349.220,75747.18,757
StreamStop, γ = 0.9942.83,46436.33,26349.221,66546.18,977
StreamStop, γ = 0.99541.84,54037.03,72750.823,68047.09,183

Test-set means over three evaluation seeds (Gemini: eight). tok/ep = reasoning tokens per episode; for Gemini they are explicit-plan tokens in reader-token units. Underlined: highest observed success among the stopping settings shown (Full thinking excluded). Const-M uses a fixed budget selected on validation data to match StreamStop at γ = 0.99; realized test token use can differ. The paper's Table 2 includes seed variability and additional fixed-budget settings.

Text-based stopping with a closed-weight model

Gemini 3.1 Flash-Lite provides an API-based proxy evaluation of the stopping interface. We disable native thinking and elicit an explicit plan, then ask the same model to act from a selected plan prefix. This evaluates stopping without hidden-state or token-probability access; the reported tokens measure selected plan text, not API billing savings from interrupting native reasoning.

Decision Latency and Reader Overhead

StreamStop reduces decision latency relative to Full thinking for the evaluated local reasoning models. Prefix reading overlaps generation; waiting for the reader accounts for a median 0.56% of mean decision latency across the evaluated StreamStop settings.

Panels (a) to (c): success rate against estimated seconds per decision for WebShop with Qwen3.8, WebShop with Nemotron and ScienceWorld with Qwen3.8, comparing StreamStop at three discount factors with constant budgets, EAT-proxy, Dynasor-CoT, no thinking and full thinking. Panel (d): box summaries of the reader update time and the reasoning chunk interval in milliseconds.
Success against seconds per decision. (a–c) Test success (95% Wilson intervals) against the per-decision latency estimated from the recorded token counts with H200 timing. (d) Measured reader update time and reasoning chunk interval (box: interquartile range, line: median, whiskers: 10th–90th percentile).

Adaptive Reasoning in Agent Interaction

In this WebShop test episode, the fixed 352-token budget leads to an incorrect purchase. StreamStop waits longer when needed and completes the task with less reasoning than Full thinking. Together, the two selected replays illustrate how adaptive stopping allocates reasoning differently across decisions.

0.0 / 0.0 s
A harder task. Test episode on WebShop with Qwen3.8-27B, replayed in the real environment. Each window shows the page the run is on, the reasoning tokens generated for the current decision, the running token total and a time track (dark = reasoning tokens being generated, tick = an action). Seconds per decision follow the paper's H200 timing model applied to the recorded token counts; environment time is the recorded one.

Qualitative Analysis of Stopping Decisions

In these two WebShop validation examples, the stop probability rises as the prefix develops a concrete action. Shading follows the stop head along the reasoning text, while the markers compare method cutoffs and the actions generated from them.

Two WebShop reasoning streams rendered as text with blue shading for the stop probability after each chunk; the StreamStop, Dynasor-CoT, Const-M and EAT-proxy cutoffs are marked, and under each stream the action chosen at each cutoff is listed with a check or cross for agreement with the full-reasoning action.
Two decisions, chunk by chunk. Qwen3.8-27B on WebShop, γ = 0.99. Shading is the stop probability after each reasoning chunk on a log scale (stopping threshold 0.5); the labelled boxes mark where StreamStop, Dynasor-CoT, Const-M and EAT-proxy stop, and the line under each stream gives the action generated at that cutoff, with ✓ / ✗ for agreement with the full-reasoning action. In (a) StreamStop stops once the prefix proposes inspecting a hoodie within the price limit; in (b) it waits through a tentative size choice until the prefix decides to go back to search.

A dataset of reasoning prefixes with their actions

A completed reasoning trajectory records the final action, but does not reveal which action the model would generate from an earlier prefix. We collect prefix-action annotations by asking the reasoning model to act from intermediate prefixes while holding the environment context fixed. These annotations enable offline training and comparison of stopping rules on the same recorded decisions, using action agreement and reasoning tokens used.

Collection (training and validation tasks, four environment–model pairs)Count
Episodes11,194
Non-empty reasoning streams (decision attempts)123,819
Prefix-action annotations2,096,816

The collection includes successful and unsuccessful episodes, along with invalid action responses. Prefix-annotation coverage varies across collected streams; the paper specifies the filtered subset used for training and validation. The dataset and documentation are publicly available on Hugging Face.

BibTeX

@article{oh2026streamstop,
  title={Adaptive Stopping of Streamed Reasoning for Language Model Agents},
  author={Oh, JunHyeok and Lee, Byung-Jun},
  journal={arXiv preprint arXiv:2610.27981},
  year={2026},
  eprint={2610.27981},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2610.27981}
}