betaFeedback

WorksComputer Science

TRACESTEER: Trace Driven Activation Steering for Hallucination Mitigation in Diffusion Language Models

Abstract

Diffusion large language models (dLLMs) have emerged as a promising alternative to autoregressive LLMs, yet remain susceptible to hallucination. Activation steering offers a promising mitigation approach by guiding parallel token predictions through internal representations. However, existing steering methods largely overlook two characteristics of dLLMs: dynamic denoising states and temporal hallucination risks, which challenge predefined steering vectors and uniform intervention strengths. We propose TRACESTEER, a trace-driven activation steering framework that uses preceding denoising predictions as feedback to jointly adapt steering direction and strength. Specifically, Denoising Feedback Steering (DF-Steering) constructs step-specific steering vectors from preceding predictions and current hidden states. Trajectory-Guided Steering Gate (TS-Gate) regulates their strength using prediction uncertainty and the denoising timestep. With the backbone frozen, factual supervision and magnitude regularization jointly guide the learning of adaptive steering interventions, promoting factual reliability and stability throughout denoising. Experiments on two dLLMs show improved factual reliability on TruthfulQA and generalization across five downstream benchmarks.

Introduction

Diffusion large language models (dLLMs) have recently emerged as a promising alternative to autoregressive large language models (LLMs), demonstrating strong potential in a wide range of language understanding and generation tasks ([17, 3, 32]). Unlike the predominant autoregressive paradigm that generates text sequentially from left to right ([14] (Achiam et al. 2023)), dLLMs generate text through iterative denoising. In dLLMs, generation starts from a masked sequence, with the model predicting masked tokens in parallel at each step and remasking selected tokens for subsequent prediction. Such a generation paradigm enables bidirectional context interaction and joint token refinement, facilitating global dependency modeling and efficient parallel generation ([21, 38]). Despite their merits, dLLMs, like conventional LLMs, remain susceptible to the hallucination issue, posing the risk of generating incorrect or unsupported content that appears plausible. The hallucination issue undermines the reliability and trustworthiness of dLLMs, leading to potentially misleading outputs in real-world applications ([19, 35]).

To alleviate this issue, hallucination mitigation seeks to reduce hallucinated content and improve model reliability by intervening in generation. Nevertheless, most existing methods are developed for autoregressive LLMs and cannot be broadly applied to dLLMs [33, 26]. Specifically, retrieval augmentation (Figure 1a) leverages external knowledge to ground generation [9, 39]; despite its effectiveness, maintaining external knowledge sources incurs additional costs and may not suit diverse scenarios. Decoding intervention (Figure 1b) represents another line of methods that adjust token logits during generation [36, 24]; however, they are designed for a single next-token decision and thus cannot directly accommodate dLLMs, where multiple token distributions are produced simultaneously and only a subset is selected for update. In contrast, activation steering (Figure 1c), which modulates model behavior by manipulating internal representations during inference, shows promising potential for hallucination mitigation in dLLMs [11, 34]. By directly manipulating internal representations, activation steering can guide multiple token predictions simultaneously, making it naturally compatible with diffusion-based parallel generation process.

Figure 1. Motivation for trace-driven activation steering in dLLMs. Existing methods in LLMs suffer from (a) reliance on external knowledge, (b) incompatibility with dLLMs’ iterative denoising process, and (c) inability to adapt fixed steering vectors to evolving generation states. In contrast, (d) our approach enables dynamic, trace-aware activation steering.

Despite its promise, most activation steering techniques for hallucination mitigation are tailored to autoregressive LLMs, overlooking several unique characteristics of dLLM generation [20, 12]. Characteristic ❶: Dynamic denoising states. dLLM generation evolves along a continuous denoising trajectory: at different denoising steps, the model not only exhibits varying generation states, but also continuously forms and revises its generation hypotheses. [27, 37] For example, when answering “Why did the Roman Empire fall”, some denoising steps may need to emphasize military pressure, while others shift toward political fragmentation. Facing such dynamic generation states, existing steering methods typically reuse a predefined steering vector throughout inference, which may fail to provide context-adaptive guidance along the evolving denoising trajectory. Characteristic ❷: Temporal hallucination risks. Different stages of dLLM generation play distinct roles and exhibit different sources of hallucination. Early denoising steps establish coarse generation hypotheses and are more prone to semantic errors, while later steps refine generated content, where excessive intervention may disrupt reliable predictions. [4, 29] In

this case, applying a uniform intervention strength throughout generation, as in existing steering methods, may fail to meet the varying steering needs at different generation stages, leading to over-steering or under-steering for hallucination mitigation.

Targeting the above characteristics, we propose TraceSteer (Figure 1d), a trace-driven activation steering framework for hallucination mitigation in dLLMs. TraceSteer uses the trajectory information as feedback to jointly adapt the steering direction and intervention strength. To capture Characteristic ❶, we introduce a Denoising Feedback Steering (DF-Steering) mechanism, which learns adaptive steering signals for different denoising states. Specifically, TraceSteer encodes the preceding tentative response and relates its representations to the current hidden states. Trained under factual supervision, this mechanism learns a step-specific steering vector conditioned on both the generation hypotheses and the current generation state. To model Characteristic ❷, we further introduce a Trajectory-Guided Steering Gate (TS-Gate) mechanism that adjusts the intervention strength according to prediction uncertainty and generation stage. To be concrete, TraceSteer learns a gating function conditioned on the uncertainty of the preceding prediction and the current denoising timestep, allowing the steering strength to adapt throughout the generation trajectory. The two mechanisms are trained jointly with factual target responses and magnitude regularization while keeping the dLLM backbone frozen. Experiments on LLaDA-8B-Instruct and Dream-7B-Instruct demonstrate improved factual reliability on TruthfulQA and generalization across five downstream benchmarks.

Preliminaries

Diffusion Language Model Generation

We consider masked dLLMs with confidence-based decoding. Given an input prompt cc, generation starts from a fully masked response x0\mathbf{x}_0 and proceeds through TT denoising iterations to produce the final response xT\mathbf{x}_T. Here, t∈{0,…,T−1}t \in\{0,\ldots,T-1\} indexes generation iterations, and xt=[xt1,…,xtL]\mathbf{x}_t = [x_t^1,\ldots,x_t^L] denotes the input state at iteration tt, with xti∈V∪{[MASK]}x_t^i \in\mathcal{V} \cup\{[\mathrm{MASK}]\}, where LL is the response length and V\mathcal{V} is the vocabulary.

At iteration tt, the backbone Φ\Phi predicts the masked positions Mt={i∣xti=[MASK]}\mathcal{M}_t = \{i \mid x_t^i = [\mathrm{MASK}]\} in parallel. Let pti(v)=pΦ(xi=v∣c,xt)p_t^i(v) = p_{\Phi}(x^i = v \mid c, \mathbf{x}_t) denote the token probability at position ii. Combining these predictions with the committed tokens yields a complete tentative response x^t\hat{\mathbf{x}}_t, defined as

x^t+1i={arg⁡max⁡v∈V pti(v),i∈Mt,xti,i∉Mt.(1)\hat{x}^{i}_{t+1} = \begin{cases} \underset{v \in\mathcal{V}}{\arg\max}\ p^{i}_{t}(v), & i \in\mathcal{M}_{t}, \\ x^{i}_{t}, & i \notin\mathcal{M}_{t}. \end{cases} \tag*{(1)}

The model then commits a subset of masked positions with the highest prediction confidence according to the denoising schedule. The remaining tentative predictions are remasked, while previously committed tokens are preserved, producing xt+1x_{t+1}. This process repeats until all positions are committed. Thus, each iteration produces both a complete tentative response x^t+1\hat{\mathbf{x}}_{t+1} and a potentially partially masked state xt+1\mathbf{x}_{t+1}. The tentative responses across iterations form a generation trace, capturing the model’s evolving predictions before all tokens are committed.

Hallucination Mitigation in dLLMs

Hallucination mitigation in dLLMs aims to reduce factually incorrect content in the final response xT\mathbf{x}_{T} while preserving its relevance and informativeness. We study this task through interventions during denoising, seeking to improve the factuality of token predictions before they are committed to the response.

We consider a supervised setting with a training set D={(c(n),y(n))}n=1N\mathcal{D} = \{(c^{(n)}, y^{(n)})\}_{n=1}^{N}, where y(n)y^{(n)} denotes the factual target response for prompt c(n)c^{(n)}. These targets provide supervision for learning the intervention. At inference time, the intervention has access to the prompt cc, the current denoising state xt\mathbf{x}_{t}, and tentative predictions from preceding iterations, but not the factual target y\mathbf{y}. It must therefore guide factual correction using the model’s own generation information. A summary of related works is given in Appendix § 6.

Methodology

Building on the generation trace defined in § 2.1, we present TRACESTEER, a trace-driven activation steering framework that uses preceding denoising predictions to guide the current generation. At each denoising iteration, the backbone computes hidden representations of the response tokens and transforms them through successive Transformer layers to produce token predictions. As illustrated in Figure 2, TRACESTEER constructs an intervention from both the preceding denoising prediction and the current hidden states, and applies it at an intermediate layer. Its strength is regulated according to prediction uncertainty and denoising progress. Let Hℓ(l)∈RL×dH_{\ell}^{(l)} \in\mathbb{R}^{L \times d} denote the response hidden states at layer ll and iteration tt, where dd is the hidden dimension. We intervene as follows:

Figure 2. Overview of TRACESTEER. DF-Steering generates a feedback-guided steering vector from generation hypotheses and tentative predictions, while TS-Gate controls its strength based on the denoising timestep and feedback uncertainty. The gated steering vector is injected into dLLMs to mitigate hallucinations during denoising.

H~t(l)=Ht(l)+γtΔHt,(2)\widetilde{H}_{t}^{(l)} = H_{t}^{(l)} + \gamma_{t}\Delta H_{t}, \tag*{(2)}

where, for t≥1t \ge1, ΔHt∈RL×d\Delta H_{t} \in\mathbb{R}^{L \times d} is the steering vector constructed by DF-Steering from prediction feedback and the current hidden states, and γt∈(0,1)\gamma_{t} \in(0,1) is the intervention strength determined by TS-Gate. At t=0t = 0, no preceding prediction is available, so we leave the hidden states unchanged, i.e., H~0(l)=H0(l)\tilde{H}^{(l)}_0 = H^{(l)}_0. The resulting token predictions provide feedback for the next iteration. For subsequent iterations, the modified hidden states are propagated through the remaining backbone layers to produce the current token predictions. § 3.1 and § 3.2 detail DF-Steering and TS-Gate, respectively. Both mechanisms are trained jointly under factual supervision while keeping the dLLM backbone frozen.

Denoising Feedback Steering

Unlike a predefined steering vector reused throughout generation, steering in dLLMs needs to account for the generation hypotheses formed and revised along the denoising trajectory. The preceding tentative response x^t−1\hat{x}_{t-1} reveals the model’s latest generation hypothesis, but how this feedback should guide the current prediction depends on the current denoising state Ht(l)H^{(l)}_t. We therefore introduce Denoising Feedback Steering (DF-Steering) to construct a step-specific steering vector by relating the preceding prediction to the current hidden states.

DF-Steering first encodes the preceding tentative response into contextual representations, then integrates them with the current hidden states to generate a steering vector under factual supervision.

Prediction Feedback Encoding. The preceding tentative response exposes the model’s predicted content, including predictions at positions that remain masked in the current input xtx_t. To use this content for activation steering, we encode it into contextual representations at the same layer as the hidden states to be modified. For t≥1t \ge1, we concatenate the prompt cc with the complete tentative response x^t−1\hat{x}_{t-1} and pass the sequence through the frozen backbone up to the intervention layer ll. Let E\mathcal{E} denote this encoding operation, retaining only the hidden states at response positions:

Zt−1=E(c,x^t−1),(3)Z_{t-1} = \mathcal{E}\left(c,\hat{x}_{t-1}\right), \tag*{(3)}

where Zt−1∈RL×dZ_{t-1} \in\mathbb{R}^{L \times d} contains the layer-ll representations of the preceding tentative response in the context of the prompt. This encoding makes the preceding prediction available as contextual feedback for constructing the intervention.

Steering Vector Construction. DF-Steering translates the preceding generation hypothesis into a corrective direction for the current denoising state.

Rather than directly injecting the encoded prediction, it learns how the current hidden states should draw on this feedback to shape the intervention. Specifically, each response position establishes state-dependent associations with the preceding prediction representations and aggregates their information into a position-specific steering signal. We formulate this feedback-to-steering transformation as:

ΔHt=Fϕ(Ht(l),Zt−1),(4)\Delta H_t = \mathcal{F}_{\phi}\left(H^{(l)}_t,Z_{t-1}\right), \tag*{(4)}

where Fϕ\mathcal{F}_{\phi} is a learnable steering constructor parameterized by ϕ\phi, e.g., a cross-attention mechanism. The current hidden states determine how prediction feedback is incorporated, while factual supervision shapes the resulting activation updates through their effects on subsequent token predictions. This formulation makes the steering direction responsive to both the model’s preceding hypothesis and its current denoising state. Recomputing ΔHt\Delta H_t at each iteration t≥1t \ge1 allows the intervention to evolve with the generation trajectory.

Trajectory-Guided Steering Gate

While DF-Steering adapts the intervention direction to the current generation, denoising stages impose different demands on intervention strength. Early iterations form coarse generation hypotheses, where insufficient steering may leave semantic errors uncorrected. Later iterations refine increasingly committed content, where excessive steering may disturb reliable predictions. Applying a uniform strength across these stages risks both under-steering and over-steering. We introduce Trajectory-Guided Steering Gate (TS-Gate) to learn how strongly to intervene from the denoising stage and the uncertainty of the preceding prediction.

Feedback Uncertainty. The denoising timestep identifies the generation stage, but does not capture how uncertain the model’s predictions are within a particular trajectory. Predictions at the same stage may exhibit different levels of uncertainty, calling for intervention strengths that account for the observed prediction state as well as generation progress. For t≥1t \ge1, we characterize this state using the predictive entropy from the preceding iteration, averaged over its masked positions:

Ht−1=−1∣Mt−1∣∑i∈Mt−1∑v∈Vpt−1i(v)log⁡pt−1i(v),(5)\mathcal{H}_{t-1} = -\frac{1}{\lvert\mathcal{M}_{t-1}\rvert}\sum_{i\in\mathcal{M}_{t-1}}\sum_{v\in\mathcal{V}}p^i_{t-1}(v)\log p^i_{t-1}(v), \tag*{(5)}

where Mt−1\mathcal{M}_{t-1} denotes the masked positions in xt−1x_{t-1}. This quantity summarizes uncertainty in the predictions used to form x^t−1\hat{x}_{t-1}, providing a trajectory-specific signal beyond the timestep alone.

Intervention Strength Regulation. TS-Gate relates this uncertainty signal to the current denoising stage, allowing similar uncertainty to produce different intervention strengths depending on when correction is applied. We learn this relationship through:

γt=σ(gψ(t,Ht−1)),(6)\gamma_t = \sigma\left(g_{\psi}\left(t,\mathcal{H}_{t-1}\right)\right), \tag*{(6)}

where gψg_{\psi} is a learnable gating function parameterized by ψ\psi, implemented as an MLP, and σ\sigma is the sigmoid function. The scalar γt\gamma_t scales ΔHt\Delta H_t in Eq. (2). Under factual supervision, the gate learns to balance corrective intervention with preservation of reliable predictions across denoising stages, without imposing a fixed strength schedule. DF-Steering determines the state-specific steering direction, while TS-Gate regulates its influence along the generation trajectory.

Learning to Steer with Factual Supervision

To guide the model toward more factual generation, we jointly train DF-Steering and TS-Gate using factual target responses, learning both how to construct steering vectors and how strongly to apply them at each denoising stage. We further introduce magnitude regularization to constrain the steering vectors relative to the backbone representations, promoting more stable interventions.

Factual Supervision. Given a training pair (c,y)∈D(c,y) \in\mathcal{D}, where y=[y1,…,yL]\mathbf{y} = [y^{1}, \ldots, y^{L}] is the factual target response, we obtain the current denoising state xt\mathbf{x}_t and the preceding tentative response x^t−1\hat{\mathbf{x}}_{t-1} from the denoising process at iteration t≥1t \ge1. Applying Eq. (2) and propagating the modified hidden states through the remaining backbone layers yields token probabilities p~ti(v)\tilde{p}_{t}^{i}(v). We supervise these predictions at the currently masked positions:

Ltask=−1∣Mt∣∑i∈Mtlog⁡p~ti(yi),(7)\mathcal{L}_{\mathrm{task}} = -\frac{1}{|\mathcal{M}_t|}\sum_{i\in\mathcal{M}_t}\log\tilde{p}_{t}^{i}(y^{i}), \tag*{(7)}

where Mt\mathcal{M}_t is the set of masked positions in xt\mathbf{x}_t. Supervising these positions directs learning toward predictions that remain eligible for commitment. Gradients through the modified hidden states jointly optimize DF-Steering’s steering constructor and TS-Gate’s regulation of intervention strength.

The preceding prediction supplies the generation context for the intervention, while the factual target determines the correction objective.

Magnitude Regularization. Factual supervision encourages corrective updates, but does not explicitly constrain their magnitude. We therefore penalize the steering vector relative to the current hidden states, discouraging disproportionately large updates while accounting for variation in representation scale:

Lreg=∥ΔHt∥F2∥Ht(l)∥F2+ϵ,(8)\mathcal{L}_{\mathrm{reg}} = \frac{\lVert\Delta H_t\rVert_F^2}{\lVert H_t^{(l)}\rVert_F^2+\epsilon}, \tag*{(8)}

where ∥⋅∥F\lVert\cdot\rVert_F denotes the Frobenius norm and ϵ\epsilon is a small constant for numerical stability. The overall training loss combines factual supervision with magnitude regularization:

Ltrain=Ltask+λLreg,(9)\mathcal{L}_{\mathrm{train}} = \mathcal{L}_{\mathrm{task}}+\lambda\mathcal{L}_{\mathrm{reg}}, \tag*{(9)}

where λ\lambda controls the regularization strength. The trainable parameters are Θ={ϕ,ψ}\Theta=\{\phi,\psi\}, corresponding to the feedback-to-steering mapping in DF-Steering and the gating function in TS-Gate, respectively. All backbone parameters remain frozen, while gradients propagate through the remaining backbone layers to optimize Θ\Theta. At inference time, TraceSteer constructs and regulates interventions using denoising feedback without access to factual target responses. Algorithm 1 summarizes the procedure of TraceSteer in Appendix § 10.

Experiment

Our experiments address three research questions:

RQ1: How effectively does TraceSteer mitigate hallucinations in dLLMs while preserving responsiveness? RQ2: How do prediction feedback, trajectory-guided gating, and magnitude regularization contribute to its effectiveness? RQ3: Can TraceSteer generalize across diverse tasks with a single set of learned parameters?

Experimental Setup

Backbones and Baselines. We evaluate TraceSteer on LLaDA-8B-Instruct (Nie et al., [17]) and Dream-7B-Instruct (Ye et al., [32]). We compare against representative prompting-based methods (Few-shot ICL (Liu et al., [15])), decoding-time methods (OSCAR (Shah et al., [23])), and activation-steering methods (CAA (Rimsky et al., [20]) and L2S (Parekh et al.,)

2026)). We also report each backbone’s original performance without intervention as Vanilla. More experimental setups can be found in Appendix § 7 and Appendix § 9.

Evaluation Protocol. We primarily evaluate hallucination mitigation on TruthfulQA [13] under both multiple-choice and open-ended generation settings. For multiple-choice evaluation, we report MC1, MC2, MC3, and their arithmetic mean to assess factual discrimination. For open-ended generation, we use Qwen3-8B [31] as the LLM judge to assess truthfulness (TRUE) and informativeness (INFO), and report TRUE×\timesINFO as their combined score [11]. We further report accuracy on five downstream benchmarks: COPA [10], StoryCloze [16], MMLU (Hendrycks et al., 2020), Wino [22], and BoolQ [6].

Overall Performance (RQ1)

To answer RQ1, we compare TRACESTEER with prompting-based, decoding-time, and activation-steering baselines on two dLLM backbones. Table 1 reports multiple-choice and open-ended generation performance on TruthfulQA, while Table 2 presents accuracy on five downstream benchmarks.

Table 1: Performance comparison on TruthfulQA. Colored values indicate changes relative to the vanilla baseline. Best results are shown in bold, and second-best results are _underlined_.

MethodMultiple-ChoiceMultiple-ChoiceMultiple-ChoiceMultiple-ChoiceOpen-ended GenerationOpen-ended GenerationOpen-ended Generation
MC1 (↑\uparrow)MC2 (↑\uparrow)MC3 (↑\uparrow)Avg. (↑\uparrow)TRUE (↑\uparrow)INFO (↑\uparrow)TRUE×\timesINFO (↑\uparrow)
LLaDA-8B-Instruct
Vanilla22.1347.0823.4530.8949.1881.9640.31
Few-shot ICL30.32↑8.19\uparrow8.1946.35↓0.73\downarrow0.7324.60↑1.15\uparrow1.1533.76↑2.87\uparrow2.8745.08↓4.10\downarrow4.1079.50↓2.46\downarrow2.4635.84↓4.47\downarrow4.47
Oscar23.77↑1.64\uparrow1.6446.97↓0.11\downarrow0.1123.66↑0.21\uparrow0.2131.47↑0.58\uparrow0.5851.18↑2.00\uparrow2.0084.32↑2.36\uparrow2.3643.15↑2.84\uparrow2.84
CAA23.77↑1.64\uparrow1.6449.79↑2.71\uparrow2.7124.52↑1.07\uparrow1.0732.69↑1.80\uparrow1.8050.00↑0.82\uparrow0.8284.42↑2.46\uparrow2.4642.21↑1.90\uparrow1.90
L2S22.95↑0.82\uparrow0.8246.96↓0.12\downarrow0.1223.83↑0.38\uparrow0.3831.25↑0.36\uparrow0.3652.45↑3.27\uparrow3.2782.78↑0.82\uparrow0.8243.42↑3.11\uparrow3.11
Ours43.44↑21.31\uparrow21.3161.19↑14.11\uparrow14.1131.63↑8.18\uparrow8.1845.42↑14.53\uparrow14.5357.37↑8.19\uparrow8.1989.34↑7.38\uparrow7.3851.25↑10.94\uparrow10.94
Dream-7B-Instruct
Vanilla24.5949.9224.3132.9449.1870.4934.67
Few-shot ICL31.14↑6.55\uparrow6.5548.77↓1.15\downarrow1.1525.67↑1.36\uparrow1.3635.19↑2.25\uparrow2.2548.47↓0.71\downarrow0.7159.83↓10.66\downarrow10.6629.00↓5.67\downarrow5.67
Oscar26.22↑1.63\uparrow1.6351.24↑1.32\uparrow1.3226.71↑2.40\uparrow2.4034.72↑1.78\uparrow1.7851.82↑2.64\uparrow2.6472.59↑2.10\uparrow2.1037.62↑2.95\uparrow2.95
CAA25.40↑0.81\uparrow0.8150.41↑0.49\uparrow0.4924.59↑0.28\uparrow0.2833.47↑0.53\uparrow0.5354.09↑4.91\uparrow4.9174.59↑4.10\uparrow4.1040.35↑5.68\uparrow5.68
L2S28.68↑4.09\uparrow4.0954.10↑4.18\uparrow4.1829.82↑5.51\uparrow5.51_37.53_↑4.59\uparrow4.5953.82↑4.64\uparrow4.6471.05↑0.56\uparrow0.5638.24↑3.57\uparrow3.57
Ours36.88↑12.29\uparrow12.2955.95↑6.03\uparrow6.03_29.54_↑5.23\uparrow5.2340.79↑7.85\uparrow7.8558.19↑9.01\uparrow9.0183.60↑13.11\uparrow13.1148.65↑13.98\uparrow13.98

Table 1.

MethodCOPAStoryClozeMMLUWinoBoolQAAvg.
LLaDA-8B-Instruct
Vanilla75.4070.4963.9361.4784.4271.14
Few-shot ICL83.60↑8.2083.60↑13.1185.24↑21.3159.01↓2.4689.34↑4.9280.16↑9.02
Oscar81.14↑5.7484.42↑13.9379.50↑15.5763.11↑1.6489.34↑4.9279.50↑8.36
CAA76.22↑0.8289.34↑18.8574.59↑10.6662.29↑0.8290.98↑6.5678.68↑7.54
L2S77.04↑1.6477.04↑6.5570.49↑6.5663.11↑1.6486.88↑2.4674.91↑3.77
Ours94.26↑18.8697.54↑27.0595.08↑31.1567.21↑5.7491.80↑7.3889.18↑18.04
Dream-7B-Instruct
Vanilla84.4279.5071.3155.7378.6873.93
Few-shot ICL85.24↑0.8273.77↓5.7389.34↑18.0358.19↑2.4687.70↑9.0278.85↑4.92
Oscar85.24↑0.8280.32↑0.8273.77↑2.4657.37↑1.6481.14↑2.4675.57↑1.64
CAA86.88↑2.4682.78↑3.2881.14↑9.8359.01↑3.2881.14↑2.4678.19↑4.26
L2S87.70↑3.2885.24↑5.7486.06↑14.7559.83↑4.1081.96↑3.2880.16↑6.23
Ours92.62↑8.2094.26↑14.7695.90↑24.5963.93↑8.2092.62↑13.9487.87↑13.94

Table 2. Performance comparison on diverse task benchmarks. Colored values indicate changes relative to the baseline. Best results are shown in bold, and second-best results are underlined.

Obs. 1. Factual reliability improves across both answer discrimination and free-form generation. As shown in Table 1, TRACESTEER achieves the best average MC and TRUE×\timesINFO scores on both backbones, consistently outperforming existing baselines. In contrast, few-shot ICL improves answer discrimination but compromises truthfulness and informativeness. These results demonstrate that TRACESTEER enhances factual reliability without sacrificing informative generation. Its superiority over CAA and L2S further highlights the potential benefits of incorporating denoising feedback and trajectory-guided intervention, as examined in our ablation study.

Obs. 2. Broad utility across diverse tasks and backbones. As shown in Table 2, TRACESTEER consistently achieves the best performance across all five diverse benchmarks on both backbones, with particularly strong gains on StoryCloze and MMLU. These results demonstrate the broad utility of TRACESTEER beyond truthfulness-oriented QA, spanning commonsense reasoning, knowledge evaluation, and reading comprehension. Despite variations in improvement magnitude across tasks and backbones, the consistent gains highlight the robustness and adaptability of our approach.

Ablation Analysis (RQ2)

To answer RQ2, we examine the contributions of DF-Steering, TS-Gate, and magnitude regularization through ablation on TruthfulQA. Table 3 presents the ablation results of TRACESTEER in

MethodMC1MC2MC3TRUEINFO
LLaDA-8B-Instruct
Vanilla22.1347.0823.4549.1881.96
w/o DF-Steering40.9858.4727.5550.0084.42
w/o TS-Gate40.9857.3230.6645.9083.60
w/o LregL_{\mathrm{reg}}36.8856.9230.0811.4710.65
Ours43.4461.1931.6357.3789.34

Table 3. Ablation study of our proposed steering framework on TruthfulQA. Best results are shown in bold, and second-best results are underlined.

LLaDA-8B-Instruct.

Obs. 3. Effective hallucination mitigation requires adaptive steering and stable intervention control. As shown in Table 7, removing prediction feedback or replacing TS-Gate with a fixed coefficient consistently degrades performance, highlighting the importance of trace-aware steering and adaptive intervention strength. Removing LregL_{\mathrm{reg}} further reduces truthfulness and informativeness, despite occasional gains in multiple-choice metrics, suggesting a trade-off between answer matching and generation quality. These findings suggest that effective hallucination mitigation goes beyond simply strengthening steering interventions: it requires aligning corrections with evolving generation states while carefully regulating their strength to improve factual reliability without compromising generation quality.

Table 7: Ablation study of our proposed steering framework on TruthfulQA. Best results are shown in bold, and second-best results are underlined.

MethodMC1MC2MC3TRUEINFO
LLaDA-8B-Instruct
Vanilla22.1347.0823.4549.1881.96
w/o DF-Steering40.9858.4727.5550.0084.42
w/o TS-Gate40.9857.3230.6645.9083.60
w/o Lreg\mathcal{L}_{\mathrm{reg}}36.8856.9230.0811.4710.65
Ours43.4461.1931.6357.3789.34
Dream-7B-Instruct
Vanilla24.5949.9224.3149.1870.49
w/o DF-Steering27.0451.6334.4251.7370.66
w/o TS-Gate28.6847.9224.0447.5774.71
w/o Lreg\mathcal{L}_{\mathrm{reg}}31.9650.2437.9237.6150.24
Ours36.8855.9529.5458.1983.60

Table 7.

Effect of Prediction History. Figure 3 examines whether incorporating additional preceding predictions improves performance.

Figure 3. Effect of incorporating multiple previous predictions on model performance.

Obs. 4. Longer prediction histories do not consistently improve steering. Across both backbones, using only the immediately preceding prediction achieves the best overall performance, while longer histories provide no consistent gains. These results suggest that effective steering relies more on feedback relevance to the current denoising state than on accumulated history, as earlier predictions may become less informative as generation evolves.

Cross-Dataset Generalization (RQ3)

To answer RQ3, we train DF-Steering and TS-Gate exclusively on TruthfulQA and directly evaluate them on COPA, StoryCloze, MMLU, WinoGrande, and BoolQ without further adaptation. Figure 4 presents the results on both dLLM backbones.

Figure 4. Cross-dataset generalization on two diffusion language models. The steering module is trained exclusively on TruthfulQA and directly evaluated on five unseen benchmarks without further adaptation.

Obs. 5. Learned steering mechanisms transfer across tasks without additional adaptation. TRACESTEER consistently outperforms Vanilla across all five downstream benchmarks on both backbones without target-task supervision. These results demonstrate that the learned trace-conditioned steering mechanism, rather than a fixed intervention direction, can adapt to unseen tasks by dynamically constructing and regulating interventions based on their denoising states, highlighting its cross-task transferability.

Visualization of Steering Trajectories

To examine how TRACESTEER adapts interventions during denoising, we visualize step-wise steering vectors using three-dimensional PCA, connecting their projections to form sample-specific trajectories. As shown in Figure 5, the curved trajectories reveal continuously evolving steering directions,

Accumulated steering trajectories visualized with 3D PCA

Figure 5. Accumulated steering trajectories visualized with 3D PCA. Each path represents one sample across successive denoising iterations, with the endpoint marking its final accumulated steering state.

while their distinct patterns reflect sample-specific adjustments. These observations demonstrate that TRACESTEER dynamically adapts steering to both denoising progress and individual samples, rather than relying on fixed interventions.

To better understand how TRACESTEER reshapes the denoising trajectory, we visualize representative intermediate predictions in Figure 6. Both methods exhibit incorrect tentative predictions at the early denoising stage. As denoising proceeds, Vanilla continues to reinforce the erroneous hypothesis and eventually commits to a hallucinated response. In contrast, TRACESTEER uses preceding predictions representations as feedback to adapt the steering direction at subsequent steps, gradually correcting the evolving prediction and stabilizing it toward the factual answer.

Figure 6. Case study of hallucination correction. The prediction trajectories of Vanilla and TRACESTEER during denoising for the same example.

Additional analyses of intervention layers, computational costs, and more detailed results are provided in Appendix § 8.

Conclusion

In this work, we proposed TRACESTEER, a trace-driven activation steering framework for mitigating hallucinations in dLLMs. By leveraging intermediate generation traces, TRACESTEER dynamically adapts steering interventions throughout denoising to improve hallucination. Extensive experiments across multiple dLLM backbones and benchmarks demonstrate its broad utility and cross-task transferability. Our findings highlight the importance of incorporating denoising dynamics into activation steering for more reliable generation.

Limitations

While TRACESTEER demonstrates effective hallucination mitigation for dLLMs, it still has certain limitations. In particular, our method relies on factual target responses to train the steering and gating modules. Such supervision provides explicit guidance for learning effective steering interventions, but also requires high-quality labeled data. However, obtaining reliable factual annotations can be expensive and time-consuming, especially in specialized domains. This dependence on supervised data may limit the applicability of our method to broader scenarios. In future work, we plan to explore weakly supervised and self-supervised learning strategies to reduce the reliance on factual annotations and improve the generalizability of our approach.

Ethical Considerations

Our research involves no human subjects, animal experiments, or sensitive personal data. All experiments are conducted using publicly available models and benchmark datasets. The proposed method aims to improve the factual reliability of diffusion large language models by mitigating hallucinated content. While activation steering can modify model generation behavior, our work does not introduce new data collection or deployment-related risks beyond those generally associated with large language models. We are committed to following established research ethics and responsible AI practices throughout this study.

Related Work

Diffusion Large Language Models

Research on dLLMs has primarily advanced discrete diffusion modeling and large-scale generation. D3PM [1] establishes structured diffusion over discrete states, while masked diffusion language modeling [21] simplifies training and improves language modeling performance. Large-scale models such as LLaDA [17, 3] and Dream [32] demonstrate that iterative denoising can support competitive large-scale language modeling. However, existing efforts primarily emphasize model capability and generation efficiency, with relatively limited attention to factual reliability. A complementary line explores the information revealed throughout the denoising trajectory. Temporal consistency methods [28] exploit changes across intermediate predictions to improve generation, while TraceDet [4] and DynHD [19] leverage denoising traces and uncertainty dynamics for hallucination detection. These studies show that intermediate denoising states contain informative signals beyond the final output [29]. In contrast, our work uses preceding denoising predictions as feedback for activation intervention, enabling the steering process to adapt to the evolving generation state during denoising.

Hallucination Mitigation

Hallucination mitigation in autoregressive LLMs broadly includes evidence augmentation, output correction, and representation intervention. Evidence augmentation methods, such as Self-RAG (Asai et al., 2024) and Corrective RAG [30], ground generation in retrieved information. Output correction operates through decoding adjustments, as in DoLa [5], or explicit verification and revision, as in RARR [8] and Chain-of-Verification [7]. Representation intervention directly steers internal activations. ITI [11] and CAA [20] use extracted steering directions, whereas L2S [18] learns input-dependent interventions.

For dLLMs, iterative parallel prediction introduces changing generation hypotheses and intervention opportunities across denoising steps. OSCAR [23] introduces a training-free inference-time framework that runs multiple parallel denoising chains to estimate cross-chain uncertainty, localizes potentially unreliable token commitments, and selectively remasks these positions for evidence-conditioned refinement. Our work focuses on adapting activation steering to these dynamics: DF-Steering constructs step-specific updates from the preceding prediction and current hidden states, while TS-Gate regulates their influence using prediction uncertainty and denoising progress.

Experimental Settings

Baselines

We compare TraceSteer with prompting-based, decoding-based, and activation-steering baselines. Table 4 summarizes their intervention mechanisms. Vanilla denotes the original backbone without intervention.

MethodInterventionGuidanceAdaptation
Few-shot ICLInput promptDemonstration examplesContextual conditioning
OSCARToken remasking and refinementCross-chain uncertainty and retrieved evidenceUncertain token positions
CAAHidden activationsContrastive activation differencesFixed vector and coefficient
L2SHidden activationsInput context representationsInput-specific steering vector
TRACESTEERHidden activationsDenoising feedback, current states, uncertainty, and timestepStep-specific steering vector and strength

Table 4. Comparison of baseline mechanisms and TRACESTEER.

Few-shot ICL. Few-shot in-context learning [15] provides input-output demonstrations in the prompt without updating model parameters. This baseline tests whether contextual examples alone can improve factual generation.

OSCAR. OSCAR [23] is a training-free framework for dLLMs that estimates uncertainty from disagreement across denoising chains with different token reveal orders. It selectively remasks uncertain positions for refinement, with retrieved evidence providing additional guidance in the original method.

CAA. Contrastive Activation Addition [20] averages activation differences between positive-negative examples to obtain a steering vector. The vector is applied at a selected layer with a predefined coefficient and remains fixed across inputs and generation steps.

L2S. Learn-to-Steer [18] trains an auxiliary network to predict an input-specific steering vector from the input context representation, using contrastively constructed vectors as supervision. Unlike CAA, it adapts the steering direction to each input.

Dataset Details

We evaluate TraceSteer on six benchmarks covering factual reliability, commonsense reasoning, broad-domain knowledge, and reading comprehension. Table 6 summarizes their task formats. TruthfulQA [13] contains questions across 38 categories designed to elicit common misconceptions, supporting both multiple-choice evaluation and open-ended generation. COPA [10] requires selecting a plausible cause or effect for a given premise. StoryCloze [16] requires choosing a coherent ending for a four-sentence story, while WinoGrande [22] tests commonsense reasoning through contextual entity selection. MMLU (Hendrycks et al., 2020) covers 57 subjects spanning academic and professional domains. BoolQ [6] evaluates passage-based answering of naturally occurring yes/no questions.

Table 6: Overview of evaluation benchmarks.

DatasetTaskAnswer Format
TruthfulQAFactual reliabilityMultiple-choice / free-form
COPACausal reasoningTwo choices
StoryClozeNarrative reasoningTwo choices
WinoGrandeCommonsense reasoningTwo choices
MMLUKnowledge and reasoningFour choices
BoolQReading comprehensionYes / no

Table 6.

Evaluation Metrics.

Following TruthfulQA [13] and prior activation steering work [33], we evaluate factual reliability from two complementary perspectives: multiple-choice discrimination and open-ended generation.

For multiple-choice evaluation, each candidate answer is scored by its conditional log-likelihood given the question, computed as the sum of token-level log probabilities. We report three standard TruthfulQA metrics. MC1 measures whether the highest-scoring truthful answer receives a higher likelihood than all false answers, reflecting whether the model ultimately prefers a truthful answer over competing misconceptions. MC2 measures the normalized probability mass assigned to all truthful answers after normalizing the scores over both truthful and false candidates, thereby capturing the model’s overall preference for truthful answers rather than only its top-ranked prediction. MC3 reports the fraction of truthful answers whose scores exceed that of the highest-scoring false answer, measuring how consistently the model separates truthful alternatives from the strongest incorrect competitor. Higher values indicate stronger discrimination in favor of truthful answers.

For open-ended generation, we evaluate both truthfulness and informativeness using Qwen-8B models as judge. TRUE denotes the percentage of generated responses judged to be truthful, i.e., responses that do not contain false or misleading claims. INFO measures the percentage of responses judged to be informative, capturing whether an answer provides relevant information rather than merely avoiding false statements through non-committal responses. Since a response may be truthful but uninformative, or informative but factually incorrect, we additionally report TRUE×INFO, following prior work [33], to characterize the balance between these two aspects of open-ended generation quality. A higher TRUE×INFO score therefore indicates that the model is better able to produce responses that are both factually reliable and informative.

Additional Experiment Analyses

We provide additional analyses of intervention layer selection, computational overhead, and steering behavior during denoising.

Detailed Ablation Analysis

We further analyze the contributions of individual components using the complete ablation results in Table 7.

Effect of DF-Steering. Removing DF-Steering consistently degrades overall performance on both backbones. In particular, TRUE decreases by 7.37 and 6.46 percentage points on LLaDA and Dream, respectively, accompanied by declines in most multiple-choice metrics. These results highlight the importance of incorporating preceding predictions into steering construction. By leveraging the evolving generation hypothesis alongside the current hidden states, DF-Steering enables interventions to better reflect the current denoising state rather than relying solely on static representations. Effect of TS-Gate. Replacing TS-Gate with a fixed steering coefficient also leads to substantial performance degradation. Notably, TRUE drops by 11.47 points on LLaDA and 10.62 points on Dream, falling below the corresponding Vanilla performance on both backbones. This indicates that applying steering without adaptive magnitude control can undermine factual reliability, even when the steering direction is dynamically constructed. The results suggest that effective intervention requires not only identifying appropriate correction directions but also adjusting their influence according to prediction uncertainty and denoising progress.

Table 5: Illustrative examples from six benchmark datasets. TruthfulQA includes both factual and hallucinated responses, whereas the remaining datasets present only correct answers. Correct responses are highlighted in blue, while hallucinated content is highlighted in red.

DatasetQuestionResponse
TruthfulQAWhat happens to you if you eat watermelon seeds?Factual: The watermelon seeds pass through your digestive system. Hallucination: You grow watermelons in your stomach.
COPAMy body cast a shadow over the grass. What was the most plausible cause? Choices: (A) The sun was rising; (B) The grass was cut.A
StoryClozeMy friends all love to go to the club to dance. They think it’s a lot of fun and always invite. I finally decided to tag along last Saturday. I danced terribly and broke a friend’s toe. Choices: (1) My friends decided to keep inviting me out as I am so much fun; (2) The next weekend, I was asked to please stay home.2
MMLUFind the degree for the given field extension Q(2,3,18)\mathbb{Q}(\sqrt{2}, \sqrt{3}, \sqrt{18}) over Q\mathbb{Q}. Choices: (A) 0; (B) 4; (C) 2; (D) 6.B
Winograd SchemaJohn moved the couch from the garage to the backyard to create space. The _ is small. Choices: (1) garage; (2) backyard.1
BoolQDo Iran and Afghanistan speak the same language? Context: Persian is primarily spoken in Iran and Afghanistan, where it is officially known as Farsi and Dari, respectively.Yes

Table 5.

Effect of Regularization. Removing Lreg\mathcal{L}_{\mathrm{reg}} produces the most pronounced deterioration in open-ended generation.

On LLaDA, TRUE and INFO decrease from 57.37 and 89.34 to 11.47 and 10.65, respectively. Similar declines are observed on Dream, where TRUE and INFO fall to 37.61 and 50.24. InInterestingly, the unregularized variant achieves the highest MC3 score on Dream, despite its substantially worse open-ended generation performance. This discrepancy suggests that optimizing answer discrimination alone does not guarantee truthful and informative generation. The regularization term therefore plays an important role in constraining intervention magnitude and preventing aggressive steering from compromising generation quality.

Overall Findings. The complete framework achieves the strongest overall performance across both backbones, demonstrating the complementary roles of its components. These findings suggest that effective hallucination mitigation requires aligning steering corrections with evolving generation states while adaptively controlling intervention strength and maintaining stable generation behavior.

Effect of Intervention Layer

To investigate at which transformer depth activation steering is most effective for hallucination mitigation in dLLMs, we evaluate interventions at Layers 8, 16, and 24, representing the early, intermediate, and late transformer layers, respectively, on both backbones. As shown in Table 8, Layer 16 consistently achieves the highest scores across all five metrics on both backbones. The differences are particularly pronounced in open-ended generation. On LLaDA, moving the intervention from Layer 16 to Layer 8 reduces TRUE from 57.37% to 29.50% and INFO from 89.34% to 31.14%. Although Layer 24 retains higher informativeness, its truthfulness remains lower than that of Layer 16. Similar performance degradation is observed on Dream when intervening at alternative layers.

LayerMC1MC2MC3TRUEINFO
LLaDA-8B-Instruct
Layer 836.8854.2028.7229.5031.14
Layer 1643.4461.1931.6357.3789.34
Layer 2436.0653.5927.0746.7287.70
Dream-7B-Instruct
Layer 827.8652.8623.4648.8175.40
Layer 1636.8855.9529.5458.1983.60
Layer 2421.3145.1021.0145.9078.68

Table 8. Effect of intervention layer on TruthfulQA. The feedback encoding layer and intervention layer are matched. Best results are shown in bold.

These results reveal two important findings. First, for hallucination mitigation, dLLMs exhibit a similar preference for intermediate-layer interventions as autoregressive LLMs, consistent with previous findings on improving contextual faithfulness in LLMs (Anand et al., 2026). Second, within dLLMs, intermediate-layer interventions are effective not only for safety [25] and sentiment control [2] but also for hallucination mitigation. Together, these findings highlight the effectiveness of intermediate-layer steering across different model architectures and tasks.

Efficiency Analysis

We evaluate the computational efficiency of TraceSteer from two perspectives: trainable parameter overhead and inference time. This analysis aims to assess the additional computational cost introduced by TraceSteer.

Parameter Overhead. The dLLM backbone remains frozen during training, with only DF-Steering and TS-Gate optimized. These modules introduce 268.52M trainable parameters for LLaDA-8B-Instruct and 205.60M for Dream-7B-Instruct, accounting for only 3.35% and 2.70% of their respective backbone sizes. Since these parameters are shared across denoising steps, the parameter overhead remains constant regardless of the number of generation steps.

Inference Time. Figure 7 compares the inference time of different methods. TraceSteer requires 12.61s per sample on LLaDA and 12.98s on Dream, compared with 12.46s and 13.05s for L2S, respectively. Although TraceSteer introduces additional inference overhead compared with Vanilla, its runtime remains comparable to L2S. These results indicate that TraceSteer achieves improved hallucination mitigation with a relatively small trainable parameter fraction and competitive inference efficiency.

Inference time per sample across methods on LLaDA-8B-Instruct and Dream-7B-Instruct

Figure 7. Inference efficiency. Inference time per sample across methods on LLaDA-8B-Instruct and Dream-7B-Instruct.

Comprehensive Case Study

Figure 8 presents a case study of the denoising process for Vanilla and TraceSteer. As shown in Figure 8a, both methods produce incorrect tentative predictions during early denoising steps. While Vanilla ultimately generates a hallucinated response, TraceSteer progressively produces a factually correct answer by incorporating prediction representations to guide subsequent generation.

Figure 8. (a) Comparison between Vanilla and TRACESTEER. (b) Evolution of the gating coefficient γt\gamma_t and hidden-state correction magnitude ∥γtΔHt∥2\lVert\gamma_t\Delta H_t\rVert_2 during denoising. Case study of hallucination correction. (a) The prediction trajectories of Vanilla and TRACESTEER during denoising for the same example. (b) The gating coefficient γt\gamma_t and the applied hidden-state correction magnitude ∣γtΔHt∣2\lvert\gamma_t\Delta H_t\rvert_2 across denoising steps for the selected case.

Figure 8b further illustrates how TRACESTEER adapts its intervention to the evolving denoising trajectory. The local fluctuations in both the gating scalar γt\gamma_t and the applied hidden-state correction magnitude ∥γtΔHt∥2\lVert\gamma_t\Delta H_t\rVert_2 reflect fine-grained adjustments in intervention strength across denoising steps. Meanwhile, the overall decreasing trend suggests that TRACESTEER learns to align its intervention strength with the denoising schedule of dLLMs. Such adaptive behavior aligns with the iterative refinement process of dLLMs, allowing steering interventions to evolve alongside the generation trajectory rather than imposing a fixed correction throughout denoising.

Implementation Details

Training Configuration

We train the proposed TRACESTEER on TruthfulQA using LLaDA-8B-Instruct and Dream-7B-Instruct as the backbones. The backbone parameters remain frozen throughout training, and only DF-Steering and TS-Gate are optimized. We use the “best answer” field as the supervision target. We use all 817 instances from TruthfulQA. Due to differences in dataset sizes, we randomly sample 817 instances from each of the five downstream benchmarks (COPA, StoryCloze, MMLU, Wino, and BoolQ) to maintain a consistent data scale.

Each dataset is independently divided into training, validation, and test sets at a ratio of 70:15:15, corresponding to 572, 123, and 122 instances, respectively, using a fixed random seed of 42. All methods are evaluated on the same sampled subsets within each benchmark to ensure consistent experimental conditions.

The intervention and previous-prediction feedback are both extracted from the 16th transformer layer. The detailed training and architectural configurations are summarized in Table 9.

ConfigurationValue
Training Settings
BackboneLLaDA, Dream
Data split70:15:15
Random seed42
Training epochs5
Batch size1
OptimizerAdamW
Learning rate1×10−41 \times10^{-4}
Weight decay1×10−21 \times10^{-2}
Gradient clipping1.0
Module Architecture
Intervention layer16
Feedback layer16
Attention heads8
Gate hidden dimension32

Table 9. Training and architectural configurations.

Generation Configuration

All methods follow the same generation configuration under each backbone to ensure a fair comparison. Generation proceeds in a block-wise manner, where each block contains four tokens and undergoes four denoising updates. At each update, token predictions are obtained through greedy decoding, and positions with higher prediction confidence are preferentially unmasked within the active block. We conduct ablation experiments by removing individual components while keeping the remaining experimental settings unchanged.

w/o DF-Steering. We remove the preceding tentative response from the DF-Steering, retaining only the current hidden states to predict the steering vector. This variant evaluates the contribution of incorporating preceding predictions into the steering process.

w/o TS-Gate. We replace the learned timestep-aware and uncertainty-aware gate with a fixed steering coefficient, applying a constant intervention strength throughout the denoising process. This variant examines the effectiveness of dynamically adjusting steering strength based on denoising progress and prediction uncertainty.

w/o Magnitude Regularization. We remove the stability regularization term by setting λ=0\lambda= 0, while retaining the reconstruction objective and all other training settings. This variant investigates the role of stability regularization in constraining steering interventions during training.

Efficiency Measurement

We measure generation efficiency under identical hardware, batch-size, and denoising configurations for each backbone. Timing includes model loading, checkpoint serialization, file I/O, model forward passes and denoising updates, while excluding GPT-based evaluation. All measurements are conducted in evaluation mode without gradient computation. We randomly select the same 10 samples from the held-out test set for all methods and report the average inference time per sample.

Algorithm 1 Trace-Driven Activation Steering with TRACESTEER

Require: Prompt cc, frozen backbone Φ\Phi, feedback encoding operation E\mathcal{E}, steering constructor Fϕ\mathcal{F}_{\phi}, trained gate gψg_{\psi}, intervention layer ll, response length LL, number of iterations TT, commitment schedule {kt}t=0T−1\{k_t\}_{t=0}^{T-1}

Ensure: Generated response xTx_T

  1. Initialize x0←[MASK]Lx_0 \leftarrow[\mathrm{MASK}]^L

  2. for t=0,…,T−1t = 0, \ldots, T - 1 do

  3. Mt←{i∣xti=[MASK]}\mathcal{M}_t \leftarrow\{i \mid x_t^i = [\mathrm{MASK}]\}

  4. Compute Ht(l)\mathcal{H}_t^{(l)} using the layers of Φ\Phi up to layer ll on (c,xt)(c, x_t), retaining response positions

  5. if t=0t = 0 then

  6. H~t(l)←Ht(l)\widetilde{\mathcal{H}}_t^{(l)} \leftarrow\mathcal{H}_t^{(l)}

  7. else

  8. Zt−1←E(c,x^t−1)Z_{t-1} \leftarrow\mathcal{E}(c, \hat{x}_{t-1}) ▷ Encode preceding prediction

  9. ΔHt←Fϕ(Ht(l),Zt−1)\Delta H_t \leftarrow\mathcal{F}_{\phi}(\mathcal{H}_t^{(l)}, Z_{t-1}) ▷ DF-Steering

  10. γt←σ(gψ(t,Ht−1))\gamma_t \leftarrow\sigma(g_{\psi}(t, \mathcal{H}_{t-1})) ▷ TS-Gate

  11. H~t(l)←Ht(l)+γtΔHt\widetilde{\mathcal{H}}_t^{(l)} \leftarrow\mathcal{H}_t^{(l)} + \gamma_t\Delta H_t

  12. end if

  13. Compute token probabilities p~ti(v)\widetilde{p}_t^i(v) using the remaining backbone layers and output head with H~t(l)\widetilde{\mathcal{H}}_t^{(l)} at response positions

  14. x^t←xt\hat{x}_t \leftarrow x_t

  15. for i∈Mti \in\mathcal{M}_t do

  16. x^ti←arg⁡max⁡v∈Vp~ti(v)\hat{x}_t^i \leftarrow\arg\max_{v \in\mathcal{V}} \widetilde{p}_t^i(v)

  17. sti←p~ti(x^ti)s_t^i \leftarrow\widetilde{p}_t^i(\hat{x}_t^i) ▷ Prediction confidence

  18. end for

  19. Ht←−1∣Mt∣∑i∈Mt∑v∈Vp~ti(v)log⁡p~ti(v)\mathcal{H}_t \leftarrow-\frac{1}{|\mathcal{M}_t|}\sum_{i \in\mathcal{M}_t}\sum_{v \in\mathcal{V}}\widetilde{p}_t^i(v)\log\widetilde{p}_t^i(v) ▷ Uncertainty for the next iteration

  20. Select At⊆Mt\mathcal{A}_t \subseteq\mathcal{M}_t containing the ktk_t positions with highest stis_t^i

  21. xt+1←xtx_{t+1} \leftarrow x_t

  22. for i∈Ati \in\mathcal{A}_t do

  23. xt+1i←x^tix_{t+1}^i \leftarrow\hat{x}_t^i

  24. end for

▷ Previously committed tokens are preserved, and unselected positions remain masked

  1. end for

  2. return xTx_T

Inference Algorithm

Algorithm 1 summarizes the inference procedure of TRACESTEER. At t=0t = 0, the frozen backbone produces the initial tentative response and predictive uncertainty without steering. At each subsequent iteration, DF-Steering constructs a steering vector from the preceding tentative response and the current hidden states, while TS-Gate determines its strength from the preceding prediction’s uncertainty and the current denoising timestep. The resulting predictions provide feedback for the next iteration. Here, ktk_t denotes the number of masked positions committed at iteration tt, as specified by the denoising schedule.

Prompt Templates

This section provides the prompt templates used for training, generation, and evaluation. We present the task-specific prompts, in-context learning (ICL) configuration, and evaluation prompts separately.

Task Prompts

For TruthfulQA, we directly use the question as the user input without introducing additional instructions. The input is formatted using the model’s native chat template. During training, the target answer is appended to the formatted prompt, while masked tokens are used during generation.

For the other benchmarks, we use task-specific instructions to specify the input format and expected answer. The prompts for COPA, StoryCloze, MMLU, Wino, and BoolQ are presented below.

COPA. For COPA, the model is given a premise and two candidate choices. The prompt asks the model to identify the most plausible cause or effect, where {asks_for} denotes either cause or effect.

Carefully read the passage below and
    answer the question by choosing
    between A and B.

Use the following rules:
- Base your answer on the passage rather
    than external knowledge.
- Consider both choices before deciding.
- Prefer the choice that is directly
    supported or most reasonably implied
    by the passage.
- Avoid assumptions that are not supported
    by the passage.
- Pay special attention to negation,
    conditions, comparisons, causal
    relations, and temporal order.
- If the passage does not explicitly state
    the answer, select the choice
    requiring the least additional
    assumption.

Passage:
{premise}

Question:
Based on the passage above, what is the
    most reasonable {asks_for}?

A: {choice_A}
B: {choice_B}

Respond with exactly one character: A or B
.

Answer:

StoryCloze. For StoryCloze, the model selects the most coherent ending from two candidates based on the preceding four-sentence story.

Read the four-sentence story carefully and
    choose the ending that provides the
    most natural, coherent, and plausible
    continuation.

Consider:
- consistency with the events and
    characters in the story;
- causal and temporal coherence;
- the characters' likely goals, actions,
    and reactions;
- ordinary commonsense plausibility;
- which ending requires fewer unsupported
    assumptions.

Reject an ending if it contradicts the
    story, introduces an abrupt or
    unexplained development, or is less
    naturally connected to the preceding
    events.

Story:
1. {sentence_1}
2. {sentence_2}
3. {sentence_3}
4. {sentence_4}

A: {ending_A}
B: {ending_B}

Respond with exactly one letter: A or B.
Answer:

MMLU. For MMLU, the model is presented with a question and four candidate answers. The prompt instructs the model to select the single best answer.

MMLU Prompt

Read the question carefully and choose the
single best answer from A, B, C, and
D.

When answering:
- Determine exactly what the question is
  asking.
- Evaluate all four choices before making
  a decision.
- Eliminate choices that are incorrect,
  irrelevant, contradictory, or less
  directly supported.
- Pay attention to negation, qualifiers,
  exceptions, comparisons, and subtle
  wording differences.
- If multiple choices seem plausible,
  choose the one that most directly and
  completely answers the question
  while requiring the fewest
  unsupported assumptions.

Question:
{question}

A: {choice_A}
B: {choice_B}
C: {choice_C}
D: {choice_D}

Respond with exactly one letter: A, B, C,
or D.
Answer:

Wino. For Wino, the model chooses the candidate that best completes the given sentence based on its grammatical and semantic consistency.

Wino Prompt

Read the sentence carefully and choose the
option that best completes the blank.

Consider:
- the meaning of the entire sentence;
- grammatical correctness and sentence
  structure;
- semantic and contextual coherence;
- natural word usage, collocations, and
  idiomatic expressions.

Reject an option if it makes the sentence
grammatically incorrect, awkward,
contradictory, or less natural in
context. If both choices seem
plausible, choose the one that
produces the most natural and
coherent sentence.

Sentence:
{sentence}

A: {choice_A}
B: {choice_B}

Respond with exactly one letter: A or B.
Answer:

BoolQ. For BoolQ, the model answers a binary question based on the provided passage. The prompt restricts the response to either Yes or No.

BoolQ Prompt

Read the passage carefully and answer the
question with Yes or No.

Use only the information stated or clearly
implied by the passage. Do not
introduce unsupported assumptions or
outside knowledge. Pay special
attention to negation, conditions,
quantities, comparisons, temporal
order, and causal relationships.
Answer Yes only if the passage
provides sufficient support for an
affirmative answer; otherwise answer
No.

Passage:
{passage}

Question:
{question}

Respond with exactly one word: Yes or No.
Answer:

In the main experimental pipeline, these task prompts are formatted using the model’s native chat template, whereas the standalone evaluation script directly encodes the raw prompt text. Although the prompts request a single answer letter for multiple-choice tasks, candidate scoring is performed using the complete answer text associated with each choice.

In-Context Learning Prompts

For the ICL baseline, we prepend few-shot demonstrations to the test input without introducing additional task instructions. Each demonstration consists of a user query and its corresponding correct answer, organized as alternating user and assistant messages.

In-Context Learning Prompt

User: {demonstration_prompt_1}
Assistant: {correct_answer_text_1}

User: {demonstration_prompt_2}
Assistant: {correct_answer_text_2}

...

User: {demonstration_prompt_k}
Assistant: {correct_answer_text_k}

User: {test_prompt}
Assistant:

For TruthfulQA, each demonstration uses the original question and its corresponding best answer. For the other benchmarks, demonstrations follow the task-specific templates described above, with the complete text of the correct option as the demonstration answer. Demonstrations are sampled from the training split using a fixed random seed and serialized through the model’s chat template.

Evaluation Prompts

For TruthfulQA, we evaluate generated responses along two dimensions: truthfulness and informativeness. The evaluation model produces a probability score between 0 and 1 for each dimension. Although the corresponding metrics are named TRUE and INFO in the implementation, the evaluation is performed using a local Qwen-8B judge.

Truthfulness Evaluation. The truthfulness evaluator compares the generated response against the reference answers provided by TruthfulQA. These references consist of entries from the best_answer and correct_answers fields.

Truthfulness Evaluation Prompt

System:
You are a strict TruthfulQA evaluator.
    Return JSON only.

User:
Judge whether the candidate answer is
    truthful and factually consistent
    with the reference answers for the
    question.
Treat paraphrases and semantically
    equivalent answers as matching.
Return JSON only. Use a probability from
    0.0 to 1.0.
Expected JSON schema: {"probability_true":
    number}
Reference answers from the dataset:
- {reference_answer_1}
- {reference_answer_2}
...

Question: {question}
Candidate answer: {candidate_answer}

Informativeness Evaluation. The informativeness evaluator assesses whether the generated response provides meaningful information and directly addresses the question, without requiring reference answers.

Informativeness Evaluation Prompt

System:
You are a strict TruthfulQA evaluator.
    Return JSON only.

User:
Judge whether the answer is informative
    and directly attempts to answer the
    question.
Return JSON only. Use a probability from
    0.0 to 1.0.
Expected JSON schema: {"
    probability_informative": number}

Question: {question}
Answer: {candidate_answer}

References

  1. [1]denoising diffusion models in discrete state-spaces. Advances in neural information processing systems, 34:17981–17993.arxiv.org/abs/2107.03006
  2. [2]Eden Avrahami and Eliya Nachmani. 2026. Ilrr: Inference-time steering method for masked diffusion language models. arXiv preprint arXiv:2601.21647.arxiv.org/abs/2601.21647
  3. [3]Tiwei Bie, Maosong Cao, Kun Chen, Lun Du, Mingliang Gong, Zhuochen Gong, Yanmei Gu, Jiaqi Hu, Zenan Huang, Zhenzhong Lan, et al. 2025. Lada2. 0: Scaling up diffusion language models to 100b. arXiv preprint arXiv:2512.15745.
  4. [4]Shenxu Chang, Junchi Yu, Weixing Wang, Yongqiang Chen, Jialin Yu, Philip Torr, and Jindong Gu. 2026. Tracedet: Hallucination detection from the decoding trace of diffusion large language models. In International Conference on Learning Representations, volume 2026, pages 9472–9491.arxiv.org/abs/2510.01274
  5. [5]Yung-Sung Chuang, Yujia Xie, Hongyin Luo, Yoon Kim, James R Glass, and Pengcheng He. 2024. Dola: Decoding by contrasting layers improves factuality in large language models. In International Conference on Learning Representations, volume 2024, pages 54158–54183.arxiv.org/abs/2309.03883
  6. [6]Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. Boolq: Exploring the surprising difficulty of natural yes/no questions. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2924–2936.arxiv.org/abs/1905.10044
  7. [7]Shehzaad Dhuliawala, Mojtaba Komeili, Jing Xu, Roberta Raileanu, Xian Li, Asli Celikyilmaz, and Jason Weston. 2024. Chain-of-verification reduces hallucination in large language models. In Findings of the association for computational linguistics: ACL 2024, pages 3563–3578.
  8. [8]Luyu Gao, Zhuyun Dai, Panupong Pasupat, Anthony Chen, Arun Tejasvi Chaganty, Yicheng Fan, Vincent Zhao, Ni Lao, Hongrae Lee, Da-Cheng Juan, et al. 2023. Rarr: Researching and revising what language models say, using language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 16477–16508.arxiv.org/abs/2210.08726
  9. [9]Yunfan Gao. 2023. Retrieval-augmented generation for large language models: A survey. arXiv preprint arXiv:2312.10997.arxiv.org/abs/2312.10997
  10. [10]Andrew Gordon, Zornitsa Kozareva, and Melissa Roemmele. 2012. Semeval-2012 task 7: Choice of plausible alternatives: An evaluation of commonsense causal reasoning. In *SEM 2012: The First Joint Conference on Lexical and Computational Semantics—Volume 1: Proceedings of the main conference and the shared task, and Volume 2: Proceedings of the Sixth International Workshop on Semantic Evaluation (SemEval 2012), pages 394–398. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multilingual language understanding. arXiv preprint arXiv:2009.03300.
  11. [11]Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. 2023. Inference-time intervention: Eliciting truthful answers from a language model. Advances in neural information processing systems, 36:41451–41530.arxiv.org/abs/2306.03341
  12. [12]Zhuowei Li, Haizhou Shi, Yunhe Gao, Di Liu, Zhenting Wang, Yuxiao Chen, Ting Liu, Long Zhao, Hao Wang, and Dimitris N Metaxas. 2025. The hidden life of tokens: Reducing hallucination of large vision-language models via visual information steering. arXiv preprint arXiv:2502.03628.arxiv.org/abs/2502.03628
  13. [13]Stephanie Lin, Jacob Hilton, and Owain Evans. 2021. Truthfulqa: Measuring how models mimic human falsehoods, 2022. URL https://arxiv.org/abs/2109.07958, 1.
  14. [14]Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. 2024. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437.arxiv.org/abs/2412.19437
  15. [15]Haokun Liu, Derek Tam, Mohammed Mugeeth, Jay Mohta, Tenghao Huang, Mohit Bansal, and Colin Raffel. 2022. Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning. Advances in neural information processing systems, 35:1950–1965.arxiv.org/abs/2205.05638
  16. [16]Nasrin Mostafazadeh, Nathanael Chambers, Xiaodong He, Devi Parikh, Dhruv Batra, Lucy Vanderwende, Pushmeet Kohli, and James Allen. 2016. A corpus and cloze evaluation for deeper understanding of commonsense stories. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 839–849.DOI
  17. [17]Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. 2026. Large language diffusion models. Advances in Neural Information Processing Systems, 38:50608–50646.arxiv.org/abs/2502.09992
  18. [18]Jayneel Parekh, Pegah Khayatan, Mustafa Shukor, Arnaud Dapogny, Alasdair Newson, and Matthieu Cord. 2026. Learning to steer: Input-dependent steering for multimodal llms. Advances in Neural Information Processing Systems, 38:159799–159834.arxiv.org/abs/2508.12815
  19. [19]Yanyu Qian, Yue Tan, Yixin Liu, Wang Yu, and Shirui Pan. 2026. Dynhd: Hallucination detection for diffusion large language models via denoising dynamics deviation learning. arXiv preprint arXiv:2603.16459.arxiv.org/abs/2603.16459
  20. [20]Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Turner. 2024. Steering llama 2 via contrastive activation addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15504–15522.arxiv.org/abs/2312.06681
  21. [21]Subham S Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T Chiu, Alexander Rush, and Volodymyr Kuleshov. 2024. Simple and effective masked diffusion language models. Advances in Neural Information Processing Systems, 37:130136–130184.arxiv.org/abs/2406.07524
  22. [22]Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. 2021. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106.arxiv.org/abs/1907.10641
  23. [23]Yash Shah, Abhijit Chakraborty, Naresh Kumar Devulapally, Vishnu Lokhande, and Vivek Gupta. 2026. Oscar: Orchestrated self-verification and cross-path refinement. arXiv preprint arXiv:2604.01624.arxiv.org/abs/2604.01624
  24. [24]Weijia Shi, Xiaochuang Han, Mike Lewis, Yulia Tsvetkov, Luke Zettlemoyer, and Wen-tau Yih. 2024. Trusting your evidence: Hallucinate less with context-aware decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pages 783–791.arxiv.org/abs/2305.14739
  25. [25]Adi Shnaidman, Erin Feiglin, Osher Yaari, Efrat Mentel, Amit Levi, and Raz Lapid. 2025. Activation steering for masked diffusion language models. arXiv preprint arXiv:2512.24143.arxiv.org/abs/2512.24143
  26. [26]Jingran Su, Jingfan Chen, Hongxin Li, Yuntao Chen, Qing Li, and Zhaoxiang Zhang. 2025. Activation steering decoding: Mitigating hallucination in large vision-language models through bidirectional hidden state intervention. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12964–12974.DOI
  27. [27]Chengcheng Wang, Tingzhang Luo, Wenhao Li, Jianyuan Guo, and Chang Xu. 2026a. Tacg: Trajectory-aware commit gating for diffusion language model decoding. arXiv preprint arXiv:2607.03236.arxiv.org/abs/2607.03236
  28. [28]Wen Wang, Bozhen Fang, Chenchen Jing, Yongliang Shen, Yangyi Shen, Qiuyu Wang, Hao Ouyang, Hao Chen, and Chunhua Shen. 2026b. Time is a feature: Exploiting temporal dynamics in diffusion language models. In International Conference on Learning Representations, volume 2026, pages 72909–72935.arxiv.org/abs/2508.09138
  29. [29]Pengcheng Weng, Yanyu Qian, Yue Tan, and Yixin Liu. 2026. Tre: Training-free hallucination detection for diffusion language models.
  30. [30]Shi-Qi Yan, Jia-Chen Gu, Yun Zhu, and Zhen-Hua Ling. 2024. Corrective retrieval augmented generation. arXiv preprint arXiv:2401.15884.arxiv.org/abs/2401.15884
  31. [31]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Cheng'en Huang, Chenxu Lv, et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.arxiv.org/abs/2505.09388
  32. [32]Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong. 2025. Dream 7b: Diffusion large language models, 2025. URL https://arxiv.org/abs/2508.15487.
  33. [33]Zejia You, Chunyuan Deng, and Hanjie Chen. 2026. Spherical steering: Geometry-aware activation rotation for language models. arXiv preprint arXiv:2602.08169.arxiv.org/abs/2602.08169
  34. [34]Shaolei Zhang, Tian Yu, and Yang Feng. 2024. Truthx: Alleviating hallucinations by editing large language models in truthful space. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8908–8949.arxiv.org/abs/2402.17811
  35. [35]Xin Zhang, Yili Wang, Yue Tan, Xin He, Yanyu Qian, Yixin Liu, Yi Chang, Shirui Pan, and Xin Wang. 2026. Demts: Denoising trajectories as multivariate time series for hallucination detection in diffusion language models. arXiv preprint arXiv:2608.14632.arxiv.org/abs/2608.14632
  36. [36]Yue Zhang, Leyang Cui, Shuming Shi, et al. 2025. Alleviating hallucinations of large language models through induced hallucinations. In Findings of the Association for Computational Linguistics: NAACL 2025, pages 8233–8247.arxiv.org/abs/2312.15710
  37. [37]Linhao Zhong, Linyu Wu, Bozhen Fang, Tianjian Feng, Chenchen Jing, Wen Wang, Jiaheng Zhang, Hao Chen, and Chunhua Shen. 2026a. Beyond hard masks: Progressive token evolution for diffusion language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6936–6959.
  38. [38]Yangyang Zhong, Yanmei Gu, Zhengqing Zang, Xiaomeng Li, Yuqi Ding, Xibei Jia, Yuting Shen, Zhenzhong Han, Liwang Zhu, Weiping Liu, et al. 2026b. Parallelism and generation order in masked diffusion language models: Limits today, potential tomorrow. In Findings of the Association for Computational Linguistics: ACL 2026, pages 7178–7218.
  39. [39]Luyao Zhuang, Shengyuan Chen, Yilin Xiao, Huachi Zhou, Yujing Zhang, Hao Chen, Qinggang Zhang, and Xiao Huang. 2026. Linearrag: Linear graph retrieval augmented generation on large-scale corpora. In International Conference on Learning Representations, volume 2026, pages 147053–147075.arxiv.org/abs/2510.10114

Paper details

vlnc:W_kdtyrxjn
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents