Attention Sinks in Diffusion Language Models

Maximo Eduardo Rulli, Simone Petruzzi, Edoardo Michielon, Fabrizio Silvestri, Simone Scardapane +1 more
10/17/2025
cs.CLcs.AI

No official code found. Best implementation: Maximo-Rulli/dlms-sinks (11 stars, MIT, last commit 2025-12-10).

Abstract

Masked Diffusion Language Models (DLMs) have recently emerged as a promising alternative to traditional Autoregressive Models (ARMs). DLMs employ transformer encoders with bidirectional attention, enabling parallel token generation while maintaining competitive performance. Although their efficiency and effectiveness have been extensively studied, the internal mechanisms that govern DLMs remain largely unexplored. In this work, we conduct an empirical analysis of DLM attention patterns, focusing on the attention sinking phenomenon, an effect previously observed in various transformer-based architectures. Our findings reveal that DLMs also exhibit attention sinks, but with distinct characteristics. First, unlike in ARMs, the sink positions in DLMs tend to shift throughout the generation process, displaying a dynamic behaviour. Second, while ARMs are highly sensitive to the removal of attention sinks, DLMs remain robust: masking sinks leads to only a minor degradation in performance. These results provide new insights into the inner workings of diffusion-based language models and highlight fundamental differences in how they allocate and utilize attention compared to autoregressive models.

View on arXivView PDF

Code Implementations(1)

MIT

Official repository of: Attention Sinks in Diffusion Language Models

110PythonDec 10, 202510 months agoMIT

Similar Papers

Cite this paper

@article{rulli2025attention,
  title  = {Attention Sinks in Diffusion Language Models},
  author = {Maximo Eduardo Rulli and Simone Petruzzi and Edoardo Michielon and Fabrizio Silvestri and Simone Scardapane and Alessio Devoto},
  year   = {2025},
  eprint = {2510.15731},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.15731v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.15731.svg)](https://codeofpaper.com/paper/2510.15731)

Discussion