Skip to main content
QUICK REVIEW

[Paper Review] Revealing the Attention Floating Mechanism in Masked Diffusion Models

Xin Dai, Pengcheng Huang|arXiv (Cornell University)|Jan 12, 2026
Generative Adversarial Networks and Image SynthesisComputer Science0 citations
TL;DR

The paper uncovers the Attention Floating phenomenon in Masked Diffusion Models (MDMs), showing a shallow structure-aware and deep content-focused attention pattern that enhances in-context knowledge use and robustness, outperforming autoregressive models (ARMs) when leveraging retrieved context.

ABSTRACT

Masked diffusion models (MDMs), which leverage bidirectional attention and a denoising process, are narrowing the performance gap with autoregressive models (ARMs). However, their internal attention mechanisms remain under-explored. This paper investigates the attention behaviors in MDMs, revealing the phenomenon of Attention Floating. Unlike ARMs, where attention converges to a fixed sink, MDMs exhibit dynamic, dispersed attention anchors that shift across denoising steps and layers. Further analysis reveals its Shallow Structure-Aware, Deep Content-Focused attention mechanism: shallow layers utilize floating tokens to build a global structural framework, while deeper layers allocate more capability toward capturing semantic content. Empirically, this distinctive attention pattern provides a mechanistic explanation for the strong in-context learning capabilities of MDMs, allowing them to double the performance compared to ARMs in knowledge-intensive tasks. All codes and datasets are available at https://github.com/NEUIR/Attention-Floating.

Motivation & Objective

  • Investigate how attention behaves inside Masked Diffusion Models (MDMs) during denoising.
  • Characterize the Attention Floating phenomenon and contrast it with attention sinks in ARMs.
  • Understand how attention dynamics contribute to in-context learning and knowledge utilization in MDMs.
  • Examine robustness of MDMs under contextual noise, positional biases, and evidence layouts.

Proposed method

  • Define and quantify attention patterns in MDMs across denoising steps and layers.
  • Visualize per-token attention weights and perform layer-wise QK (query-key) geometric decomposition (norm product vs. directional cosine).
  • Identify floating tokens and categorize them into structural versus lexical tokens.
  • Analyze retrieval heads to assess their role in context-sensitive information flow.
  • Conduct region-level attention flow analysis to trace how attention moves across input regions during inference.
  • Compare MDMs with ARMs on knowledge-intensive tasks with and without retrieved context.

Experimental results

Research questions

  • RQ1What is the nature of attention distribution in MDMs across denoising steps and layers?
  • RQ2How do floating tokens differ from sinks in ARMs, and what tokens do they tend to be (structural vs lexical)?
  • RQ3How does the attention floating mechanism contribute to in-context learning and robustness compared to ARMs?

Key findings

  • MDMs exhibit Attention Floating, where dominant attention anchors drift across positions and steps rather than converging to a fixed sink.
  • Shallow layers rely on floating structural tokens to form a global framework, while deeper layers shift attention toward semantic content.
  • Retrieval-headed analysis shows deeper, content-focused retrieval heads becoming more influential with depth, aligning with the proposed shallow-structure, deep-content mechanism.
  • MDMs achieve larger gains from retrieved context on knowledge-intensive tasks, outperforming ARMs with retrieval in several scenarios.
  • MDMs demonstrate robustness to contextual noise, positional perturbations, and evidence distribution, outperforming ARMs in stress tests.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.