betaFeedback

WorksComputer Science

Temporally-Resolved Token Attribution Reveals the Generation Dynamics of Diffusion Language Models

Abstract

This work presents Diffusion Layer Integrated Gradients (DLIG), a token attribution method for diffusion language models (DLMs) that extends Integrated Gradients (IG~\cite{sundararajan2017axiomatic}) to arbitrary layers and denoising steps. DLIG attributes a DLM's progressive commitment to a self-generated or fixed completion for an input prompt. We establish direct correspondences between DLIG and the IG axioms of completeness, implementation invariance, linearity, and symmetry preservation. As a lightweight complement to interventional analysis, DLIG provides an inexpensive first check of mechanistic hypotheses across the denoising trajectory. We demonstrate this on word-sense disambiguation, multi-hop graph reasoning, and sentence infilling, revealing how DLMs draw on inputs across positions, layers, and denoising steps.

Code: darpanaswal/DLIG Models: 🤗 darpanaswal/DLIG

Introduction

Diffusion language models (DLMs) generate by iterative refinement rather than left-to-right prediction, unmasking a sequence over a trajectory of denoising steps [2, 3]. This changes what it means to explain a generation: the same output token is arrived at gradually and the computation supporting it is distributed over both network depth and denoising time. Explaining a DLM’s output therefore requires locating support not only where in the network it lives but when along the trajectory it forms.

Yet post-hoc attribution for DLMs remains largely unaddressed. A recent taxonomy formalizes what an attribution contract for iterative generation should provide [4], but no concrete method instantiates one: existing token-attribution tools carry no notion of a denoising step, while DLM interpretability has primarily adapted expensive interventional analyses such as causal tracing [5].

We close this gap with Diffusion Layer Integrated Gradients (DLIG). DLIG scores the model’s commitment to its self-generated completion at a chosen layer and denoising step, and attributes that score to the prompt by integrating gradients along a path from a prompt-free baseline to the prompt-present state. Resolved over a grid of layers and steps, it yields a per-token attribution field exposing how output-driving support evolves through denoising. The construction admits an exact correspondence to Integrated Gradients [1] applied at a fixed (layer, step), which lets us carry the IG axioms over to DLIG. Crucially, this correspondence holds at a single coordinate; DLIG’s value comes from assembling these axiom-preserving scores across the layer–step grid to expose trajectory structure that single-pass attribution cannot reveal. This temporal resolution parallels recent causal-tracing approaches for DLMs [5], while providing a relatively light-weight first-pass analysis.

We demonstrate DLIG on word-sense disambiguation, multi-hop reasoning, and sentence infilling with DiffuGPT-M [2], using it to test concrete hypotheses about where and when output-driving evidence emerges. Section 3.1 defines DLIG and extends the IG axioms to it; § 5, 6, and 7 report the three tasks, with implementation checks and full statistics in Appendices A.1 and B. This positions DLIG as a lightweight first check that can identify or rule out candidate mechanisms before more expensive causal interventional analyses.

Preprint.

Background and Related Work

Diffusion Language Models (DLMs). Diffusion, originating in nonequilibrium thermodynamics [6], has become the central algorithm behind modern image generation models [7]. Recent work has applied diffusion to language models [8]—generating text through iterative refinement over a denoising trajectory—as compared to standard next-token prediction language models [9], achieving competitive performance with substantially higher throughput [10, 11, 12, 13]. DLMs broadly fall into three families: continuous-space DLMs, which diffuse over continuous embeddings before mapping back to discrete tokens [10, 14]; discrete-space DLMs, which diffuse directly over tokens or vocabulary states via masking or transition matrices [3, 2]; and hybrid AR–diffusion models, which combine autoregressive generation with diffusion-based refinement [15]. We propose DLIG, an attribution method for interpreting DLM behavior. Although instantiated on a discrete DLM, our approach is broadly applicable to iterative diffusion processes.

Explainable AI (XAI), Attribution Methods and Diffusion Explainability. XAI encompasses post-hoc methods for explaining model decisions [16], including SHAP [17], LIME [18], and Integrated Gradients (IG) [1]. IG quantifies feature contributions to a model’s prediction and has been adapted to language models to measure the influence of individual input tokens on generated outputs [19]. Attention [20] and probe-based [21] analyses can reveal information encoded by models and support hypothesis formation, but attribution methods more directly connect model behavior to specific inputs while remaining lightweight and interpretable [22, 23]. In diffusion models, post-hoc explanation has focused primarily on vision, either using diffusion to construct IG integration paths [24, 25] or deriving CAM-style visual attributions from denoising states in diffusion MLLMs [26]. For DLMs, however, post-hoc explanation remains largely conceptual: a recent taxonomy formalizes attribution contracts for iterative generation [4], but no concrete method instantiates them. In particular, token-level attribution across layers and denoising steps remains open. We address this gap with DLIG, which extends IG to quantify a DLM’s progressive commitment to its completion at arbitrary layers and denoising steps.

Mechanistic Interpretability. Interpretability aims to reverse engineer the computations of machine learning models into human understandable algorithms [27]. Mechanistic interpretability has emerged as a sub-domain that aims to interpret larger neural networks, typically large multimodal models [28]. Standard techniques include observable methods such as training probes to decode linearly encoded information in the residual stream [29, 21], causality driven interventions that identify the causal role of internal representations through activation patching [30] and causal tracing [31, 32], dictionary/concept-learning methods [33, 34, 35, 36], and geometry and activation driven steering methods [37, 38]. Recent work has adapted these methods to interpret DLM behavior. Shnaidman et al. Shnaidman et al. [39] extract a low-dimensional refusal direction from contrastive prompts and intervene on residual-stream activations during denoising, An and Han An and Han [40] steer DLMs by biasing token distributions with pre-computed attribute scores, Li et al. Li et al. [41] analyze safety across denoising steps and introduce representation-based auditing and repair, Yao et al. Yao et al. [5] adapt the original causal tracing technique for masked DLMs, and Kong et al. Kong et al. [42] use hidden-state geometry to identify diffusion-friendly layers for diffusion-based replacement. Rather than competing with interventional methods, DLIG provides a lightweight complementary first check: inexpensive attribution can identify or rule out candidate mechanisms before more costly causal validation.

Diffusion Layer Integrated Gradients (DLIG)

Let a masked diffusion language model denoise a sequence over TT steps. At a fixed diffusion step tt, let XtX_t denote the partially-unmasked sequence and CC the conditioning prompt occupying positions 1,…,L1,\ldots,L. We attribute a scalar score FtF_t to the model’s internal computation at a chosen layer ℓ\ell, isolating the causal contribution of the prompt to that score.

Scoring function. The score reads out the model’s commitment to its own completion at step tt. Let zt(⋅)∈R∣V∣z_t(\cdot) \in\mathbb{R}^{\lvert V\rvert} be the logits the model emits at each generated position, and let y=(y1,…,yn)y=(y_1,\ldots,y_n) be the target tokens occupying the generated region (positions L+1,…,L+nL+1,\ldots,L+n). We use the summed target log-probability Ft=∑i=1nmilog⁡softmax⁡(zt(L+i))yiF_t = \sum_{i=1}^{n} m_i \log\operatorname{softmax}\left(z_t^{(L+i)}\right)_{y_i}, where mi∈{0,1}m_i \in\{0,1\} masks out positions not yet scored.1 By default yy is self-generated: yi=(Xt)L+iy_i = (X_t)_{L+i}, the tokens the model has itself committed to along its denoising trajectory, so the attribution targets actual model behavior. FtF_t then measures how strongly the layer-ℓ\ell activations drive the model toward the completion it is in the process of producing. We also implement the fixed-target framing where yy is a supplied string held constant across prompts and diffusion steps, and FtF_t scores the model’s commitment to that string.

Layer activations and baseline. Let a=ht(ℓ)(Xt,C)a = h_t^{(\ell)}(X_t, C) be the layer-ℓ\ell activations under the true prompt, and let a′=ht(ℓ)(Xt,∅)a' = h_t^{(\ell)}(X_t, \varnothing) be the activations under a null conditioning obtained by masking the prompt positions while holding the generated tokens XtX_t fixed. The pair (a′,a)(a', a) defines a straight-line path in activation space from the prompt-free to the prompt-present state.

Attribution. DLIG attributes FtF_t to layer-ℓ\ell activations by integrating the gradient of FtF_t along that path and weighting by the displacement:

DLIG⁡t(ℓ)=(a−a′)⊙∫01∂Ft∂a(a′+α(a−a′)) dα,\operatorname{DLIG}_t^{(\ell)} = (a-a') \odot\int_0^1 \frac{\partial F_t}{\partial a}\left(a' + \alpha(a-a')\right)\,d\alpha,

with ⊙\odot the elementwise product, so that DLIG⁡t(ℓ)∈RS×H\operatorname{DLIG}_t^{(\ell)} \in\mathbb{R}^{S \times H} carries one attribution value per (position, hidden-dim). The integral is approximated by an mm-point Riemann sum,

DLIG⁡t(ℓ)≈(a−a′)⊙1m∑k=1m∂Ft∂a(a′+km(a−a′)).\operatorname{DLIG}_t^{(\ell)} \approx(a-a') \odot\frac{1}{m}\sum_{k=1}^{m}\frac{\partial F_t}{\partial a}\left(a' + \frac{k}{m}(a-a')\right).

Per-Token Attribution. The tensor DLIG⁡t(ℓ)∈RS×H\operatorname{DLIG}_t^{(\ell)} \in\mathbb{R}^{S \times H} carries a value per (position, hidden-dim). To score attributions, we collapse the hidden axis to one score per token, st(ℓ)[i]=∑jDLIG⁡t(ℓ)[i,j]s_t^{(\ell)}[i] = \sum_j \operatorname{DLIG}_t^{(\ell)}[i,j], and read a prompt token’s attribution off at its position i≤Li \le L. Completeness (§ 3.1), ∑ist(ℓ)[i]=Ft(Xt,C)−Ft(Xt,∅)\sum_i s_t^{(\ell)}[i] = F_t(X_t,C)-F_t(X_t,\varnothing), makes the summed per-token attribution an exact additive decomposition of the causal effect of inserting the prompt, with st(ℓ)[i]s_t^{(\ell)}[i] being position ii’s share of that total. Since the baseline masks the prompt, st(ℓ)[i]>0s_t^{(\ell)}[i] > 0 means the token drives the model toward its target, while st(ℓ)[i]<0s_t^{(\ell)}[i] < 0 means its presence suppresses the target at layer ℓ\ell.

IG–DLIG Equivalence. Fix a layer ℓ\ell and step tt, and let Gt(ℓ):RS×H→RG_t^{(\ell)} : \mathbb{R}^{S \times H} \to\mathbb{R} denote the map that overrides the layer-ℓ\ell output with a candidate activation uu, recomputes the layers above ℓ\ell, and reads out the score: Gt(ℓ)(u)=Ft(layers ℓ+1,… applied to u)G_t^{(\ell)}(u) = F_t(\text{layers }\ell+1,\ldots\text{ applied to }u). Then, DLIG is exactly IG applied to the function Gt(ℓ)G_t^{(\ell)} with input a=ht(ℓ)(Xt,C)a = h_t^{(\ell)}(X_t,C) and baseline a′=ht(ℓ)(Xt,∅)a' = h_t^{(\ell)}(X_t,\varnothing):

DLIG⁡t(ℓ)[i,j]=IG⁡ij(Gt(ℓ);a,a′)=(a−a′)ij∫01∂Gt(ℓ)∂uij(a′+α(a−a′)) dα.\operatorname{DLIG}_t^{(\ell)}[i,j] = \operatorname{IG}_{ij}(G_t^{(\ell)};a,a') = (a-a')_{ij}\int_0^1 \frac{\partial G_t^{(\ell)}}{\partial u_{ij}}\left(a' + \alpha(a-a')\right)\,d\alpha.

Extending Axiomatic Properties of IG [1] to DLIG

The axiomatic guarantees of IG are proved for an arbitrary almost-everywhere-differentiable scalar function of the integration variable. Next, we demonstrate that these guarantees transfer to DLIG by instantiating that function as Gt(ℓ)G_t^{(\ell)}, which is differentiable almost-everywhere as a composition of transformer blocks and a softmax readout, along with direct implementation tests where required.2

(1) Completeness. The attribution summed over all coordinates equals the difference in the scored function between the endpoints of the integration path:

∑i,jDLIG⁡t(ℓ)[i,j]=Gt(ℓ)(a)−Gt(ℓ)(a′)=Ft(Xt,C)−Ft(Xt,∅).\sum_{i,j}\operatorname{DLIG}_t^{(\ell)}[i,j] = G_t^{(\ell)}(a)-G_t^{(\ell)}(a') = F_t(X_t,C)-F_t(X_t,\varnothing).

The identity holds for any scalar FF read off from h(ℓ)h^{(\ell)} up to the O(1/m)O(1/m) error of the mm-point Riemann sum, independent of how FF consumes the logits; it is therefore agnostic to the shifted-readout convention, which is checked separately below. Completeness also implies the Sensitivity(a) axiom—if aa and a′a' differ only in coordinate (i,j)(i,j) and Gt(ℓ)(a)≠Gt(ℓ)(a′)G_t^{(\ell)}(a) \ne G_t^{(\ell)}(a'), completeness applied to the pair forces DLIGt(ℓ)[i,j]≠0\mathrm{DLIG}_t^{(\ell)}[i,j] \ne0.

(2) Implementation Invariance. The attribution depends on the network only through the function Gt(ℓ)G_t^{(\ell)} and its gradients. For any two parameterizations realizing the same map, Gt(ℓ)≡G~t(ℓ)G_t^{(\ell)} \equiv\widetilde{G}_t^{(\ell)} implies DLIGt(ℓ)=DLIG~t(ℓ)\mathrm{DLIG}_t^{(\ell)} = \widetilde{\mathrm{DLIG}}_t^{(\ell)} at every (a,a′)(a,a').

(3) Linearity. For scalar weights λ1,λ2\lambda_1,\lambda_2 and readouts G1,G2G_1,G_2 of the same activation, IG(λ1G1+λ2G2)=λ1IG(G1)+λ2IG(G2)\mathrm{IG}(\lambda_1G_1+\lambda_2G_2)=\lambda_1\mathrm{IG}(G_1)+\lambda_2\mathrm{IG}(G_2). Since FtF_t enters DLIG only through Gt(ℓ)G_t^{(\ell)}, attributions toward two fixed targets y+,y−y^+,y^- may be differenced, ΔDLIGt(ℓ)=DLIGt(ℓ)(y+)−DLIGt(ℓ)(y−)=IG(Gt(ℓ)(⋅;y+)−Gt(ℓ)(⋅;y−);a,a′)\Delta\mathrm{DLIG}_t^{(\ell)}=\mathrm{DLIG}_t^{(\ell)}(y^+)-\mathrm{DLIG}_t^{(\ell)}(y^-)=\mathrm{IG}(G_t^{(\ell)}(\cdot;y^+)-G_t^{(\ell)}(\cdot;y^-);a,a'), i.e. the difference is itself a valid path attribution of the contrast score Ft(⋅;y+)−Ft(⋅;y−)F_t(\cdot;y^+)-F_t(\cdot;y^-), and satisfies completeness with respect to ΔFt\Delta F_t.

(4) Symmetry Preservation. DLIG integrates along the straight-line path γ(α)=a′+α(a−a′)\gamma(\alpha)=a'+\alpha(a-a'), the unique path choice for which the theorem holds; the property is inherited unchanged.

Experimental Setup

We demonstrate DLIG’s utility in explaining DLM behavior across three tasks, all using DiffuGPT-M [2], a masked diffusion language model adapted from GPT-2-medium [43].3 Task-specific configurations, training details, and the per-task denoising-step grids used for attribution are in Appendix § 12.

Word-Sense Disambiguation. WiC [44] asks whether a target word shares its sense across two context sentences (binary). We wrap each instance in a prompt querying sense-match, with the model generating Yes/No; answer tokens share no vocabulary with the disambiguating context, avoiding surface-form overlap. As the official test labels are private, we re-split the train set into 4,928 train / 638 val / 500 test and finetune DiffuGPT-M.

Multi-Hop Graph Reasoning. ProsQA [45] is a synthetic multi-hop benchmark: each question states an ontology of typing facts (with off-path distractors), roots the queried subject, and poses a binary choice (“Is s a A or B?”) whose gold option is reachable by a kk-hop chain. We finetune DiffuGPT-M on the 17,886 train / 300 val / 500 test split.

Sentence Infilling. ROCStories [46] comprises five-sentence commonsense stories; we infill sentence three from the two preceding and two following sentences (1000 eval samples). The generated span attends bidirectionally to context on both sides, so DLIG can resolve how attribution mass splits between left and right context and evolves over denoising steps.

The main text reports each finding qualitatively; full quantitative results, effect sizes, and statistical significance testing for every experiment are in Appendix § 11.

Word-Sense Disambiguation

Setup. Scored under the self-generated framing of § 3, the finetuned model is strongly Yes-biased (class-wise performance in Appendix § 12, Table 1). One possible explanation is that Yes and No decisions draw on prompt evidence at systematically different depths. DLIG provides an inexpensive test for this hypothesis directly from its layer-step attribution field. We contrast this attribution-based axis with a simple logit-based measure of when the model commits:

TaskOutcomenn% [95% CI]
WiC (n=500n=500)Overall accuracy31863.6 [59.2, 67.8]
Same-sense (Yes) accuracy22790.8 [87.2, 94.4]
Different-sense (No) accuracy9136.4 [30.4, 42.0]
ProsQA (n=500n=500)Success (correct ∪ concept-only)27555.0 [51.0, 59.4]
Fail (wrong option)6412.8 [10.0, 15.8]
Off-manifold (wrong subject / invalid concept)16132.2 [28.2, 36.2]
Infill (n=1000n=1000)ROUGE-112.02 [11.22, 12.77]
ROUGE-21.22 [0.93, 1.55]
ROUGE-L11.19 [10.46, 11.86]

Table 1. Task-level performance of DiffuGPT-M on WiC, ProsQA, and ROCStories infilling. WiC: accuracy on all 500 test examples, split by gold label into same-sense (Yes, n=250n=250) and different-sense (No, n=250n=250). ProsQA: outcomes over n=500n=500 test examples, bucketed into success (exact-match correct ∪ conceptually correct), fail (wrong option among the two offered), and off-manifold (wrong subject or an invalid/unlisted concept). Infill: ROUGE-1/2/L (self-generated span vs. gold sentence) over n=1000n=1000 ROCStories cases.

  • Attribution depth: Per denoising step tt, we weight each layer ℓ\ell by its prompt-token attribution mass Mt(ℓ)=∑i≤L∣st(ℓ)[i]∣M_t^{(\ell)}=\sum_{i\le L}\lvert s_t^{(\ell)}[i]\rvert and take the centroid ℓˉ=1∣T′∣∑t∈T′(∑ℓℓMt(ℓ))/(∑ℓMt(ℓ))\bar{\ell}=\frac{1}{|T'|}\sum_{t\in T'}(\sum_{\ell}\ell M_t^{(\ell)})/(\sum_{\ell}M_t^{(\ell)}), a mass-weighted layer index averaged over steps, measuring how deep the attribution sits.4

ttzero-mass %ttzero-mass %
193.0337.8
384.2357.4
575.6376.2
767.1395.4
959.7414.4
1151.1433.6
1344.3452.6
1537.5472.0
1731.3491.4
1926.1511.2
2122.6530.8
2320.2550.6
2517.8570.4
2715.4590.0
2912.6610.0
319.6630.0

Table 7. Fraction of WiC test examples with zero prompt-token attribution mass (Mt≤10−9M_t \le10^{-9}) at each denoising step (DiffuGPT-M, n=499n=499 parseable predictions). Zero-mass steps occur before the Yes/No span commits, when the self-generated target carries no attributable signal, and are excluded from the attribution-depth centroid. Aggregate over all 32 steps: 22.3%.

  • Commitment timing: As a behavioral comparator, we directly record the softmax probability of the committed answer token across denoising steps and define the commitment step as the earliest step from which it exceeds 0.5 and remains above it.

We report each axis as a Mann–Whitney AUC [47] for Yes- vs. No-responses (0.5 chance), and additionally test each Yes-response population for latent structure with Hartigan’s dip test [48].

Results. We first illustrate in Figure 1 a single DLIG map on a correctly answered example 55. The two occurrences of the pivot word channel (“the channel” and “the English Channel”) together with the content tokens of both sentences carry the dominant, positive attribution, largest in the shallow layers which decreases with depth, while function words and template scaffolding stay near zero. The one early dissenting signal is France: in the shallowest layers the model reads the geographic specificity of between France and England as mild evidence against the same-sense reading, but this is overridden with depth and flips to positive support by the mid layers, leaving the deep-layer map almost uniformly answer-aligned. Now, we analyze the attribution depth and commitment timing to ask whether the model’s Yes- and No-responses, grouped by predicted label, are mechanically distinguishable along the two axes (parseable-prediction counts per axis in Figure 2).

Layer-wise DLIG attribution for a single WiC example

Figure 1. Layer-wise DLIG attribution for a single WiC example (target word channel; gold label same senses, model correctly answers Yes). Bars are the per-token DLIG score averaged over all T=64T=64 denoising steps. Blue (positive) marks tokens driving the model toward its committed answer, red (negative) those suppressing it. Takeaway: Attribution concentrates on the two occurrences of the pivot word channel and the surrounding content tokens that fix its shared sense, largest in the shallow layers and thinning with depth, while the prompt scaffolding stays near zero.

Figure 2. Yes- vs. No-responses along the attribution-depth and commitment-timing axes, grouped by predicted label. Takeaway: The two response types read out from essentially the same depth (a) but commit at different times (b), with Yes confident from the first step and No only barely clearing the threshold.

Yes- and No-responses read out from the same depth: The two response types are distributed near-identically along this axis (Figure 2a): both center just above layer 7 of the 24-layer stack, and the pred-Yes and pred-No distributions overlap almost entirely; DLIG provides cheap evidence against the depth hypothesis.

Yes-responses commit stronger and hold it: Reading the model’s confidence in its own answer across the denoising trajectory (Figure 2b) separates the two response types clearly: pred-Yes examples are already confident in Yes at the first denoising step and stay there, whereas pred-No examples begin only just above threshold and slightly degrade towards the end. The per-example commitment is markedly stronger for Yes than for No.

Multi-Hop Graph Reasoning

Setup. We analyze success (correct or conceptually correct, n=286n=286) & failure (incorrect option, n=69n=69), excluding off-manifold generations (n=145n=145).6 One hypothesis is that failures arise from answer-driving support being mislocalized onto distractors rather than the reasoning path; DLIG directly tests this over the prompt’s fact graph. We construct each prompt’s fact graph and mark two token sets: the gold path (BFS-recovered chain from subject to gold option)7, and the cited chain (facts named in the model’s generation and matched to graph facts via fuzzy string matching).

We define per-example targets (y+y^{+}) as the gold answer sentence and (y−y^{-}) as the same sentence with the gold option replaced by the incorrect choice, thereby isolating the answer concept.8 The per-token contrastive score d[i]=st(ℓ)[i](y+)−st(ℓ)[i](y−)d[i] = s_{t}^{(\ell)}[i](y^{+}) - s_{t}^{(\ell)}[i](y^{-}) measures whether prompt token ii supports the correct (d[i]>0d[i] > 0) or incorrect (d[i]<0d[i] < 0) option. We define path precision prec⁡=∑i∈GOLDmax⁡(d[i],0)∑i∈FACTmax⁡(d[i],0)\operatorname{prec} = \frac{\sum_{i\in\mathrm{GOLD}}\max(d[i],0)}{\sum_{i\in\mathrm{FACT}}\max(d[i],0)} as the fraction of positive support attributable to gold-path tokens, measuring where positive support concentrates (facts or distractors). We report its gap over chance (∣GOLD∣/∣FACT∣|\mathrm{GOLD}|/|\mathrm{FACT}|) and against a random-edge null matched for path size.

Because dd tracks the gold option, its sign tracks model behavior only on successes; on fails, we therefore use dbehavior=−dd_{\mathrm{behavior}} = -d, so that dbehavior>0d_{\mathrm{behavior}} > 0 always marks support for the generated option. Along the reasoning chain, we average dbehaviord_{\mathrm{behavior}} per gold-path hop, normalizing within each example by its mean ∣dbehavior∣|d_{\mathrm{behavior}}| across hops (so that examples contribute equally regardless of overall magnitude). We also report the contrastive magnitude ∣d∣|d|, the mean ∣d[i]∣|d[i]| over fact tokens (total fact attention regardless of which option it supports).

Results. Attribution concentrates on answer driving facts: dbehaviord_{\mathrm{behavior}}’s positive mass concentrates on gold-path tokens well above chance and the random-edge null (Figure 3a). Concentration is layer- and step-localized—rising towards later layers, decaying over denoising (Figure 3b)—and increases from the root fact to the answer edge at every path length (Figure 3c). On fails, attribution likewise concentrates on the model’s cited chain rather than the remaining facts (Table 8); where cited and gold paths diverge, the two are indistinguishable.

AnalysisStatisticValue
Attribution concentrates on the gold path (successes, pooled)Precision − chance+0.150
Wilcoxon pp<10−15<10^{-15} ***
Random-edge null: mean−0.020
Random-edge null: 95th percentile+0.075
Faithfulness on fails: mass tracks the model’s cited chainCited chain vs. other facts: per-token gap (n=66n=66)+4.77
Cited chain vs. other facts: Wilcoxon pp3.5×10−63.5 \times10^{-6} ***
Gold vs. other facts (success mirror): per-token gap (n=286n=286)+3.50
Gold vs. other facts (success mirror): Wilcoxon pp<10−15<10^{-15} ***
Divergent-token subset: chain vs. gold (n=42n=42)−1.46
Divergent-token subset: paired Wilcoxon pp0.52 (n.s.)
Contrastive magnitude anti-predicts correctnessMean per-token ∣d∣\lvert d\rvert: success / fail3.55 / 4.13
Mean per-token ∣d∣\lvert d\rvert: AUC / pp0.440 / 0.124 (n.s.)
Difficulty checks: Spearman(∣d∣\lvert d\rvert, kk)+0.06 (n.s.)
Difficulty checks: Spearman(∣d∣\lvert d\rvert, size)−0.33
Within-kk AUC: k=2k=2 (n=120+27n=120+27)0.365 *
Within-kk AUC: k=3k=3 (n=116+33n=116+33)0.472 (n.s.)
Within-kk AUC: k=4k=4 (n=45+8n=45+8)0.511 (n.s.)
Within-kk AUC: weighted average0.433
Logistic (+ kk, size): β∣d∣\beta_{\lvert d\rvert} / pp−0.203 / 0.125 (n.s.)
Logistic (+ kk, size): βk\beta_k / pp+0.033 / 0.81 (n.s.)
Logistic (+ kk, size): βsize\beta_{\text{size}} / pp+0.044 / 0.76 (n.s.)
Per-step AUC:.435, .424*, .430, .445, .439, .437, .432, .416*, .421*, .419*, .419*
t=1,7,13,19,25,31,37,43,49,54,60t=1, 7, 13, 19, 25, 31, 37, 43, 49, 54, 60
Attribution location is group-invariantPrecision − chance: success / fail+0.150 / +0.138
AUC / pp0.524 / 0.53 (n.s.)
Joint logistic: βprec\beta_{\mathrm{prec}} / pp+0.064 / 0.64 (n.s.)
Joint logistic: β∣d∣\beta_{\lvert d\rvert} / pp−0.213 / 0.089 (n.s.)

Table 8. Full statistical results for multi-hop graph reasoning (§ 6).

Positive contrastive mass on gold-path tokens versus a random-edge null

(a) Positive contrastive mass on gold-path tokens versus a random-edge null, pooled over layers and denoising steps (successes).

Gold-mass fraction by layer and denoising step

(b) Gold-mass fraction by layer and denoising step.

Behavior per gold-path hop

(c) dbehaviord_{\mathrm{behavior}} per gold-path hop (0 = root fact, kk = answer edge), split by path length kk; wide intervals at k=5k=5 reflect the few length-5 chains in the test set.

Figure 3. Attribution on the multi-hop reasoning graph (ProsQA, successes). Takeaway: Positive contrastive mass concentrates on the gold reasoning path well above a random-edge null (a), localizes to the mid-to-upper layers and early denoising steps (b), and rises nearly monotonically along the chain toward the answer edge (c).

Contrastive magnitude versus attribution location, by outcome

Figure 4. Contrastive magnitude versus attribution location, by outcome. Left: mean per-token ∣d∣|d| over fact tokens (how much support the facts carry). Right: gold-path precision gap (where that support lands). Takeaway: Attribution localization is preserved across outcomes: failures localize the gold path as well as successes, while showing only a non-significant trend toward higher attribution magnitude.

Errors preserve attribution localization: Gold-path precision is nearly identical for successes and fails and carries no signal in a joint logistic model (Figure 4 right; Table 8). Fails show numerically higher contrastive magnitude ∣d∣|d|, but this does not significantly discriminate outcomes overall or after difficulty controls. Thus, failures do not arise from attribution shifting onto distractors: DLIG shows that the relevant reasoning structure remains localized even when the model answers incorrectly.

Sentence Infilling

Setup. The model infills sentence 3 from sentences 1–2 (left) and 4–5 (right), scored under the self-generated framing of § 3. If successful infilling increasingly relies on context as the span resolves, this dependence should emerge over denoising; DLIG tests this directly. The position axis is signed distance to the span (negative = left, positive = right). Infill quality is final-span ROUGE-1 vs. gold.9

Results. Context reliance predicts infill quality, increasingly over denoising: The association between how much the model draws on context and how well it infills is absent at the first denoising steps and strengthens through the denoising (Figure 5a). ROUGE only scores the final span, evidencing that only once the model’s committed span has sharpened toward that final output does the context become predictive of how well it reconstructs the span. Since there is no committed span early on, context reliance and eventual quality are unrelated. Pooling over steps hides this temporal structure (Appendix § 10.§ 4).

ttnnmean massttnnmean mass
1124101.963399560.93
336199.763599560.11
550696.043799859.67
762291.0839100059.36
971987.2141100059.00
1179283.7143100058.96
1384581.0945100058.86
1588076.9547100059.00
1791474.6849100059.06
1993272.4851100059.24
2194969.7253100059.80
2396367.8955100060.66
2597065.9257100061.40
2797664.3759100061.95
2998362.8761100062.93
3199061.8563100063.85

Table 10. Mean total context attribution mass per denoising step, ROCStories infilling (self-generated target).

Attribution is bidirectional, left-skewed, and strengthens late in denoising: The model draws on both sides of the span, peaking at each boundary and decaying outward, with a persistently stronger left pull (a DLM sees right context an autoregressive model cannot; Figure 5b). Context reliance grows as the model commits to its span later in denoising (Table 10). Neither the amount nor the direction of context mass tracks infill quality (Appendix § 10.§ 4); the attribution field’s shape is therefore task-level, while its late strengthening tracks commitment.

Context reliance and attribution shape for sentence infilling

Figure 5. (a) Per-step context-reliance vs. infill-quality correlation across denoising steps. (b) Signed-distance attribution profile per denoising step, split by low/high ROUGE. Context reliance and attribution shape for sentence infilling (self-generated target). Take-away: The reliance–quality association is absent early and strengthens across denoising (a); the attribution field is bidirectional and left-skewed, peaking just outside each span boundary, with better infills carrying slightly more mass throughout (b).

Conclusion

We introduce DLIG, a token-attribution method for DLMs that resolves a model’s commitment to its output jointly across network depth and the denoising trajectory scored at any (layer, step), decomposing it into per-token contributions. DLIG exposes not just where in the model support for an output lives, but how it evolves through its denoising trajectory.

We evaluate DLIG across three tasks, revealing structure a single-pass attribution would miss. On word-sense disambiguation, DLIG cheaply rules out attribution depth as an explanation for the model’s Yes bias: Yes and No responses draw on similar depths, despite sharply different commitment dynamics. On multi-hop reasoning, the DLM locates the right fact chain even when it answers wrongly, so errors trace to how it uses the facts and not where it looked. On sentence infilling, the DLM draws on both sides of the gap, including right context an autoregressive model cannot see, with context reliance correlating with infill quality only late in denoising.

Across tasks, DLIG is not only useful for visualizing attribution, but also serves to complement interventional analyses as an inexpensive first check for mechanistic hypotheses—identifying or ruling out where and when output-driving evidence emerges before more expensive interventional validation. Broadly, since a DLM arrives at its output gradually, explaining it means reading the whole denoising trajectory, not just its end. DLIG makes this dynamic evolution of a DLM’s commitment as well as where it draws from directly observable.

Limitations and Future Work

DLIG is a post-hoc gradient attribution method: it identifies where and when a model’s committed output is gradient-sensitive to the prompt, not the causal circuit producing it, so its outputs are hypotheses to be confirmed, not mechanism at face value—future work should pair DLIG with interventional tests (activation patching, causal tracing [30, 5]) against causal ground truth. We also instantiate DLIG on a single 355M discrete masked-diffusion model (DiffuGPT-M); extending to continuous-space and hybrid AR–diffusion families (§ 2), and to larger, natively-trained DLMs, is left for future work.

Extended Analyses

Implementation Checks

The checks below verify that the implementation realizes Gt(ℓ)G_t^{(\ell)} as defined in §3.1, a precondition for the IG correspondence that no axiom can certify on its own.

Empirical Verification of Completeness. The verification tests three nested conditions at every (layer, step) pair used in the analyses. (A) Hook transparency: scoring FtF_t through the intervention hook at the path endpoints α=0\alpha=0 and α=1\alpha=1 must reproduce a plain forward pass. (B) Completeness: the all-position DLIG sum is compared against ΔF=Ft(Xt,C)−Ft(Xt,∅)\Delta F=F_t(X_t,C)-F_t(X_t,\varnothing) under the combined tolerance ∣∑DLIG−ΔF∣≤εabs+εrel∣ΔF∣\left|\sum\mathrm{DLIG}-\Delta F\right|\leq\varepsilon_{\mathrm{abs}}+\varepsilon_{\mathrm{rel}}\left|\Delta F\right| with εabs=5×10−3\varepsilon_{\mathrm{abs}}=5\times10^{-3}, εrel=10−2\varepsilon_{\mathrm{rel}}=10^{-2}; the absolute term is required because the Riemann discretization error is set by the curvature of Gt(ℓ)G_t^{(\ell)} along the path, not by ΔF\Delta F, so the relative error alone diverges as ΔF→0\Delta F\to0. (C) Convergence: the relative error must decrease as mm grows (empirical signature of a correct integrator), checked at every grid cell between m=200m=200 and m=1000m=1000. The check covers the full analyzed configuration: layers {0,2,…,22}×\{0,2,\ldots,22\}\times diffusion steps {1,3,5,7,9,11}\{1,3,5,7,9,11\} (72 cells) on a single trajectory with T=12T=12, in float32 under the completeness-validated (bounded, mean-centered) scoring readout on the finetuned checkpoint. The trajectory is seeded, so all cells share the same XtX_t and the per-step score gaps are identical across layers.

Bidirectionality and Shift Gates. A bidirectionality gate reads the first-block attention weights under an all-visible mask and checks that early positions place substantial mass on future positions; masked diffusion LM must attend bidirectionally, and silently-causal attention would invalidate the attribution even while completeness still passes. A shift gate confirms the declared predicts_shifted convention by checking that, under that alignment, the argmax of the logits matches the committed tokens at unmasked generated positions; completeness is shift-agnostic and cannot detect a token-level off-by-one, so this is checked directly.

Partial-Forward Spot Check. DLIG uses a partial-forward optimization that resumes the network from the intervened layer rather than recomputing the layers below it. The spot check verifies exactness (layers below ℓ\ell do not depend on the intervened activation) by comparing against the full-path computation on the real model, matching the per-position DLIG tensors produced by both.

Results. Endpoint scores recovered through the hook match the plain forward pass to floating-point precision at every grid cell, confirming hook transparency. At m=1000m=1000, every cell in the full completeness grid satisfies the combined tolerance (Figure 6), with maximum absolute error 7.06×10−37.06 \times10^{-3} and maximum relative error 7.95×10−37.95 \times10^{-3}, both at the t=1t=1, ℓ=0\ell=0 cell; error is not uniform across the grid but concentrates at early denoising steps, where the score gap ΔF\Delta F is smallest and the relative-error denominator is least forgiving, while absolute error stays within a comparable range throughout. Relative error decreases monotonically from m=200m=200 to m=1000m=1000 at every cell, the expected signature of a converging Riemann integrator. The bidirectionality gate passes with forward-attention mass 0.924 on the probed row, and the shift gate passes with an argmax–committed-token match rate of 0.789 at unmasked generated positions. Finally, run at denoising step t=2t=2 across the full analyzed layer set {0,2,4,…,22}\{0, 2, 4, \ldots, 22\} on the base checkpoint, in the production bfloat16 dtype with m=12m=12 (Figure 7), the partial-forward and full-path DLIG computations agree exactly at every layer, with the maximum absolute and relative differences 0.00 throughout. DiffuGPT-M bakes position information in once at the embedding layer rather than re-applying it per layer, so resuming from a cached activation is bit-exact rather than merely close, unlike RoPE-based backends where a small bfloat16 roundoff floor is expected instead.

Heatmap of relative completeness error across layers and denoising steps

Figure 6. Relative completeness error ∣∑DLIG−ΔF∣/∣ΔF∣\left|\sum\mathrm{DLIG}-\Delta F\right|/\left|\Delta F\right| at m=1000m=1000 over the full grid (layers ×\times denoising steps). Every cell satisfies the combined tolerance εabs+εrel∣ΔF∣\varepsilon_{\mathrm{abs}}+\varepsilon_{\mathrm{rel}}\left|\Delta F\right|; darker cells indicate smaller error.

Partial-forward vs. full-path DLIG per layer

Figure 7. Partial-forward vs. full-path DLIG, per layer: relative difference against the 10−210^{-2} pass/fail threshold. All layers agree exactly.

Task Performance

Table 1 reports the performances on the Sentence Infilling task with the base DiffuGPT-M model, and the Word-Sense Disambiguation and Multi-Hop Graph Reasoning tasks with their respective finetuned variants of DiffuGPT-M. Note that these performances reflect the scores from a single evaluation run. The 95% bootstrapped confidence intervals are calculated from 1,000 resamples within a single run. Due to the stochastic nature of the diffusion sampler, results should be expected to vary across runs.

ProsQA Bucket and Contrastive-Target Examples

Table 2 gives one worked example per bucket (§ 6): the question, the model’s raw generation, and the resulting label. Success is correct ∪\cup concept_only; fail is wrong_valid, subj_wrong and concept_invalid are the dropped off-manifold cases.

BucketModel generation (gen)Gold
correctBob is a yerpus. Every yerpus is a zumpusus. ### Bob is a shumpus.Bob is a shumpus.
concept_onlyBob is a gorpus. Every gorpus is a grimpus. Every grus is a a sterpus. Every sterpus is a numpus. ### ### Bob is a numpus.Bob is a numpus.
wrong_valid (fail)Rex is a jelp. Every jelpus is a tumpus. Every tumpus is a wump. Every wumpus is a lempus. ### Rex is a real lempus.Rex is a rompus.
subj_wrongSally is a boompus. Every boompus is a remusus. Every remusus is a sterpus.Sally is a sterpus.
concept_invalidDavis is a lorpus. Every lorpus is a numpus. ### Davis is a numpus. Every nump is a worpus. ### Davis is a worpus.Davis is a worpus.

Table 2. One example per ProsQA bucket. correct: exact gold match. concept_only: right subject and option, wrong wording. wrong_valid: right subject, valid option (lempus), just not gold. subj_wrong: final sentence names the wrong subject (Every, a parsing artifact, not a real entity). concept_invalid: right subject, but the reasoning chain lands on a concept (numpus) outside the offered pair {worpus, chorpus}.

The wrong_valid row above demonstrates the y−y^{-} construction (§ 6) concretely: the offered options are {rompus (gold), lempus}, so the dataset fixes wrong_option == lempus independently of the model. The model’s own generation ends “Rex is a real lempus”, i.e. its parsed predicted_option is also lempus — the dataset-defined incorrect option and the model’s committed answer coincide, exactly as guaranteed by the wrong_valid gate. y+y^{+} is then the gold sentence “Rex is a rompus.” and y−y^{-} is the same template with the option swapped, “Rex is a lempus.”

ROCStories infilling: attribution profile and robustness

Here, we provide experiments to support § 7 with (i) the pooled context-reliance vs. quality correlation, deferred here from the main text, and two robustness checks: (ii) the non-per-token normalization of context mass, and (iii) the fixed-target framing.

Pooled context reliance vs. infill quality. Figure 8 shows total context mass against infill ROUGE pooled over the whole denoising trajectory. The pooled correlation is weak and its binned mean roughly flat, so no single-trajectory summary captures the reliance–quality relationship; only resolving the correlation per denoising step (Figure 5a) reveals the association that emerges as the committed span converges toward the final output. Early steps additionally run on a reduced sample, as degenerate cells with no scoreable committed span token are excluded.

Pooled total context mass versus infill ROUGE-1 under the self-generated target

Figure 8. Pooled over steps: total context mass vs. infill ROUGE-1 under the self-generated target (per-token normalized); the binned mean is roughly flat. The weak pooled correlation hides the trajectory that strengthens across denoising (main text, Figure 5a).

Context mass does not discriminate infill quality. The main text states that the amount of context mass does not track infill quality. We test this directly by splitting stories at the median ROUGE and reporting the Mann–Whitney AUC that a high-ROUGE story carries more total context mass than a low-ROUGE one, per denoising step over the full 32-step trajectory so the claim is not obscured by pooling (pooled and per-step statistics in Table 3 and Table 4). At no step does the AUC separate meaningfully from chance, and the right/left mass ratio is likewise flat across quality. Both the amount and the direction of context mass are therefore quality-neutral; only the per-step reliance–quality correlation (Figure 5a) carries a quality signal, and only late in denoising.

AnalysisStatisticValue
Total mass, high- vs. low-ROUGE (pooled; pseudo-replicated, see per-step)AUC [95% CI] (nhigh=14,966n_{\mathrm{high}}=14{,}966, nlow=13,548n_{\mathrm{low}}=13{,}548 story-step cells)0.510 [0.503, 0.517]
pp3.4×10−33.4 \times10^{-3} **
Right/left mass ratio vs. ROUGE-1Pearson rr (n=28,514n=28{,}514)0.027
Mean ratio (right/left)0.984

Table 3. Context mass vs. infill quality, pooled statistics (self-generated target, median ROUGE split, nhigh=525n_{\mathrm{high}}=525, nlow=475n_{\mathrm{low}}=475 stories). Per-step AUC in Table 4.

ttAUC [95% CI]pp
10.501 [0.401, 0.606]0.986
30.500 [0.441, 0.560]0.989
50.485 [0.435, 0.536]0.565
70.498 [0.456, 0.545]0.938
90.504 [0.462, 0.547]0.849
110.490 [0.450, 0.530]0.620
130.503 [0.464, 0.543]0.879
150.501 [0.463, 0.537]0.945
170.517 [0.479, 0.553]0.364
190.504 [0.469, 0.542]0.816
210.517 [0.479, 0.554]0.356
230.517 [0.481, 0.553]0.350
250.524 [0.489, 0.558]0.202
270.529 [0.493, 0.563]0.123
290.529 [0.493, 0.563]0.118
310.532 [0.494, 0.568]0.086
330.533 [0.498, 0.570]0.076
350.529 [0.491, 0.565]0.120
370.516 [0.481, 0.551]0.396
390.514 [0.477, 0.549]0.444
410.521 [0.486, 0.554]0.248
430.523 [0.486, 0.557]0.211
450.514 [0.478, 0.551]0.436
470.514 [0.482, 0.549]0.432
490.507 [0.470, 0.543]0.708
510.500 [0.464, 0.534]0.992
530.499 [0.463, 0.536]0.950
550.491 [0.454, 0.526]0.634
570.501 [0.463, 0.537]0.965
590.490 [0.455, 0.524]0.573
610.491 [0.455, 0.525]0.629
630.486 [0.451, 0.522]0.443

Table 4. Mann–Whitney AUC that a high-ROUGE story carries more total context mass than a low-ROUGE one, per denoising step (self-generated target, median ROUGE split, nhigh=525n_{\mathrm{high}}=525, nlow=475n_{\mathrm{low}}=475 stories; 0.5=no difference). 95% bootstrap CIs over stories. No step reaches significance (p>0.07p>0.07 throughout).

Context mass without per-token normalization. The main-text total context-mass results use per-token normalization (mass divided by the number of scoreable target tokens) to remove the growing-target-size trend intrinsic to the self-generated framing. Figure 9 shows the per-step correlation without normalization: the qualitative pattern is unchanged, a correlation near zero early that strengthens over denoising, confirming the trend is not a normalization artifact. Per-token normalization simply sharpens the late-step signal.

Normalization robustness: per-step Pearson correlation between mass and ROUGE-1

Figure 9. Normalization robustness: per-step Pearson rr (mass, ROUGE-1) for the self-generated target without per-token normalization (95% bootstrap CI). The near-zero-early, strengthening-over-denoising pattern of Figure 5a survives; per-token normalization only sharpens the late-step peak.

Fixed-target framing

Table 5 reports the full statistics for this robustness check (fixed gold target, y=y= gold sentence 3 held constant across steps; § 7).

AnalysisStatisticValue
Total mass vs. ROUGE-1 (per-token normalized)Pooled Pearson rr (n=32,000n=32{,}000)0.197
Total mass vs. ROUGE-1 (per-token normalized)Per-step rr range (32 steps, all CIs clear of 0)[0.192, 0.241]
Total mass vs. ROUGE-1 (per-token normalized)Self-generated pooled rr, for comparison (§ 7)0.013
Left-tail attribution magnitudeMean ∣d∣\lvert d\rvert at t=1t=1 vs. t=63t=632.4 / 1.0
Right/left mass ratio vs. ROUGE-1Pearson rr (n=32,000n=32{,}000)0.038
Right/left mass ratio vs. ROUGE-1Mean ratio (right/left), fixed target1.121
Right/left mass ratio vs. ROUGE-1Mean ratio (right/left), self-generated, for comparison0.969

Table 5. Fixed-target (gold) robustness statistics for ROCStories infilling (§ A.4.1), n=1000n=1000 stories ×\times 32 denoising steps.

Fixed-target framing inflates the reliance–quality correlation. Under the fixed target, total context mass correlates with infill quality far more strongly than under the self-generated framing (Fig. 10a), and the per-step correlation stays large and roughly flat across the full trajectory rather than rising late, as it does under the self-generated framing (Fig. 10b). We hypothesize that since ROUGE measures overlap between the generation and the gold sentence, on high-ROUGE stories the fixed gold target lies close to the model’s actual trajectory and receives elevated gradient signal for that reason alone, independent of how much the model relied on context. Fixing the target thus folds a target-proximity component into the measured correlation—present from the first step—which the self-generated framing removes, reflecting the behavior-anchored correlation that survives the framing change based on the model’s use of context in producing its own output.

The descriptive attribution profile is framing-robust. The bidirectional, left-skewed profile of § 7 is unchanged under the fixed target (Figure 11): mass peaks on both sides, the left context carries higher magnitude, and magnitude decays across the trajectory. This shape holds regardless of infill quality, consistent with the quality-neutrality of context mass (Appendix § 10.§ 4). The overall magnitudes differ between framings, but the shape of the attribution field does not.

Mean normalized DLIG magnitude by denoising step and signed distance from the span

Figure 11. Fixed-target robustness: mean normalized DLIG magnitude by denoising step and signed distance from the span (fixed gold target). The bidirectional, left-skewed shape matches the self-generated profile (Figure 5b); only the overall magnitude differs.

Directional balance under the fixed target. The right/left context-mass ratio is again near-constant across quality, so quality tracks directional balance under neither framing. The framings differ only in where the balance sits: the fixed gold target pulls attribution mildly toward the right context, which constrains the gold continuation, while the self-generated target is mildly left-heavy (Table 5 and Table 3 give the matched ratios).

Statistical Evaluation

This section presents the full statistical tests for every experiment in § 5, § 6 and § 7. All quantities are computed per example and, where noted, pooled over the analyzed grid of denoising steps. We test each quantity against the null appropriate to its form: a one-sample claim (a mass or gap is nonzero) is tested with the Wilcoxon signed-rank test against zero; a two-group claim (a quantity discriminates success from fail, or predicted-Yes from predicted-No) is reported as the Mann–Whitney AUC, U/(n1n2)U/(n_1n_2), where 0.5 is chance and values below 0.5 mean the quantity is larger on the second group, with the two-sided pp; and a continuous-association claim (a quantity tracks a graded outcome) is reported as a Pearson correlation, with 95% bootstrap confidence intervals over the resampling unit. Where a genuine effect must be separated from problem-difficulty confounds, we additionally report Spearman correlations against difficulty covariates, group statistics recomputed within difficulty strata (sample-size-weighted average), and standardized logistic or linear regressions with difficulty covariates as controls (Wald pp per coefficient); structure-sensitive masses are compared against a

Fixed-target robustness plots

Figure 10. (a) Pooled over steps: total context mass vs. ROUGE-1 — substantially larger than the self-generated value, for the non-causal reason discussed in the text. (b) Per-step Pearson rr (95% bootstrap CI): elevated across all 32 denoising steps, with no over-denoising rise, in contrast to the self-generated trajectory (Figure 5a).

Fixed-target robustness: context reliance vs. infill quality under the fixed gold target

Figure 10 (PDF p. 18). Fixed-target robustness: context reliance vs. infill quality under the fixed gold target (per-token normalized). The correlation is an order of magnitude larger than the self-generated value and, unlike it, does not rise over denoising.

structure-matched random-edge null. Significance markers follow the convention * p<0.05p<0.05, ** p<0.01p<0.01, *** p<0.001p<0.001.

Table 6 reports full statistical results for the WiC experiment (§ 5); Table 7 gives the per-step zero-mass fractions referenced from the attribution-depth footnote in § 5. Table 8 reports full statistical results for the ProsQA experiment (§ 6). Table 9 and Table 10 report full statistical results for the ROCStories infilling experiment (§ 7).

AnalysisStatisticValue
Overall task accuracyOverall accuracy (n=500n=500)63.6%
Same-sense (Yes) accuracy (n=250n=250)90.8%
Different-sense (No) accuracy (n=250n=250)36.4%
Behavioral divergence: predicted-Yes vs. predicted-NoAttribution depth (centroid): mean pred-Yes / pred-No7.017 / 7.014
Attribution depth: AUC / pp0.503 / 0.916 (n.s.)
Commitment timing: mean pred-Yes / pred-No0.073 / 0.271
Commitment timing: AUC / pp0.342 / <10−4< 10^{-4} ***
Hidden structure within predicted-Yes (unsupervised)Attribution depth: BIC 1-comp / 2-comp (n=394n=394)499.4 / 512.1
Attribution depth: modes (ww)6.914 (0.66) / 7.215 (0.34)
Commitment timing: BIC 1-comp / 2-comp (n=394n=394)−75.2 / −57.3
Commitment timing: modes (ww)0.073 (0.50) / 0.073 (0.50)

Table 6. Full statistical results for word-sense discrimination on WiC (§ 5).

AnalysisStatisticValue
ROUGE-1 distribution (self-generated span vs. gold)Mean / median0.212 / 0.200
Range[0.000, 0.833]
Self-target attribution tracks output quality when pooledRatio(right/left) vs. ROUGE: Pearson rr (n=28514n=28514)0.027
Mean attribution ratio (right/left)0.984
Total-mass AUC (pooled, high vs. low ROUGE)0.510 [0.503, 0.517]
Total-mass pp3.4×10−33.4 \times10^{-3} **
Per-step AUC: t=1,17,33,49,63t=1, 17, 33, 49, 630.501, 0.517, 0.533, 0.507, 0.486
Per-step AUC range across all 32 steps[0.485, 0.533]
Attribution is left-skewed (paired, pooled over stories ×\times steps)Mean left mass / mean right mass (n=28514n=28514 story-step cells)34.18 / 32.47
Paired Wilcoxon pp (left vs. right)1.9×10−2041.9 \times10^{-204} ***
Fraction of cells left > right / left < right57.8% / 42.2%
Reliance strengthens late in denoisingMean total mass, t=39t=39 vs. t=63t=6359.36 / 63.85

Table 9. Full statistical results for the ROCStories infilling attribution analysis (§ 7), self-generated target mode.

Model, Datasets and Training Details

All three tasks finetune DiffuGPT-M [2], a masked-diffusion adaptation of GPT-2-medium [43] (∼355\sim355M params). Table 11 gives the data and fine-tuning configuration for WiC; Table 12 gives them for ProsQA. Task-level performance for both is reported in Table 1; generation and evaluation settings for all three tasks are given in Table 13.

SectionParameterValue
Data (WiC)Train / val / test4,928 / 638 / 500
Data (WiC)Test splitlabel-stratified hold-out from train (official test labels not public)
Data (WiC)Prompt format“Sentence 1: . . . Sentence 2: . . . Does the word “<w>” have the same meaning in both sentences?”, empty system prompt
Data (WiC)Targetbinary ### Yes. / ### No. (<eos>-terminated)
Fine-tuningObjectivediffusion SFT (ddm-sft), full fine-tuning
Fine-tuningAnswer-token loss weight10× on the Yes/No token (counteracts Yes-bias)
Fine-tuningAttention / readoutbidirectional retained (anneal_steps=1); shifted (shift=true)
Fine-tuningOptimizer / LRAdamW, 1×10−51 \times10^{-5}
Fine-tuningSchedule / warmupcosine, 0.03
Fine-tuningEpochs40
Fine-tuningBatch size8 per device × 4 grad. accum. steps
Fine-tuningMax sequence length128 (cutoff_len)

Table 11. Data and fine-tuning configuration for the WiC word-sense disambiguation task.

SectionParameterValue
Data (ProsQA)Train / val / test17,886 / 300 / 500
Data (ProsQA)Prompt formatraw “Is <subj> a A or B?”, empty system prompt
Data (ProsQA)Test hop mix (kk)2:202, 3:217, 4:69, 5:12
Fine-tuningObjectivediffusion SFT (ddm-sft), full fine-tuning
Fine-tuningAttention / readoutbidirectional retained (anneal_steps=1); shifted (shift=true)
Fine-tuningOptimizer / LRAdamW, 1×10−51 \times10^{-5}
Fine-tuningSchedule / warmupcosine, 0.03
Fine-tuningEpochs10
Fine-tuningBatch size8 per device × 4 grad. accum. steps
Fine-tuningMax sequence length640 (cutoff_len)

Table 12. Data and fine-tuning configuration for the ProsQA multi-hop task.

ParameterValue
Denoising steps TT64
Reveal schedulerandom-reveal, p→x0=1/(t+1)p_{\to x_0}=1/(t+1)
Samplingnucleus, p=0.9p=0.9; temperature 1.0
Seed42
Precisionfp32
Max new tokens (WiC)8
Max new tokens (ProsQA)64
Max new tokens (ROCStories infill)oracle span length (gold sentence’s own token length)

Table 13. Generation and evaluation configuration, shared sampler settings and per-task overrides.

Attribution step grids. WiC and ROCStories infilling attribute at all 32 odd steps t∈{1,3,5,…,63}t \in\{1,3,5,\ldots,63\} of the T=64T=64 trajectory. ProsQA attributes at 11 steps t∈t \in

{1,7,13,19,25,31,37,43,49,54,60}\{1, 7, 13, 19, 25, 31, 37, 43, 49, 54, 60\}: each ProsQA cell scores a full per-token contrastive attribution over the prompt’s fact graph, markedly more expensive than the single-target scoring used for WiC/infill, so the grid is subsampled for tractability.

WiC. WiC [44] ships a 5,428-train / 638-val split; the official test labels are not public. We therefore carve a label-stratified test set from train, yielding the 4,928 / 638 / 500 split of Table 11. Each instance is cast in a wrapper querying whether the target word shares its sense across the two sentences (prompt format in Table 11), with a binary Yes/No target. Because the answer tokens share no vocabulary with the disambiguating context, the task cannot be solved by surface-form overlap.

ProsQA. ProsQA [45] is a synthetic multi-hop graph-reasoning benchmark. Each question states an ontology as a set of typing facts—including distractors unrelated to the gold reasoning path—assigns the queried subject to a root concept, and poses a binary single-correct choice (“Is ss a AA or BB?”), with the gold option reachable from the root by a kk-hop chain of stated facts. We use the 17,886 / 300 / 500 split (test hop mix in Table 12).

ROCStories infilling. Gong et al. [2] evaluate DiffuGPT-M on ROCStories [46] infilling; we adopt the same setup, generating sentence 3 from sentences 1–2 (left context) and 4–5 (right context) over 1000 evaluation samples. The task is a natural DLIG target because the generated span attends bidirectionally, letting DLIG resolve how attribution mass distributes between left and right context and how that distribution evolves over denoising steps.

References

  1. [1]Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In International conference on machine learning, pages 3319–3328. PMLR, 2017.arxiv.org/abs/1703.01365
  2. [2]Shansan Gong, Shivam Agarwal, Yizhe Zhang, Jiacheng Ye, Lin Zheng, Mukai Li, Chenxin An, Peilin Zhao, Wei Bi, Jiawei Han, et al. Scaling diffusion language models via adaptation from autoregressive models. In International Conference on Learning Representations, volume 2025, pages 5046–5073, 2025.arxiv.org/abs/2410.17891
  3. [3]Jiacheng Ye, Zhihui Xie, Lin Zheng, Jiahui Gao, Zirui Wu, Xin Jiang, Zhenguo Li, and Lingpeng Kong. Dream 7b: Diffusion large language models, 2025. URL https://arxiv.org/abs/2508.15487.
  4. [4]Giang Nguyen. The attribution contract: Feature attribution for generative language models. arXiv preprint arXiv:2605.23080, 2026.arxiv.org/abs/2605.23080
  5. [5]Zhengtao Yao, Liuyang Song, Hongbo Zhang, Chenhao Wei, Haoyan Xu, Guang Yang, and Siheng Wang. Timerome-dlm: Temporal causal tracing and low-rank inference-time knowledge editing for masked diffusion language models. arXiv preprint arXiv:2606.12841, 2026.arxiv.org/abs/2606.12841
  6. [6]Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International conference on machine learning, pages 2256–2265. pmlr, 2015.
  7. [7]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.arxiv.org/abs/2006.11239
  8. [8]Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Towards non-autoregressive language models. arXiv preprint arXiv:2102.05379, 3(4):5, 2021.
  9. [9]Gregor Bachmann and Vaishnavh Nagarajan. The pitfalls of next-token prediction. arXiv preprint arXiv:2403.06963, 2024.arxiv.org/abs/2403.06963
  10. [10]Xiang Li, John Thickstun, Ishaan Gulrajani, Percy S Liang, and Tatsunori B Hashimoto. Diffusion-lm improves controllable text generation. Advances in neural information processing systems, 35:4328–4343, 2022.arxiv.org/abs/2205.14217
  11. [11]Yuxuan Song, Zheng Zhang, Cheng Luo, Pengyang Gao, Fan Xia, Hao Luo, Zheng Li, Yuehang Yang, Hongyi Yu, Xingwei Qu, et al. Seed diffusion: A large-scale diffusion language model with high-speed inference. arXiv preprint arXiv:2508.02193, 2025.arxiv.org/abs/2508.02193
  12. [12]Brendan O’Donoghue and Sebastian Flennerhag. Diffusiongemma: 4x faster text generation. https://blog.google/innovation-and-ai/technology/developers-tools/diffusion-gemma-faster-text-generation/, June 2026. Google Blog.
  13. [13]Haokun Lin, Xinle Jia, Shaozhen Liu, Shujun Xia, Weitao Huang, Haobo Xu, Junyang Li, Yicheng Xiao, Xingrun Xing, Ziyu Guo, et al. Efficient diffusion language models: A comprehensive survey. Journal Name, 2026.DOI
  14. [14]Jaehyeong Jo and Sung Ju Hwang. Continuous diffusion model for language modeling. Advances in Neural Information Processing Systems, 38:93794–97430, 2026.arxiv.org/abs/2502.11564
  15. [15]Yuchen Zhu, Jing Shi, Chongjian Ge, Hao Tan, Yiran Xu, Wanrong Zhu, Jason Kuen, Koustava Goswami, Rajiv Jain, Yongxin Chen, et al. Flare: Diffusion for hybrid language model. arXiv preprint arXiv:2606.01774, 2026.arxiv.org/abs/2606.01774
  16. [16]Pantelis Linardatos, Vasilis Papastefanopoulos, and Sotiris Kotsiantis. Explainable ai: A review of machine learning interpretability methods. Entropy, 23(1):18, 2020.DOI
  17. [17]Edoardo Mosca, Ferenc Szigeti, Stella Tragianni, Daniel Gallagher, and Georg Groh. Shap-based explanation methods: a review for nlp interpretability. In Proceedings of the 29th international conference on computational linguistics, pages 4593–4603, 2022.DOI
  18. [18]Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. "why should i trust you?" explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pages 1135–1144, 2016.DOI
  19. [19]Soumya Sanyal and Xiang Ren. Discretized integrated gradients for explaining language models. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10285–10299, 2021.
  20. [20]Jesse Vig. A multiscale visualization of attention in the transformer model. In Proceedings of the 57th annual meeting of the association for computational linguistics: system demonstrations, pages 37–42, 2019.arxiv.org/abs/1906.05714
  21. [21]Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016.arxiv.org/abs/1610.01644
  22. [22]Vivek Miglani, Aobo Yang, Aram Markosyan, Diego Garcia-Olano, and Narine Kokhlikyan. Using captum to explain generative language models. In Proceedings of the 3rd Workshop for Natural Language Processing Open Source Software (NLP-OSS 2023), pages 165–173, 2023.
  23. [23]Darpan Aswal and Siddharth D Jaiswal. Phonetic perturbations reveal tokenizer-rooted safety gaps in llms. arXiv preprint arXiv:2505.14226, 2025.arxiv.org/abs/2505.14226
  24. [24]Soyeon Kim, Kyowoon Lee, and Jaesik Choi. Diffusion integrated gradients: Controllable path generation for flexible feature attribution. arXiv preprint arXiv:2606.22314, 2026.arxiv.org/abs/2606.22314
  25. [25]Yiming Lei, Zilong Li, Junping Zhang, and Hongming Shan. Denoising diffusion path: Attribution noise reduction with an auxiliary diffusion model. Advances in Neural Information Processing Systems, 37:54003–54025, 2024.DOI
  26. [26]Haomin Zuo, Yidi Li, Luoxiao Yang, and Xiaofeng Zhang. Diffusion-cam: Faithful visual explanations for dmllms. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12085–12101, 2026.
  27. [27]Diogo V Carvalho, Eduardo M Pereira, and Jaime S Cardoso. Machine learning interpretability: A survey on methods and metrics. Electronics, 8(8):832, 2019.
  28. [28]Leonard Bereskin and Efstratios Gavves. Mechanistic interpretability for ai safety–a review. arXiv preprint arXiv:2404.14082, 2024.
  29. [29]Nelson Elhage, Neel Nanda, Catherine Olsson, Tom Henighan, Nicholas Joseph, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, et al. A mathematical framework for transformer circuits. Transformer Circuits Thread, 1(1):12, 2021.
  30. [30]Fred Zhang and Neel Nanda. Towards best practices of activation patching in language models: Metrics and methods. In International Conference on Learning Representations, volume 2024, pages 1651–1678, 2024.arxiv.org/abs/2309.16042
  31. [31]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and editing factual associations in gpt. Advances in neural information processing systems, 35:17359–17372, 2022.arxiv.org/abs/2202.05262
  32. [32]Darpan Aswal, Thomas Palmeira Ferraz, Yongxin Zhou, and Maxime Peyrard. Observable patterns are not explanations: A causal-geometric analysis of latent reasoning models. arXiv preprint arXiv:2606.12689, 2026.arxiv.org/abs/2606.12689
  33. [33]Dong Shu, Xuansheng Wu, Haiyan Zhao, Daking Rai, Ziyu Yao, Ninghao Liu, and Mengnan Du. A survey on sparse autoencoders: Interpreting the internal mechanisms of large language models. In EMNLP (Findings), pages 1690–1712, 2025.
  34. [34]Darpan Aswal and Céline Hudelot. Conceptguard: Neuro-symbolic safety guardrails via sparse interpretable jailbreak concepts. arXiv preprint arXiv:2508.16325, 2025.arxiv.org/abs/2508.16325
  35. [35]Raphael Bernas, Paul G Chevalier, Fanny Jourdan, and Céline Hudelot. When do concepts become functionally sufficient during language-model training? arXiv preprint arXiv:2608.15323, 2026.arxiv.org/abs/2608.15323
  36. [36]Usha Bhalla, Thomas Fel, Can Rager, Sheridan Feucht, Tal Haklay, Daniel Wurgaft, Siddharth Boppana, Matthew Kowal, Vasudev Shyam, Jack Merullo, et al. Do sparse autoencoders capture concept manifolds? arXiv preprint arXiv:2604.28119, 2026.arxiv.org/abs/2604.28119
  37. [37]Thomas Fel, Matthew Kowal, Mozes Jacobs, Dron Hazra, Usha Bhalla, Lee Sharkey, Lucius Bushnag, Satchel Grant, Tal Haklay, Thomas Icard, et al. Structuring sparsity: Block-sparse featurizers capture visual concept manifolds. arXiv preprint arXiv:2606.25234, 2026.arxiv.org/abs/2606.25234
  38. [38]Daniel Wurgaft, Can Rager, Matthew Kowal, Vasudev Shyam, Sheridan Feucht, Usha Bhalla, Tal Haklay, Eric Bigelow, Raphael Sarfati, Thomas McGrath, et al. Manifold steering reveals the shared geometry of neural network representation and behavior. arXiv preprint arXiv:2605.05115, 2026.arxiv.org/abs/2605.05115
  39. [39]Adi Shnaidman, Erin Feiglin, Osher Yaari, Efrat Mentel, Amit Levi, and Raz Lapid. Activation steering for masked diffusion language models. arXiv preprint arXiv:2512.24143, 2025.arxiv.org/abs/2512.24143
  40. [40]Hye seon An and Yo-Sub Han. Dlm-swai: Steering diffusion language models before they unmask. arXiv preprint arXiv:2605.29626, 2026.arxiv.org/abs/2605.29626
  41. [41]Zherui Li, Zheng Nie, Zhenhong Zhou, Yue Liu, Yitong Zhang, Yu Cheng, Qingsong Wen, Kun Wang, Yufei Guo, and Jia heng Zhang. Diffuguard: How intrinsic safety is lost and found in diffusion large language models. In International Conference on Learning Representations, volume 2026, pages 55633–55659, 2026.arxiv.org/abs/2509.24296
  42. [42]Injin Kong, Hyoungjoon Lee, and Yohan Jo. Where should diffusion enter a language model? geometry-guided hidden-state replacement. arXiv preprint arXiv:2605.14368, 2026.arxiv.org/abs/2605.14368
  43. [43]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
  44. [44]Mohammad Taher Pilehvar and Jose Camacho-Collados. Wic: the word-in-context dataset for evaluating context-sensitive meaning representations. 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 1267–1273, 2019.arxiv.org/abs/1808.09121
  45. [45]Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769, 2024.arxiv.org/abs/2412.06769
  46. [46]Nasrin Mostafazadeh, Nathanael Chambers, Xiaodong He, Devi Parikh, Dhruv Batra, Lucy Vanderwende, Pushmeet Kohli, and James Allen. A corpus and close 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, 2016.
  47. [47]Nadim Nachar et al. The mann-whitney u: A test for assessing whether two independent samples come from the same distribution. Tutorials in quantitative Methods for Psychology, 4 (1):13–20, 2008.DOI
  48. [48]John A Hartigan and Pamela M Hartigan. The dip test of unimodality. The annals of Statistics, pages 70–84, 1985.DOI

Paper details

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

views · 0

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