---
title: 'DLM-Scope: Interpretability for Diffusion LMs'
url: https://www.emergentmind.com/topics/dlm-scope
type: topic
---

# DLM-Scope: Interpretability for Diffusion LMs

DLM-Scope is the first systematic mechanistic interpretability framework for diffusion language models (DLMs) based on sparse autoencoders (SAEs). As DLMs emerge as an alternative to autoregressive large language models (LLMs), understanding their internal representations and enabling controlled interventions is of increasing interest. DLM-Scope enables the extraction and manipulation of sparse, human-interpretable features in DLMs, uncovering both the unique effects of SAE-based interventions in denoising architectures and novel research directions that exploit the flexibility of the diffusion paradigm [2602.05859].

## 1. Diffusion Language Models: Architecture and Inference

Diffusion Language Models generate text via iterative denoising of a partially masked sequence. Let $x^0 = (x^0_1, \dots, x^0_N)$ be a clean data sample from a corpus. The forward process generates a corrupted sequence $x^t$ by independently masking each token with probability $t$ (for $t \in (0,1)$), with mask rate $w(t)=1/t$. The denoising model $p_\theta$ is trained to reconstruct original tokens at masked positions, with an importance-weighted cross-entropy loss:
\[
L_{\mathrm{DLM}(\theta)} = \mathbb{E}_{x^0,t,x^t}\left[w(t)\sum_{i:x^t_i=[\mathrm{MASK}]} -\log p_\theta(x^0_i|x^t)\right]
\]
[2602.05859, Eq. (3)]. Inference is performed by sampling from $p_\theta(\cdot|x^{(k)})$, filling in masked slots, and then re-masking to the next mask-rate, thus iteratively improving the sequence estimate through successive "denoising" and "remasking" steps.

## 2. Sparse Autoencoders: Architecture and Feature Extraction

At any layer $\ell$ in the DLM, the activation $x\in\mathbb{R}^d$ (for a token) is processed by a Top-$K$ sparse autoencoder:
- Encoder: $h = \mathrm{TopK}(\mathrm{ReLU}(W_{\mathrm{enc}}x + b_{\mathrm{enc}}), L_0)$, restricting to the $L_0$ largest nonzero activations for sparsity.
- Decoder: $\hat x = W_{\mathrm{dec}}h + b_{\mathrm{dec}}$ with $W_{\mathrm{dec}} \in \mathbb{R}^{d\times k}$.

The loss is a sum of reconstruction and sparsity,
\[
L_{\mathrm{SAE}} = \|x-\hat x\|_2^2 + \lambda \|h\|_1
\]
where $\lambda$ is chosen to target expected sparsity $L_0$ [2602.05859, Eq. (1)].

After training, each column $v_f$ of $W_{\mathrm{dec}}$ is a basis vector corresponding to a potentially interpretable feature. DLM-Scope supports "feature steering" during inference by injecting $v_f$ (with strength $\alpha$) into one or more token positions $X^{(\ell)}$:
\[
X^{(\ell)}_{\text{new}} = X^{(\ell)} + \alpha\, s \odot v_f
\]
where $s\in\{0,1\}^N$ is a selector mask (e.g., all tokens, or only masked tokens at that step).

## 3. Effects of SAE Insertion and Diffusion-time Interventions

A key finding is that SAE insertion in DLMs incurs qualitatively different effects on cross-entropy loss than in autoregressive LLMs. Specifically, DLMs exhibit a "negative-loss" regime in early (shallower) layers: after SAE insertion, masked-token cross-entropy can decrease (improve) compared to the baseline DLM, while in LLMs any such insertion reliably increases the loss. This regime is summarized in Table 1, showing that for Dream-7B (Mask model) $\Delta L_{\mathrm{DLM}} < 0$ in layers L1–L14 at $L_0=80$, while Qwen-2.5B always sees positive penalty [2602.05859, Table 1].

SAE features are also shown to enable more effective interventions during denoising ("diffusion-time steering") than their LLM counterparts. Steering metrics assessed include:
- Concept improvement $C(f)$: change in task-relevant concept score, normalized.
- Perplexity reduction $P(f)$: relative improvement in sequence perplexity.
- Combined score $S(f) = C(f) + \gamma P(f)$.

In DLMs, deep-layer SAE features achieve higher combined $S$-scores during intervention than LLM features—demonstrating superior steerability in the multi-step denoising process [2602.05859, Table 2]. This effect is typically 2–10× larger in DLMs.

## 4. SAE-based Decoding Order Analysis

DLM-Scope leverages SAE codes to analyze how internal concepts evolve under different token remasking ("decoding") strategies:
- ORIGIN: random order
- TOPK-MARGIN: select tokens with highest prediction margin
- ENTROPY: select tokens with lowest entropy

For each masked token $i$ at layer $\ell$ and step $k$, $h_{\ell,k,i}$ records active SAE features. By analyzing Jaccard stability $S^{\mathrm{pre}}_{\ell,k}$ and post-decode drift $D^{\mathrm{post}}_\ell$, DLM-Scope reveals that random-order updates produce stable, slowly varying feature sets, while confidence-based strategies induce earlier and deeper conceptual shifts. These dynamics are linked to downstream accuracy (e.g., on GSM8K), suggesting that SAE features can serve as diagnostic signals for optimal decoding policy [2602.05859].

## 5. SAE Feature Stability Across DLM Post-training

SAE features in DLMs are remarkably stable with respect to post-training shifts (e.g., instruction tuning). A base-trained SAE, when applied to the instruction-tuned DLM (Dream-SFT), yields nearly identical functional fidelity ($\Delta L_{\mathrm{DLM}}$) and explained variance through almost all layers except the deepest. Specifically, for layers L1–L23, the change in both metrics is negligible ($|\Delta L_{\text{BASE}} - \Delta L_{\text{SFT}}| \ll 0.1$). Only in the deepest layer (L27) does the SFT-induced subspace shift appreciably affect the autoencoder, marking a boundary for robust SAE transferability [2602.05859].

## 6. Insights, Limitations, and Prospects

DLM-Scope demonstrates that sparse feature extraction, interpretability, and steering are more effective and stable in DLMs than LLMs. The "negative-loss" SAE insertion regime is unique to DLMs. DLM-Scope enables novel diagnostics for decoding order and concept evolution.

Limitations include experiments restricted to Dream-7B and Dream-8B models only, with reduced SAE feature transfer in the deepest network layers under strong post-training modifications. Future directions include scaling SAE-based interpretability to 100B-parameter DLMs, integrating with continuous diffusion modeling, and leveraging SAE-guided curriculum learning for improved sampling and generation in DLMs.

DLM-Scope establishes the methodological basis for mechanistic interpretability in diffusion language models, providing both practical and theoretical tools to probe, analyze, and control DLM representations and behavior [2602.05859].

Source: https://www.emergentmind.com/topics/dlm-scope