Search for Truth from Reasoning: A Dynamic Representation Editing Framework for Steering LLM Trajectories

arXiv cs.AI Papers

Summary

This paper investigates the geometry of truth in LLM reasoning chains and proposes DynaSteer, a dynamic representation editing framework that uses pattern clustering and Fisher-LDA to steer trajectories towards truth while avoiding noise. Experiments show effectiveness on MATH benchmarks and generalization to coding tasks.

arXiv:2606.28589v1 Announce Type: new Abstract: Current approaches to enhance Large Language Model (LLM) reasoning, such as Chain-of-Thought and "Wait" prompts, primarily encourage models to think more, yet often fail to guide them toward Truth. While Representation Editing (RepE) offers a intrinsic control, its application to dynamic reasoning trajectories remains underexplored. In this work, we bridge this gap by investigating the geometry of truth within unfolding reasoning chains. We uncover three critical insights: (1) Truth is encoded at the sentence level and is entangled with latent reasoning patterns; (2) Effective intervention follows an Uncertainty Principle and a Decay Effect, requiring localization to early, high-entropy forks; (3) Naive steering vectors suffer from noise, risking collateral damage to correct trajectories. Based on these findings, we propose DynaSteer, a dynamic RepE framework. DynaSteer employs pattern clustering to disentangle reasoning manifolds and utilizes Fisher-LDA to project purified truth. By dynamically monitoring lookahead entropy, it selectively steers and rolls back trajectories only when necessary. Comprehensive experimental results on several MATH benchmark verify the effectiveness of DynaSteer, and experiments on out-of-domain coding tasks further confirm its generalization ability. Our code is publicly available at https://github.com/tianlwang/DynaSteer.
Original Article
View Cached Full Text

Cached at: 06/30/26, 05:31 AM

# Search for Truth from Reasoning: A Dynamic Representation Editing Framework for Steering LLM Trajectories
Source: [https://arxiv.org/html/2606.28589](https://arxiv.org/html/2606.28589)
Yuhang WangWeibin LiaoXin GaoXinyu MaYang LinYasha WangLiantao Ma

###### Abstract

Current approaches to enhance Large Language Model \(LLM\) reasoning, such as Chain\-of\-Thought and “Wait” prompts, primarily encourage models tothink more, yet often fail to guide them towardTruth\. While Representation Editing \(RepE\) offers a intrinsic control, its application to dynamic reasoning trajectories remains underexplored\. In this work, we bridge this gap by investigating the geometry of truth within unfolding reasoning chains\. We uncover three critical insights: \(1\)Truthis encoded at the sentence level and is entangled with latent reasoning patterns; \(2\) Effective intervention follows anUncertainty Principleand aDecay Effect, requiring localization to early, high\-entropy forks; \(3\) Naive steering vectors suffer from noise, risking collateral damage to correct trajectories\. Based on these findings, we proposeDynaSteer, a dynamic RepE framework\.DynaSteeremploys pattern clustering to disentangle reasoning manifolds and utilizes Fisher\-LDA to project purified truth\. By dynamically monitoring lookahead entropy, it selectively steers and rolls back trajectories only when necessary\. Comprehensive experimental results on several MATH benchmark verify the effectiveness ofDynaSteer, and experiments on out\-of\-domain coding tasks further confirm its generalization ability\. Our code is publicly available at[https://github\.com/tianlwang/DynaSteer](https://github.com/tianlwang/DynaSteer)\.

Machine Learning, ICML

![Refer to caption](https://arxiv.org/html/2606.28589v1/x1.png)Figure 1:Illustration of the key differences between \(a\) existing reasoning intervention approaches, \(b\) static representation editing and \(c\) our dynamic representation editing during reasoning trajectories\.## 1Introduction

Large Language Models \(LLMs\) have demonstrated remarkable proficiency in complex reasoning tasks\(Huang and Chang,[2023](https://arxiv.org/html/2606.28589#bib.bib1); Plaatet al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib2); Wanget al\.,[2025b](https://arxiv.org/html/2606.28589#bib.bib4)\), largely driven by the Chain\-of\-Thought \(CoT\) paradigm\(Weiet al\.,[2022](https://arxiv.org/html/2606.28589#bib.bib5); Yaoet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib6); Dinget al\.,[2025b](https://arxiv.org/html/2606.28589#bib.bib46); Fanget al\.,[2026a](https://arxiv.org/html/2606.28589#bib.bib48)\)which elicits structured reasoning trajectories\. Recent advancements\(Yanget al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib9); Zhouet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib10); Caiet al\.,[2015](https://arxiv.org/html/2606.28589#bib.bib7); Pipiset al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib8)\)have further attempted to enhance this capability through inspired prompting strategies, such as the “Aha moment” or “Wait” prompts\. While these methods successfully encourage LLMs to generate more tokens and engage in deeper contemplation, they primarily induce the model tothink morewithout explicitlyguiding it to steertoward correct deductions among bifurcating possibilities\. Consequently, when LLMs face uncertainty, simply extending the generation length often leads to “hallucination snowballs”\(Zhonget al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib11)\)rather than self\-correction\.

To address this limitation,Representation Editing \(RepE\)\(Liet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib13); Wanget al\.,[2025c](https://arxiv.org/html/2606.28589#bib.bib12); Maet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib14)\)has emerged as a promising avenue for intrinsic control\. Unlike prompting, RepE directly pinpoints and modulates the internal activation patterns of LLMs, offering a more fundamental remedy by guiding the hidden states toward a target concept\. However, a critical gap remains in the literature\. While RepE has achieved notable success in aligningstaticbehavioral attributes, such as language style\(Maet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib14); Shenet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib16)\), honesty\(Xiaoet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib17)\), and harmlessness\(Donget al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib15)\), its application to thedynamic reasoning processremains largely underexplored\. Prior works\(Liet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib13); Wanget al\.,[2025c](https://arxiv.org/html/2606.28589#bib.bib12)\)predominantly focus on non\-reasoning modes or contexts where the conclusion is explicitly visible\. The challenge of steering the model towardsTruthduring the intermediate derivation stage,beforea final answer is reached, presents unique spatiotemporal complexities\.

“Truth, a binary, geometrically encoded directional signal within the LLM’s activation space, whose sign discriminates whether an ongoing reasoning trajectory ultimately arrives at a verifiable correct or incorrect answer\.”

In this work, we conduct asystematic explorationof applying RepE to guide LLM reasoning\. Our investigation is structured around three pivotal research questions,Existence,Locus, andMitigation, that bridge the gap between static attribute editing and dynamic reasoning guidance:

1. 1\.Existence of Truth: Does theTruthexist within LLM representations along reasoning trajectories?A fundamental prerequisite for RepE is that internal representations must distinguish betweenTruthandFallacy\. Our probing experiments reveal a crucial nuance: naive token\-level probes struggle to discernTruth, suggesting it is not encoded in atomic units\. However, when elevated to the sentence level, the latent distinction becomes evident\. We further discover that theTruth Steeringis inherentlyentangledwith specific reasoning patterns\. By disentangling these patterns via clustering, we observe a significant enhancement in discrimination accuracy\.
2. 2\.Locus of Intervention: Where and when is intervention effective?We identify two critical spatiotemporal dynamics that govern effective steering\. First, theDecay Effect: intervention is most potent in the early stages of reasoning; as the chain lengthens, the model becomes “entrenched” in its trajectory, rendering late\-stage editing ineffective\. Second, theUncertainty Principle: effective intervention strictly correlates with high entropy\. Editing is necessary only at “reasoning forks” where the model exhibits uncertainty; intervening at low\-entropy positions yields negligible benefits or disrupts coherence\.
3. 3\.Mitigation of Risk: How to mitigate the potential risks associated with intervention?Standard RepE methods typically derive steering vectors using a naive Mean\-Difference approach\. However, given the entanglement ofTruthwith other high\-level semantic concepts, this approach inevitably incorporates noise, posing a risk of corrupting originally correct trajectories\. To mitigate this, we propose the use ofFisher Linear Discriminant Analysis \(Fisher\-LDA\)\. By projecting representations onto a purified subspace, we maximize the separation ofTruthwhile minimizing interference with the model’s semantic manifold\.

Based on these insights, we proposeDynaSteer\.DynaSteeris a dynamic inference\-time RepE framework designed to steer reasoning trajectories proactively\. It operates by \(1\) detecting critical reasoning forks via sentence\-level lookahead entropy; \(2\) calculating purifiedTruth Steeringusing Fisher\-LDA within disentangled reasoning clusters; and \(3\) applying a temporally decaying injection to guide the model’s trajectory while employing a rollback mechanism to correct errors at their inception\.

In summary, our main contributions are as follows:

- •Systematic Analysis of Dynamic RepE:We provide the first comprehensive analysis bridging static attribute editing and dynamic reasoning\. We reveal theDecay Effectand theUncertainty Principle, establishing that intervention must be localized to early, high\-entropy reasoning forks to be effective\.
- •Subspace\-Projected Steering Mechanism:We identify that the geometric entanglement of truth and reasoning patterns limits standard RepE\. We propose a novel application of Fisher\-LDA to project internal representations onto a discriminative subspace, ensuring safe and precise steering\.
- •DynaSteerFramework:Synthesizing these findings, we introduceDynaSteer, an adaptive framework that dynamically monitors uncertainty and intervenes only when necessary\. Extensive evaluations conducted in both in\-domain and out\-of\-domain scenarios show that our approach substantially outperforms existing baselines on complex reasoning benchmarks\.

![Refer to caption](https://arxiv.org/html/2606.28589v1/x2.png)Figure 2:Truthdiscrimination accuracy across individual attention heads of the large language model\. Lower rows correspond to shallower layers of the LLM\. Expanding token\-level representations to the sentence\-level and incorporating pattern clustering substantially improve the accuracy of the linear probes\.
## 2Preliminary: Representation Editing

Notation\.We consider an autoregressive Large Language Model \(LLM\)ℳ\\mathcal\{M\}withLLlayers andNNheads\. For an input sequencexx, let𝐡\(l,n\)∈ℝd\\mathbf\{h\}^\{\(l,n\)\}\\in\\mathbb\{R\}^\{d\}denote the internal activation at layerlland headnn, whereddis the hidden dimension\. The model generates the next token based on the final layer representation via a decoding head\. We denote a contrastive dataset as𝒟=\{\(xi\+,xi−\)\}i=1N\\mathcal\{D\}=\\\{\(x\_\{i\}^\{\+\},x\_\{i\}^\{\-\}\)\\\}\_\{i=1\}^\{N\}, wherex\+x^\{\+\}andx−x^\{\-\}correspond to inputs eliciting the target concept \(e\.g\., truth\) and its opposite \(e\.g\., hallucination\), respectively\.

Core Insight\.Representation Editing \(RepE\) operates on the geometry of the activation space\. Its fundamental justification is theLinear Representation Hypothesis\(Wanget al\.,[2025c](https://arxiv.org/html/2606.28589#bib.bib12); Liet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib13)\):

RepE assumes that high\-level semantic concepts are linearly encoded in the activation space\. Specifically, there exists a direction vector𝐯∈ℝd\\mathbf\{v\}\\in\\mathbb\{R\}^\{d\}such that the intensity of the concept in any representation𝐡\\mathbf\{h\}is determined by the projection𝐡⊤​𝐯\\mathbf\{h\}^\{\\top\}\\mathbf\{v\}\.

Based on this assumption, the steering vector𝐯\\mathbf\{v\}representing the target concept is typically extracted by computing the difference in means between positive and negative activations:

𝐯≈𝔼x∼𝒟​\[𝐡​\(x\+\)\]−𝔼x∼𝒟​\[𝐡​\(x−\)\]\.\\mathbf\{v\}\\approx\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\[\\mathbf\{h\}\(x^\{\+\}\)\]\-\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\[\\mathbf\{h\}\(x^\{\-\}\)\]\.\(1\)To control the model’s behavior during inference, we intervene on the hidden state𝐡\\mathbf\{h\}by injecting this vector with a steering coefficientα\\alpha:

𝐡~=𝐡\+α⋅𝐯‖𝐯‖2\.\\tilde\{\\mathbf\{h\}\}=\\mathbf\{h\}\+\\alpha\\cdot\\frac\{\\mathbf\{v\}\}\{\\\|\\mathbf\{v\}\\\|\_\{2\}\}\.\(2\)This linear shift biases the model’s subsequent computations towards the target concept without altering the model weights\.

## 3Does theTruthExist Within LLM Representations Along Reasoning Trajectories?

The theoretical foundation of RepE rests on theLinear Representation Hypothesis\(see Sec\.[2](https://arxiv.org/html/2606.28589#S2)\)\. While prior work\(Liet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib13); Wanget al\.,[2025c](https://arxiv.org/html/2606.28589#bib.bib12); Liaoet al\.,[2026b](https://arxiv.org/html/2606.28589#bib.bib42); Zhanget al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib45)\)has demonstrated thatTruthcan be encoded in representations containing the answer text, it remains unclear whetherTruthis also present in reasoning trajectories where the answer is not observable\.

Formally, letℳ\\mathcal\{M\}denote an autoregressive LLM withLLlayers andHHheads\. For a given input sequence, let𝐡t\(l,n\)∈ℝd\\mathbf\{h\}^\{\(l,n\)\}\_\{t\}\\in\\mathbb\{R\}^\{d\}denote the hidden\-state activation at layerl∈\{1,…,L\}l\\in\\\{1,\\dots,L\\\}, headn∈\{1,…,N\}n\\in\\\{1,\\dots,N\\\}, and token positiontt\. We investigate whether there exists a global steering vector𝐯∈ℝd\\mathbf\{v\}\\in\\mathbb\{R\}^\{d\}such that the induced binary decisionsgn​\(𝐡t\(l,n\)⊤​𝐯\)\\mathrm\{sgn\}\\left\(\\mathbf\{h\}^\{\(l,n\)\\top\}\_\{t\}\\mathbf\{v\}\\right\)serves as a reliable discriminator of the correctness of the trajectory\. If such a vector exists, the sign of𝐡t\(l,n\)⊤​𝐯\\mathbf\{h\}^\{\(l,n\)\\top\}\_\{t\}\\mathbf\{v\}should correlate systematically with the binary ground\-truth labely∈\{\+1,−1\}y\\in\\\{\+1,\-1\\\}, wherey=\+1y=\+1denotes a trajectory leading toTruthandy=−1y=\-1denotes one leading toFallacy\. We deliberately employ linear probes to test the Linear Representation Hypothesis\. By restricting the probe to minimal capacity, we ensure that the observed discriminability reflects the genuine linear structure of theTruthsignal rather than the probe’s own expressive power, adhering to the probe complexity control principle\(Hewitt and Liang,[2019](https://arxiv.org/html/2606.28589#bib.bib37); Dinget al\.,[2025a](https://arxiv.org/html/2606.28589#bib.bib47)\)\.

Semantic Granularity: From Tokens to Sentences\.Our initial probing experiments focused on the atomic unit of generation: the token\. We defined the representation space at the token level, treating each𝐡t\(l,n\)\\mathbf\{h\}^\{\(l,n\)\}\_\{t\}as an independent sample\. In both token\-level and sentence\-level settings, the hidden state is extracted from the last token’s activation of the input sequence\. For token\-level probing, the sequence is truncated at any arbitrary position\. However, as shown in Fig\.[2](https://arxiv.org/html/2606.28589#S1.F2)\(a\), our empirical results indicate that the linear separability ofTruthat this granularity is poor, with classification accuracy saturating near55%\. We further elevate the analysis to the*sentence level*, where trajectory segmentation is guided by punctuation \(e\.g\.,\.\\n\), restricting truncation exclusively to sentence boundaries\. This acts as a filtering mechanism, ensuring hidden states are extracted only where complete semantic units form\. As shown in Fig\.[2](https://arxiv.org/html/2606.28589#S1.F2)\(b\), by shifting the domain from instantaneous token activations to semantically complete sentence representations, we observe a substantial increase in linear separability, with probing accuracy exceeding69%\(16%↑\\uparrow\) across multiple attention heads\. This suggests that theTruthis an emergent property of semantic units rather than a localized feature of individual tokens\.

Manifold Disentanglement via Pattern Clustering\.Despite the improvements yielded by sentence\-level aggregation, the decision boundary betweenTruthandFallacyremains noisy\. We hypothesize that this noise arises from*reasoning heterogeneity*: the geometric realization ofTruthmay vary depending on the underlying reasoning pattern\(Bogdanet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib18); Liaoet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib43)\)\(e\.g\., plan generation, fact retrieval\)\. If the manifold of reasoning representations is non\-convex or consists of multiple disjoint regions, a single global linear probe will be suboptimal\. To test this, we employ an unsupervised clustering approach to partition the activation space\. Letℋ=\{𝐡Si\}i=1N\\mathcal\{H\}=\\\{\\mathbf\{h\}\_\{S\_\{i\}\}\\\}\_\{i=1\}^\{N\}be the set of collected sentence representations\. We applykk\-means clustering to decomposeℋ\\mathcal\{H\}intoMMdisjoint clusters𝒞1,…,𝒞M\\mathcal\{C\}\_\{1\},\\dots,\\mathcal\{C\}\_\{M\}, where each cluster conceptually corresponds to a distinct latent reasoning pattern\. Within each cluster𝒞j\\mathcal\{C\}\_\{j\}, we independently optimize a local linear probe defined by a cluster\-specificTruth Steering𝐯j\\mathbf\{v\}\_\{j\}\.

max𝐯j​∑𝐡∈𝒞j𝕀​\[sgn​\(𝐡⊤​𝐯j\)=y\],\\max\_\{\\mathbf\{v\}\_\{j\}\}\\sum\_\{\\mathbf\{h\}\\in\\mathcal\{C\}\_\{j\}\}\\mathbb\{I\}\[\\mathrm\{sgn\}\(\\mathbf\{h\}^\{\\top\}\\mathbf\{v\}\_\{j\}\)=y\],\(3\)where𝕀​\[⋅\]\\mathbb\{I\}\[\\cdot\]is the indicator function\. As shown in Fig\.[2](https://arxiv.org/html/2606.28589#S1.F2)\(b\) and \(d\), post\-clustering analysis reveals a dramatic improvement in separability, with intra\-cluster classification accuracy reaching approximately78%\(23%↑\\uparrow\)\. We further illustrate the separability of these reasoning patterns using a t\-SNE visualization in Fig\.[7](https://arxiv.org/html/2606.28589#A6.F7)\. This finding implies that while theTruthsignal is strong, it is*entangled*with the pattern of reasoning\. The global geometry ofTruthis likely piecewise linear, becoming linearly accessible only when the latent reasoning patterns are disentangled\.

Summary\.Our investigation confirms the existence of a recoverableTruthsignal, subject to specific structural constraints\.

Takeaway: We validate the core prerequisite for RepE: a discernible Truth Direction exists within the LLM activation space\. However, this direction is not encoded in isolated token\-level activations but emerges in sentence\-level aggregates\. Furthermore, the linearity of this signal is significantly enhanced when latent reasoning patterns are disentangled via clustering\.

![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/recovery_analysis_combined.png)Figure 3:The relationship between theRecovery Rateof erroneous reasoning trajectories under representation editing andEntropy Quantilesacross differentTemporal Segments\.
## 4Where and When Is Intervention Effective?

Having established the existence of theTruth, we now turn to the optimization of the intervention policy\. A naive application of RepE at every time step is computationally prohibitive and risks degrading generation quality\. Therefore, we seek to identify the optimal spatiotemporal coordinates for intervention\. We analyze this along two orthogonal axes: thespatial locus\(identifying critical decision points\) and thetemporal locus\(determining the effective window of opportunity\)\.

Spatial Locus: Entropy\-Based Selection\.Reasoning is not a uniform process; it consists of deterministic transitions \(e\.g\., syntactic completion\) and stochastic decision points, which we term*reasoning forks*\. We hypothesize that intervention is only necessary at these forks, where the model’s internal confidence wavers between competing logical paths\. To quantify this, we utilize the Shannon entropy\(Yinet al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib19)\)of the next\-token distribution\. LetP​\(xt\+1∣x≤t\)P\(x\_\{t\+1\}\\mid x\_\{\\leq t\}\)denote the probability distribution over the vocabulary𝒱\\mathcal\{V\}at time steptt\. The local uncertainty is given by:

ℋ​\(t\)=−∑w∈𝒱P​\(w∣x≤t\)​log⁡P​\(w∣x≤t\)\.\\mathcal\{H\}\(t\)=\-\\sum\_\{w\\in\\mathcal\{V\}\}P\(w\\mid x\_\{\\leq t\}\)\\log P\(w\\mid x\_\{\\leq t\}\)\.\(4\)Previous works\(Wanget al\.,[2025a](https://arxiv.org/html/2606.28589#bib.bib20); Haoet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib21)\)observe that peaks inℋ​\(t\)\\mathcal\{H\}\(t\)typically align with the initiation of new logical steps\. Based on this, we investigate aSelective Editingstrategy\. Letτ\\taube a dynamic threshold derived from the distribution of entropy values within a trajectory \(e\.g\., the top\-kkpercentile\)\. The intervention set is defined asℐselect=\{t∣H​\(t\)\>τ\}\\mathcal\{I\}\_\{\\text\{select\}\}=\\\{t\\mid H\(t\)\>\\tau\\\}\.

We investigate the relationship between the intrinsic*Recovery Rate*and entropy quantiles\. Let𝒮n​e​g\\mathcal\{S\}\_\{neg\}denote the set of sentence\-level segments belonging to trajectories that originally result in incorrect answers \(y=−1y=\-1\)\. For a given segments∈𝒮n​e​gs\\in\\mathcal\{S\}\_\{neg\}, we generateNNindependent stochastic rollouts\. Let\{y1,y2,…,yN\}\\\{y\_\{1\},y\_\{2\},\\dots,y\_\{N\}\\\}denote the binary correctness labels of the resulting trajectories for these rollouts\. We define the segmentssasrecoverableif the correct answer exists within the sampled space\. Formally, the recoverability indicatorℛ​\(s\)\\mathcal\{R\}\(s\)is defined as:

ℛ\(s\)=𝕀\[∃n∈\{1,…,N\}:yn=1\],\\mathcal\{R\}\(s\)=\\mathbb\{I\}\\left\[\\exists n\\in\\\{1,\\dots,N\\\}:y\_\{n\}=1\\right\],\(5\)where𝕀​\[⋅\]\\mathbb\{I\}\[\\cdot\]is the indicator function\. The*Recovery Rate*for a group of segments is then calculated as the expected value ofℛ​\(s\)\\mathcal\{R\}\(s\)\.

![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/L8_C4_KDE.png)Figure 4:Distributional comparison ofTruthandFallacyrepresentations under Mean\-Difference and Fisher LDA projections\.![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/L8_C4_Strength.png)Figure 5:Intervention strength of representation editing onTruthandFallacyunder Mean\-Difference and Fisher\-LDA\.As illustrated in Fig\.[3](https://arxiv.org/html/2606.28589#S3.F3), we observe a distinct correlation: for segments with low entropy, the*Recovery Rate*is minimal \(peaking at only12\.3%\), indicating that the model is deeply “entrenched” in the fallacy and consistently reproduces the error even under stochastic sampling\. Conversely, at high\-entropy forks, the*Recovery Rate*rises significantly to58\.3%\. This suggests that at these uncertain moments, theTruthis still accessible within the model’s hypothesis space\. Thus, entropy serves as a highly effective proxy for identifying the spatial locus of intervention\.

Temporal Locus: The Decay Effect\.Beyond spatial selection, the timing of intervention relative to the overall trajectory is critical\. We investigate the*temporal sensitivity*of the model’s intrinsic error\-correction capability\. We divide the reasoning trajectories into55relative temporal segmentsT1,…,T5T\_\{1\},\\dots,T\_\{5\}\. Our experiments, as shown in Fig\.[3](https://arxiv.org/html/2606.28589#S3.F3), reveal a pronounced monotonic decay in this intrinsic potential:ℛ​\(T1\)≫ℛ​\(T5\)\\mathcal\{R\}\(T\_\{1\}\)\\gg\\mathcal\{R\}\(T\_\{5\}\)\. Specifically, segments located in the early stage \(T1T\_\{1\}\) exhibit a hig*Recovery Rate*of62\.9%, whereas those in the final stage \(T5T\_\{5\}\) drop significantly to24\.9%\.

We term this phenomenon theDecay Effect\. It suggests that autoregressive reasoning exhibits strong path dependence\. As the model generates more tokens consistent with an initial fallacy, its internal state becomes “entrenched” in that error\. The hidden states𝐡t\\mathbf\{h\}\_\{t\}at later time stepst≫1t\\gg 1are conditioned on a long history of incorrect tokensx<tx\_\{<t\}, making the incorrect trajectory a deep local minimum in the energy landscape\. This implies that the “window of opportunity” for effective steering is transient\. Interventions must be*anticipatory*: corrections are most feasible at the inception of a reasoning error \(T1T\_\{1\}\), before the trajectory collapses into a deep local minimum from which even stochastic exploration cannot escape\.

Summary\.The integration of spatial and temporal analyses defines a precise regime for efficient RepE\.

Takeaway: Effective intervention is highly localized in both space and time\. Spatially, editing is strictly necessary only at high\-entropy reasoning forks\. Temporally, intervention must occur early in the derivation process, as the model’s susceptibility to correction decays rapidly due to the entrenchment of logical errors over time\.

## 5How to Mitigate the Potential Risks Associated with Intervention?

While the previous sections established the existence ofTruthand the optimal timing for its application, a critical safety challenge remains\. As shown in Fig\.[4](https://arxiv.org/html/2606.28589#S4.F4), the distributions of representations forTruth\(𝐡\+\\mathbf\{h\}^\{\+\}\) andFallacy\(𝐡−\\mathbf\{h\}^\{\-\}\) are not perfectly disjoint\. This overlap creates the risk of*False Positive Intervention*, where the steering vector inadvertently perturbs a correct reasoning process towardsFallacy\. In this section, we analyze this risk through a geometric lens and propose a subspace projection method to mitigate it\.

The Risk of Naive Mean\-Difference Steering\.Standard RepE typically estimates the steering direction using the difference of class means\. Let𝒟\+\\mathcal\{D\}^\{\+\}and𝒟−\\mathcal\{D\}^\{\-\}be the sets of hidden representations forTruthandFallacy, respectively\. The Mean\-Difference \(MD\) vector is defined as:

𝐯MD\\displaystyle\\mathbf\{v\}\_\{\\text\{MD\}\}=𝝁\+−𝝁−,\\displaystyle=\\boldsymbol\{\\mu\}^\{\+\}\-\\boldsymbol\{\\mu\}^\{\-\},\(6\)𝝁c\\displaystyle\\boldsymbol\{\\mu\}^\{c\}=1\|𝒟c\|​∑𝐡∈𝒟c𝐡,c∈\{\+,−\}\.\\displaystyle=\\frac\{1\}\{\|\\mathcal\{D\}^\{c\}\|\}\\sum\_\{\\mathbf\{h\}\\in\\mathcal\{D\}^\{c\}\}\\mathbf\{h\},c\\in\\\{\+,\-\\\}\.\(7\)
The intervention strength at inference time is proportional to the projection scalar𝐡⊤​𝐯MD\\mathbf\{h\}^\{\\top\}\\mathbf\{v\}\_\{\\text\{MD\}\}\. Ideally, this projection should act as a robust discriminator: maximizing intensity forFallacywhile vanishing \(or becoming negative\) forTruth\.

However, the density plots in Fig\.[4](https://arxiv.org/html/2606.28589#S4.F4)reveal that upon projectinghhonto𝐯MD\\mathbf\{v\}\_\{\\text\{MD\}\}, a significant distributional overlap emerges, where a portion ofTruthsamples is indistinguishable fromFallacy\. This entanglement is further quantified in Fig\.[5](https://arxiv.org/html/2606.28589#S4.F5): when the intervention strength forFallacyis normalized to1\.0001\.000,Truthsamples inadvertently inherit a substantial strength of0\.3940\.394\. This makes naive RepE a*losing proposition*: the expected utility is negative because the harm caused by corruptingTruthtrajectories outweighs the benefit of repairingFallacyones\.

![Refer to caption](https://arxiv.org/html/2606.28589v1/x3.png)Figure 6:Overview of theDynaSteerframework\. \(a\) illustrates the data construction phase, whereDynaSteersamples high\-entropy sentences and uses consistency to distinguish betweenTruthandFallacy\. \(b\) presents the use of probing techniques to localizeTruth\-relevant attention heads within the LLM\. In \(c\),DynaSteerutilizes pattern clustering for manifold disentanglement, followed by Fisher\-LDA to derive pureTruth Steering\. Finally, \(d\) shows the dynamic inference stage, where lookahead entropy monitoring identifies trajectories that need correction, applying an adaptive aggregated steering to guide the reasoning\.Fisher\-LDA forTruthPurification\.We attribute the failure of naive mean\-difference steering to the extremeanisotropyof the activation space, where non\-informative outlier dimensions dominate the variance\(Rudman and Eickhoff,[2024](https://arxiv.org/html/2606.28589#bib.bib29)\)\. To purify theTruthsignal, we employ Fisher Linear Discriminant Analysis \(Fisher\-LDA\) to find a direction that maximizes class separability while suppressing within\-class noise\.

Let𝜹=𝝁\+−𝝁−\\boldsymbol\{\\delta\}=\\boldsymbol\{\\mu\}^\{\+\}\-\\boldsymbol\{\\mu\}^\{\-\}be the mean difference betweenTruthandFallacyrepresentations\. We define the within\-class covariance matrix𝚺w\\boldsymbol\{\\Sigma\}\_\{w\}as:

𝚺w=∑c∈\{\+,−\}1\|𝒟c\|​∑𝐡∈𝒟c\(𝐡−𝝁c\)​\(𝐡−𝝁c\)⊤\.\\boldsymbol\{\\Sigma\}\_\{w\}=\\sum\_\{c\\in\\\{\+,\-\\\}\}\\frac\{1\}\{\|\\mathcal\{D\}\_\{c\}\|\}\\sum\_\{\\mathbf\{h\}\\in\\mathcal\{D\}^\{c\}\}\(\\mathbf\{h\}\-\\boldsymbol\{\\mu\}^\{c\}\)\(\\mathbf\{h\}\-\\boldsymbol\{\\mu\}^\{c\}\)^\{\\top\}\.\(8\)The optimal steering axis𝐰∗\\mathbf\{w\}^\{\*\}is derived by maximizing the Rayleigh Quotient\(Rayleigh,[2013](https://arxiv.org/html/2606.28589#bib.bib36)\), yielding the closed\-form solution𝐰∗=𝚺w−1​𝜹\\mathbf\{w\}^\{\*\}=\\boldsymbol\{\\Sigma\}\_\{w\}^\{\-1\}\\boldsymbol\{\\delta\}\(see Appendix[B](https://arxiv.org/html/2606.28589#A2)for the detailed derivation\)\. Under the Fisher\-LDA paradigm, the adaptive intervention intensity during inference is computed as:

η​\(𝐡\)=α⋅tanh⁡\(ReLU​\(μp​\_​p​r​o​j−hp​r​o​jσp​\_​p​r​o​j\)\),\\eta\(\\mathbf\{h\}\)=\\alpha\\cdot\\tanh\\left\(\\text\{ReLU\}\\left\(\\frac\{\\mu\_\{p\\\_proj\}\-h\_\{proj\}\}\{\\sigma\_\{p\\\_proj\}\}\\right\)\\right\),\(9\)wherehp​r​o​j=𝐰∗⊤​𝐡h\_\{proj\}=\\mathbf\{w\}^\{\*\\top\}\\mathbf\{h\}, andμp​\_​p​r​o​j,σp​\_​p​r​o​j\\mu\_\{p\\\_proj\},\\sigma\_\{p\\\_proj\}are the mean and standard deviation of positive samples in the projected space\. This formulation acts as an asymmetric gate: theReLUensures that intervention is selectively applied only to representations lagging behind theTruthcenter, while the Z\-score normalization andtanhfunction provide scale\-invariant alignment and numerical stability against outliers\. Finally,α\\alphaserves as a hyperparameter that regulates the global magnitude of the intervention\.

As illustrated in Fig\.[4](https://arxiv.org/html/2606.28589#S4.F4)and Fig\.[5](https://arxiv.org/html/2606.28589#S4.F5), projectinghhonto the purified axis𝐰∗\\mathbf\{w\}^\{\*\}significantly reduces the distributional overlap compared to the naive mean\-difference\. This ensures thatTruthrepresentations receive minimal perturbation, thereby transforming RepE from a risky heuristic into a controlled and safe mechanism\.

Summary\.We address the geometric entanglement of truth and semantics to ensure safe intervention\.

Takeaway: Naive mean\-difference steering risks corrupting correct reasoning due to significant distributional overlap\. By employing Fisher\-LDA, we identify a purified subspace that maximizes the signal\-to\-noise ratio of the truth direction\. This significantly reduces collateral damage to correct trajectories, ensuring a positive cost–benefit trade\-off for the intervention\.

## 6Methodology

Building upon the empirical evidence of a recoverableTruthsignal \(Sec\.[3](https://arxiv.org/html/2606.28589#S3)\) and the spatiotemporal constraints of intervention \(Sec\.[4](https://arxiv.org/html/2606.28589#S4)\), we introduceDynaSteer, a framework that bridges the gap between static representation editing and dynamic reasoning trajectories\.

### 6\.1Consistency\-basedTruthAnnotation

To align the representation space with semantic reasoning steps rather than atomic tokens,DynaSteeroperates at the level of trajectory sentences\. Let a reasoning trajectory generated by the modelℳ\\mathcal\{M\}be decomposed into a sequence of sentences𝒯=\(S1,S2,…,ST\)\\mathcal\{T\}=\(S\_\{1\},S\_\{2\},\\dots,S\_\{T\}\), where each sentenceStS\_\{t\}represents a coherent semantic unit, such as a clause or a deduction step\.

DynaSteeremploys a consistency\-based filtering strategy to construct a robust dataset𝒟\\mathcal\{D\}\. For a given sentenceStS\_\{t\}located at a high\-entropy reasoning fork, the framework performsNNstochastic rollouts to generate a set of final answers\{y1,…,yN\}\\\{y\_\{1\},\\dots,y\_\{N\}\\\}\. The semantic labelL​\(St\)L\(S\_\{t\}\)for the hidden representations associated with this sentence is assigned via consensus:

L​\(St\)=\{\+1​\(Truth\)if​yn=1​∀n∈\{1,…,N\},−1​\(Fallacy\)if​yn≠1​∀n∈\{1,…,N\},⊥\(Discard\)otherwise\.L\(S\_\{t\}\)=\\begin\{cases\}\+1\(\\text\{\{Truth\}\}\)&\\text\{if \}y\_\{n\}=1\\forall n\\in\\\{1,\\dots,N\\\},\\\\ \-1\(\\text\{\{Fallacy\}\}\)&\\text\{if \}y\_\{n\}\\neq 1\\forall n\\in\\\{1,\\dots,N\\\},\\\\ \\bot\(\\text\{Discard\}\)&\\text\{otherwise\}\.\\end\{cases\}\(10\)Subsequently,DynaSteercollects the internal hidden states𝐡∈ℝd\\mathbf\{h\}\\in\\mathbb\{R\}^\{d\}corresponding to accepted sentences \(L​\(St\)≠⊥L\(S\_\{t\}\)\\neq\\bot\) to form the paired dataset𝒟=\{\(𝐡i,L​\(Si\)\)\}\\mathcal\{D\}=\\\{\(\\mathbf\{h\}\_\{i\},L\(S\_\{i\}\)\)\\\}\.

### 6\.2Truth\-Relevant Head Location

Not all attention heads encode theTruthsignal equally\. To ensure computational efficiency and intervention precision,DynaSteeridentifies the specific subset of heads that act as the locus for truth differentiation\. Using the labeled dataset𝒟\\mathcal\{D\}, it trains linear probes on the hidden states of each head across all layers\.

DynaSteerranks the heads based on their probing accuracy in distinguishingTruth\(\+1\+1\) fromFallacy\(−1\-1\) and selects the top\-kkheads, denoted asℋtop\\mathcal\{H\}\_\{\\text\{top\}\}, to serve as the intervention targets\. Consequently, the subsequent clustering and steering operations are restricted exclusively to representations𝐡\(l,h\)\\mathbf\{h\}^\{\(l,h\)\}where\(l,h\)∈ℋtop\(l,h\)\\in\\mathcal\{H\}\_\{\\text\{top\}\}\.

### 6\.3Manifold Disentanglement & Truth Purification

As established in Sec\.[3](https://arxiv.org/html/2606.28589#S3), the geometry ofTruthis entangled with latent reasoning patterns\.DynaSteeraddresses this via a two\-stage offline process: separating reasoning modes and then purifying the truth direction within those modes\.

Manifold Disentanglement via Pattern Clustering\.DynaSteerhypothesizes that the activation space consists of multiple reasoning manifolds\. To disentangle these, it computes the raw difference vector𝜹i=𝐡i\+−𝐡i−\\boldsymbol\{\\delta\}\_\{i\}=\\mathbf\{h\}\_\{i\}^\{\+\}\-\\mathbf\{h\}\_\{i\}^\{\-\}for pairs of positive and negative forks derived from the same context\.DynaSteerapplieskk\-means clustering to the set of difference vectors\{𝜹i\}\\\{\\boldsymbol\{\\delta\}\_\{i\}\\\}, partitioning the space intoMMdisjoint clusters\{𝒞1,…,𝒞M\}\\\{\\mathcal\{C\}\_\{1\},\\dots,\\mathcal\{C\}\_\{M\}\\\}\. Each cluster𝒞m\\mathcal\{C\}\_\{m\}conceptually represents a distinct reasoning pattern \(e\.g\., symbolic logic vs\. arithmetic derivation\)\.

TruthPurification via Fisher\-LDA\.Within each reasoning cluster𝒞m\\mathcal\{C\}\_\{m\}, to extract a purified steering direction,DynaSteeremploys Fisher\-LDA \(Sec\.[5](https://arxiv.org/html/2606.28589#S5)\)\.

For a specific cluster𝒞m\\mathcal\{C\}\_\{m\}and head, let𝝁m\+\\boldsymbol\{\\mu\}\_\{m\}^\{\+\}and𝝁m−\\boldsymbol\{\\mu\}\_\{m\}^\{\-\}denote the centroids of theTruthandFallacyclasses, respectively\.DynaSteercomputes the within\-class scatter matrixΣw,m\\Sigma\_\{w,m\}and calculates steering vector𝐯m\\mathbf\{v\}\_\{m\}:

𝐯m=Σw,m−1​\(𝝁m\+−𝝁m−\)\.\\mathbf\{v\}\_\{m\}=\\Sigma\_\{w,m\}^\{\-1\}\(\\boldsymbol\{\\mu\}\_\{m\}^\{\+\}\-\\boldsymbol\{\\mu\}\_\{m\}^\{\-\}\)\.\(11\)The vector𝐯m\\mathbf\{v\}\_\{m\}defines the normal to the hyperplane that best discriminates truth from fallacy within the specific reasoning modemm\.

### 6\.4Dynamic Reasoning via Aggregated Steering

During the online inference phase,DynaSteerapplies the pre\-computed steering vectors dynamically\. This process is governed by entropy monitoring and a rollback mechanism to handle the path\-dependent nature of generation\.

Lookahead Entropy Monitoring\.To avoid unnecessary perturbations,DynaSteeradopts a selective intervention strategy\. As the model generates a candidate sentenceScandS\_\{\\text\{cand\}\}, the framework computes its average token entropyH​\(Scand\)H\(S\_\{\\text\{cand\}\}\)\. It employs a thresholdγ\\gamma, set to the80th80^\{\\text\{th\}\}percentile of the training entropy distribution, following prior work\(Wanget al\.,[2025a](https://arxiv.org/html/2606.28589#bib.bib20)\)\.

- •IfH​\(Scand\)≤γH\(S\_\{\\text\{cand\}\}\)\\leq\\gamma, the sentence is deemed deterministic and reliable; generation proceeds normally\.
- •IfH​\(Scand\)\>γH\(S\_\{\\text\{cand\}\}\)\>\\gamma, the sentence represents a high\-uncertainty reasoning fork, triggering the intervention mechanism\.

Temporal Decay and Dynamic Strength Calculation\.When intervention is triggered at steptt,DynaSteercalculates the steering parameters\. First, to account for theDecay Effect, we define a temporal gating coefficientβ​\(t\)=𝕀​\[t≤τdecay\]\\beta\(t\)=\\mathbb\{I\}\[t\\leq\\tau\_\{\\text\{decay\}\}\], whereτdecay\\tau\_\{\\text\{decay\}\}is a pre\-defined threshold\. Intervention is applied only whenβ​\(t\)=1\\beta\(t\)=1\. Second,DynaSteercomputes the dynamic intervention strengthηm​\(𝐡\)\\eta\_\{m\}\(\\mathbf\{h\}\)for each reasoning cluster𝒞m\\mathcal\{C\}\_\{m\}according to Eq\.[9](https://arxiv.org/html/2606.28589#S5.E9)\.

Multi\-Steering Aggregation and Rollback\.The final steering is an aggregate of the purified directions from all reasoning clusters\. The edited hidden state𝐡~\\tilde\{\\mathbf\{h\}\}is formulated as:

𝐡~=𝐡\+β​\(t\)​∑m=1Mηm​\(𝐡\)​𝐯m\.\\tilde\{\\mathbf\{h\}\}=\\mathbf\{h\}\+\\beta\(t\)\\sum\_\{m=1\}^\{M\}\\eta\_\{m\}\(\\mathbf\{h\}\)\\mathbf\{v\}\_\{m\}\.\(12\)Crucially, mere injection is insufficient if the candidate sentenceScandS\_\{\\text\{cand\}\}has already committed to an error\. Therefore,DynaSteerexecutes aRollback: it discardsScandS\_\{\\text\{cand\}\}and forces the model to traverse the reasoning fork again, now guided by the purifiedTruthsignal\.

## 7Experiment

Experimental Setups\.We present our experimental setup in Appendix\.[E](https://arxiv.org/html/2606.28589#A5), including the network architecture, datasets, evaluation metrics, baselines, and implementation details\.

Table 1:Performance comparison of Original, “Wait” prompt, RepE methods, andDynaSteeracross three backbone LLMs on three MATH datasets and two Coding datasets\. The best results are highlighted inbold, while the second\-best results areunderlined\. TheImpro\(%\) indicates the relative improvement ofDynaSteerover the second\-best performance\. ID: In\-Domain\. OOD: Out\-of\-Domain\.Comparison with Recent Literature\.As shown in Table[1](https://arxiv.org/html/2606.28589#S7.T1), we compareDynaSteerwith Plain generation, “Wait” prompt, and various Representation Engineering \(RepE\) methods \(ITI, ACT, and DRESS\) across three MATH datasets and two Coding datasets\. To comprehensively evaluate the universality ofDynaSteer, we employ backbone LLMs with diverse scales, ranging from 1\.7B to 8B parameters\. The experimental results demonstrate thatDynaSteerachieves the best performance in all cases, consistently surpassing strong baselines like ACT and DRESS\. Moreover, compared to the second\-best performance,DynaSteeryields an average relative improvement of4\.36%↑\\uparrowon MATH tasks and3\.60%↑\\uparrowon Coding tasks across all settings, with a maximum improvement of11\.76%↑\\uparrowon the AMC23 dataset\. Notably, the “Wait” prompt method performs comparably to or only marginally better than the Plain baseline in the majority of scenarios\. This supports our earlier claim that simple prompting strategies are insufficient to effectively elicit the model’s potential capabilities, making it challenging to handle complex reasoning tasks without internal intervention\. Furthermore, we provide additional experimental results comparingDynaSteeragainst TruthX\(Zhanget al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib38)\)and TruthFlow\([Wanget al\.,](https://arxiv.org/html/2606.28589#bib.bib39)\)baselines in Appendix[F](https://arxiv.org/html/2606.28589#A6)\.

Ablation Studies\.We conduct ablation studies on all evaluation datasets using Qwen3\-1\.7B\. As shown in Table[2](https://arxiv.org/html/2606.28589#S7.T2), substituting our sentence\-level truth steering with token\-level editing or removing the Pattern Clustering module results in substantial performance degradation\. Furthermore, we investigate the choice of truth purification algorithms by replacing Fisher\-LDA with the conventional Mean Difference \(MD\) method and Singular Value Decomposition \(SVD\)\. Both alternatives lead to noticeable performance drops\. While SVD is numerically stable, it is an unsupervised approach that captures the maximum variance direction, which is not necessarily the most discriminative for separating truth from fallacy\. In contrast, Fisher\-LDA directly optimizes the between\-class over within\-class variance ratio using explicitTruthlabels, extracting a significantly more robust and precise steering direction\. These results collectively validate the necessity of the proposed components in enablingDynaSteerto accurately identify and extract truthful representations\. We further investigate two additional variants: removing Entropy Monitoring, i\.e\., applying truth steering to all sentences, and removing Temporal Decay\. Notably, eliminating these components does not lead to a significant drop in performance\. This is because steering low\-entropy sentences is largely ineffective, as the model exhibits high confidence on such sentences and they are therefore difficult to edit meaningfully\. Similarly, sentences appearing at the end of the reasoning trajectory often correspond to deeply entrenched errors, making it difficult to fully correct the model’s behavior\. Although these designs do not provide clear performance gains, we emphasize their advantages in inference efficiency\. By editing only a subset of sentences, Entropy Monitoring and Temporal Decay reduce inference token consumption by approximately56\.22%↓\\downarrowand52\.19%↓\\downarrow, respectively\. Detailed experimental results can be found in Appendix\.[F\.6](https://arxiv.org/html/2606.28589#A6.SS6)\.

Table 2:Ablation Studies ofDynaSteerusing Qwen3\-1\.7B as backbone LLM on MATH and Coding tasks\.♣\\clubsuitrepresents that the advantage of this component is not reflected in performance\. ID: In\-Domain\. OOD: Out\-of\-Domain\.
## 8Limitation, Discussion and Conclusion

Despite the promising results obtained in our work, it is important to acknowledge the limitations\. Current mainstream research regarding guiding LLMs through reasoning forks predominately relies on Reinforcement Learning \(RL\)\. Notably,Wanget al\.\([2025a](https://arxiv.org/html/2606.28589#bib.bib20)\)explicitly demonstrates that leveraging GRPO on reasoning forking tokens can substantially elevate the model’s reasoning capabilities\. We comparedDynaSteeragainst GRPO under identical experimental settings\. The results indicate that GRPO achieves a performance of84\.6%84\.6\\%\(6\.4%↑6\.4\\%\\uparrow\), whereasDynaSteerachieves82\.3%82\.3\\%\(4\.0%↑4\.0\\%\\uparrow\)\. We hypothesize that this performance gap primarily stems from the geometric nature of theTruth\.DynaSteerassumes thatTruth Steeringcan be captured bylinear steering vectors\. However, the actual manifold ofTruthwithin complex reasoning trajectories involveshigh\-dimensional, non\-linear dependencies\. RL methods like GRPO update the underlying policy parameters, enabling the model to internalize these complex, non\-linear mappings more effectively than an external linear intervention\.

Nevertheless, we claim a stark contrast on computational cost: GRPO requires approximately 160GB of VRAM and spans up to 15 hours of training time to converge\. In contrast,DynaSteeris a training\-free framework that directly modulates the LLM during inference\. Consequently, while RL methods offer a higher upper bound in performance,DynaSteermakes a distinct contribution to resource\-constrained communities\.

Conclusion\.In this work, we present a systematic exploration of Representation Edit into the dynamics ofTruthwithin LLM reasoning trajectories, moving beyond static attribute editing to dynamic process control\. Our investigation establishes the theoretical foundations for dynamic intervention: confirming that theTruthexists but is geometrically entangled with reasoning patterns, and revealing that the window for effective correction is transient, constrained by theDecay Effect\.

To operationalize these insights, we introduceDynaSteer, a RepE framework that leverages pattern clustering and Fisher\-LDA,DynaSteersuccessfully disentangles theTruth Steeringfrom other high\-level semantic concepts, addressing the safety risks inherent in naive representation editing\. Furthermore, our entropy\-aware monitoring ensures that intervention is precise and economical, applied only at critical reasoning forks\. Empirical results across diverse benchmarks confirm thatDynaSteernot only mitigates hallucinations but also achieves superior performance compared to strong baselines\. Ultimately, this work offers a resource\-efficient alternative to reinforcement learning for steering LLMs, paving the way for more reliable, self\-correcting AI systems that seekTruthfrom the very inception of their reasoning\.

## Impact Statement

This paper presents work whose goal is to advance the field of machine learning\. There are many potential societal consequences of our work, none of which we feel must be specifically highlighted here\.

## Acknowledgements

This work was supported by the National Natural Science Foundation of China \(62402017\), Prevention and Control of Emerging and Major Infectious Diseases\-National Science and Technology Major Project \(2025ZD01906000, 2025ZD01906004\), Beijing Natural Science Foundation \(L244063, L244025\), and Peking University \(Clinical Medicine Plus X Pilot Program\-Key Technologies Project 2024YXXLHGG007; “TengYun” Clinical Research Program TY2025015\) \.

Liantao Ma was supported by the Beijing Traditional Chinese Medicine Science and Technology Development Fund \(BJZYZD\-2025\-13\), Young Elite Scientists Sponsorship Program of the Beijing High Innovation Plan \(20250628\), and Xuzhou Municipal Health Commission Project \(2025DF03\)\.

## References

- J\. Austin, A\. Odena, M\. Nye, M\. Bosma, H\. Michalewski, D\. Dohan, E\. Jiang, C\. Cai, M\. Terry, Q\. Le,et al\.\(2021\)Program synthesis with large language models\.arXiv preprint arXiv:2108\.07732\.Cited by:[Appendix D](https://arxiv.org/html/2606.28589#A4.SS0.SSS0.Px2.p1.1),[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px1.p1.1)\.
- J\. Bai, S\. Bai, Y\. Chu, Z\. Cui, K\. Dang, X\. Deng, Y\. Fan, W\. Ge, Y\. Han, F\. Huang,et al\.\(2023\)Qwen technical report\.arXiv preprint arXiv:2309\.16609\.Cited by:[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px1.p1.1)\.
- P\. C\. Bogdan, U\. Macar, N\. Nanda, and A\. Conmy \(2025\)Thought anchors: which llm reasoning steps matter?\.arXiv preprint arXiv:2506\.19143\.Cited by:[§3](https://arxiv.org/html/2606.28589#S3.p4.9)\.
- C\. J\. Cai, P\. J\. Guo, J\. R\. Glass, and R\. C\. Miller \(2015\)Wait\-learning: leveraging wait time for second language education\.InProceedings of the 33rd annual ACM conference on human factors in computing systems,pp\. 3701–3710\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- M\. Chen, J\. Tworek, H\. Jun, Q\. Yuan, H\. P\. D\. O\. Pinto, J\. Kaplan, H\. Edwards, Y\. Burda, N\. Joseph, G\. Brockman,et al\.\(2021\)Evaluating large language models trained on code\.arXiv preprint arXiv:2107\.03374\.Cited by:[Appendix D](https://arxiv.org/html/2606.28589#A4.SS0.SSS0.Px2.p1.1),[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px1.p1.1)\.
- H\. Ding, Y\. Fang, R\. Zhu, X\. Jiang, J\. Zhang, Y\. Xu, W\. Liao, X\. Chu, J\. Zhao, and Y\. Wang \(2025a\)3DS: medical domain adaptation of llms via decomposed difficulty\-based data selection\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing,pp\. 19473–19495\.Cited by:[§3](https://arxiv.org/html/2606.28589#S3.p2.13)\.
- H\. Ding, B\. Huang, Y\. Fang, W\. Liao, X\. Jiang, Z\. Li, J\. Zhao, and Y\. Wang \(2025b\)Promed: shapley information gain guided reinforcement learning for proactive medical llms\.arXiv preprint arXiv:2508\.13514\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- P\. Dong, B\. Wang, S\. Guo, J\. Wang, J\. Zhang, and Z\. Hong \(2024\)Towards safe concept transfer of multi\-modal diffusion via causal representation editing\.Advances in Neural Information Processing Systems37,pp\. 12708–12738\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p2.1)\.
- Y\. Fang, Y\. Guo, J\. Gao, H\. Ding, X\. Jiang, W\. Liao, Y\. Xu, Y\. Zhu, Z\. Yang, L\. Ma,et al\.\(2026a\)Toward better ehr reasoning in llms: reinforcement learning with expert attention guidance\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.40,pp\. 30690–30698\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- Y\. Fang, W\. Liao, Y\. Guo, J\. Gao, H\. Ding, J\. Zhang, X\. Jiang, Z\. Yang, J\. Zhao, Y\. Wang,et al\.\(2026b\)GraphWalker: graph\-guided in\-context learning for clinical reasoning on electronic health records\.arXiv preprint arXiv:2604\.06684\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px1.p1.1)\.
- Z\. Hao, H\. Wang, H\. Liu, J\. Luo, J\. Yu, H\. Dong, Q\. Lin, C\. Wang, and J\. Chen \(2025\)Rethinking entropy interventions in rlvr: an entropy change perspective\.arXiv preprint arXiv:2510\.10150\.Cited by:[§4](https://arxiv.org/html/2606.28589#S4.p2.7)\.
- D\. Hendrycks, C\. Burns, S\. Kadavath, A\. Arora, S\. Basart, E\. Tang, D\. Song, and J\. Steinhardt \(2021\)Measuring mathematical problem solving with the math dataset\.arXiv preprint arXiv:2103\.03874\.Cited by:[Appendix D](https://arxiv.org/html/2606.28589#A4.SS0.SSS0.Px1.p1.1),[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px1.p1.1)\.
- J\. Hewitt and P\. Liang \(2019\)Designing and interpreting probes with control tasks\.InProceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing \(emnlp\-ijcnlp\),pp\. 2733–2743\.Cited by:[§3](https://arxiv.org/html/2606.28589#S3.p2.13)\.
- J\. Huang and K\. C\. Chang \(2023\)Towards reasoning in large language models: a survey\.InFindings of the association for computational linguistics: ACL 2023,pp\. 1049–1065\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. E\. Gonzalez, H\. Zhang, and I\. Stoica \(2023\)Efficient memory management for large language model serving with pagedattention\.InProceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles,Cited by:[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px3.p1.1)\.
- K\. Li, O\. Patel, F\. Viégas, H\. Pfister, and M\. Wattenberg \(2023\)Inference\-time intervention: eliciting truthful answers from a language model\.Advances in Neural Information Processing Systems36,pp\. 41451–41530\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px1.p1.1),[3rd item](https://arxiv.org/html/2606.28589#A5.I1.i3.p1.1),[item 1](https://arxiv.org/html/2606.28589#A5.I2.i1.p1.1),[§1](https://arxiv.org/html/2606.28589#S1.p2.1),[§2](https://arxiv.org/html/2606.28589#S2.p2.1),[§3](https://arxiv.org/html/2606.28589#S3.p1.1)\.
- Q\. Li, L\. Cui, X\. Zhao, L\. Kong, and W\. Bi \(2024\)GSM\-plus: a comprehensive benchmark for evaluating the robustness of llms as mathematical problem solvers\.arXiv preprint arXiv:2402\.19255\.Cited by:[Appendix D](https://arxiv.org/html/2606.28589#A4.SS0.SSS0.Px1.p1.1),[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px1.p1.1)\.
- W\. Liao, X\. Gao, T\. Jia, R\. Qiu, Y\. Zhu, Y\. Lin, X\. Chu, J\. Zhao, and Y\. Wang \(2025\)Learnat: learning nl2sql with ast\-guided task decomposition for large language models\.arXiv preprint arXiv:2504\.02327\.Cited by:[§3](https://arxiv.org/html/2606.28589#S3.p4.9)\.
- W\. Liao, J\. Lou, and H\. Xiong \(2026a\)HyFunc: accelerating llm\-based function calls for agentic ai through hybrid\-model cascade and dynamic templating\.InProceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V\. 1,pp\. 819–830\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px1.p1.1)\.
- W\. Liao, T\. Wang, Y\. Zhu, Y\. Wang, J\. Gao, and L\. Ma \(2026b\)Magical: medical lay language generation via semantic invariance and layperson\-tailored adaptation\.Advances in Neural Information Processing Systems38,pp\. 118787–118817\.Cited by:[§3](https://arxiv.org/html/2606.28589#S3.p1.1)\.
- H\. Lightman, V\. Kosaraju, Y\. Burda, H\. Edwards, B\. Baker, T\. Lee, J\. Leike, J\. Schulman, I\. Sutskever, and K\. Cobbe \(2023\)Let’s verify step by step\.InThe Twelfth International Conference on Learning Representations,Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px2.p1.1)\.
- J\. Liu, C\. S\. Xia, Y\. Wang, and L\. Zhang \(2023\)Is your code generated by chatGPT really correct? rigorous evaluation of large language models for code generation\.InThirty\-seventh Conference on Neural Information Processing Systems,External Links:[Link](https://openreview.net/forum?id=1qvx610Cu7)Cited by:[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px3.p1.1)\.
- X\. Ma, Y\. Xu, Y\. Lin, T\. Wang, X\. Chu, X\. Gao, J\. Zhao, and Y\. Wang \(2025\)DRESSing up llm: efficient stylized question\-answering via style subspace editing\.arXiv preprint arXiv:2501\.14371\.Cited by:[3rd item](https://arxiv.org/html/2606.28589#A5.I1.i3.p1.1),[item 3](https://arxiv.org/html/2606.28589#A5.I2.i3.p1.1),[§1](https://arxiv.org/html/2606.28589#S1.p2.1)\.
- S\. Marks and M\. Tegmark \(2023\)The geometry of truth: emergent linear structure in large language model representations of true/false datasets\.arXiv preprint arXiv:2310\.06824\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px1.p1.1)\.
- K\. Meng, D\. Bau, A\. Andonian, and Y\. Belinkov \(2022\)Locating and editing factual associations in gpt\.Advances in neural information processing systems35,pp\. 17359–17372\.Cited by:[§F\.2](https://arxiv.org/html/2606.28589#A6.SS2.p1.1)\.
- \[26\]K\. Meng, A\. S\. Sharma, A\. J\. Andonian, Y\. Belinkov, and D\. BauMass\-editing memory in a transformer\.InThe Eleventh International Conference on Learning Representations,Cited by:[§F\.2](https://arxiv.org/html/2606.28589#A6.SS2.p1.1)\.
- C\. Pipis, S\. Garg, V\. Kontonis, V\. Shrivastava, A\. Krishnamurthy, and D\. Papailiopoulos \(2025\)Wait, wait, wait… why do reasoning models loop?\.arXiv preprint arXiv:2512\.12895\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- A\. Plaat, A\. Wong, S\. Verberne, J\. Broekens, N\. van Stein, and T\. Back \(2024\)Reasoning with large language models, a survey\.arXiv preprint arXiv:2407\.11511\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- J\. W\. S\. Rayleigh \(2013\)The theory of sound, volume one\.Vol\.1,Courier Corporation\.Cited by:[§5](https://arxiv.org/html/2606.28589#S5.p6.4)\.
- W\. Rudman and C\. Eickhoff \(2024\)Stable anisotropic regularization\.InThe Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024,External Links:[Link](https://openreview.net/forum?id=dbQH9AOVd5)Cited by:[§5](https://arxiv.org/html/2606.28589#S5.p5.1)\.
- Z\. Shao, P\. Wang, Q\. Zhu, R\. Xu, J\. Song, X\. Bi, H\. Zhang, M\. Zhang, Y\. Li, Y\. Wu,et al\.\(2024\)Deepseekmath: pushing the limits of mathematical reasoning in open language models\.arXiv preprint arXiv:2402\.03300\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px2.p1.1)\.
- C\. Shen, Z\. Sun, T\. Shi, X\. Zhang, and J\. Xu \(2025\)Balancing stylization and truth via disentangled representation steering\.arXiv preprint arXiv:2508\.04530\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p2.1)\.
- H\. Touvron, T\. Lavril, G\. Izacard, X\. Martinet, M\. Lachaux, T\. Lacroix, B\. Rozière, N\. Goyal, E\. Hambro, F\. Azhar,et al\.\(2023\)Llama: open and efficient foundation language models\.arXiv preprint arXiv:2302\.13971\.Cited by:[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px1.p1.1)\.
- \[34\]H\. Wang, B\. Cao, Y\. Cao, and J\. ChenTruthFlow: truthful llm generation via representation flow correction\.InForty\-second International Conference on Machine Learning,Cited by:[§F\.3](https://arxiv.org/html/2606.28589#A6.SS3.p1.1),[§7](https://arxiv.org/html/2606.28589#S7.p2.3)\.
- S\. Wang, L\. Yu, C\. Gao, C\. Zheng, S\. Liu, R\. Lu, K\. Dang, X\. Chen, J\. Yang, Z\. Zhang,et al\.\(2025a\)Beyond the 80/20 rule: high\-entropy minority tokens drive effective reinforcement learning for llm reasoning\.arXiv preprint arXiv:2506\.01939\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px2.p1.1),[§4](https://arxiv.org/html/2606.28589#S4.p2.7),[§6\.4](https://arxiv.org/html/2606.28589#S6.SS4.p2.4),[§8](https://arxiv.org/html/2606.28589#S8.p1.4)\.
- T\. Wang, J\. Chen, W\. Liao, X\. Han, and J\. Bai \(2025b\)Teaching llms to plan, not just solve: plan learning boosts llms generalization in reasoning tasks\.InFindings of the Association for Computational Linguistics: EMNLP 2025,pp\. 8531–8545\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- T\. Wang, X\. Jiao, Y\. Zhu, Z\. Chen, Y\. He, X\. Chu, J\. Gao, Y\. Wang, and L\. Ma \(2025c\)Adaptive activation steering: a tuning\-free llm truthfulness improvement method for diverse hallucinations categories\.InProceedings of the ACM on Web Conference 2025,pp\. 2562–2578\.Cited by:[3rd item](https://arxiv.org/html/2606.28589#A5.I1.i3.p1.1),[item 2](https://arxiv.org/html/2606.28589#A5.I2.i2.p1.1),[§1](https://arxiv.org/html/2606.28589#S1.p2.1),[§2](https://arxiv.org/html/2606.28589#S2.p2.1),[§3](https://arxiv.org/html/2606.28589#S3.p1.1)\.
- J\. Wei, X\. Wang, D\. Schuurmans, M\. Bosma, F\. Xia, E\. Chi, Q\. V\. Le, D\. Zhou,et al\.\(2022\)Chain\-of\-thought prompting elicits reasoning in large language models\.Advances in neural information processing systems35,pp\. 24824–24837\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- T\. Wolf \(2019\)Huggingface’s transformers: state\-of\-the\-art natural language processing\.arXiv preprint arXiv:1910\.03771\.Cited by:[Appendix E](https://arxiv.org/html/2606.28589#A5.SS0.SSS0.Px3.p1.1)\.
- Y\. Xiao, A\. Liu, S\. Liang, Z\. Ying, X\. Liu, and D\. Tao \(2025\)Detoxifying large language models via autoregressive reward guided representation editing\.arXiv preprint arXiv:2510\.01243\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p2.1)\.
- S\. Yang, J\. Wu, X\. Chen, Y\. Xiao, X\. Yang, D\. F\. Wong, and D\. Wang \(2025\)Understanding aha moments: from external observations to internal mechanisms\.arXiv preprint arXiv:2504\.02956\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- S\. Yao, D\. Yu, J\. Zhao, I\. Shafran, T\. Griffiths, Y\. Cao, and K\. Narasimhan \(2023\)Tree of thoughts: deliberate problem solving with large language models\.Advances in neural information processing systems36,pp\. 11809–11822\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- M\. Yin, C\. Wu, Y\. Wang, H\. Wang, W\. Guo, Y\. Wang, Y\. Liu, R\. Tang, D\. Lian, and E\. Chen \(2024\)Entropy law: the story behind data compression and llm performance\.arXiv preprint arXiv:2407\.06645\.Cited by:[§4](https://arxiv.org/html/2606.28589#S4.p2.3)\.
- J\. Zhang, Y\. Fang, H\. Ding, W\. Liao, M\. Ye, X\. Chu, J\. Zhao, and Y\. Wang \(2025\)ADEPT: continual pretraining via adaptive expansion and dynamic decoupled tuning\.arXiv preprint arXiv:2510\.10071\.Cited by:[§3](https://arxiv.org/html/2606.28589#S3.p1.1)\.
- S\. Zhang, T\. Yu, and Y\. Feng \(2024\)Truthx: alleviating hallucinations by editing large language models in truthful space\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 8908–8949\.Cited by:[§F\.3](https://arxiv.org/html/2606.28589#A6.SS3.p1.1),[§7](https://arxiv.org/html/2606.28589#S7.p2.3)\.
- W\. Zhong, X\. Feng, L\. Zhao, Q\. Li, L\. Huang, Y\. Gu, W\. Ma, Y\. Xu, and B\. Qin \(2024\)Investigating and mitigating the multimodal hallucination snowballing in large vision\-language models\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 11991–12011\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- K\. Zhou, X\. Zhao, J\. Srinivasa, G\. Liu, A\. Feng, D\. Song, and X\. E\. Wang \(2025\)Safekey: amplifying aha\-moment insights for safety reasoning\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing,pp\. 25407–25423\.Cited by:[§1](https://arxiv.org/html/2606.28589#S1.p1.1)\.
- A\. Zou, L\. Phan, S\. Chen, J\. Campbell, P\. Guo, R\. Ren, A\. Pan, X\. Yin, M\. Mazeika, A\. Dombrowski,et al\.\(2023\)Representation engineering: a top\-down approach to ai transparency\.arXiv preprint arXiv:2310\.01405\.Cited by:[Appendix A](https://arxiv.org/html/2606.28589#A1.SS0.SSS0.Px1.p1.1)\.

## Appendix ARelated Work

##### Representation Editing forTruth

Representation Editing \(RepE\) has emerged as a powerful paradigm for interpretability and control, aiming to locate and intervene on high\-level concepts encoded within the linear activation space of LLMs\(Zouet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib30); Liaoet al\.,[2026a](https://arxiv.org/html/2606.28589#bib.bib44); Fanget al\.,[2026b](https://arxiv.org/html/2606.28589#bib.bib49)\)\. In the context ofTruth,Liet al\.\([2023](https://arxiv.org/html/2606.28589#bib.bib13)\)proposed Inference\-Time Intervention \(ITI\), which identifies attention heads correlated with truthfulness and shifts their activations to suppress hallucinations\. Similarly,Marks and Tegmark \([2023](https://arxiv.org/html/2606.28589#bib.bib31)\)investigated the geometry of truth, revealing that truthful statements often align along specific linear directions in the representation space regardless of the topic\. However, a critical limitation of these approaches is their reliance onstaticediting derived from datasets containing explicit answers or simple true/false statements\.There is a notable lack of exploration into dynamic representation editing, specifically regarding how to calculate truth directions within unfolding reasoning trajectories where the final answer is latent and not yet observable\.

##### Reinforcing LLM Reasoning

Enhancing the reasoning capabilities of Large Language Models has predominantly relied on Reinforcement Learning \(RL\) paradigms\. Recent advancements have shifted focus from outcome\-based supervision to process\-oriented approaches, where the model is guided at critical “reasoning forks”\. For instance,Lightmanet al\.\([2023](https://arxiv.org/html/2606.28589#bib.bib32)\)demonstrated that Process Reward Models \(PRMs\) can significantly improve mathematical reasoning by verifying intermediate steps\. Furthermore,Shaoet al\.\([2024](https://arxiv.org/html/2606.28589#bib.bib33)\)introduced Group Relative Policy Optimization \(GRPO\), which leverages group\-level comparisons at reasoning forks to efficiently steer the model toward correct trajectories, yielding substantial performance gains\.Wanget al\.\([2025a](https://arxiv.org/html/2606.28589#bib.bib20)\)further demonstrates that leveraging GRPO on reasoning forking tokens can substantially elevate the model’s reasoning capabilities\.Despite their effectiveness, these RL\-based methods suffer from prohibitive computational costs, often requiring massive GPU resources \(e\.g\., hundreds of gigabytes of VRAM\) and extensive training time, rendering them largely inaccessible to resource\-constrained research communities\.

## Appendix BDerivation of the Fisher\-LDA Steering Vector

In this section, we provide the detailed mathematical derivation for the purified steering vector𝐰∗\\mathbf\{w\}^\{\*\}used in Section[5](https://arxiv.org/html/2606.28589#S5)\.

##### Rayleigh Quotient Objective

Let𝒟\+=\{𝐡i\+\}i=1N\+\\mathcal\{D\}^\{\+\}=\\\{\\mathbf\{h\}^\{\+\}\_\{i\}\\\}\_\{i=1\}^\{N^\{\+\}\}and𝒟−=\{𝐡j−\}j=1N−\\mathcal\{D\}^\{\-\}=\\\{\\mathbf\{h\}^\{\-\}\_\{j\}\\\}\_\{j=1\}^\{N^\{\-\}\}denote the sets of hidden state activations \(defined in Section[2](https://arxiv.org/html/2606.28589#S2)\) corresponding toTruthandFallacytrajectories, respectively\. LetN=N\+\+N−N=N^\{\+\}\+N^\{\-\}be the total sample size\. Let𝜹=𝝁\+−𝝁−\\boldsymbol\{\\delta\}=\\boldsymbol\{\\mu\}^\{\+\}\-\\boldsymbol\{\\mu\}^\{\-\}be the mean difference vector, where𝝁\+\\boldsymbol\{\\mu\}^\{\+\}and𝝁−\\boldsymbol\{\\mu\}^\{\-\}are the class centroids\. Consistent with Eq\.[1](https://arxiv.org/html/2606.28589#S2.E1)and the definition in Section[5](https://arxiv.org/html/2606.28589#S5), the within\-class covariance matrix𝚺w\\boldsymbol\{\\Sigma\}\_\{w\}is defined as:

𝚺w=∑c∈\{\+,−\}1\|𝒟c\|​∑𝐡∈𝒟c\(𝐡−𝝁c\)​\(𝐡−𝝁c\)⊤\.\\boldsymbol\{\\Sigma\}\_\{w\}=\\sum\_\{c\\in\\\{\+,\-\\\}\}\\frac\{1\}\{\|\\mathcal\{D\}^\{c\}\|\}\\sum\_\{\\mathbf\{h\}\\in\\mathcal\{D\}^\{c\}\}\(\\mathbf\{h\}\-\\boldsymbol\{\\mu\}^\{c\}\)\(\\mathbf\{h\}\-\\boldsymbol\{\\mu\}^\{c\}\)^\{\\top\}\.\(13\)To find the optimal direction𝐰\\mathbf\{w\}, we maximize the Rayleigh Quotient𝒥​\(𝐰\)\\mathcal\{J\}\(\\mathbf\{w\}\), which represents the ratio of theinter\-class signalto theintra\-class noise:

𝒥​\(𝐰\)=\(𝐰⊤​𝜹\)2𝐰⊤​𝚺w​𝐰\.\\mathcal\{J\}\(\\mathbf\{w\}\)=\\frac\{\(\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\delta\}\)^\{2\}\}\{\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\}\.\(14\)By minimizing the denominator, we penalize directions aligned with high\-variance outlier dimensions, thereby aligning𝐰\\mathbf\{w\}with the most discriminativeTruthfeatures\.

##### Analytical Solution and Regularization

To maximize𝒥​\(𝐰\)\\mathcal\{J\}\(\\mathbf\{w\}\), we set its gradient with respect to𝐰\\mathbf\{w\}to zero\. Using the quotient rule:

∇𝐰𝒥​\(𝐰\)=2​\(𝐰⊤​𝜹\)​𝜹​\(𝐰⊤​𝚺w​𝐰\)−\(𝐰⊤​𝜹\)2​\(2​𝚺w​𝐰\)\(𝐰⊤​𝚺w​𝐰\)2=𝟎\.\\nabla\_\{\\mathbf\{w\}\}\\mathcal\{J\}\(\\mathbf\{w\}\)=\\frac\{2\(\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\delta\}\)\\boldsymbol\{\\delta\}\(\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\)\-\(\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\delta\}\)^\{2\}\(2\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\)\}\{\(\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\)^\{2\}\}=\\mathbf\{0\}\.\(15\)Assuming𝐰⊤​𝜹≠0\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\delta\}\\neq 0, we can divide by2​\(𝐰⊤​𝜹\)2\(\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\delta\}\)and rearrange the terms to obtain the generalized eigenvalue problem:

\(𝐰⊤​𝚺w​𝐰𝐰⊤​𝜹\)​𝜹=𝚺w​𝐰\.\\left\(\\frac\{\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\}\{\\mathbf\{w\}^\{\\top\}\\boldsymbol\{\\delta\}\}\\right\)\\boldsymbol\{\\delta\}=\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\.\(16\)Since the term in the parenthesis is a scalarλ\\lambda, this implies𝚺w​𝐰∝𝜹\\boldsymbol\{\\Sigma\}\_\{w\}\\mathbf\{w\}\\propto\\boldsymbol\{\\delta\}\. Assuming𝚺w\\boldsymbol\{\\Sigma\}\_\{w\}is invertible, the analytical closed\-form solution is:

𝐰∗∝𝚺w−1​𝜹=𝚺w−1​\(𝝁\+−𝝁−\)\.\\mathbf\{w\}^\{\*\}\\propto\\boldsymbol\{\\Sigma\}\_\{w\}^\{\-1\}\\boldsymbol\{\\delta\}=\\boldsymbol\{\\Sigma\}\_\{w\}^\{\-1\}\(\\boldsymbol\{\\mu\}^\{\+\}\-\\boldsymbol\{\\mu\}^\{\-\}\)\.\(17\)
In practical LLM scenarios,𝚺w\\boldsymbol\{\\Sigma\}\_\{w\}may become singular when the number of samplesN<dN<d\. Even whenN\>dN\>d, the matrix often becomes ill\-conditioned due to high multi\-collinearity\. To ensure numerical stability, we employ shrinkage estimation to obtain a positive\-definite estimate:

𝚺^w=\(1−ζ\)​𝚺w\+ζ​𝐈,\\hat\{\\boldsymbol\{\\Sigma\}\}\_\{w\}=\(1\-\\zeta\)\\boldsymbol\{\\Sigma\}\_\{w\}\+\\zeta\\mathbf\{I\},\(18\)whereζ∈\[0,1\]\\zeta\\in\[0,1\]is the shrinkage coefficient \(determined by the Ledoit\-Wolf estimator\)\. The final discriminant axis used inDynaSteeris𝐰∗=𝚺^w−1​𝜹\\mathbf\{w\}^\{\*\}=\\hat\{\\boldsymbol\{\\Sigma\}\}\_\{w\}^\{\-1\}\\boldsymbol\{\\delta\}\.

## Appendix CNotations and Algorithm

To facilitate understanding of the proposed framework, we first summarize the mathematical notations used throughout this paper in Table[3](https://arxiv.org/html/2606.28589#A3.T3)\. Subsequently, we present the procedural details of theDynaSteeralgorithm\.

Table 3:Summary of Notations\.### C\.1Algorithm Description

TheDynaSteerframework operates in two distinct phases: an offline preparation phase for steering vector derivation and an online inference phase for dynamic intervention\. The complete procedure is outlined in Algorithm[1](https://arxiv.org/html/2606.28589#alg1)\.

In theOffline Phase, we first construct a consistency\-based dataset by filtering reasoning trajectories that lead to consensus answers\. We then identify the truth\-relevant heads \(ℋtop\\mathcal\{H\}\_\{\\text\{top\}\}\) via linear probing\. To handle reasoning heterogeneity, difference vectors are clustered intoMMpatterns\. For each cluster, we compute a purified steering vector𝐯m\\mathbf\{v\}\_\{m\}using Fisher\-LDA to maximize the separation between Truth and Fallacy while minimizing within\-class variance\.

In theOnline Phase, the model generates reasoning chains sentence by sentence\. We monitor the entropyH​\(Scand\)H\(S\_\{\\text\{cand\}\}\)of each candidate sentence\. If the entropy exceeds the thresholdγ\\gamma\(indicating a reasoning fork\) and the step is within the effective temporal window \(β​\(t\)=1\\beta\(t\)=1\), we trigger the intervention\. The current hidden state is projected onto the pre\-computed clusters to determine adaptive strengthsηm\\eta\_\{m\}, and the aggregated steering is applied\. Crucially, arollbackmechanism is employed: the unsteered candidate sentence is discarded, and the model regenerates the step using the edited representation𝐡~\\tilde\{\\mathbf\{h\}\}\.

0:Model

ℳ\\mathcal\{M\}, Prompt

xx, Thresholds

γ,τdecay\\gamma,\\tau\_\{\\text\{decay\}\}
0:Pre\-computed Clusters

\{𝒞m\}m=1M\\\{\\mathcal\{C\}\_\{m\}\\\}\_\{m=1\}^\{M\}, Steering Vectors

\{𝐯m\}m=1M\\\{\\mathbf\{v\}\_\{m\}\\\}\_\{m=1\}^\{M\}, Heads

ℋtop\\mathcal\{H\}\_\{\\text\{top\}\}
1:Initialize:Trajectory

𝒯←∅\\mathcal\{T\}\\leftarrow\\emptyset, Step

t←0t\\leftarrow 0
2:whilenot end of generationdo

3:

t←t\+1t\\leftarrow t\+1
4:// Generate candidate sentence without intervention

5:

Scand←ℳ\.generate\_sentence​\(x,𝒯\)S\_\{\\text\{cand\}\}\\leftarrow\\mathcal\{M\}\.\\text\{generate\\\_sentence\}\(x,\\mathcal\{T\}\)
6:Calculate entropy

H​\(Scand\)H\(S\_\{\\text\{cand\}\}\)
7:// Check Spatial \(Entropy\) and Temporal \(Decay\) Locus

8:if

H​\(Scand\)\>γH\(S\_\{\\text\{cand\}\}\)\>\\gammaand

t≤τdecayt\\leq\\tau\_\{\\text\{decay\}\}then

9:

𝐡←Get\_Activations​\(ℳ,x,𝒯\)\|ℋtop\\mathbf\{h\}\\leftarrow\\text\{Get\\\_Activations\}\(\\mathcal\{M\},x,\\mathcal\{T\}\)\|\_\{\\mathcal\{H\}\_\{\\text\{top\}\}\}
10:

Δt​o​t​a​l←𝟎\\Delta\_\{total\}\\leftarrow\\mathbf\{0\}
11:for

m=1m=1to

MMdo

12:Calculate strength

ηm​\(𝐡\)\\eta\_\{m\}\(\\mathbf\{h\}\)using Eq\.[9](https://arxiv.org/html/2606.28589#S5.E9)

13:

Δt​o​t​a​l←Δt​o​t​a​l\+ηm​\(𝐡\)⋅𝐯m\\Delta\_\{total\}\\leftarrow\\Delta\_\{total\}\+\\eta\_\{m\}\(\\mathbf\{h\}\)\\cdot\\mathbf\{v\}\_\{m\}
14:endfor

15:// Apply Aggregated Steering and Rollback

16:

𝐡~←𝐡\+Δt​o​t​a​l\\tilde\{\\mathbf\{h\}\}\\leftarrow\\mathbf\{h\}\+\\Delta\_\{total\}
17:

ℳ\.set\_activations​\(𝐡~\)\\mathcal\{M\}\.\\text\{set\\\_activations\}\(\\tilde\{\\mathbf\{h\}\}\)
18:

Ssteered←ℳ\.generate\_sentence​\(x,𝒯\)S\_\{\\text\{steered\}\}\\leftarrow\\mathcal\{M\}\.\\text\{generate\\\_sentence\}\(x,\\mathcal\{T\}\)
19:

𝒯←𝒯∪\{Ssteered\}\\mathcal\{T\}\\leftarrow\\mathcal\{T\}\\cup\\\{S\_\{\\text\{steered\}\}\\\}
20:else

21:// Keep original sentence

22:

𝒯←𝒯∪\{Scand\}\\mathcal\{T\}\\leftarrow\\mathcal\{T\}\\cup\\\{S\_\{\\text\{cand\}\}\\\}
23:endif

24:endwhile

Return

𝒯\\mathcal\{T\}

Algorithm 1DynaSteer: Dynamic Reasoning Editing

## Appendix DPrompts Used in This Work

##### Prompt used for solving Math problems

In our assessment ofDynaSteerperformance, we employ the following prompts to address relevant Math tasks, including GSM8K\(Liet al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib26)\), MATH500\(Hendryckset al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib27)\)and AMC23\(Hendryckset al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib27)\)datasets\.

Prompt 1INSTRUCTION = r”””Solve the following math problem step by step\. The last line of your response should be of the form Answer:boxedAnswer where Answer is the answer to the problem\.problemRemember to put your answer on its own line after ”Answer:”\.”””

##### Prompt used for solving Coding problems

\. In our assessment ofDynaSteerperformance, we employ the following prompts to address relevant Coding task on HumanEval\+\(Chenet al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib24)\)and MBPP\+\(Austinet al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib25)\)datasets\.

Prompt 2MATH\_WAIT = r”””Wait”””CODE\_WAIT = r”””Wait, let me rethink about it and give the final Python script\.“‘python”””

## Appendix EExperimental Setups

##### Network Architecture, Datasets and Metrics

Our experiments were based on various backbone LLMs, including Qwen3 series\(Baiet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib22)\)of various sizes \(Qwen3\-1\.7B and Qwen3\-8B\) and LLaMA3\.2\-3B\-Instruct\(Touvronet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib23)\)\. We collectedTruthandFallacyrepresentation using GSM8K\(Liet al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib26)\)and MATH\(Hendryckset al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib27)\)training set to calculateTruth Steering\. We introduced two types of tasks,Math\(in\-distribution\) andCoding\(out\-of\-distribution\), to assess the effectiveness ofDynaSteer\. For theMathtasks, we considered the following datasets: GSM8K test part, MATH500\(Hendryckset al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib27)\)and AMC23\(Hendryckset al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib27)\)\. For theCodingtasks, we considered the HumanEval\+\(Chenet al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib24)\)and MBPP\+\(Austinet al\.,[2021](https://arxiv.org/html/2606.28589#bib.bib25)\)datasets\. We evaluated these datasets with pass@1 accuracy\.

##### Baselines

We adopt the following state\-of\-the\-art approaches as our compared baselines\.

- •Plain: Plain does not use any techniques, LLM directly reason and answer questions\.
- •“Wait”: “Wait” monitors entropy in real\-time and manually injectsWaitprompts at high entropy locations to guide LLM to perform more thinking\.
- •RepE literature: We adopt several recently proposed RepE literature as our baseline models, including ITI\(Liet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib13)\), ACT\(Wanget al\.,[2025c](https://arxiv.org/html/2606.28589#bib.bib12)\)and DRESS\(Maet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib14)\)\.

The details of the baseline RepE algorithm we use is as follows:

1. 1\.ITI\(Liet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib13)\)\(NeurIPS’23\): Inference\-Time Intervention \(ITI\) is a lightweight method that improves the truthfulness of large language models by adjusting internal activations along learned directions at inference time, using only a small subset of attention heads\. ITI also exposes a controllable trade\-off between truthfulness and helpfulness by tuning the intervention strength, suggesting that LLMs encode latent representations of truth internally\.
2. 2\.ACT\(Wanget al\.,[2025c](https://arxiv.org/html/2606.28589#bib.bib12)\)\(WWW’25\): Adaptive Activation Steering \(ACT\) is a tuning\-free inference\-time method that enhances LLM truthfulness by adaptively steering model activations toward linearly encodedTruth Steering\. By leveraging multiple truthfulness\-related steering vectors and dynamically adjusting intervention strength, ACT effectively mitigates diverse hallucination types\. As a plug\-and\-play add\-on, it achieves substantial truthfulness gains across a wide range of models and scales robustly to large LLMs\.
3. 3\.DRESS\(Maet al\.,[2025](https://arxiv.org/html/2606.28589#bib.bib14)\)\(ICLR’25\): DRESS is a lightweight, train\-free representation editing method for generating stylized LLM responses while preserving the original semantics\. It disentangles a style\-relevant subspace in the model’s representations and applies adaptively scaled steering vectors to balance stylistic fidelity and semantic integrity\.

##### Implement Details

We implemented our framework using PyTorch and the Hugging Facetransformerslibrary\(Wolf,[2019](https://arxiv.org/html/2606.28589#bib.bib28)\)\. To enable high\-throughput inference, we integratedvLLM\(Kwonet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib34)\)as the generation backend\. For mathematical reasoning benchmarks, we utilizedvLLMfor sampling and employed themath\-verifylibrary111[https://github\.com/huggingface/math\-verify](https://github.com/huggingface/math-verify)to rigorously parse and validate answer correctness\. For code generation tasks, we strictly followed the evaluation protocols and settings established by EvalPlus\(Liuet al\.,[2023](https://arxiv.org/html/2606.28589#bib.bib35)\)\. All experiments were conducted on a single NVIDIA A800 \(80GB\) GPU\.

Construction of Contrastive Pairs\.To reliably estimate theTruth Steeringvector, we meticulously construct positive and negative contrastive samples from the training set\. Specifically, we prompt the LLM to generate reasoning trajectories\. At each generated sentence boundary, we compute the lookahead entropy\. When the entropy exceeds a pre\-defined threshold—indicating a critical reasoning fork—we pause the primary generation and conductNNindependent stochastic rollouts from that exact state \(in our experiments,N=10N=10\)\. We then evaluate the final answers of allNNrollouts\. If all rollouts yield the correct answer, the hidden representations of the current reasoning fork are assigned the labelTruth\(\+1\+1\)\. Conversely, if all rollouts yield an incorrect answer, they are labeled asFallacy\(−1\-1\)\. To ensure geometric purity of the representations and to eliminate noise, any ambiguous cases—where the rollouts produce a mix of correct and incorrect answers—are strictly discarded\. This highly rigorous filtering strategy guarantees that the resulting contrastive pair dataset robustly captures the intrinsic directional difference between truth and fallacy\.

## Appendix FAdditional Experiment

### F\.1t\-SNE Visualization of Pattern Clustering

To empirically validate the hypothesis ofReasoning Heterogeneity, we visualize the geometric distribution of the extractedTruth Steering\(i\.e\., the difference vectors𝐡\+−𝐡−\\mathbf\{h\}^\{\+\}\-\\mathbf\{h\}^\{\-\}\) using t\-SNE dimensionality reduction\. As illustrated in Fig[7](https://arxiv.org/html/2606.28589#A6.F7), the steering vectors do not coalesce into a single, monolithic distribution; instead, they spontaneously segregate into distinct, well\-separated clusters\. This visual evidence strongly suggests that theTruthsignal is not encoded as a universal global direction\. Rather, it is realized through diverse geometric orientations that are specific to the underlying reasoning patterns, thereby corroborating the necessity of our pattern clustering approach to capture these local directional nuances\.

![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/tsne_cluster_L8_H8.png)Figure 7:t\-SNE Visualization of Pattern Clustering\.
### F\.2Comparison with Causal Intervention Baselines

To further validate the effectiveness of our probing\-based truth localization strategy, we compareDynaSteeragainst two prominent causal intervention methods, ROME\(Menget al\.,[2022](https://arxiv.org/html/2606.28589#bib.bib40)\)and MEMIT\([Menget al\.,](https://arxiv.org/html/2606.28589#bib.bib41)\)\. These methods explicitly target specific attention heads based on causal tracing to edit associations within the model\. The experiment is conducted using the Qwen3\-8B model as the backbone\.

Table 4:Performance comparison betweenDynaSteerand causal intervention baselines using Qwen3\-8B\. ID: In\-Domain\. OOD: Out\-of\-Domain\.As shown in Table[4](https://arxiv.org/html/2606.28589#A6.T4),DynaSteersubstantially outperforms both ROME and MEMIT across all benchmarks\. We attribute this performance gap to a fundamental architectural mismatch: causal tracing methods primarily intervene on discrete, individual heads, operating under the assumption that specific concepts or factual associations are highly localized\. However, according to the Linear Representation Hypothesis, abstract cognitive signals such asTruthare likely encoded as distributed directions across the residual stream\. While an exhaustive combinatorial search for multi\-head causal interactions entails exponential complexity and is thus infeasible, our probing\-based localization naturally accommodates such distributed and entangled representations, yielding more precise and effective steering\.

### F\.3Comparison with TruthX and TruthFlow Baselines

We present additional comparisons with two recent representation editing methods, TruthFlow\([Wanget al\.,](https://arxiv.org/html/2606.28589#bib.bib39)\)and TruthX\(Zhanget al\.,[2024](https://arxiv.org/html/2606.28589#bib.bib38)\), focusing on the Qwen3\-1\.7B backbone\.

Table 5:Performance comparison ofDynaSteeragainst TruthX and TruthFlow on Qwen3\-1\.7B\.Table[5](https://arxiv.org/html/2606.28589#A6.T5)illustrates thatDynaSteerachieves considerable performance gains over both TruthFlow and TruthX\. A key architectural distinction lies in how the steering is dynamically adapted\. TruthFlow computes a static steering direction once at the beginning of the generation based on the user query\. Conversely,DynaSteerdynamically monitors and adapts the steering vectors in response to the continuously evolving reasoning state, enabling real\-time corrections at critical high\-entropy forks\. On the other hand, TruthX constructs a global mean\-difference vector within a pre\-trained truthful subspace, implicitly assuming a uniform truth direction\. This assumption is precisely whatDynaSteerchallenges and resolves via pattern clustering, demonstrating that capturing reasoning\-specific geometric orientations is vital for optimizing representation editing during complex derivations\.

### F\.4Discussion on Attention Probes

In Section[3](https://arxiv.org/html/2606.28589#S3), we employed minimal\-capacity linear probes to ascertain the intrinsic linear separability ofTruth\. Here, we explore the impact of replacing linear probes with more expressive attention\-based probes for temporal aggregation\. While attention probes elevate the detection accuracy ofTruthfrom approximately78%78\\%to84%84\\%, we observe that the downstream task performance remains comparable, as shown in Table[6](https://arxiv.org/html/2606.28589#A6.T6)\.

Table 6:Ablation study on the choice of probe architecture using Qwen3\-1\.7B\.This parity in end\-to\-end performance is expected within our framework\. Although attention probes enhance the precision of identifying truth\-relevant features during the initial localization phase, the actual steering vectors injected during inference are independently derived by the subsequent Fisher\-LDA optimization\. Since the efficacy of Fisher\-LDA relies predominantly on the geometric distribution of the aggregated hidden representations rather than the capacity of the upstream discriminator, the generative accuracy is not fundamentally constrained by the choice between linear and attention probes\.

### F\.5Generalization on Multi\-hop QA

To further attest to the generalization capabilities ofDynaSteerbeyond mathematical reasoning and code generation, we extended our evaluation to multi\-hop Question Answering \(QA\) tasks using HotpotQA and 2WikiQA\. Multi\-hop QA inherently demands dynamic adjustments of reasoning trajectories based on intermediate retrieved knowledge or partial deductions\. We utilize Qwen3\-8B as the underlying language model for this experiment\.

Table 7:Generalization performance on Multi\-hop QA benchmarks using Qwen3\-8B\.The results in Table[7](https://arxiv.org/html/2606.28589#A6.T7)illustrate thatDynaSteerconsistently surpasses all benchmark RepE methodologies on both datasets\. This confirms that the pattern\-disentangled, dynamically adaptive steering mechanism orchestrated byDynaSteerpossesses broad applicability\. It effectively captures universally applicable cognitive primitives—such as logical bridging, context integration, and fact\-checking—that transcend specific task domains, corroborating its robustness and generalizability\.

### F\.6Ablation Study on Additional Token Cost

To evaluate the computational overhead ofDynaSteer, we measure theAdditional Token Costincurred during inference\. This metric quantifies the extra tokens generated due to the rollback\-and\-regenerate mechanism triggered by interventions\. We compare the full framework against two ablated variants on both In\-Domain \(MATH\) and Out\-of\-Domain \(Coding\) tasks using Qwen3\-1\.7B\. The results are presented in Table[8](https://arxiv.org/html/2606.28589#A6.T8)\.

##### Impact of Entropy Monitoring \(Spatial Efficiency\)

The removal of entropy\-based filtering \(w/o Entropy Monitoring\) results in a dramatic increase in token cost across all benchmarks\. For instance, on the OODHumanEval\+dataset, the cost surges from16\.8816\.88to175\.67175\.67\(∼10×\\sim 10\\timesincrease\)\. Similarly, onMATH500, the cost more than doubles\. This validates our hypothesis regarding theSpatial Locus\(Sec\.[4](https://arxiv.org/html/2606.28589#S4)\): the vast majority of generation steps are deterministic syntactic transitions\. Without entropy monitoring, the model attempts to intervene at non\-critical points, leading to unnecessary rollbacks that do not contribute to reasoning correction but significantly inflate computational cost\.

##### Impact of Temporal Decay \(Temporal Efficiency\)

The exclusion of the temporal gating mechanism \(w/o Temporal Decay\) leads to a substantial efficiency degradation, particularly in complex reasoning tasks\. On the challengingAMC23benchmark, the token cost spikes from192\.48192\.48to474\.63474\.63\. This empirical finding reinforces theDecay Effecttheory \(Sec\.[4](https://arxiv.org/html/2606.28589#S4)\)\. In long\-horizon reasoning, errors become “entrenched” in the later stages\. Without the temporal decay constraint, the model futilely attempts to intervene on deep\-rooted fallacies\. These late\-stage interventions rarely succeed in recovering the correct trajectory, resulting in repeated failures and wasted generation cycles\. Notably, on Coding tasks, the cost remains identical to the baseline, suggesting that for these specific OOD tasks, effective interventions naturally occur early in the generation, making the late\-stage decay gate redundant but harmless\.

Table 8:Ablation Studies onAdditionalToken Cost due to representation using Qwen3\-1\.7B as backbone LLM on MATH and Coding tasks\. ID: In\-Domain\. OOD: Out\-of\-Domain\.MATH \(ID\)Coding \(OOD\)MethodsGSM8KMATH500AMC23HumanEval\+MBPP\+DynaSteer28\.57107\.18192\.4816\.8813\.04w/o Entropy Monitoring39\.33232\.67238\.65175\.67131\.58w/o Temporal Decay47\.35251\.93474\.6316\.8813\.04

### F\.7Hyper\-Parameter Analysis

We further investigate several important hyper\-parameters introduced inDynaSteerto facilitate future applications, including cluster numberMMin pattern clustering, Intervention intensity coefficientα\\alphain Equ\.[9](https://arxiv.org/html/2606.28589#S5.E9), and the number of selected headsℋtop\\mathcal\{H\}\_\{\\text\{top\}\}for intervention,n​\_​h​e​a​dn\\\_head\. The experimental results are shown in Fig\.[8](https://arxiv.org/html/2606.28589#A6.F8)\.

![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/kmeans.png)\(a\)
![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/alpha.png)\(b\)
![Refer to caption](https://arxiv.org/html/2606.28589v1/figures/n_head.png)\(c\)

Figure 8:Sensitivity Analysis of Hyper\-Parameter\.##### Cluster number in pattern clustering,MM

We hypothesize that the geometry of truth is entangled with latent reasoning patterns\. By varying the cluster numberM∈\{1,3,5,8\}M\\in\\\{1,3,5,8\\\}, we observe the effect of manifold disentanglement\.

- •Global vs\. Local Geometry:The baselineM=1M=1\(global mean\-difference\) yields an accuracy of 72\.8%\. IncreasingMMto 5 results in a peak performance of 74\.8%, validating our core hypothesis that constructing local linear probes for distinct reasoning patterns captures the truth signal more effectively than a single global direction\.
- •Over\-Clustering:However, further increasingMMto 8 leads to a performance drop \(72\.4%\)\. We attribute this tocluster sparsity: as the number of clusters increases, the number of samples per cluster decreases, leading to unstable estimation of the covariance matrices for Fisher\-LDA\.

##### Intervention intensity coefficient,α\\alpha

The coefficientα\\alphain Eq\.[9](https://arxiv.org/html/2606.28589#S5.E9)controls the magnitude of the steering vector injection\.

- •Steering Efficacy:Asα\\alphaincreases from 0\.3 to 3\.0, we observe a steady improvement in recovery rates \(69\.8%→\\to74\.8%\), indicating that a sufficient magnitude is required to push the model out of the “entrenched” local minima of incorrect reasoning\.
- •Safety Saturation:Notably, performance plateaus atα=5\.0\\alpha=5\.0\(74\.8%\) rather than degrading\. This contrasts with standard mean\-difference steering, where excessive strength often destroys generation coherence\. This stability highlights the effectiveness of ourFisher\-LDA purification: by projecting onto a subspace that minimizes within\-class variance,DynaSteerensures that even strong interventions remain orthogonal to essential semantic features, preserving the integrity of the generation\.

##### The number of selected heads for intervention,n​\_​h​e​a​dn\\\_head

We analyze the localization of the truth signal by varying the number of manipulated heads\.

- •Signal Localization:The performance exhibits an inverted U\-shaped trend, peaking at 32 heads\. Using too few heads \(16\) fails to capture the distributed nature of the truth representation across layers\.
- •Noise Introduction:Conversely, expanding the selection to 64 or 128 heads causes a decline in accuracy \(72\.6% and 73\.2%\)\. This suggests that the truth signal is sparse; including irrelevant heads introduces noise into the aggregated steering vector, diluting the corrective effect\. Thus, precise head location is crucial for optimal performance\.

## Appendix GCase Studies

To intuitively understand howDynaSteercorrects reasoning trajectories, we present a series of qualitative examples from the MATH500 dataset across various mathematical domains\. These include both single\-step interventions and complex multi\-steering scenarios\.

### G\.1Single\-Steering Case Studies

#### G\.1\.1Trigonometric Identity Retrieval

##### Analysis of the Original Trajectory \(Fallacy\)

The model’s initial inclination \(highlighted inred\) is to employ aNumerical Approximationstrategy\. It attempts to convert the exact symbolic angles \(53∘,81∘53^\{\\circ\},81^\{\\circ\}\) into floating\-point approximations \(tan⁡53∘≈1\.3270\\tan 53^\{\\circ\}\\approx 1\.3270\)\. While mathematically valid in principle, this approach is suboptimal for competitive mathematics\. Our post\-hoc verification confirmed that trajectories following this “calculation\-heavy” pattern consistently failed to reach the exact integer solution\.

##### Effect of Intervention \(Truth\)

Upon detecting high entropy at the reasoning step,DynaSteerintervenes\. The steered trajectory \(highlighted ingreen\) activates the model’s latent knowledge of high\-level trigonometric identities\. Specifically, it recalls the conditional identity:

If​A\+B\+C=180∘,then​tan⁡A​tan⁡B​tan⁡C=tan⁡A\+tan⁡B\+tan⁡C\.\\text\{If \}A\+B\+C=180^\{\\circ\},\\text\{ then \}\\tan A\\tan B\\tan C=\\tan A\+\\tan B\+\\tan C\.Recognizing this pattern allows the model to bypass calculation entirely and solve the problem via simple linear algebra \(53\+81\+x=18053\+81\+x=180\), instantaneously deriving the correct answer\.

Problem Input & ReferenceProblem:For some value ofx,x,0<x<180,0<x<180,tan⁡53∘​tan⁡81∘​tan⁡x∘=tan⁡53∘\+tan⁡81∘\+tan⁡x∘\.\\tan 53^\{\\circ\}\\tan 81^\{\\circ\}\\tan x^\{\\circ\}=\\tan 53^\{\\circ\}\+\\tan 81^\{\\circ\}\+\\tan x^\{\\circ\}\.Findx\.x\.Reference Answer:46

Qwen3\-1\.7B Reasoning TrajectoryContext Generation:We are given the equation:tan⁡53∘​tan⁡81∘​tan⁡x∘=tan⁡53∘\+tan⁡81∘\+tan⁡x∘\\tan 53^\{\\circ\}\\tan 81^\{\\circ\}\\tan x^\{\\circ\}=\\tan 53^\{\\circ\}\+\\tan 81^\{\\circ\}\+\\tan x^\{\\circ\}We are to findxxsuch that0<x<1800<x<180\.Intervention Point \(Reasoning Fork\):Original Trajectory \(Numerical Approximation\)Step 1: Use known valuesWe use the known values of the tangents:•tan⁡53∘≈1\.3270\\tan 53^\{\\circ\}\\approx 1\.3270•tan⁡81∘≈6\.3138\\tan 81^\{\\circ\}\\approx 6\.3138We see that both values are positive…\[Leads to approx\. errorx≈45\.8x\\approx 45\.8\]↓\\downarrowDynaSteerSteeringSteered Trajectory \(Symbolic Identity\)Step 1: Use known trigonometric identitiesWe recognize a useful identity:tan⁡A​tan⁡B​tan⁡C=tan⁡A\+tan⁡B\+tan⁡Cif​A\+B\+C=180∘\\tan A\\tan B\\tan C=\\tan A\+\\tan B\+\\tan C\\quad\\text\{if \}A\+B\+C=180^\{\\circ\}This is a well\-known identity in trigonometry\.Continued Generation:Step 2: Match the identityIn our equation:tan⁡53∘​tan⁡81∘​tan⁡x∘=tan⁡53∘\+tan⁡81∘\+tan⁡x∘\\tan 53^\{\\circ\}\\tan 81^\{\\circ\}\\tan x^\{\\circ\}=\\tan 53^\{\\circ\}\+\\tan 81^\{\\circ\}\+\\tan x^\{\\circ\}\. This matches the identity above if:53∘\+81∘\+x∘=180∘53^\{\\circ\}\+81^\{\\circ\}\+x^\{\\circ\}=180^\{\\circ\}Solve forxx:x=180∘−53∘−81∘=46∘x=180^\{\\circ\}\-53^\{\\circ\}\-81^\{\\circ\}=46^\{\\circ\}Final Answer:46

Figure 9:Case Study on Trigonometry\.The figure contrasts the model’s original tendency to perform approximate calculation \(Red\) with the steered trajectory \(Green\)\.DynaSteersuccessfully guides the model to retrieve the relevant symbolic identity, avoiding calculation errors and directly deriving the integer solution\.

#### G\.1\.2Number Base Conversion

##### Analysis of the Original Trajectory \(Fallacy\)

When converting from binary to octal, the model groups digits into sets of three\. However, it fails to pad the binary string to a multiple of three digits beforehand\. By grouping directly without padding, the grouping boundaries become misaligned relative to the most significant bits, resulting in an incorrect translation\.

##### Effect of Intervention \(Truth\)

DynaSteerintervenes at the critical step of grouping, directing the model to explicitly pad the binary string with leading zeros\. This ensures proper 3\-bit chunking and yields the correct octal representation\.

Problem Input & ReferenceProblem:The binary number10101001110210101001110\_\{2\}is equal to what number in base eight?Reference Answer:251682516\_\{8\}

Qwen3\-8B Reasoning TrajectoryContext Generation:To convert from binary to octal, we group the binary digits into sets of 3, starting from the right\. The binary number is1010100111010101001110\.Intervention Point \(Reasoning Fork\):Original Trajectory \(Incorrect Grouping\)Step 1: Group from the rightWe partition the digits as:101​∣010∣​011∣110101\\mid 010\\mid 011\\mid 110\.Converting each group:5,2,3,65,2,3,6\.\[Leads to incorrect answer523685236\_\{8\}due to misaligned grouping boundaries\]↓\\downarrowDynaSteerSteeringSteered Trajectory \(Correct Grouping with Padding\)Step 1: Pad and group correctlyThe number has 11 digits, which is not a multiple of 3\. Pad with one leading zero:𝟎​10​∣101∣​001∣110\\mathbf\{0\}10\\mid 101\\mid 001\\mid 110\.Converting each group:0102=2010\_\{2\}=2,1012=5101\_\{2\}=5,0012=1001\_\{2\}=1,1102=6110\_\{2\}=6\.Continued Generation:Step 2: Assemble the resultConcatenating the octal digits in order gives:101010011102=2516810101001110\_\{2\}=2516\_\{8\}Final Answer:25168

Figure 10:Case Study on Number Base Conversion\.The model originally misaligns the 3\-bit grouping boundaries \(Red\), producing an incorrect octal representation\.DynaSteersteers the model to first pad the binary string to a multiple of 3 digits before grouping, yielding the correct conversion\.

#### G\.1\.3Logarithmic Equation Domain Analysis

##### Analysis of the Original Trajectory \(Fallacy\)

Faced with finding conditions for “exactly one solution”, the model falls back on a common heuristic: setting the discriminant of the resulting quadratic equation to zero\. This simplistic approach completely ignores the domain restrictions inherent to logarithmic functions, which can invalidate extraneous roots\.

##### Effect of Intervention \(Truth\)

DynaSteersteers the model away from the discriminant\-only shortcut and prompts a systematic, domain\-aware case analysis\. By carefully evaluating the roots against the domain constraints, the model successfully identifies the vast majority of valid cases where a positive discriminant yields exactly one valid root\.

Problem Input & ReferenceProblem:Find the number of integer values ofkkin the closed interval\[−500,500\]\[\-500,500\]for which the equationlog⁡\(k​x\)=2​log⁡\(x\+2\)\\log\(kx\)=2\\log\(x\+2\)has exactly one real solution\.Reference Answer:501

Qwen3\-8B Reasoning TrajectoryContext Generation:We rewritelog⁡\(k​x\)=log⁡\(\(x\+2\)2\)\\log\(kx\)=\\log\(\(x\+2\)^\{2\}\), sok​x=\(x\+2\)2kx=\(x\+2\)^\{2\}, yieldingx2\+\(4−k\)​x\+4=0x^\{2\}\+\(4\-k\)x\+4=0\.Intervention Point \(Reasoning Fork\):Original Trajectory \(Discriminant\-Only Analysis\)Step 1: Set discriminant to zeroFor exactly one solution, requireΔ=\(4−k\)2−16=0\\Delta=\(4\-k\)^\{2\}\-16=0, givingk=0k=0ork=8k=8\. After checking validity, onlyk=8k=8works\.\[Concludes only 1 value ofkk, missing the vast majority of valid cases\]↓\\downarrowDynaSteerSteeringSteered Trajectory \(Domain\-Aware Case Analysis\)Step 1: Recognize domain constraintsThe equation requiresk​x\>0kx\>0andx\>−2x\>\-2\. Even when the quadratic hastworeal roots, a domain restriction may eliminate exactly one, leaving exactly one valid solution\.Continued Generation:Step 2: Systematic case analysisCase A\(k\>0k\>0\): needx\>0x\>0andx\>−2x\>\-2, sox\>0x\>0\. The quadraticx2\+\(4−k\)​x\+4=0x^\{2\}\+\(4\-k\)x\+4=0has product of roots=4\>0=4\>0and sum=k−4=k\-4\. Both roots positive iffk\>4k\>4, so for0<k≤40<k\\leq 4at most one positive root, and fork\>8k\>8\(Δ\>0\\Delta\>0, both roots positive\) we get two solutions\. For4<k<84<k<8ork=8k=8, exactly one valid solution\.Case B\(k<0k<0\): needx<0x<0andx\>−2x\>\-2, so−2<x<0\-2<x<0\. At most one root can fall in this interval\.Careful counting overk∈\[−500,500\]k\\in\[\-500,500\]yields501\\boxed\{501\}valid integer values\.Final Answer:501

Figure 11:Case Study on Logarithmic Equations\.The model originally reduces “exactly one solution” to “discriminant equals zero” \(Red\), a common reasoning shortcut that ignores how domain restrictions on logarithms can convert a two\-root quadratic into a one\-solution scenario\.DynaSteersteers the model toward a domain\-aware case analysis \(Green\), recovering the full count\.

#### G\.1\.4Piecewise Function Surjectivity

##### Analysis of the Original Trajectory \(Fallacy\)

To determine surjectivity, the model analyzes the range of the linear piece of the function\. It incorrectly assumes the linear piece spans its entire natural range\(−∞,∞\)\(\-\\infty,\\infty\)because the slope is positive, completely overlooking the explicit domain restrictionx<ax<a\.

##### Effect of Intervention \(Truth\)

DynaSteerforces the model to re\-evaluate the range of each piece strictly within its respective domain boundary\. This precise range computation leads to the correct no\-gap inequality condition \(a3≤a2\+2​aa^\{3\}\\leq a^\{2\}\+2a\) necessary for surjectivity\.

Problem Input & ReferenceProblem:Consider the functionf​\(x\)=\{a​x2if​x≥a,a​x\+2​aif​x<a,f\(x\)=\\begin\{cases\}ax^\{2\}&\\text\{if \}x\\geq a,\\\\ ax\+2a&\\text\{if \}x<a,\\end\{cases\}whereaais some number\. What is the largest value ofaasuch that the graph ofy=f​\(x\)y=f\(x\)intersects every horizontal line at least once?Reference Answer:2

Qwen3\-8B Reasoning TrajectoryContext Generation:We needffto be surjective \(ontoℝ\\mathbb\{R\}\)\. The linear piecea​x\+2​aax\+2acovers\(−∞,f​\(a−\)\)\(\-\\infty,f\(a^\{\-\}\)\)and the quadratic piecea​x2ax^\{2\}covers\[f​\(a\),\+∞\)\[f\(a\),\+\\infty\)whena\>0a\>0\.Intervention Point \(Reasoning Fork\):Original Trajectory \(Overlooking Domain Restriction\)Step 1: Analyze surjectivityThe linear piecea​x\+2​aax\+2ahas slopea\>0a\>0, so asx→−∞x\\to\-\\infty,f​\(x\)→−∞f\(x\)\\to\-\\infty\. Therefore, the linear part alone covers all horizontal lines\.\[Ignores that the linear piece is only defined forx<ax<a, not all ofℝ\\mathbb\{R\}; concludesa=1a=1without checking the gap between the two pieces\]↓\\downarrowDynaSteerSteeringSteered Trajectory \(Correct Range Analysis\)Step 1: Compute the range of each piece preciselyFor the linear piece \(x<ax<a\): range is\(−∞,a⋅a\+2​a\)=\(−∞,a2\+2​a\)\(\-\\infty,a\\cdot a\+2a\)=\(\-\\infty,a^\{2\}\+2a\)\.For the quadratic piece \(x≥ax\\geq a,a\>0a\>0\):a​x2ax^\{2\}is increasing on\[a,∞\)\[a,\\infty\), so the minimum isa⋅a2=a3a\\cdot a^\{2\}=a^\{3\}, giving range\[a3,∞\)\[a^\{3\},\\infty\)\.Continued Generation:Step 2: No\-gap conditionFor surjectivity, the ranges must cover all ofℝ\\mathbb\{R\}, requiringa3≤a2\+2​aa^\{3\}\\leq a^\{2\}\+2a:a3−a2−2​a≤0⟹a​\(a−2\)​\(a\+1\)≤0a^\{3\}\-a^\{2\}\-2a\\leq 0\\implies a\(a\-2\)\(a\+1\)\\leq 0Fora\>0a\>0, this gives0<a≤20<a\\leq 2\. The largest suchaais2\\boxed\{2\}\.Final Answer:2

Figure 12:Case Study on Piecewise Functions\.The model originally overlooks the domain restriction of the linear piece \(x<ax<a\) and incorrectly concludes it covers all ofℝ\\mathbb\{R\}\(Red\)\.DynaSteersteers the model to correctly compute the bounded range of each piece and derive the no\-gap inequalitya3≤a2\+2​aa^\{3\}\\leq a^\{2\}\+2a, identifyinga=2a=2as the critical threshold\.

#### G\.1\.5Recursive Sequence Periodicity

##### Analysis of the Original Trajectory \(Fallacy\)

The model attempts a brute\-force computation of the recursive sequence to detect its period\. However, it makes a critical arithmetic error atx9x\_\{9\}\. This arithmetic drift cascades into all subsequent terms, permanently derailing the period detection\.

##### Effect of Intervention \(Truth\)

Rather than relying on flawless exhaustive computation,DynaSteerguides the model to recognize the structural anti\-symmetry of the recurrence relation \(xn\+5=−xnx\_\{n\+5\}=\-x\_\{n\}\)\. This high\-level structural insight immediately establishes a period of 10, enabling a direct and accurate modulo reduction for the final answer\.

Problem Input & ReferenceProblem:Given thatx1=211x\_\{1\}=211,x2=375x\_\{2\}=375,x3=420x\_\{3\}=420,x4=523x\_\{4\}=523, andxn=xn−1−xn−2\+xn−3−xn−4x\_\{n\}=x\_\{n\-1\}\-x\_\{n\-2\}\+x\_\{n\-3\}\-x\_\{n\-4\}forn≥5n\\geq 5, findx531\+x753\+x975x\_\{531\}\+x\_\{753\}\+x\_\{975\}\.Reference Answer:898

Qwen3\-8B Reasoning TrajectoryContext Generation:We compute terms to detect periodicity\.x5=523−420\+375−211=267x\_\{5\}=523\-420\+375\-211=267,x6=267−523\+420−375=−211x\_\{6\}=267\-523\+420\-375=\-211\.Intervention Point \(Reasoning Fork\):Original Trajectory \(Arithmetic Drift\)Step 1: Continue computingx7=−211−267\+523−420=−375x\_\{7\}=\-211\-267\+523\-420=\-375,x8=−375\+211\+267−523=−𝟒𝟐𝟎x\_\{8\}=\-375\+211\+267\-523=\\mathbf\{\-420\}x9=−420\+375−211\+267=𝟏𝟏x\_\{9\}=\-420\+375\-211\+267=\\mathbf\{11\}…\[Accumulates sign errors atx9x\_\{9\}\(correct value is−523\-523\), derailing all subsequent terms and the period detection\]↓\\downarrowDynaSteerSteeringSteered Trajectory \(Structured Period Analysis\)Step 1: Identify the anti\-symmetryComputing carefully:x6=−211=−x1x\_\{6\}=\-211=\-x\_\{1\},x7=−375=−x2x\_\{7\}=\-375=\-x\_\{2\}, …,x10=−267=−x5x\_\{10\}=\-267=\-x\_\{5\}\. The sequence satisfiesxn\+5=−xnx\_\{n\+5\}=\-x\_\{n\}, hence it isperiodic with period 10\.Continued Generation:Step 2: Reduce indices modulo 10531mod10=1531\\bmod 10=1,753mod10=3753\\bmod 10=3,975mod10=5975\\bmod 10=5\.Therefore:x531\+x753\+x975=x1\+x3\+x5=211\+420\+267=898x\_\{531\}\+x\_\{753\}\+x\_\{975\}=x\_\{1\}\+x\_\{3\}\+x\_\{5\}=211\+420\+267=\\boxed\{898\}\.Final Answer:898

Figure 13:Case Study on Recursive Sequences\.The model attempts brute\-force computation but accumulates arithmetic errors atx9x\_\{9\}\(Red\), derailing period detection\.DynaSteersteers the model to identify the anti\-symmetryxn\+5=−xnx\_\{n\+5\}=\-x\_\{n\}and period\-10 structure, enabling direct index reduction and an exact answer\.

#### G\.1\.6Combinatorial Probability

##### Analysis of the Original Trajectory \(Fallacy\)

In calculating the probability of restoring the original state of the bags, the model recognizes that Bob must return the exact color Alice transferred\. However, it overlooks the fact that Bob’s bag now contains*two*identical balls of that color\. It incorrectly assigns a return probability of1/61/6instead of2/62/6\.

##### Effect of Intervention \(Truth\)

DynaSteerintervenes to structure the conditional probability calculation\. By explicitly conditioning on Alice’s choice, the model correctly tracks the updated composition of Bob’s bag, recognizing the duplicate ball and arriving at the correct2/62/6probability for the return transfer\.

Problem Input & ReferenceProblem:Bob and Alice each have a bag that contains one ball of each of the colors: blue, green, orange, red, and violet\. Alice randomly selects one ball from her bag and puts it into Bob’s bag\. Bob then randomly selects one ball from his bag and puts it into Alice’s bag\. What is the probability that after this process, the contents of the two bags are the same as they were before?Reference Answer:13\\frac\{1\}\{3\}

Qwen3\-8B Reasoning TrajectoryContext Generation:Alice transfers one of 5 balls to Bob \(now 6 balls\)\. Bob then transfers one of 6 balls back to Alice\. We need both bags to return to their original state\.Intervention Point \(Reasoning Fork\):Original Trajectory \(Missing Duplicate Ball\)Step 1: Compute return probabilityBob must return the same color Alice gave\. Bob has 6 balls, soP=16P=\\frac\{1\}\{6\}\.\[Overlooks that Bob now hastwoballs of that color \(his original\+\+Alice’s\), so the correct probability is26\\frac\{2\}\{6\}\]↓\\downarrowDynaSteerSteeringSteered Trajectory \(Conditional Case Analysis\)Step 1: Condition on Alice’s choiceLet Alice transfer colorcc\. Bob’s bag now has 6 balls: 5 original\+\+one extracc\.For bags to restore, Bobmust returncolorcc\. His bag containstwocopies ofcc\(his original\+\+Alice’s\), soP​\(Bob returns​c\)=26=13P\(\\text\{Bob returns \}c\)=\\frac\{2\}\{6\}=\\frac\{1\}\{3\}\.Continued Generation:Step 2: CombineSince this probability13\\frac\{1\}\{3\}is the same regardless of which colorccAlice chose, the total probability is:P=∑cP​\(Alice picks​c\)⋅P​\(Bob returns​c\)=5⋅15⋅26=13P=\\sum\_\{c\}P\(\\text\{Alice picks \}c\)\\cdot P\(\\text\{Bob returns \}c\)=5\\cdot\\frac\{1\}\{5\}\\cdot\\frac\{2\}\{6\}=\\frac\{1\}\{3\}Final Answer:13\\boxed\{\\dfrac\{1\}\{3\}\}

Figure 14:Case Study on Combinatorial Probability\.The model correctly identifies that Bob must return the transferred color, but overlooks the duplicate ball in Bob’s bag, computing16\\frac\{1\}\{6\}instead of26\\frac\{2\}\{6\}\(Red\)\.DynaSteersteers the model to recognize the duplicate and arrive at the correct probability13\\frac\{1\}\{3\}\.

### G\.2Multi\-Steering Case Studies

In more complex problems, a single intervention may not be sufficient to fully correct a trajectory, as the model may encounter multiple independent or cascading reasoning forks\. We demonstrateDynaSteer’s capability to apply successive interventions in these multi\-steering case studies\.

#### G\.2\.1Polynomial Factorization

##### Analysis of the Original Trajectory \(Fallacy\)

The model commits two independent cascading errors\. First, during polynomial multiplication, it only considers the single highest\-order product for each degree, systematically ignoring all cross\-terms\. Second, when solving for the coefficients, it treats them as free variables and assigns arbitrary values instead of solving the resulting fully determined linear system\.

##### Effect of Intervention \(Truth\)

DynaSteerintervenes twice\. The first steering corrects the polynomial expansion, ensuring all cross\-terms are explicitly enumerated and matched\. The second steering prevents the model from guessing arbitrary values, forcing it to properly set up and solve the4×44\\times 4linear system to find the unique coefficients\.

Problem Input & ReferenceProblem:The polynomialx3−3​x2\+4​x−1x^\{3\}\-3x^\{2\}\+4x\-1is a factor ofx9\+p​x6\+q​x3\+r\.x^\{9\}\+px^\{6\}\+qx^\{3\}\+r\.Enter the ordered triple\(p,q,r\)\.\(p,q,r\)\.Reference Answer:\(6,31,−1\)\(6,31,\-1\)

Qwen3\-8B Reasoning Trajectory \(Multi\-Steering\)Context Generation:Letf​\(x\)=x3−3​x2\+4​x−1f\(x\)=x^\{3\}\-3x^\{2\}\+4x\-1andg​\(x\)=x9\+p​x6\+q​x3\+rg\(x\)=x^\{9\}\+px^\{6\}\+qx^\{3\}\+r\. Sincef​\(x\)∣g​\(x\)f\(x\)\\mid g\(x\), we writeg​\(x\)=f​\(x\)⋅h​\(x\)g\(x\)=f\(x\)\\cdot h\(x\)whereh​\(x\)=x6\+a5​x5\+a4​x4\+a3​x3\+a2​x2\+a1​x\+a0h\(x\)=x^\{6\}\+a\_\{5\}x^\{5\}\+a\_\{4\}x^\{4\}\+a\_\{3\}x^\{3\}\+a\_\{2\}x^\{2\}\+a\_\{1\}x\+a\_\{0\}\.Intervention Point 1 \(Coefficient Matching\):Original Trajectory \#1: Incorrect Cross\-Term EnumerationStep 3:Compute the coefficient ofx8x^\{8\}inf​\(x\)⋅h​\(x\)f\(x\)\\cdot h\(x\):“Onlyx3⋅a5​x5=a5​x8x^\{3\}\\cdot a\_\{5\}x^\{5\}=a\_\{5\}x^\{8\}, soa5=0a\_\{5\}=0\.” Similarly concludesa4=0a\_\{4\}=0,a2=0a\_\{2\}=0,a1=0a\_\{1\}=0\.\[Error:Considers only the single highest\-order product for each degree, systematically ignoring cross\-terms such as\(−3​x2\)​\(a5​x5\)\(\-3x^\{2\}\)\(a\_\{5\}x^\{5\}\)inx7x^\{7\},\(4​x\)​\(a4​x4\)\(4x\)\(a\_\{4\}x^\{4\}\)inx5x^\{5\}, etc\. This cascading omission forces all intermediate coefficients to zero\.\]↓\\downarrowDynaSteerSteering \#1Steered Trajectory \#1: Complete Cross\-Term ExpansionStep 3 \(corrected\):The coefficient ofx8x^\{8\}involvesallpairs\(xi​from​f\)×\(xj​from​h\)\(x^\{i\}\\text\{ from \}f\)\\times\(x^\{j\}\\text\{ from \}h\)withi\+j=8i\+j=8:coeff​\(x8\)=1⋅a5\+\(−3\)⋅1=a5−3=0⇒a5=3\.\\text\{coeff\}\(x^\{8\}\)=1\\cdot a\_\{5\}\+\(\-3\)\\cdot 1=a\_\{5\}\-3=0\\Rightarrow a\_\{5\}=3\.Similarly:coeff​\(x7\)=a4−3​a5\+4=a4−5=0⇒a4=5\.\\text\{coeff\}\(x^\{7\}\)=a\_\{4\}\-3a\_\{5\}\+4=a\_\{4\}\-5=0\\Rightarrow a\_\{4\}=5\.Continued Generation \(after Steering \#1\):From zero\-coefficient constraints onx5x^\{5\}andx4x^\{4\}:a2−3​a3\+4​a4−a5=0a\_\{2\}\-3a\_\{3\}\+4a\_\{4\}\-a\_\{5\}=0anda1−3​a2\+4​a3−a4=0a\_\{1\}\-3a\_\{2\}\+4a\_\{3\}\-a\_\{4\}=0\.Fromx1x^\{1\}andx2x^\{2\}:4​a0−a1=04a\_\{0\}\-a\_\{1\}=0and−3​a0\+4​a1−a2=0\-3a\_\{0\}\+4a\_\{1\}\-a\_\{2\}=0\.Intervention Point 2 \(System Solving\):Original Trajectory \#2: Arbitrary Free\-Variable AssignmentStep 5:“We can choosea0=1a\_\{0\}=1, thenq=1q=1,r=−1r=\-1, and pickp=0p=0\.”\[Error:Treatsa3a\_\{3\}anda0a\_\{0\}as free variables due to the earlier zero\-coefficient error, then assigns arbitrary values instead of solving the fully determined 4×\\times4 linear system\.\]↓\\downarrowDynaSteerSteering \#2Steered Trajectory \#2: Solve the Determined SystemStep 5 \(corrected\):The system has 4 equations in 4 unknowns\(a3,a2,a1,a0\)\(a\_\{3\},a\_\{2\},a\_\{1\},a\_\{0\}\):Substitutinga5=3,a4=5a\_\{5\}\{=\}3,a\_\{4\}\{=\}5into the constraints and solving:a3=10a\_\{3\}=10,a2=13a\_\{2\}=13,a1=4a\_\{1\}=4,a0=1a\_\{0\}=1\.Final Computation:p=a3−3​a4\+4​a5−1=10−15\+12−1=6p=a\_\{3\}\-3a\_\{4\}\+4a\_\{5\}\-1=10\-15\+12\-1=6,q=a0−3​a1\+4​a2−a3=1−12\+52−10=31q=a\_\{0\}\-3a\_\{1\}\+4a\_\{2\}\-a\_\{3\}=1\-12\+52\-10=31,r=−a0=−1r=\-a\_\{0\}=\-1\.Final Answer:\(6,31,−1\)\\boxed\{\(6,31,\-1\)\}

Figure 15:Multi\-Steering Case Study: Polynomial Factorization\.The model commits two*cascading*errors: \(1\) it enumerates only single\-product terms for each degree, ignoring cross\-terms from the three non\-leading coefficients off​\(x\)f\(x\)\(Red \#1\), which collapses the quotienth​\(x\)h\(x\)tox6\+a3​x3\+a0x^\{6\}\+a\_\{3\}x^\{3\}\+a\_\{0\}; \(2\) believinga3a\_\{3\}anda0a\_\{0\}are free, it assigns arbitrary values instead of solving the determined linear system \(Red \#2\)\.DynaSteerapplies two successive steering interventions at tokens 127 and 246, correcting the cross\-term expansion and then the system solving, recovering the correct\(p,q,r\)=\(6,31,−1\)\(p,q,r\)=\(6,31,\-1\)\.

#### G\.2\.2GCD/LCM Combinatorial Counting

##### Analysis of the Original Trajectory \(Fallacy\)

The model makes two compounding errors in combinatorial counting\. First, it conflates the formulas for ordered and unordered coprime factor pairs, applying2k−12^\{k\-1\}while inconsistently describing it\. Second, believing it needs to account for symmetry again, it redundantly divides the already\-correct count by 2, halving the final answer\.

##### Effect of Intervention \(Truth\)

DynaSteerapplies two successive steering interventions\. The first establishes an explicit24→162^\{4\}\\to 16ordered pair derivation before halving to 8, clarifying the logic\. The second intervention triggers at the final count to prevent the spurious redundant division, confidently halting the process at the correct answer of 8\.

Problem Input & ReferenceProblem:Ifaaandbbare positive integers such thatgcd⁡\(a,b\)=210\\gcd\(a,b\)=210,lcm​\[a,b\]=2103\\text\{lcm\}\[a,b\]=210^\{3\}, anda<ba<b, how many possible values are there foraa?Reference Answer:8

Qwen3\-8B Reasoning Trajectory \(Multi\-Steering\)Context Generation:Writea=210​xa=210x,b=210​yb=210ywithgcd⁡\(x,y\)=1\\gcd\(x,y\)=1\. Thenx​y=2102=22⋅32⋅52⋅72xy=210^\{2\}=2^\{2\}\\cdot 3^\{2\}\\cdot 5^\{2\}\\cdot 7^\{2\}\. We seek coprime pairs\(x,y\)\(x,y\)withx<yx<y\.Intervention Point 1 \(Pair\-Counting Formula\):Original Trajectory \#1: Wrong Formula ApplicationStep 5:“The number of unordered coprime factor pairs is2k−12^\{k\-1\}wherekkis the number of distinct primes\. Withk=4k=4:24−1=82^\{4\-1\}=8unordered pairs\.”\[Error:Conflates the formula\. The correct reasoning is:2k=162^\{k\}=16orderedpairs \(each ofk=4k\{=\}4primes goes entirely toxxoryy\), and2k−1=82^\{k\-1\}=8unorderedpairs\. The model states2k−1=82^\{k\-1\}=8as “unordered pairs,” which is actually correct at this step, but then proceeds to divide again\.\]↓\\downarrowDynaSteerSteering \#1Steered Trajectory \#1: Explicit Pair EnumerationStep 5 \(corrected\):Each of the 4 prime\-power factors\{22,32,52,72\}\\\{2^\{2\},3^\{2\},5^\{2\},7^\{2\}\\\}must goentirelytoxxoryy\(to maintain coprimality\)\. This gives24=162^\{4\}=16ordered pairs\.Since no pair hasx=yx=y\(that would requiregcd⁡\(x,y\)=x≠1\\gcd\(x,y\)=x\\neq 1\), exactly half satisfyx<yx<y:8 unordered pairs\.Continued Generation \(after Steering \#1\):The 8 pairs\(x,y\)\(x,y\)withx<yx<yare:\(1,44100\)\(1,44100\),\(4,11025\)\(4,11025\),\(9,4900\)\(9,4900\),\(25,1764\)\(25,1764\),\(36,1225\)\(36,1225\),\(49,900\)\(49,900\),\(100,441\)\(100,441\),\(225,196\)\(225,196\)\.Intervention Point 2 \(Final Count\):Original Trajectory \#2: Redundant Division by 2Step 7:“So there are 8 unordered coprime factor pairs\. But we want ordered pairs withx<yx<y, so we divide by 2:82=4\\frac\{8\}\{2\}=4\.”\[Error:The 8 pairs arealreadyunordered withx<yx<y; dividing again halves the correct count\.\]↓\\downarrowDynaSteerSteering \#2Steered Trajectory \#2: Recognize Counting Is CompleteStep 7 \(corrected\):The 8 pairs listed above already satisfyx<yx<y\. No further division is needed\. Each gives a distinct valuea=210​xa=210x\.Final Answer:The number of possible values foraais8\\boxed\{8\}\.

Figure 16:Multi\-Steering Case Study: GCD/LCM Counting\.The model makes two compounding errors in combinatorial counting: \(1\) it applies the formula2k−12^\{k\-1\}without clarifying whether it yields ordered or unordered pairs \(Red \#1\); \(2\) it then redundantly divides by 2 a second time, halving the already\-correct count from 8 to 4 \(Red \#2\)\.DynaSteersteers at both junctures—first to establish the explicit24→82^\{4\}\\to 8derivation, then to prevent the spurious halving—recovering the correct answer of 8\.

#### G\.2\.3Triangle Trigonometry

##### Analysis of the Original Trajectory \(Fallacy\)

The model falls into a circular reasoning loop\. It initially computestan⁡A\\tan Aas a symbolic expression involving side lengthsa,b,ca,b,c, failing to realize the area constraint implies a unique numeric value\. When attempting to solve the trigonometric equation, it re\-substitutes the side\-length expressions back in, resulting in a useless tautology \(tan⁡A=tan⁡A\\tan A=\\tan A\)\.

##### Effect of Intervention \(Truth\)

DynaSteersteers the model out of the loop at two critical junctures\. First, it guides the model to substitute the law of cosines into the area formula, successfully eliminating the side lengths and yielding a single\-variable equationsin⁡A=4​\(1−cos⁡A\)\\sin A=4\(1\-\\cos A\)\. Second, instead of re\-substituting, it prompts the use of half\-angle identities to analytically solve the pure trigonometric equation, yielding the final numeric answer\.

Problem Input & ReferenceProblem:The area of triangleA​B​CABCis equal toa2−\(b−c\)2a^\{2\}\-\(b\-c\)^\{2\}, wherea,b,ca,b,care the sides of triangleA​B​CABC, as usual\. Computetan⁡A\.\\tan A\.Reference Answer:815\\dfrac\{8\}\{15\}

Qwen3\-8B Reasoning Trajectory \(Multi\-Steering\)Context Generation:From the area formula:12​b​c​sin⁡A=a2−\(b−c\)2=a2−b2\+2​b​c−c2\\frac\{1\}\{2\}bc\\sin A=a^\{2\}\-\(b\-c\)^\{2\}=a^\{2\}\-b^\{2\}\+2bc\-c^\{2\}\.By the law of cosines:a2=b2\+c2−2​b​c​cos⁡Aa^\{2\}=b^\{2\}\+c^\{2\}\-2bc\\cos A, soa2−b2−c2=−2​b​c​cos⁡Aa^\{2\}\-b^\{2\}\-c^\{2\}=\-2bc\\cos A\.Intervention Point 1 \(Substitution Strategy\):Original Trajectory \#1: Direct Ratio Approach \(Circular\)Step 4:Computetan⁡A=sin⁡Acos⁡A\\tan A=\\frac\{\\sin A\}\{\\cos A\}by dividing the area expression by the cosine expression:tan⁡A=4​\(a2−\(b−c\)2\)b2\+c2−a2\\tan A=\\frac\{4\(a^\{2\}\-\(b\-c\)^\{2\}\)\}\{b^\{2\}\+c^\{2\}\-a^\{2\}\}\.\[Error:This expression still containsa,b,ca,b,c\. The model fails to recognize that the area condition provides an additional constraint that uniquely determinestan⁡A\\tan Aas anumericconstant, independent of specific side lengths\.\]↓\\downarrowDynaSteerSteering \#1Steered Trajectory \#1: Substitute Law of Cosines into AreaStep 4 \(corrected\):Substitutea2−b2−c2=−2​b​c​cos⁡Aa^\{2\}\-b^\{2\}\-c^\{2\}=\-2bc\\cos Ainto the area equation:12​b​c​sin⁡A=−2​b​c​cos⁡A\+2​b​c=2​b​c​\(1−cos⁡A\)\\frac\{1\}\{2\}bc\\sin A=\-2bc\\cos A\+2bc=2bc\(1\-\\cos A\)\.Dividing both sides byb​cbc:12​sin⁡A=2​\(1−cos⁡A\)\\frac\{1\}\{2\}\\sin A=2\(1\-\\cos A\)\.Continued Generation \(after Steering \#1\):We now have:sin⁡A=4​\(1−cos⁡A\)\\sin A=4\(1\-\\cos A\)\. This is asingle\-variabletrigonometric equation inAA\.Intervention Point 2 \(Solving the Trigonometric Equation\):Original Trajectory \#2: Circular Re\-substitutionStep 5–6:Attempts to solvesin⁡A=4​\(1−cos⁡A\)\\sin A=4\(1\-\\cos A\)by substitutingsin⁡A=2​\(a2−\(b−c\)2\)b​c\\sin A=\\frac\{2\(a^\{2\}\-\(b\-c\)^\{2\}\)\}\{bc\}back into the equation, re\-introducinga,b,ca,b,cand arriving at the tautologytan⁡A=tan⁡A\\tan A=\\tan A\.\[Error:Instead of using a half\-angle identity to solve the pure trigonometric equation, the model loops back to the original side\-length expressions\.\]↓\\downarrowDynaSteerSteering \#2Steered Trajectory \#2: Apply Half\-Angle IdentitiesStep 5 \(corrected\):Use half\-angle substitutions:sin⁡A=2​sin⁡A2​cos⁡A2\\sin A=2\\sin\\frac\{A\}\{2\}\\cos\\frac\{A\}\{2\}and1−cos⁡A=2​sin2⁡A21\-\\cos A=2\\sin^\{2\}\\frac\{A\}\{2\}:2​sin⁡A2​cos⁡A2=4⋅2​sin2⁡A22\\sin\\frac\{A\}\{2\}\\cos\\frac\{A\}\{2\}=4\\cdot 2\\sin^\{2\}\\frac\{A\}\{2\}\.Sincesin⁡A2≠0\\sin\\frac\{A\}\{2\}\\neq 0for a valid triangle, divide:cos⁡A2=4​sin⁡A2\\cos\\frac\{A\}\{2\}=4\\sin\\frac\{A\}\{2\}, i\.e\.,tan⁡A2=14\\tan\\frac\{A\}\{2\}=\\frac\{1\}\{4\}\.Final Computation:By the double\-angle formula:tan⁡A=2​tan⁡A21−tan2⁡A2=2⋅141−116=121516=815\\tan A=\\dfrac\{2\\tan\\frac\{A\}\{2\}\}\{1\-\\tan^\{2\}\\frac\{A\}\{2\}\}=\\dfrac\{2\\cdot\\frac\{1\}\{4\}\}\{1\-\\frac\{1\}\{16\}\}=\\dfrac\{\\frac\{1\}\{2\}\}\{\\frac\{15\}\{16\}\}=\\dfrac\{8\}\{15\}\.Final Answer:815\\boxed\{\\dfrac\{8\}\{15\}\}

Figure 17:Multi\-Steering Case Study: Triangle Trigonometry\.The model encounters two distinct reasoning failures: \(1\) it computestan⁡A\\tan Aas a symbolic expression ina,b,ca,b,cwithout recognizing that the area constraint determines a unique numeric value \(Red \#1\); \(2\) when guided to the single\-variable equationsin⁡A=4​\(1−cos⁡A\)\\sin A=4\(1\-\\cos A\), it re\-introduces side\-length variables instead of applying half\-angle identities, producing a tautology \(Red \#2\)\.DynaSteersteers twice—first to eliminate side lengths via the law of cosines substitution, then to invoke half\-angle identities—breaking the circular reasoning and extractingtan⁡A=815\\tan A=\\frac\{8\}\{15\}\.

Similar Articles

Agentic Chain-of-Thought Steering for Efficient and Controllable LLM Reasoning

Hugging Face Daily Papers

ACTS (Agentic Chain-of-Thought Steering) formulates LLM reasoning control as a Markov decision process where a controller agent adaptively steers a frozen reasoner during inference using reasoning strategies and steering phrases. The approach achieves comparable accuracy to full-thinking models with significant token savings, enabling controllable accuracy-efficiency trade-offs.

When Do LLMs Reason? A Dynamical Systems View via Entropy Phase Transitions

arXiv cs.LG

This paper investigates when chain-of-thought reasoning is beneficial for LLMs, showing that early-stage entropy dynamics reliably indicate reasoning utility, and introduces EDRM, a lightweight, training-free framework that adaptively selects inference strategies to achieve significant token savings while maintaining or improving accuracy.

ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces

arXiv cs.CL

Introduces ReasoningFlow, a framework to capture discourse structures of large language model reasoning traces as directed acyclic graphs, enabling fine-grained analysis of reasoning behaviors like self-reflection and backtracking. Based on manual and automatic annotation of thousands of traces, it reveals structural similarities across models and that most erroneous steps do not contribute to final answers.

Manifold-Guided Attention Steering

arXiv cs.LG

Proposes Manifold-Guided Attention Steering (MAGS), a trajectory-aware inference-time intervention that corrects reasoning errors in LLMs by projecting attention outputs back to a learned correctness manifold when deviation exceeds a threshold, outperforming static steering methods across math, code, and molecular benchmarks.