Manuscript Offprint
arXiv:2610.34350Beyond the Opening: Tracing the First Token's Persistent Influence on Reasoning Length
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Understanding how individual token choices affect reasoning length is important for characterizing reasoning models. Building on prior findings that changing the first reasoning token (hereafter, the first token) can substantially alter reasoning length, we focus on this initial choice to investigate how its influence operates during subsequent generation. One possibility is that the first token changes the early text that follows, which in turn affects reasoning length. However, replacing only the first token of an existing reasoning prefix and resuming generation substantially changes the remaining reasoning length, even though all other prefix tokens are unchanged. To trace this persistent influence, we compare next-token distributions while varying only the first token and find that sensitivity is concentrated at a small set of generation positions. Blocking attention from these positions to the first token reduces the length gap between first-token conditions. Using next-token distributions from a different first-token condition at these positions also substantially changes subsequent reasoning length. Together, these findings suggest that attention to the first token at a few sensitive positions helps sustain its length effect, illustrating how a local token choice persistently influences a sequence-level outcome.
1 Introduction
Recent reasoning models, such as DeepSeek-R1 (Guo et al., 2025), have demonstrated strong performance on complex tasks including mathematics and programming. These models solve problems by generating explicit chains of thought (CoTs) before producing final answers (Wei et al., 2022). However, the length of these reasoning traces can vary substantially across problems and even across different generations of the same problem (Lin et al., 2025; Nguyen et al., 2026), resulting in large differences in inference cost and potentially task performance (Chen et al., 2025; Muennighoff et al., 2025; Aggarwal and Welleck, 2025; Snell et al., 2025). Understanding how reasoning length is determined during autoregressive generation is therefore important for characterizing the behavior of reasoning models and developing more effective ways to control their reasoning processes (Arora and Zanette, 2025).
Reasoning length is a property of the entire generated sequence, whereas generation proceeds through individual token choices. Understanding how these choices affect overall length is therefore an important aspect of understanding what determines reasoning length. Previous studies show that local token choices can substantially affect reasoning length (Muennighoff et al., 2025; Wang et al., 2025). In particular, studies of the first reasoning token (hereafter, the first token) show that its distribution is concentrated on a few candidate tokens associated with markedly different reasoning lengths, and that changing this token can alter subsequent reasoning length (Lin et al., 2025; Nguyen et al., 2026). However, the mechanisms through which local token choices affect subsequent token predictions and lead to differences in reasoning length remain insufficiently understood. The few prevalent first-token candidates and their substantial length effects offer a tractable setting for studying how this choice affects reasoning length through subsequent generation.
Intuitively, the first token may affect subsequent reasoning length by changing the early text generated after it. To test whether its length effect depends entirely on differences in this early text, we take a prefix from an existing reasoning trace and replace only its first token, keeping remaining prefix tokens unchanged. We then allow the model to continue from the modified prefix. Even with the remaining prefix tokens held fixed, substituting a first token typically associated with longer reasoning significantly increases the remaining reasoning length, whereas substituting one associated with shorter reasoning reduces it. These results show that early textual differences do not fully explain the first-token length effect, as the first token can still influence subsequent reasoning length when the intervening prefix text is held fixed.
To trace this persistent influence, we compare next-token distributions under different first-token conditions while holding all other prefix tokens fixed, examining sensitivity to the first token at each generation position. We find that these differences in next-token distributions are highly concentrated at a small set of positions, which also exhibit stronger attention to the first token. We perform two interventions to test whether these positions contribute to the length effect. Blocking their attention to the first token substantially reduces the reasoning-length gap between first-token conditions. Using next-token distributions from a different first-token condition at these positions substantially changes subsequent reasoning length, even when the original first token is retained. Together, these results suggest that attention to the first token at a few sensitive positions helps sustain its influence on subsequent predictions and reasoning length. More broadly, this study links a local token choice to overall reasoning length through its persistent influence on subsequent token predictions. Our key findings are threefold.
• The first-token length effect persists beyond the intervening reasoning text. Even when the subsequent reasoning prefix is held fixed, changing the first token substantially alters the remaining reasoning length.
• The first token’s persistent influence on subsequent predictions is concentrated at a small set of generation positions, which also exhibit stronger attention to the first token.
• Sensitive positions contribute to sustaining the first-token length effect. Blocking their attention to the first token reduces the length gap, while replacing their next-token distributions redirects reasoning length in both directions.
Internal representations and control of reasoning length. Reasoning length can be controlled through budget forcing (Muennighoff et al., 2025), reinforcement learning with length constraints (Aggarwal and Welleck, 2025), and training on compressed reasoning traces (Xia et al., 2025). Complementary work studies internal representations. Sheng et al. (2025) predict reasoning length from question activations and identify a direction that modulates reasoning strength. Activation steering controls thinking speed (Lin et al., 2025) and behaviors such as backtracking and uncertainty (Venhoff et al., 2025). ThinkEdit edits attention-head output projections to mitigate overly short reasoning (Sun et al., 2025), while FlowSteer learns a nonlinear transformation from verbose to concise reasoning representations (Li et al., 2026). These approaches demonstrate ways to regulate reasoning length.
3 Preliminaries
3.1 Problem Formulation
Given a problem , a reasoning model generates a chain of thought followed by a final answer. We define reasoning length as , excluding reasoning delimiters and the final answer, and denote the first reasoning token by . Our goal is to understand how the influence of on reasoning length persists as generation unfolds, and through which later generation states it operates.
3.2 First-Token Effects on Reasoning Length
We illustrate the first-token effect on reasoning length using GSM8K. Under natural sampling, the first reasoning token is concentrated in a small set of first tokens, primarily Okay, Alright, To, and First (Figure 1a). Reasoning traces beginning with Okay or Alright are substantially longer on
(a) GSM8K opening frequency
| Qwen-1.5B | 6.2% | 62.6% | 20.9% | 7.1% | 3.2% |
|---|---|---|---|---|---|
| Qwen-7B | 3.2% | 72.6% | 12.5% | 3.8% | 7.9% |
| Llama-8B | 9.3% | 60.9% | 21.7% | 3.9% | 4.2% |
| To | First | Okay | Alright | Other |
To First Okay Alright
(b) Natural sampling
(c) Forced first token


Figure 1: First-token effects on GSM8K: (a) first token frequencies under natural sampling; (b) mean reasoning length conditioned on the natural first token; (c) mean reasoning length under forced first tokens. Heatmap cells report percentages, bar colors identify first tokens. Other includes all remaining first tokens. Q and L denote Qwen and Llama. Error bars indicate 95% bootstrap confidence intervals.
average than those beginning with To or First (Figure 1b). This length contrast persists when we force the reasoning trace for each question to begin with each of the four tokens, indicating that the first token can shape subsequent reasoning length rather than merely correlate with it (Figure 1c). Further experimental details and numerical results are provided in Appendix B. These observations motivate our central question: how does the first token influence reasoning length as reasoning unfolds?
4 Experimental Setup
Models and tasks. We study three DeepSeek-R1 distilled models (Guo et al., 2025): Distill-Qwen-1.5B, Distill-Qwen-7B, and Distill-Llama-8B, abbreviated as Qwen-1.5B, Qwen-7B, and Llama-8B. We use all 500 MATH-500 test questions (Hendrycks et al., 2021; Lightman et al., 2024) and a fixed random sample of 500 GSM8K training questions (Cobbe et al., 2021), with the same question sets across models and conditions. HumanEval (Chen et al., 2021) and FOLIO (Han et al., 2024) provide coding and logical reasoning tasks for the subsequent generalization analysis.
Reference trajectories. We use two types of reference trajectories to study first-token effects on reasoning length. Naturally sampled trajectories characterize first-token frequencies and their association with reasoning length. We focus on Okay, Alright, First, and To, which account for most naturally occurring firsts across our evaluated models and datasets (Appendix B). Forced first token trajectories begin with one of these long-associated (Okay, Alright) or short-associated (First, To) tokens, followed by freely sampled continuation. They serve as unmodified references for subsequent intervention experiments, with comparisons matched by question.
Sampling and evaluation. We draw three samples per question and condition at temperature 0.6 and top-p = 0.95. Reasoning lengths are measured within an 8,192-token observation horizon; unfinished traces are retained at their observed lengths. We report total reasoning length for free generation and remaining length for prefix-preserving interventions. Additional details are provided in Appendix A.
5 How the First Token Shapes Reasoning Length
To understand how the first token shapes subsequent reasoning length, we first use prefix-preserving interventions to examine whether its influence persists after a reasoning path has formed. We then identify later generation states whose predictions are sensitive to the first-token condition. Finally, we use attention masking and distribution replacement to test whether direct reads of the first token at these states sustain length differences and whether changing their generation choices can reproduce the length effect.
5.1 Persistent First-Token Influence
Setup. To test whether the first-token effect persists beyond the initial selection of a reasoning path, we replace the first token of a forced first token trajectory while holding the subsequent prefix tokens fixed. For prefix lengths , we replace long-associated first token (Okay or Alright) with short-associated first token (To or First), and vice versa:
We sample three continuations from each edited prefix and compare their mean remaining reasoning length with an unchanged-prefix reference, averaging the observed source suffix and two
To First

(b) Short → long



Preserved prefix length K

Figure 2: First-token replacement on GSM8K with subsequent prefix tokens held fixed. (a) Long-to-short replacements. (b) Short-to-long replacements. Values are ratios of mean remaining reasoning lengths to matched unchanged-prefix references, averaging the observed source suffix and two new continuations. Error bars indicate 95% bootstrap confidence intervals.
newly sampled continuations. Further experimental details and results are provided in Appendix C.
The length effect extends beyond the initial text. Figure 2 shows that changing the first token shifts the remaining reasoning length toward the tendency associated with the replacement first token. Specifically, replacing a long-associated first token with a short-associated one shortens the subsequent reasoning, while the reverse replacement lengthens it. If the first token affected reasoning length only by inducing different early text, preserving that text should eliminate its influence on subsequent generation. However, the effect remains evident even when the following 199 tokens are preserved. These results indicate that the first token's influence on reasoning length cannot be explained solely by the early text it induces, and persists even when the intervening text is held fixed.
Edited prefixes remain compatible with effective question answering. Because the preserved prefix text was generated under the original first token, replacing that token may disrupt reasoning and thereby alter length. However, Table 1 shows that shortened continuations still answer most questions correctly, though less accurately than the matched source trajectories, while lengthened continuations generally maintain or improve mean accuracy. These results suggest that the length changes do not simply reflect a general breakdown in answering ability caused by prefix editing.
Conclusion. These results show that changing the first token alters subsequent reasoning length even with the following prefix fixed, while preserving effective question answering. This provides a controlled setting in which the first-token condition is varied while the subsequent prefix text remains unchanged. Building on this setting, we next investigate what changes in subsequent generation when the first token is replaced, and how these changes affect reasoning length.
5.2 First-token Sensitivity Concentrates at Few Positions
Setup. Since reasoning unfolds through successive next-token predictions, we investigate the first token’s influence on subsequent generation by examining how replacing it changes these predictive distributions. Using the controlled setting established in the previous section, we compare predictive distributions under different first-token conditions while keeping the subsequent reasoning prefix
| Model | Opening | Rem. tokens | Acc. (%) |
|---|---|---|---|
| Long-to-short | |||
| Qwen-1.5B | Source | 1,461 | 88.6 |
| To | 419 | 86.3 | |
| First | 525 | 86.9 | |
| Qwen-7B | Source | 1,019 | 94.8 |
| To | 483 | 93.7 | |
| First | 347 | 94.5 | |
| Llama-8B | Source | 1,348 | 89.0 |
| To | 683 | 86.6 | |
| First | 666 | 85.9 | |
| Short-to-long | |||
| Qwen-1.5B | Source | 48 | 74.1 |
| Okay | 510 | 75.4 | |
| Alright | 496 | 77.4 | |
| Qwen-7B | Source | 43 | 82.8 |
| Okay | 75 | 83.0 | |
| Alright | 62 | 82.4 | |
| Llama-8B | Source | 47 | 54.5 |
| Okay | 235 | 56.3 | |
| Alright | 194 | 55.4 | |
Table 1: Remaining reasoning length and answer accuracy on GSM8K at .
fixed. At position , we define
and quantify the sensitivity of the next-token prediction to the first-token condition using Jensen-Shannon (JS) divergence (Lin, 1991). For a long-associated first token and a short-associated first token , we define:
We present First-Okay as a representative long-short pair; results for the other three pairs are provided in Appendix D.
Sensitivity is concentrated at a small fraction of positions. Figure 3(a) shows that, across models and datasets, the highest-JS 10% of positions account for approximately 69–82% of total JS. Sensitivity to the first-token condition is therefore highly concentrated along reasoning trajectories, with a small fraction of positions accounting for most of the difference in predictive distributions. Figure 3(b) illustrates this pattern in an example trajectory. JS remains relatively low at most positions, interspersed with distinct peaks. Although these peaks are denser and larger early in generation, they also occur later, showing that high sensitivity is not confined to the initial reasoning stage. Additional concentration analyses are provided in Appendix D.
(a) First-Okay JS concentration


(b) Qwen-7B | GSM8K QID 2396

Figure 3: Concentrated first-token sensitivity. (a) Aggregate JS concentration on GSM8K and MATH for all three models. Positions are ranked within each trajectory; curves show mean cumulative JS shares. Markers indicate the highest-JS 10% of positions; diagonals denote uniform contributions. (b) Unsmoothed JS along one Qwen-7B GSM8K trajectory, illustrating intermittent peaks.
High-JS positions are more strongly associated with the first token. We further examine attention to the first token to assess whether high-JS positions are more strongly associated with it. Figure 4 shows that, across models, datasets, and first token conditions, positions with higher JS tend to assign greater attention to the first token. In the highest JS decile, first-token attention lies at the 77th–82nd within-trajectory percentile on average, and the mean within-trajectory Spearman correlation between JS and first-token attention ranges from 0.32 to 0.40. Since both quantities may vary systematically with generation position, we remove their linear position trends and find that the correlation remains positive, ranging from 0.25 to 0.38. These results indicate that high-JS positions not only exhibit greater predictive sensitivity to the first-token condition, but are also more strongly associated with the first token itself.

MATH | First
MATH | Okay
Figure 4: First-token attention versus JS on GSM8K (top) and MATH (bottom), under First (left) and Okay (right) first tokens. Curves show mean attention percentiles by within-trajectory JS decile. Insets report mean Spearman correlations before and after adjusting for token position.
Conclusion. Taken together, these observations show that prediction differences induced by the first-token condition are highly concentrated at a small fraction of positions, and that these positions are more strongly associated with the first token itself. Based on these observations, we hypothesize that the first token may shape the eventual reasoning length primarily by influencing a small set of highly sensitive positions during reasoning. We next test this hypothesis experimentally.
5.3 Testing the Role of Sensitive Positions in Reasoning Length
Setup. We perform two interventions to test whether sensitive positions contribute to the first-token length effect. Attention blocking masks attention to the first reasoning token whenever . For every layer and head h, we set the corresponding pre-softmax attention logit to
while leaving all other logits unchanged before softmax. This tests whether direct attention to the first token at sensitive positions contributes to the length effect. Distribution replacement instead uses
| Model | Opening | Every 3 | 0.2 | 0.1 | 0.05 |
|---|---|---|---|---|---|
| GSM8K | |||||
| Qwen-1.5B | First | 33.3 | 6.1 | 10.9 | 16.9 |
| Okay | 33.4 | 5.2 | 9.7 | 15.7 | |
| Qwen-7B | First | 33.4 | 6.2 | 10.4 | 16.1 |
| Okay | 33.4 | 6.3 | 10.9 | 16.6 | |
| Llama-8B | First | 33.3 | 9.5 | 16.2 | 23.2 |
| Okay | 33.4 | 8.5 | 14.9 | 21.4 | |
| MATH-500 | |||||
| Qwen-1.5B | First | 33.3 | 2.1 | 3.9 | 6.7 |
| Okay | 33.3 | 0.6 | 1.6 | 3.9 | |
| Qwen-7B | First | 33.3 | 4.9 | 8.1 | 12.0 |
| Okay | 33.3 | 2.6 | 5.5 | 8.9 | |
| Llama-8B | First | 33.3 | 5.3 | 9.5 | 13.9 |
| Okay | 33.3 | 2.9 | 5.5 | 8.6 | |
Table 2: Attention intervention rates (%). Values are mean per-trajectory percentages of eligible positions. Every 3 denotes periodic masking; numeric headings denote JS thresholds.
where and denote the source and alternative first tokens, respectively. Both distributions condition on the same subsequent reasoning prefix. We sample the next token from to test whether changing predictions at sensitive positions shifts subsequent reasoning length. For both interventions, we focus on First and Okay as frequent short- and long-associated first tokens, respectively, using the same JS contrast as in Section 5.2.
We use absolute thresholds because JS distributions differ across first token conditions and reasoning lengths. Selecting a fixed percentage would assign more intervention positions to longer chains, potentially including positions with low sensitivity. We evaluate both interventions at JS thresholds .
First-token attention at sensitive positions sustains the length effect. Figure 5 shows that blocking attention to the first token at selected positions reduces the length gap between First and Okay by 51–96% relative to the unmodified baselines across all three models and both datasets. This reduction reflects shorter Okay continuations, longer First continuations, or both. On Qwen-1.5B/MATH, the change is driven mainly by lengthening First, with relatively little change in Okay. The intervention thus weakens the distinction between first token conditions rather than uniformly


Figure 5: Reasoning length under first-token attention blocking on GSM8K (top) and MATH (bottom). Base denotes no intervention; Every 3 masks every third eligible position. The remaining groups mask positions with JS above the indicated threshold. Error bars indicate 95% bootstrap confidence intervals.
shortening reasoning, although a residual gap remains. In every model–dataset combination, JS-based selection reduces the gap more than periodic masking while intervening at a smaller fraction of positions (Table 2), supporting the importance of where attention is blocked.
Distribution replacement redirects reasoning length. Figure 6 shows bidirectional length shifts across all three models and both datasets. Replacing distributions from First with those from Okay lengthens reasoning, whereas the reverse replacement shortens it. Across models, datasets, and tested thresholds, First-to-Okay replacement increases mean length to 3.7–7.9 times its source baseline, while Okay-to-First replacement reduces it by 53–90%. These shifts occur while retaining the source first token and changing only the sampling distributions at selected steps. At every tested threshold, JS-based replacement produces larger mean shifts toward the alternative first token than periodic replacement, despite a lower intervention rate (Table 8). Thus, changing predictions within the candidate set can redirect subsequent reasoning length without changing the first token itself.
Targeting sensitive positions is more effective than broad periodic intervention. For both attention blocking and distribution replacement, JS-based selection produces larger changes in the first token dependent length difference than periodic intervention despite modifying a smaller fraction of positions (Tables 2 and 8). This consistent advantage across two distinct interventions shows that their effects cannot be explained simply by the number of modified generation steps. Instead, where the intervention is applied matters: positions that are more sensitive to the first-token condition exert a stronger aggregate influence on the resulting length difference.
Conclusion. Together, these interventions indicate that attention to the first token at sensitive positions helps sustain its effect on reasoning length. Changing next-token distributions at these positions can redirect subsequent reasoning length even when the first token remains unchanged, linking its persistent influence on token predictions to overall length differences.
6 Discussion
The first-token effect raises a broader question about how local choices shape generation as a whole. A token need not explicitly specify a desired length to influence how much reasoning follows. Our results offer a starting point for considering how such connections arise and whether they extend to other tokens.
Local expressions and global generation properties. first tokens such as First and Okay do not explicitly specify reasoning length, yet they exhibit

Figure 6: Reasoning length under distribution replacement on GSM8K (top) and MATH (bottom). Base denotes no intervention; Every 3 replaces distributions at every third eligible position; numeric headings denote JS thresholds. Error bars show 95% question-bootstrap intervals.
distinct length tendencies whose influence persists beyond the early text they induce. One possible explanation is that models learn associations between local expressions and sequence-level characteristics during training. For example, an expression that frequently co-occurs with longer reasoning may favor more extended continuations without conveying an explicit length instruction. From this perspective, a token's influence may reflect both its literal meaning and learned associations with broader generation patterns. Examining these associations may help explain how small differences in local expression relate to substantial differences in sequence-level behavior.
The first token as an entry point. Similar persistent influences may occur throughout generation, with the first token providing a tractable setting for observation and intervention. Its position is aligned across trajectories, and its values are concentrated in a small set of common first tokens. These properties enable consistent substitutions and allow us to trace their effects on subsequent predictions and overall length. Tokens at intermediate positions may play similar roles, although their identities and functions depend more strongly on the surrounding context. Studying the first token therefore offers a research strategy that can be explored more broadly: introduce controlled local substitutions, identify sensitive positions in subsequent generation, and intervene to examine how these dependencies contribute to global generation properties.
Future work. A next step is to investigate how the contributions of individual positions within the candidate set combine to shape reasoning length. Finer-grained interventions could distinguish positions with substantial effects on length from those that primarily alter local wording, and determine whether their contributions are independent, redundant, or synergistic. Analyses of the surrounding context and internal representations could further reveal which generation states make earlier cues influential and how predictive changes at these positions alter the subsequent course of reasoning. This would extend the set-level intervention evidence toward a more specific account of how local dependencies contribute to global generation properties.
7 Conclusion
We investigate how the first reasoning token influences subsequent reasoning length. Its effect persists when the intervening text is held fixed, while predictive sensitivity is concentrated at a small fraction of positions. Attention blocking and distribution replacement at these positions respectively attenuate length differences and redirect reasoning length. Together, these findings support a role for the selected candidate set in sustaining the first-token length effect.
Limitations
Model scope. All three models studied in this work belong to the DeepSeek-R1 distilled series. Although they differ in size and backbone architecture, they share the same source model for distillation. Whether persistent first-token influence and concentrated sensitivity also occur in other model families and under different training procedures remains to be established.
From sensitive positions to reasoning length. We characterize the relationship between the first token and subsequent sensitive positions, and establish their contribution to the length effect through set-level interventions. This evidence concerns the selected set as a whole, leaving the contributions of individual positions unresolved. Finer-grained interventions are needed to determine which positions within the set drive the observed length changes.
References
Pranjal Aggarwal and Sean Welleck. 2025. L1: Controlling how long a reasoning model thinks with reinforcement learning. In Second Conference on Language Modeling.
Daman Arora and Andrea Zanette. 2025. Training language models to reason efficiently. In Advances in Neural Information Processing Systems, volume 38.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
Xingyu Chen, Jiahao Xu, Tian Liang, Zhiwei He, Jianhui Pang, Dian Yu, Linfeng Song, Qiuzhi Liu, Mengfei Zhou, Zhuosheng Zhang, Rui Wang, Zhaopeng Tu, Haitao Mi, and Dong Yu. 2025. Do NOT think that much for ? on the overthinking of long reasoning models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 9487–9499. PMLR.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, et al. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645:633–638.
Simeng Han, Hailey Schoelkopf, Yilun Zhao, Zhenting Qi, Martin Riddell, Wenfei Zhou, James Coady, David Peng, Yujie Qiao, Luke Benson, Lucy Sun, Alexander Wardle-Solano, Hannah Szabó, Ekaterina Zubova, Matthew Burtell, Jonathan Fan, Yixin Liu, Brian Wong, Malcolm Sailor, and 16 others. 2024. FOLIO: Natural language reasoning with first-order logic. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 22017–22031. Association for Computational Linguistics.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks.
Yawei Li, Benjamin Bergner, Yinghan Zhao, Vihang Prakash Patil, Bei Chen, and Cheng Wang. 2026. Steering large reasoning models towards concise reasoning via flow matching. Transactions on Machine Learning Research.
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let's verify step by step. In The Twelfth International Conference on Learning Representations.
Jianhua Lin. 1991. Divergence measures based on the Shannon entropy. IEEE Transactions on Information Theory, 37(1):145–151.
Zhengkai Lin, Zhihang Fu, Ze Chen, Chao Chen, Liang Xie, Wenxiao Wang, Deng Cai, Zheng Wang, and Jieping Ye. 2025. Controlling thinking speed in reasoning models. In Advances in Neural Information Processing Systems, volume 38.
Niklas Muennighoff, Zitong Yang, Weijia Shi, Xiang Lisa Li, Li Fei-Fei, Hannaneh Hajishirzi, Luke Zettlemoyer, Percy Liang, Emmanuel Candès, and Tatsunori Hashimoto. 2025. s1: Simple test-time scaling. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 20275–20321. Association for Computational Linguistics.
Ngoc-Hieu Nguyen, Parshin Shojaee, Phuc Minh Nguyen, Nan Zhang, Chandan K. Reddy, Khoa D. Doan, and Rui Zhang. 2026. Why do reasoning models lose coverage? the role of data and forks in the road. arXiv preprint arXiv:2605.17026. Version 2.
Leheng Sheng, An Zhang, Zijian Wu, Weixiang Zhao, Changshuo Shen, Yi Zhang, Xiang Wang, and Tat-Seng Chua. 2025. On reasoning strength planning in large reasoning models. In Advances in Neural Information Processing Systems, volume 38.
Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. 2025. Scaling LLM test-time compute optimally can be more effective than scaling parameters for reasoning. In The Thirteenth International Conference on Learning Representations.
Chung-En Sun, Ge Yan, and Tsui-Wei Weng. 2025. ThinkEdit: Interpretable weight editing to mitigate overly short thinking in reasoning models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics.
Constantin Venhoff, Iván Arcuschin, Philip Torr, Arthur Conmy, and Neel Nanda. 2025. Understanding reasoning in thinking language models via steering vectors. arXiv preprint arXiv:2506.18167.
Chenlong Wang, Yuanning Feng, Dongping Chen, Zhaoyang Chu, Ranjay Krishna, and Tianyi Zhou. 2025. Wait, we don’t need to “wait”! removing thinking tokens improves reasoning efficiency. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 7459–7482, Suzhou, China. Association for Computational Linguistics.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, volume 35.
Heming Xia, Chak Tou Leong, Wenjie Wang, Yongqi Li, and Wenjie Li. 2025. TokenSkip: Controllable chain-of-thought compression in LLMs. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 3351–3363. Association for Computational Linguistics.
A Experimental Setup Details
Prompt templates. The prompts used for each dataset are shown below.
GSM8K / MATH {question} HumanEval Complete the following Python function. Return only the completed function. {function prompt} FOLIO Given the premises, determine whether the conclusion is True, False, or Unknown. Answer with exactly one word: True, False, or Unknown. Premises: {premises} Conclusion: {conclusion}
Aggregation and uncertainty. Forced-opening means average repetitions within questions, then questions. Natural conditional means pool trajectories by observed opening. For the first-token effect figures, 95% confidence intervals use 10,000 bootstrap resamples of whole questions, retaining all their trajectories. Experiment-specific aggregation and bootstrap settings are given in the corresponding appendices.
Computing infrastructure. We conducted our experiments on NVIDIA RTX A6000 GPUs with 48 GB of memory and NVIDIA A800 GPUs with 80 GB of memory.
B Additional First-Token Effects
Figure 7 extends Figure 1 to MATH-500, HumanEval, and FOLIO using the reference trajectories described in Appendix A.
The four selected openings account for 92.1–96.8% of natural trajectories on GSM8K, 99.8–100% on MATH-500, and 100% on HumanEval and FOLIO. Although the first-token distribution under natural sampling varies across datasets, forced-opening generation reveals similar reasoning-length contrasts across all four datasets. These results suggest that the first-token effect on reasoning length occurs across diverse tasks.
C Additional Prefix-Preserving Intervention Results
We supplement Section 5.1 with length results on MATH-500, HumanEval, and FOLIO, together with accuracy evaluations across all four datasets.
C.1 Additional Length Results
Long-to-short comparisons retain questions for which both source trajectories exceed 200 tokens; short-to-long comparisons retain completed sources with at least K tokens. Both directions compare mean remaining lengths under a common horizon of 8,192 – K tokens, including unfinished continuations. We average repetitions within sources, eligible sources within questions, and then questions, using identical weights for the references. In the accompanying tables, questions counts distinct problems and sources counts eligible original trajectories before continuation resampling, with up to two source first tokens per question.
Figure 8 reports the MATH-500 results. For long-to-short comparisons, all 164 HumanEval problems are retained, alongside 499, 489, and 488 FOLIO questions for Qwen-1.5B, Qwen-7B, and Llama-8B, respectively. Short-to-long source coverage varies with K.
Length effects beyond mathematical tasks. Figures 9 and 10 show bidirectional mean length changes, with weaker relative shortening on HumanEval than on FOLIO. At , HumanEval long-to-short ratios range from 0.87 to 0.95, with all six 95% intervals below one, while short-to-long ratios range from 1.23 to 1.59. FOLIO shows larger relative changes, with corresponding ratios of 0.58–0.85 and 1.71–3.04. These results extend the persistence observation to coding and logical reasoning, while showing that its magnitude depends on the task and replacement.
C.2 Accuracy Evaluation
Accuracy is evaluated on the same eligible sources as the length comparisons, with each sampled continuation scored separately. Unfinished reasoning and missing or unparseable answers count as incorrect.
GSM8K and MATH-500. Tables 3 and 4 report accuracy on the mathematical datasets. For GSM8K, we extract answers after </think>, prioritizing the last complete \boxeded expression and otherwise the last number, with fractions and unit formatting normalized. For MATH-500, extraction prioritizes boxed answers and otherwise uses an explicit final-answer section when available; Markdown down emphasis, ordinal suffixes, and degree notation are normalized.
(a) Opening frequency (%)

(b) Natural sampling

(c) Forced first token





To First Okay Alright

Figure 7: First-token effects on MATH-500, HumanEval, and FOLIO (rows). Columns show (a) natural opening frequencies in percent, (b) mean reasoning length by natural opening, and (c) mean reasoning length under forced openings. Length panels share a vertical scale within each dataset. Error bars show 95% question-bootstrap intervals; dashes indicate openings with no observed natural samples. Other includes all remaining openings. Q and L denote Qwen and Llama.
HumanEval and FOLIO. Tables 5 and 6 report accuracy on the additional datasets. HumanEval programs are extracted from final answers, retaining generated imports and helper functions as well as imports supplied in the task prompt. Programs are evaluated against all supplied task tests in an isolated environment; test failures or execution exceeding 3 seconds of CPU time or 8 seconds of wall-clock time count as incorrect. FOLIO predictions are extracted from final-answer labels, prioritizing explicit answers over labels mentioned within explanations.
To First

(b) Short → long

Preserved prefix length K


Figure 8: Prefix-preserving first-token replacements on MATH-500. Top: long-to-short replacements across three models. Bottom: short-to-long replacements across the same models. Values are ratios of mean remaining reasoning lengths to matched unchanged-prefix references; error bars show 95% question-bootstrap intervals.
(a) Long → short
To First

(b) Short → long
Preserved prefix length K
Figure 9: Prefix-preserving first-token replacement on HumanEval. Ratios compare mean edited continuation lengths with the three-continuation unchanged-prefix references. Error bars show 95% question-bootstrap intervals; dashed lines mark a ratio of one.
To First

(b) Short → long


Preserved prefix length K

Figure 10: Prefix-preserving first-token replacement on FOLIO, using the same comparison as Figure 9.
C.3 Illustrative Prefix-Preserving Interventions
Figures 11–16 show Qwen-7B cases in both directions on GSM8K, HumanEval, and FOLIO at K = 200. QIDs are zero-based dataset row indices and coincide with numeric task IDs for HumanEval.
| Model | K | Long-to-short (Okay / Alright → To / First) Questions / sources | Reference | To | First | |||
|---|---|---|---|---|---|---|---|---|
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 500 / 1000 | 1,608.6 | 88.5 | 274.5 | 86.3 | 343.2 | 87.6 |
| 100 | 500 / 1000 | 1,565.4 | 89.2 | 358.5 | 86.7 | 432.5 | 87.8 | |
| 150 | 500 / 1000 | 1,472.6 | 89.9 | 404.5 | 87.1 | 489.8 | 87.8 | |
| 200 | 500 / 1000 | 1,461.2 | 88.6 | 419.5 | 86.3 | 524.7 | 86.9 | |
| Qwen-7B | 50 | 500 / 1000 | 1,138.5 | 95.0 | 414.2 | 94.8 | 306.7 | 94.4 |
| 100 | 500 / 1000 | 1,096.9 | 94.9 | 490.7 | 94.1 | 336.6 | 94.5 | |
| 150 | 500 / 1000 | 1,059.4 | 94.9 | 507.5 | 93.5 | 349.4 | 94.3 | |
| 200 | 500 / 1000 | 1,019.2 | 94.8 | 482.6 | 93.7 | 347.2 | 94.5 | |
| Llama-8B | 50 | 500 / 1000 | 1,503.8 | 88.5 | 579.8 | 84.9 | 567.7 | 85.1 |
| 100 | 500 / 1000 | 1,442.1 | 88.7 | 681.8 | 85.8 | 680.3 | 85.8 | |
| 150 | 500 / 1000 | 1,430.8 | 88.0 | 686.5 | 86.4 | 682.6 | 86.2 | |
| 200 | 500 / 1000 | 1,348.0 | 89.0 | 683.3 | 86.6 | 665.6 | 85.9 | |
| Model | K | Short-to-long (To / First → Okay / Alright) Questions / sources | Reference | Okay | Alright | |||
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 500 / 999 | 117.7 | 82.8 | 744.4 | 85.4 | 734.7 | 86.2 |
| 100 | 492 / 932 | 70.4 | 83.0 | 441.7 | 85.0 | 421.7 | 84.8 | |
| 150 | 352 / 562 | 47.6 | 80.2 | 374.4 | 81.8 | 356.0 | 82.1 | |
| 200 | 165 / 223 | 48.1 | 74.1 | 510.4 | 75.4 | 495.9 | 77.4 | |
| Qwen-7B | 50 | 500 / 999 | 120.2 | 92.0 | 181.0 | 92.9 | 180.4 | 93.4 |
| 100 | 496 / 929 | 74.9 | 92.2 | 102.4 | 92.9 | 101.8 | 92.9 | |
| 150 | 372 / 597 | 49.5 | 89.6 | 79.1 | 90.6 | 68.2 | 90.3 | |
| 200 | 170 / 240 | 43.2 | 82.8 | 75.4 | 83.0 | 62.3 | 82.4 | |
| Llama-8B | 50 | 500 / 1000 | 108.4 | 71.3 | 306.9 | 76.2 | 271.8 | 75.5 |
| 100 | 483 / 894 | 64.3 | 70.9 | 192.9 | 74.4 | 150.9 | 73.1 | |
| 150 | 328 / 494 | 46.8 | 64.7 | 170.8 | 67.9 | 151.0 | 67.5 | |
| 200 | 138 / 181 | 47.5 | 54.5 | 235.2 | 56.3 | 193.9 | 55.4 | |
Table 3: Prefix-preserving interventions on GSM8K. Length is mean remaining reasoning tokens; Acc. is answer accuracy (%). Reference averages the observed source outcome and two unchanged-prefix continuations; each replacement averages three continuations. All quantities use matched eligible sources and equal question weights.
| Model | K | Questions / sources | Reference | To | First | |||
|---|---|---|---|---|---|---|---|---|
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 500 / 1000 | 3,503.2 | 78.0 | 1,367.5 | 73.5 | 1,872.0 | 76.0 |
| 100 | 500 / 1000 | 3,452.4 | 77.8 | 1,810.6 | 75.4 | 2,174.3 | 77.0 | |
| 150 | 500 / 1000 | 3,406.4 | 78.7 | 1,872.7 | 75.1 | 2,248.6 | 77.1 | |
| 200 | 500 / 1000 | 3,342.6 | 78.5 | 1,968.3 | 76.4 | 2,234.3 | 77.3 | |
| Qwen-7B | 50 | 500 / 1000 | 2,959.6 | 88.3 | 2,132.8 | 88.4 | 1,652.1 | 87.1 |
| 100 | 500 / 1000 | 2,914.7 | 88.3 | 2,227.3 | 88.2 | 1,772.6 | 87.3 | |
| 150 | 500 / 1000 | 2,837.4 | 88.5 | 2,290.6 | 87.3 | 1,847.4 | 88.1 | |
| 200 | 500 / 1000 | 2,796.3 | 88.6 | 2,278.1 | 88.2 | 1,859.2 | 87.8 | |
| Llama-8B | 50 | 500 / 1000 | 3,253.0 | 81.7 | 2,235.6 | 79.3 | 2,253.3 | 79.7 |
| 100 | 500 / 1000 | 3,233.4 | 81.3 | 2,301.6 | 81.0 | 2,305.9 | 80.5 | |
| 150 | 500 / 1000 | 3,179.5 | 80.9 | 2,351.7 | 80.7 | 2,346.3 | 80.5 | |
| 200 | 500 / 1000 | 3,101.2 | 81.4 | 2,368.0 | 80.8 | 2,339.2 | 81.1 | |
| Model | K | Questions / sources | Reference | Okay | Alright | |||
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 500 / 989 | 354.0 | 66.5 | 2,805.8 | 77.6 | 2,794.6 | 77.4 |
| 100 | 500 / 973 | 312.0 | 65.9 | 2,429.9 | 76.5 | 2,451.8 | 76.7 | |
| 150 | 472 / 870 | 275.6 | 66.0 | 2,302.0 | 75.4 | 2,288.2 | 76.0 | |
| 200 | 420 / 736 | 266.2 | 62.8 | 2,260.0 | 70.9 | 2,239.5 | 72.1 | |
| Qwen-7B | 50 | 500 / 995 | 333.1 | 75.8 | 1,785.8 | 86.4 | 1,743.6 | 86.5 |
| 100 | 496 / 978 | 282.8 | 75.1 | 1,314.8 | 84.2 | 1,237.5 | 84.4 | |
| 150 | 473 / 884 | 257.1 | 74.3 | 1,104.8 | 83.2 | 1,046.1 | 82.2 | |
| 200 | 412 / 735 | 240.4 | 71.3 | 1,104.2 | 79.9 | 1,073.5 | 78.4 | |
| Llama-8B | 50 | 500 / 994 | 336.8 | 58.6 | 2,272.3 | 78.1 | 2,219.4 | 77.6 |
| 100 | 495 / 966 | 296.5 | 58.0 | 1,913.1 | 75.1 | 1,860.4 | 73.5 | |
| 150 | 462 / 867 | 269.3 | 56.1 | 1,836.6 | 71.0 | 1,814.7 | 70.1 | |
| 200 | 398 / 707 | 278.1 | 53.4 | 1,991.5 | 66.8 | 1,835.3 | 65.5 | |
Table 4: Prefix-preserving interventions on MATH-500. Length is mean remaining reasoning tokens; Acc. is answer accuracy (%). Reference averages the observed source outcome and two unchanged-prefix continuations; each replacement averages three continuations. All quantities use matched eligible sources and equal question weights.
| Model | K | Questions / sources | Reference | To | First | |||
|---|---|---|---|---|---|---|---|---|
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 164 / 328 | 3,554.1 | 64.7 | 3,140.9 | 64.9 | 3,092.6 | 63.9 |
| 100 | 164 / 328 | 3,589.9 | 63.7 | 3,263.8 | 63.2 | 3,165.6 | 64.2 | |
| 150 | 164 / 328 | 3,441.8 | 64.6 | 3,116.0 | 66.5 | 3,106.7 | 66.6 | |
| 200 | 164 / 328 | 3,426.0 | 65.0 | 3,186.4 | 64.7 | 3,133.2 | 62.7 | |
| Qwen-7B | 50 | 164 / 328 | 2,758.8 | 85.9 | 2,651.8 | 83.1 | 2,085.9 | 83.7 |
| 100 | 164 / 328 | 2,671.6 | 85.9 | 2,530.3 | 86.2 | 2,236.1 | 84.5 | |
| 150 | 164 / 328 | 2,613.4 | 86.9 | 2,542.3 | 86.2 | 2,264.2 | 84.2 | |
| 200 | 164 / 328 | 2,586.6 | 85.1 | 2,452.8 | 86.5 | 2,249.8 | 85.1 | |
| Llama-8B | 50 | 164 / 328 | 2,707.7 | 84.5 | 2,260.0 | 81.7 | 2,166.9 | 81.3 |
| 100 | 164 / 328 | 2,631.9 | 84.5 | 2,304.7 | 81.9 | 2,196.7 | 81.6 | |
| 150 | 164 / 328 | 2,675.0 | 82.6 | 2,244.6 | 82.8 | 2,233.9 | 82.7 | |
| 200 | 164 / 328 | 2,551.4 | 83.5 | 2,252.8 | 82.6 | 2,261.0 | 81.6 | |
| Model | K | Questions / sources | Reference | Okay | Alright | |||
|---|---|---|---|---|---|---|---|---|
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 157 / 293 | 2,601.3 | 67.9 | 3,335.1 | 67.5 | 3,330.8 | 68.9 |
| 100 | 157 / 293 | 2,629.0 | 66.7 | 3,240.3 | 68.6 | 3,221.1 | 68.6 | |
| 150 | 157 / 293 | 2,657.2 | 66.5 | 3,085.1 | 67.5 | 3,086.4 | 67.4 | |
| 200 | 157 / 290 | 2,456.9 | 68.2 | 3,021.9 | 68.3 | 3,076.1 | 67.2 | |
| Qwen-7B | 50 | 161 / 312 | 1,684.1 | 84.4 | 2,605.5 | 85.1 | 2,630.6 | 85.1 |
| 100 | 161 / 312 | 1,727.9 | 84.5 | 2,528.6 | 86.0 | 2,471.6 | 86.2 | |
| 150 | 161 / 308 | 1,686.3 | 84.5 | 2,419.2 | 87.2 | 2,500.5 | 86.4 | |
| 200 | 157 / 297 | 1,690.3 | 84.4 | 2,373.1 | 85.7 | 2,423.7 | 85.8 | |
| Llama-8B | 50 | 160 / 190 | 1,402.2 | 76.1 | 2,442.9 | 85.4 | 2,421.8 | 83.9 |
| 100 | 159 / 189 | 1,423.7 | 76.2 | 2,379.0 | 81.8 | 2,267.4 | 81.0 | |
| 150 | 157 / 184 | 1,262.1 | 76.2 | 2,331.6 | 82.8 | 2,153.8 | 82.1 | |
| 200 | 148 / 171 | 1,431.3 | 76.5 | 2,278.7 | 83.3 | 2,119.2 | 81.1 | |
Table 5: Prefix-preserving interventions on HumanEval. Length is mean remaining reasoning tokens; Acc. is answer accuracy (%). Reference averages the observed source outcome and two unchanged-prefix continuations; each replacement averages three continuations. All quantities use matched eligible sources and equal question weights.
| Model | K | Long-to-short (Okay / Alright → To / First) Questions / sources | Reference | To | First | |||
|---|---|---|---|---|---|---|---|---|
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 499 / 998 | 1,580.1 | 44.6 | 884.7 | 42.1 | 796.9 | 41.5 |
| 100 | 499 / 998 | 1,531.2 | 44.0 | 881.3 | 42.4 | 810.5 | 41.3 | |
| 150 | 499 / 998 | 1,515.9 | 43.4 | 856.0 | 44.1 | 804.4 | 42.2 | |
| 200 | 499 / 998 | 1,402.6 | 43.6 | 869.9 | 42.2 | 816.5 | 42.6 | |
| Qwen-7B | 50 | 489 / 978 | 835.2 | 51.2 | 704.2 | 49.0 | 570.4 | 48.1 |
| 100 | 489 / 978 | 785.8 | 50.4 | 657.0 | 50.1 | 562.4 | 48.5 | |
| 150 | 489 / 978 | 748.0 | 49.9 | 609.0 | 49.8 | 524.2 | 48.6 | |
| 200 | 489 / 978 | 676.8 | 50.4 | 575.9 | 49.3 | 484.9 | 48.6 | |
| Llama-8B | 50 | 488 / 976 | 934.2 | 49.1 | 622.6 | 47.9 | 563.1 | 46.8 |
| 100 | 488 / 976 | 880.9 | 49.6 | 597.5 | 47.8 | 549.8 | 47.0 | |
| 150 | 488 / 976 | 820.8 | 49.4 | 570.4 | 47.6 | 516.8 | 47.7 | |
| 200 | 488 / 976 | 775.0 | 49.1 | 541.9 | 48.3 | 486.1 | 47.2 | |
| Model | K | Short-to-long (To / First → Okay / Alright) Questions / sources | Reference | Okay | Alright | |||
| Length | Acc. | Length | Acc. | Length | Acc. | |||
| Qwen-1.5B | 50 | 500 / 999 | 234.6 | 40.3 | 581.9 | 42.6 | 531.6 | 41.7 |
| 100 | 500 / 995 | 188.6 | 40.3 | 489.6 | 42.4 | 463.6 | 42.1 | |
| 150 | 491 / 920 | 144.5 | 40.6 | 404.6 | 41.6 | 387.9 | 41.6 | |
| 200 | 441 / 753 | 128.7 | 38.3 | 391.5 | 40.2 | 358.5 | 40.3 | |
| Qwen-7B | 50 | 500 / 1000 | 245.6 | 46.6 | 390.5 | 49.4 | 372.8 | 48.8 |
| 100 | 500 / 990 | 193.8 | 46.9 | 310.0 | 50.1 | 308.9 | 48.8 | |
| 150 | 485 / 913 | 155.9 | 44.5 | 265.0 | 47.1 | 252.0 | 46.9 | |
| 200 | 434 / 761 | 124.0 | 42.3 | 223.8 | 45.5 | 226.3 | 44.6 | |
| Llama-8B | 50 | 500 / 1000 | 201.3 | 43.5 | 327.6 | 47.6 | 311.1 | 46.5 |
| 100 | 500 / 991 | 153.4 | 44.3 | 265.6 | 46.9 | 241.0 | 46.2 | |
| 150 | 486 / 914 | 110.8 | 42.5 | 198.0 | 44.2 | 184.0 | 44.9 | |
| 200 | 415 / 688 | 87.2 | 39.1 | 165.6 | 40.7 | 149.3 | 39.3 | |
Table 6: Prefix-preserving interventions on FOLIO. Length is mean remaining reasoning tokens; Acc. is answer accuracy (%). Reference averages the observed source outcome and two unchanged-prefix continuations; each replacement averages three continuations. All quantities use matched eligible sources and equal question weights.
Long-to-short. Qwen-7B · GSM8K QID 6656 ·
Question. The pet store can buy a goldfish for .75. The owner plans to use the profits from goldfish sales to buy a new tank, which costs $100. After one week, he is 45% short of the price. How many goldfish did he sell that week?
First-token replacement. Okay → First
Shared prefix (199 tokens; excerpts shown).
, so I need to figure out how many goldfish the pet store owner sold in one week. Let me read the problem again and make sure I understand all the details.[...]. So, he hasn’t reached $100 yet, but he’s missing 45% of it. I need to figure out how
Original continuation
659 tokens; excerpts
much he has so far and then determine how many goldfish he sold to make that amount.[... ] Wait, so does that mean he sold 110 goldfish? Let me double-check my steps.[... ] Wait, let me think again. Is 55% of 55?[...] But let me make sure that 110 goldfish is the right number. Let's compute it again: [...]
Edited continuation
224 tokens; excerpts
much he has saved so far and then determine how many goldfish he sold to make that amount.[... ] Number of goldfish = Amount saved / Profit per goldfish
= 0.50
= 110
Therefore, the owner sold 110 goldfish in one week.
Final answer. Both return 110 (correct).
All three edited samples. 224, 218, 309 remaining reasoning tokens.
Figure 11: Long-to-short prefix-preserving intervention. Tokens are identical in the two conditions. Bracketed ellipses mark omitted text; lengths count the entire reasoning continuation after position 200, excluding the final answer. The source revisits the calculation several times, whereas the edited continuation reaches the same answer with less repeated checking.
Short-to-long. Qwen-7B · GSM8K QID 2549 ·
Question. A blacksmith has 400kg of iron to make horseshoes for neighbouring farms and stables. There are 2 farms nearby, each of which has 2 horses. There are 2 stables nearby which all have 5 horses each. While the blacksmith is crafting, a riding school reaches out and asks for as many horseshoes as possible for their own horses. The blacksmith promises to give them however many horseshoes he has left when he has finished his orders for the farms and stables. If each horseshoe needs 2kg of iron, how many horses will get new horseshoes at the riding school?
First-token replacement. First → Okay
Shared prefix (199 tokens; excerpts shown).
, determine the total amount of iron available, which is 400 kg.[... ] the total iron:
400 kg - 112 kg = 288 kg remaining.
Finally, determine how many horses can be
Original continuation
68 tokens; complete reasoning suffix
provided horseshoes with the remaining iron:
288 kg ÷ 2 kg/horseshoe = 144 horseshoes.
144 horseshoes ÷ 4 horseshoes/horse = 36 horses.
Therefore, the riding school will receive horseshoes for 36 horses.
Edited continuation
91 tokens; complete reasoning suffix
provided with horseshoes from the remaining iron:
288 kg ÷ 2 kg/horseshoe = 144 horseshoes.
Since each horse needs 4 horseshoes, divide the number of horseshoes by 4:
144 horseshoes ÷ 4 horseshoes/horse = 36 horses.
Therefore, the riding school will receive new horseshoes for 36 horses.
Final answer. Both return 36 (correct).
All three edited samples. 91, 77, 96 remaining reasoning tokens.
Figure 12: Short-to-long prefix-preserving intervention. Tokens are identical in the two conditions. Bracketed ellipses mark omitted text; lengths count the entire reasoning continuation after position 200, excluding the final answer. The edited continuation adds an explicit explanation of the division by four while retaining the same calculation and answer.
HumanEval long-to-short. Qwen-7B · QID 147 ·
Task summary. Implement get_max_triples(n). Set for , and count triples whose values sum to a multiple of three.
First-token replacement. Okay → First
Shared prefix (199 tokens; excerpts shown).
, I need to solve this problem where I have to find the number of triples (a[i], a[j], a[k]) in an array a of length n, such that i < j < k and the sum of a[i], a[j], a[k] is a multiple of 3. The array a is defined such that a[i] = for each i from 1 to n. [...] 7
i=4:16-4+1=13
i=5:25-5+1=21
Original continuation
5535 tokens; excerpts
Now, I need to find triples where the sum is divisible by 3. So, the sum mod 3 should be zero. [...] But wait, for n=5, the code returns 1, which is correct. [...] But wait, in the code, the initial condition is if n < 3: return 0. But wait, for n=3, the function returns 0, which is correct. [...]
Edited continuation
3561 tokens; excerpts
Now, the problem requires that the sum of three elements is divisible by 3. [...] If i mod3 is 0 or 1, a[i] mod3 is 1.
If i mod3 is 2, a[i] mod3 is 0. [...] Testing with the sample input, it returns 1, which is correct.
Another test: n=0? But n is positive, so no need.
Another test: n=1 → returns 0.
n=6 → returns 4. [...]
Answer evaluation. The reference and all three edited programs pass the supplied task tests. All three edited samples. 3561, 2961, 5289 remaining reasoning tokens.
Figure 13: HumanEval long-to-short prefix replacement. Bracketed ellipses indicate omissions; lengths count the full reasoning suffix after position 200. Both continuations develop a modulo-three solution and check examples, with different amounts of elaboration.
HumanEval short-to-long. Qwen-7B · QID 97 ·
Task summary. Implement multiply(a, b), returning the product of the unit digits of two integers, including negative inputs.
First-token replacement. First → Okay
Shared prefix (199 tokens; excerpts shown).
, I need to write a Python function called multiply that takes two integers, a and b, and returns the product of their unit digits. [...] 5, which is correct. So taking the modulus works for both positive and negative numbers.
I should also handle cases where the result is negative. However
Original continuation
241 tokens; excerpts
So I don’t need to worry about negative results here; the product is the multiplication of the absolute unit digits. [...] Let me test this logic with the examples: [...] Example 4: multiply(14, -15)
Unit digits are 4 and 5. . Correct.
Edited continuation
418 tokens; excerpts
So the steps are: get the last digit of a, last digit of b, multiply them, return the result. [...] Wait, but wait: what if a is negative? Let me see. For example, a is -14, then a%10 is 6, right? [...] Yes, so that's correct. So the modulus works regardless of the sign.
Answer evaluation. The reference and all three edited programs pass the supplied task tests. All three edited samples. 404, 635, 418 remaining reasoning tokens.
Figure 14: HumanEval short-to-long prefix replacement. Bracketed ellipses indicate omissions; lengths count the full reasoning suffix after position 200. The edited continuation adds further discussion of negative inputs before producing the final program.
FOLIO long-to-short. Qwen-7B · QID 142 · K = 200
Task. Premises:
Fort Ticonderoga is the current name for Fort Carillon.
Pierre de Rigaud de Vaudreuil built Fort Carillon.
Fort Carillon was located in New France.
New France is not in Europe.
Conclusion: Pierre de Rigaud de Vaudreuil built a fort in New France.
First-token replacement. Okay → First
Shared prefix (199 tokens; excerpts shown).
, so I need to figure out whether the conclusion is True, False, or Unknown based on the given premises. Let's break this down step by step. [...] illon. So, he built that fort.
Premise 3 tells us that Fort Carillon was located in New France. So, the fort is
Original continuation
207 tokens; excerpts
Now, the conclusion is that Pierre de Rigaud de Vaudreuil built a fort in New France. [...] Wait, but do I need to consider anything else? Maybe the fact that New France is not in Europe is just additional info, but it doesn't affect the conclusion. [...] Therefore, it should be True.
Edited continuation
135 tokens; excerpts
Premise 4 is just pointing out that New France is not in Europe, which might be useful context, but not directly related to the conclusion. [...] Therefore, the conclusion is definitely true based on the given premises.
Answer evaluation. The reference and all three edited answers return True (gold label True). All three edited samples. 135, 116, 217 remaining reasoning tokens.
Figure 15: FOLIO long-to-short prefix replacement. Bracketed ellipses indicate omissions; lengths count the full reasoning suffix after position 200. The edited continuation reaches the same label with less discussion of the geographically irrelevant premise.
FOLIO short-to-long. Qwen-7B · QID 361 · K = 200
Task. Premises:
If something is a plant, then it is not a cute animal. Simeng: All plants are not cute animals.
All flowers are plants.
Every kitten is a cute animal.
If something is grown in a garden, then it is a flower.
Piper is a kitten or a cute animal.
Conclusion: Piper was not grown in a garden.
First-token replacement. First → Okay
Shared prefix (199 tokens; excerpts shown).
, I'll break down the premises to understand the relationships between the entities mentioned. [...] 3 and 5, Piper must be a cute animal.
- From Premise 1, if something is a plant, it is not a cute
Original continuation
85 tokens; complete reasoning suffix
animal. Since all flowers are plants (Premise 2), flowers are not cute animals.
- This creates a contradiction because Piper is a cute animal but cannot be a plant or a flower. Therefore, Piper cannot be grown in a garden, as being grown in a garden implies being a flower (Premise 4), which is not cute.
Thus, the conclusion that Piper was not grown in a garden is true.
Edited continuation
92 tokens; complete reasoning suffix
animal. Since all flowers are plants (Premise 2), any flower is not a cute animal.
-
However, Piper is a cute animal, so she cannot be a flower or a plant because that would make her not a cute animal. Therefore, Piper cannot be a flower.
-
From Premise 4, if something is grown in a garden, it is a flower. Since Piper is not a flower, she cannot be grown in a garden.
Answer evaluation. The reference and all three edited answers return True (gold label True). All three edited samples. 92, 88, 176 remaining reasoning tokens.
Figure 16: FOLIO short-to-long prefix replacement. Bracketed ellipses indicate omissions; lengths count the full reasoning suffix after position 200. Both continuations derive the same label. The displayed length increase is modest; the three edited samples also show variation in its magnitude.
Qwen-1.5B Qwen-7B Llama-8B

Figure 17: JS concentration for the other three long–short pairs on GSM8K and MATH. Columns identify the compared first tokens; colors identify models. For each dataset, the upper row uses all scanned positions except the first; the lower row excludes the first 50 positions and reranks and renormalizes the remainder within each trajectory. Curves average repetitions and source conditions within questions, then questions. Tail curves retain questions with available tails in all conditions and repetitions (248–250 questions per setting). Markers indicate the highest-JS 10%; diagonals denote uniform contributions. Bands show 95% question-bootstrap intervals from 2,000 resamples.
D Additional Sensitivity Results
D.1 Concentration Across First-Token Pairs
Figure 17 extends the concentration analysis to First–Alright, To–Okay, and To–Alright.
D.2 Attention Across First-Token Pairs
Figures 18 and 19 extend the attention analysis to the same three pairs. JS compares the paired first-token conditions on a fixed subsequent prefix; attention is measured separately under each condition. Higher-JS positions receive greater first-token attention across all three pairs.
D.3 Sensitivity Along Individual Trajectories
Figure 20 extends the example in Figure 3(b) to three models and two datasets. The curves show intermittent peaks, including peaks beyond the initial 50 positions. For each dataset, the example
GSM8K

To-Okay | To attention
To-Okay | Okay attention

To-Alright | To attention
To-Alright | Alright attention

JS decile (low to high)
JS decile (low to high)
Figure 18: First-token attention versus JS for the other three long–short pairs on GSM8K. Rows identify pairs; columns show attention under the short-associated (left) and long-associated (right) first-token conditions. Curves show mean within-trajectory attention percentiles by JS decile; bands show 95% question-bootstrap intervals. Insets report mean Spearman correlations before ( ) and after ( ) adjusting for token position.
is selected from complete, untruncated natural trajectories with in all three models, using proximity to the model-wise median lengths without inspecting JS values.
E Additional Intervention Results
E.1 Attention Blocking
Extension to additional datasets. Figure 21 and Table 7 present the results on FOLIO and HumanEval. On FOLIO, the results follow the same pattern as on the mathematical datasets, with all tested JS thresholds reducing the length gap more than periodic masking. The results on HumanEval are less consistent: periodic masking outperforms all tested JS thresholds for Qwen-7B and Llama-8B, whereas thresholds of 0.2 and 0.1 outperform periodic masking for Qwen-1.5B. Two factors may contribute to this difference. First, the first-token length effect is weaker on HumanEval than on the other tasks, leaving less room for gap reduction. Second, the same JS thresholds select a substantially smaller fraction of positions on HumanEval, which may limit the impact of the intervention.
MATH

To-Okay | To attention
To-Okay | Okay attention

To-Alright | To attention
To-Alright | Alright attention

JS decile (low to high)
JS decile (low to high)
Figure 19: First-token attention versus JS for the other three long–short pairs on MATH, using the same layout and statistics as Figure 18.
Case Study. Figure 22 compares reasoning trajectories beginning with First and Okay for the same GSM8K question. Without intervention, the First trajectory presents the solution and answer directly, whereas the Okay trajectory repeatedly checks the result, exhibiting a tendency toward overthinking. Blocking attention to the first token at sensitive positions narrows the length gap and makes the two trajectories more similar in both content and wording. This example illustrates how the intervention weakens the first-token length effect, alongside changes in reasoning behavior.
E.2 Distribution Replacement
Table 8 reports distribution-replacement rates on the mathematical datasets, using the same averaging and eligible-position denominators.

Qwen-7B | GSM8K QID 2396
Qwen-7B | MATH QID 84

Llama-8B | GSM8K QID 2396
Llama-8B | MATH QID 84

Reasoning token position
Reasoning token position
Figure 20: Unsmoothed First–Okay JS for GSM8K QID 2396 (left) and MATH-500 QID 84 (right), using natural-sampling replicate 0. QIDs are zero-based row indices in the respective dataset files; L is reasoning length. Shading marks the first 50 positions. Panels show the complete scanned trajectories except the first position; horizontal scales differ with trajectory length.
| Model | Direction | Every 3 | 0.2 | 0.1 | 0.05 |
|---|---|---|---|---|---|
| GSM8K | |||||
| Qwen-1.5B | 33.3 | 3.4 | 5.4 | 8.5 | |
| 33.3 | 10.6 | 16.9 | 23.7 | ||
| Qwen-7B | 33.3 | 3.8 | 6.0 | 9.4 | |
| 33.4 | 7.0 | 11.2 | 16.4 | ||
| Llama-8B | 33.3 | 2.5 | 3.6 | 5.4 | |
| 33.4 | 9.2 | 14.9 | 21.8 | ||
| MATH | |||||
| Qwen-1.5B | 33.3 | 1.3 | 2.3 | 4.1 | |
| 33.3 | 5.9 | 11.0 | 17.0 | ||
| Qwen-7B | 33.3 | 1.3 | 2.2 | 3.7 | |
| 33.3 | 5.3 | 9.5 | 14.2 | ||
| Llama-8B | 33.3 | 0.8 | 1.3 | 2.2 | |
| 33.3 | 5.5 | 10.6 | 16.6 | ||
Table 8: Distribution-replacement rates (%). and denote First and Okay. Values are mean per-trajectory percentages of eligible positions; numeric headings denote JS thresholds.
Extension to additional datasets. Figure 23 and table 9 present the distribution replacement results on FOLIO and HumanEval. On FOLIO, the results follow the same pattern as on the mathematical datasets, with all tested JS thresholds producing larger length shifts in the intended direction than periodic replacement. On HumanEval, the relative effectiveness varies across models and replacement directions. Two factors may contribute to this variation: the first-token length effect is weaker on HumanEval, and the same JS thresholds select a substantially smaller fraction of positions, potentially limiting the impact of distribution replacement.


Figure 21: First-token attention blocking on HumanEval (top) and FOLIO (bottom). Base denotes no intervention; Every 3 uses periodic masking; numeric headings denote JS thresholds. Error bars show question-bootstrap intervals.
| Model | Source | Base | Every 3 | 0.2 | 0.1 | 0.05 |
|---|---|---|---|---|---|---|
| HumanEval | ||||||
| Qwen-1.5B | First | 2,910 | 2,941 (33.3) | 3,047 (0.6) | 3,145 (1.3) | 3,035 (2.7) |
| Okay | 3,717 | 3,536 (33.3) | 3,516 (0.2) | 3,509 (0.6) | 3,635 (1.3) | |
| Qwen-7B | First | 1,622 | 2,041 (33.3) | 1,752 (2.2) | 1,889 (4.0) | 2,018 (6.5) |
| Okay | 2,797 | 2,763 (33.3) | 2,746 (0.3) | 2,716 (0.7) | 2,757 (1.6) | |
| Llama-8B | First | 1,655 | 2,109 (33.3) | 1,853 (1.6) | 1,864 (3.3) | 1,979 (6.0) |
| Okay | 2,633 | 2,730 (33.3) | 2,777 (0.2) | 2,802 (0.6) | 2,629 (1.4) | |
| FOLIO | ||||||
| Qwen-1.5B | First | 291 | 494 (33.3) | 660 (1.0) | 735 (1.9) | 980 (3.4) |
| Okay | 1,679 | 1,676 (33.3) | 1,466 (0.5) | 1,410 (1.1) | 1,434 (2.7) | |
| Qwen-7B | First | 283 | 422 (33.3) | 680 (0.9) | 663 (1.7) | 682 (3.3) |
| Okay | 926 | 891 (33.3) | 910 (0.6) | 891 (1.1) | 909 (2.3) | |
| Llama-8B | First | 250 | 268 (33.3) | 457 (6.0) | 492 (11.1) | 497 (18.0) |
| Okay | 993 | 898 (33.3) | 672 (4.8) | 648 (9.5) | 671 (15.9) | |
Table 7: Attention blocking on transfer tasks. Cells report mean reasoning length; parentheses give mean per-trajectory intervention percentages.
Attention blocking.
Qwen-7B · GSM8K QID 958
Question. Djibo is 17 years old. Five years ago Djibo added his age with his sister's age and the sum was 35. How many years old is Djibo's sister today?
First opening
Okay opening
(a) No intervention
125 tokens
full reasoning
First, I note that Djibo is currently 17 years old.
Five years ago, Djibo was 17 - 5 = 12 years old.
At that time, the sum of Djibo's age and his sister's age was 35.
Let's denote Djibo's sister's age five years ago as S. So, .
Solving for S, we find .
Therefore, Djibo's sister is currently years old.
1,030 tokens
excerpts
Okay, so I need to figure out how old Djibo's sister is today. [...]
Five years ago, that means he was 17 minus 5, which is 12 years old. [...]
So, her current age would be . [...]
Let me check that to make sure it makes sense. [...]
Wait, let me try another approach just to be thorough. [...]
Let me just verify once more. [...]
So, all these different methods lead me to the conclusion that Djibo's sister is 28 years old today.
(b) Attention blocking ( )
178 tokens
full reasoning
First, let me break this down step by step.
First, I know that Djibo is currently 17 years old. Five years ago, his age would have been 17 minus 5, which is 12 years old.
At that time, the sum of Djibo's age and his sister's age was 35. If Djibo was 12 five years ago, I can subtract that from the total sum to find his sister's age back then. So, 35 minus 12 equals 23. This means his sister was 23 years old five years ago.
To find her current age, I add those 5 years to her age from five years ago. Therefore, 23 plus 5 equals 28.
So, Djibo's sister is 28 years old today.
37 attention-blocked positions.
Final answer. All four trajectories return 28 (correct).
168 tokens
full reasoning
Okay, let me break this down step by step.
First, I know that Djibo is currently 17 years old.
Five years ago, Djibo's age would have been 17 minus 5, which is 12 years old.
At that time, the sum of Djibo's age and his sister's age was 35. So, if I subtract Djibo's age five years ago from the total sum, I can find his sister's age back then.
That means his sister was 35 minus 12, which is 23 years old five years ago.
To find her current age, I add those 5 years to her age five years ago: 23 plus 5 equals 28.
So, Djibo's sister is 28 years old today.
20 attention-blocked positions.
Figure 22: Attention-blocking case from Qwen-7B on GSM8K (question ID 958). Columns compare First and Okay openings; rows show generation without and with attention blocking at . The unmodified Okay trajectory is excerpted, with [...] marking omissions; the other reasoning traces are shown in full. All four trajectories yield the correct answer, 28.


Figure 23: Distribution replacement on HumanEval (top) and FOLIO (bottom). Colors identify the replacement direction; Base uses the source-opening condition, Every 3 denotes periodic replacement, and numeric headings denote JS thresholds. Error bars show question-bootstrap intervals.
| Model | Source | Base | Every 3 | 0.2 | 0.1 | 0.05 |
|---|---|---|---|---|---|---|
| HumanEval | ||||||
| Qwen-1.5B | First | 2,910 | 3,105 (33.3) | 3,123 (0.3) | 3,157 (0.7) | 3,343 (1.4) |
| Okay | 3,717 | 3,407 (33.3) | 3,574 (0.3) | 3,418 (1.0) | 3,302 (2.8) | |
| Qwen-7B | First | 1,622 | 2,606 (33.3) | 2,346 (0.4) | 2,403 (0.9) | 2,425 (1.7) |
| Okay | 2,797 | 2,565 (33.3) | 2,572 (1.1) | 2,384 (3.3) | 2,258 (7.4) | |
| Llama-8B | First | 1,655 | 2,374 (33.3) | 2,241 (0.4) | 2,396 (1.0) | 2,456 (1.9) |
| Okay | 2,633 | 2,621 (33.3) | 2,608 (0.7) | 2,300 (3.0) | 2,120 (7.0) | |
| FOLIO | ||||||
| Qwen-1.5B | First | 291 | 593 (33.3) | 691 (1.4) | 905 (2.0) | 1,098 (3.2) |
| Okay | 1,679 | 1,114 (33.3) | 541 (4.2) | 397 (8.7) | 324 (14.9) | |
| Qwen-7B | First | 283 | 507 (33.3) | 567 (1.4) | 648 (2.6) | 743 (4.4) |
| Okay | 926 | 668 (33.3) | 381 (4.3) | 322 (8.4) | 305 (14.6) | |
| Llama-8B | First | 250 | 445 (33.3) | 572 (1.8) | 705 (3.1) | 808 (5.7) |
| Okay | 993 | 752 (33.3) | 347 (5.3) | 277 (10.6) | 257 (18.1) | |
Table 9: Distribution replacement on transfer tasks. Cells report mean reasoning length; parentheses give mean per-trajectory intervention percentages. Base uses the source-opening forced trajectories. Each condition contains 492 HumanEval or 1,500 FOLIO trajectories per model.