Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Models

Injin Kong, Hyoungjoon Lee, Yohan Jo

Abstract

Post-training pretrained Autoregressive models (ARMs) into Masked Diffusion models (MDMs) has emerged as a cost-effective strategy to overcome the limitations of sequential generation. However, the internal algorithmic transformations induced by this paradigm shift remain unexplored, leaving it unclear whether post-trained MDMs acquire genuine bidirectional reasoning capabilities or merely repackage autoregressive heuristics. In this work, we address this question by conducting a comparative circuit analysis of ARMs and their MDM counterparts. Our analysis reveals a systematic "mechanism shift" dependent on the structural nature of the task. Structurally, we observe a distinct divergence: while MDMs largely retain autoregressive circuitry for tasks dominated by local causal dependencies, they abandon initialized pathways for global planning tasks, exhibiting distinct rewiring characterized by increased early-layer processing. Semantically, we identify a transition from sharp, localized specialization in ARMs to distributed integration in MDMs. Through these findings, we conclude that diffusion post-training does not merely adapt model parameters but fundamentally reorganizes internal computation to support non-sequential global planning.

Introduction

The dominant paradigm in AI is the Autoregressive Model (ARM), which generates text token-by-token from left to right. While successful, ARMs struggle with "global reasoning"—tasks where early decisions must account for constraints at the very end of a sequence—because they cannot "look back" or revise past tokens during a single generation pass. Masked Diffusion Models (MDMs) offer a bidirectional alternative, refining entire sequences at once. However, training MDMs from scratch is computationally expensive. A popular workaround is "diffusion post-training," where a pre-trained ARM is fine-tuned with a diffusion objective. This study investigates whether this post-training actually teaches the model new bidirectional reasoning tricks or simply repackages its old left-to-right heuristics.

Methodology: Opening the Black Box

To understand the internal transformations, the researchers employed several mechanistic interpretability techniques to "open the hood" of these models:

  • Comparative Circuit Analysis: Using Edge Attribution Patching with Integrated Gradients (EAP-IG) to identify the "circuits"—minimal subgraphs of neurons and attention heads—responsible for specific tasks.
  • Logit Lens: Projecting internal activations of intermediate layers back into the vocabulary space to see what "words" the model is considering at each stage.
  • Neuron Explanation: Analyzing which specific input tokens trigger the highest activations in early-layer neurons to understand their semantic roles.
Overview of the comparative analysis between Autoregressive and Masked Diffusion models.

Experimental Setup

The study focuses on two representative tasks designed to probe different reasoning capabilities:

  1. Indirect Object Identification (IOI): A linguistic task involving local causal dependencies (e.g., "John and Mary went to the store. John gave the bag to [Mary]"). This serves as a baseline for "easy" causal reasoning.
  2. Countdown: A numerical reasoning task where the model must use a set of numbers to reach a target value. This requires "inverse planning" and global reasoning, as early choices are strictly constrained by the final target.

The researchers evaluated two model families: Qwen2.5-7B (and its MDM version, Dream) and LLaMA-2-7B (and its MDM version, DiffuLLaMA).

Key Insights: A Fundamental Reorganization

The research revealed that the transition from ARM to MDM isn't just a surface-level objective swap; it fundamentally rewires the model's internal logic based on the task structure.

The Task-Dependent Mechanism Shift

For the IOI task (local/causal), the MDM largely reuses the ARM's original circuitry. However, for Countdown (global reasoning), the circuit overlap collapses almost to zero, indicating a total internal "rewiring." This suggests that while MDMs can recycle old circuitry for simple tasks, they must abandon initialized pathways to solve complex global planning problems.

Quantitative comparison of circuit overlap between ARMs and MDMs across different tasks.

Front-Loading and Distributed Processing

Beyond structural changes, the study identified two major shifts in how MDMs process information:

  • Depth-wise Shift: MDMs exhibit a "front-loading" of computation, moving significant processing to the earliest layers. This suggests MDMs use early layers to build a global "blueprint" of the sequence before refining it in later stages.
  • From Specialists to Ensembles: ARMs tend to have "sharp specialization," with specific attention heads acting as dedicated pointers. In MDMs, this specialization collapses; semantic responsibility is distributed across many components, leading to a more "ensemble-like" computation style.

Conclusion and Future Directions

This research demonstrates that diffusion post-training fundamentally reorganizes internal computation to support non-sequential global planning. While the study is currently limited to specific tasks and 7B-scale models, it provides a crucial foundation for understanding how bidirectional reasoning emerges. Future work will explore if these internal shifts correlate with performance gains in long-form generation and whether larger models exhibit similar front-loading behaviors.

Summary updated

BibTeX
@misc{kong2026mechanism,
  author = {Injin Kong and Hyoungjoon Lee and Yohan Jo},
  title = {{Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Models}},
  year = {2026},
  eprint = {2601.14758},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.14758},
}
Figure