Denoising Diffusion Generative Models Secretly Calculate Attentions

Farzan Haddadi, Leila Monfared, Ebrahim Rezaii, Mohammadreza Malek-Mohammadi, Pejman Zakalvand +1 more
9/1/2026
cs.AIcs.CVcs.LG

No official code found. Best implementation: teddytennant/jax-diffusion-is-attention (0 stars, MIT, last commit 2026-09-02).

Abstract

Denoising diffusion models are the dominant architecture for image generation, whereas most natural language generation and modeling are primarily handled by well-known transformer architectures employing attention mechanism. Here, we show that diffusion models also inherently use an attention mechanism very similar to that of transformers. Therefore, attention emerges as a universal machine learning principle, based on a general training objective. We also show similarities in basic functional principle of auto-encoders and attention-based models. These equivalences allows us to interchange these designs based on practical requirements. As an example, we can reformulate the diffusion framework to reduce the lengthy training process and computation-intensive image generation. Using this approach, a simplified algorithm is proposed for image generation which is based on attention mechanism. Results show that the attention-based implementation achieves comparable performance with significantly less effort and computational resources.

View on arXivView PDF

Code Implementations(1)

MIT

JAX implementation of Denoising Diffusion Generative Models Secretly Calculate Attentions (arXiv:2609.00885)

00PythonSep 2, 20261 months agoMIT

Similar Papers

Cite this paper

@article{haddadi2026denoising,
  title  = {Denoising Diffusion Generative Models Secretly Calculate Attentions},
  author = {Farzan Haddadi and Leila Monfared and Ebrahim Rezaii and Mohammadreza Malek-Mohammadi and Pejman Zakalvand and Narges Mokhtari},
  year   = {2026},
  eprint = {2609.00885},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.00885v1}
}

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/2609.00885.svg)](https://codeofpaper.com/paper/2609.00885)

Discussion