AID: Attention Interpolation of Text-to-Image Diffusion

Qiyuan He, Jinghao Wang, Ziwei Liu, Angela Yao
2/3/2026

No official code found. Best implementation: QY-H00/attention-interpolation-diffusion (109 stars, PyTorch, last commit 2024-11-20).

Abstract

Conditional diffusion models can create unseen images in various settings, aiding image interpolation. Interpolation in latent spaces is well-studied, but interpolation with specific conditions like text or poses is less understood. Simple approaches, such as linear interpolation in the space of conditions, often result in images that lack consistency, smoothness, and fidelity. To that end, we introduce a novel training-free technique named Attention Interpolation via Diffusion (AID). Our key contributions include 1) proposing an inner/outer interpolated attention layer; 2) fusing the interpolated attention with self-attention to boost fidelity; and 3) applying beta distribution to selection to increase smoothness. We also present a variant, Prompt-guided Attention Interpolation via Diffusion (PAID), that considers interpolation as a condition-dependent generative process. This method enables the creation of new images with greater consistency, smoothness, and efficiency, and offers control over the exact path of interpolation. Our approach demonstrates effectiveness for conceptual and spatial interpolation. Code and demo are available at https://github.com/QY-H00/attention-interpolation-diffusion.

View on arXivView PDF

Code Implementations(1)

PyTorch

[NeurIPS 2024] Official Implementation of Attention Interpolation of Text-to-Image Diffusion

1097CSS, PythonFeb 22, 20241 years ago
deep-learningdiffusionimage-interpolationpytorchstable-diffusion+1 more

Similar Papers

Cite this paper

@article{he2026aid,
  title  = {AID: Attention Interpolation of Text-to-Image Diffusion},
  author = {Qiyuan He and Jinghao Wang and Ziwei Liu and Angela Yao},
  year   = {2026},
  eprint = {2403.17924},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2403.17924},
  url    = {https://arxiv.org/abs/2403.17924},
  journal = {NEURIPS 2024 2024}
}

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

Discussion