mlsanityData to 14 Oct 2026

Induction in Both Directions: A Mechanistic Analysis of In-Context Learning in Masked Diffusion Language Models

arXiv 2607.15893 ↗First posted 17 Jul 2026cs.CL cs.AI cs.LGcited by 0

On the map: Diffusion models → Discrete and text diffusion

Abstract (arXiv)

While the internal mechanisms of autoregressive (AR) transformers have been studied extensively, much less is known about diffusion language models (DLMs), an emerging alternative that generates text by iterative denoising. In this work, we study how DLMs implement induction, a mechanism behind in-context learning in which the model finds a repeated context and copies the token that followed it. Our analysis compares attention-only AR models and absorbing-mask DLMs with matched architectures. We find that DLMs learn a bidirectional induction circuit, where previous-token and next-token heads write local context into the residual stream and later induction heads use it to find and copy the answer from the matching source position. The circuit is direction-symmetric, working whether the source appears in the past or in the future. When only left context is visible, matching what an AR model sees, the DLM does not outperform its AR counterpart in induction capabilities. However, we observe it has stronger induction when both sides of the masked token are visible, pointing to bidirectional context access rather than a stronger one-sided mechanism. Beyond induction, we provide causal evidence that DLMs compute the global fraction of masked tokens and use it as an implicit timestep, even though they are given no explicit timestep embedding.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 27 of its 38 references that are in the map. First posted on arXiv 17 Jul 2026.

Builds on

27 of 38 references.

Closest ancestors · 10

Same direction, newest first

  1. 2026DLM-Scope: Mechanistic Interpretability of Diffusion Language Models via Sparse Autoencoders5 Feb
  2. 2026Revealing the Attention Floating Mechanism in Masked Diffusion Models12 Jan
  3. 2025Masked Diffusion Models are Secretly Learned-Order Autoregressive Models24 Nov
  4. 2025Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusions10 Feb
  5. 2024Scaling up Masked Diffusion Models on Text24 Oct
  6. 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Models23 Oct
  7. 2024Masked Diffusion Models are Secretly Time-Agnostic Masked Models and Exploit Inaccurate Categorical Sampling4 Sep
  8. 2024Simplified and Generalized Masked Diffusion for Discrete Data6 Jun
  9. 2024Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data6 Jun
  10. 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution25 Oct

Other references · 17

  1. 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,719
  2. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  3. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  4. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  5. 2022Toy Models of Superpositioncited by 971
  6. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
  7. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  8. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  9. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
  10. 2023The Impact of AI on Developer Productivity: Evidence from GitHub Copilotcited by 274
  11. 2022CoAuthor: Designing a Human-AI Collaborative Writing Dataset for Exploring Language Model Capabilitiescited by 249
  12. 2025Mercury: Ultra-Fast Language Models Based on Diffusioncited by 235
5 more
  1. 2023Localizing Model Behavior with Path Patchingcited by 195
  2. 2026Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnetcited by 191
  3. 2022Bidirectional Language Models Are Also Few-shot Learnerscited by 48
  4. 2022On the Role of Bidirectionality in Language Model Pre-Trainingcited by 15
  5. 2024You can remove GPT2's LayerNorm by fine-tuningcited by 11

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026A Theoretical Analysis of Why Masked Diffusion Models Mitigate the Reversal Curse
  2. 2025A Survey on Diffusion Language Models
  3. 2026Multi-Stream Residual Computation in Diffusion Language Models
  4. 2025Attention Sinks in Diffusion Language Models
  5. 2026DreamingGoose: Staged Distillation from Autoregressive Transformers to Bidirectional Recurrent Diffusion Language Models
  6. 2026Don't Retrain, Align: Adapting Autoregressive LMs to Diffusion LMs via Representation Alignment
  7. 2025Activation Steering for Masked Diffusion Language Models
  8. 2026One Token Is Enough: Improving Diffusion Language Models with a Sink Token