跳到正文
arXiv cs.CL· Binglei Li, Mengping Yang, Zhiyu Tan, Wenxu Qian, Junping Zhang, Hao Li·· 6 天前AI 评分22

文本到图像 Transformer 中的注意力汇:扩散模型与自回归模型对比研究

Exploring Attention Sinks in Text-to-Image Transformers from Diffusion and Autoregressive Models

AI 导读

研究系统分析了文本到图像 Transformer 中的注意力汇现象,发现双向扩散模型和自回归模型中均存在注意力汇,但模式截然不同:自回归模型集中于首个 token 和全局 token,双向模型则出现在模态边界、文本区域和空间角落。扰动汇相关注意力头比非汇头产生更大平均变化,引入 register token 可重新分配注意力汇且部分配置能保持或略微提升生成性能。

正文 · 原文

View PDF HTML (experimental)

Abstract:Attention sinks are tokens or positions that consistently receive disproportionate attention mass, often beyond what their semantic content would suggest. Despite extensive study in large language models, their behavior and functional relevance in text-to-image (T2I) Transformers remain largely unexplored. To fill this gap and better understand how text-to-image Transformers allocate and route attention, we explore this phenomenon of text-to-image transformers across bidirectional diffusion models and causal autoregressive models. Specifically, we explore whether attention sinks exist, where they emerge, and how they functionally influence generation. Through systematic attention analysis and targeted interventions, we identify that attention sinks emerge in both bidirectional diffusion and autoregressive models but exhibit distinct patterns. The autoregressive model concentrates attention on the first and global-scale tokens, whereas the bidirectional models develop sinks near modality boundaries, within text regions, and at spatial corners. Moreover, these patterns vary across generation stages and are localized to a sparse subset of layers and heads. To assess their functional relevance, we perturb sink-related heads and token positions. It turns out that perturbing sink-ranked heads produces larger average changes than non-sink comparisons, while some sink-position perturbations have limited effects on bidirectional model scores. We further introduce register tokens to redistribute attention sinks and find that several configurations preserve or modestly improve generation performance. Overall, attention sinks are architecture-, inference-stage-, and component-dependent phenomena, providing a basis for mechanistic analysis and principled attention design in text-to-image transformers.
Comments: 10 pages
Subjects: Computer Vision and Pattern Recognition (cs.CV); Computation and Language (cs.CL)
Cite as: arXiv:2610.13337 [cs.CV]
  (or arXiv:2610.13337v1 [cs.CV] for this version)
  https://doi.org/10.48550/arXiv.2610.13337

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Binglei Li [view email]
[v1] Fri, 9 Oct 2026 10:10:51 UTC (2,271 KB)

来源:arXiv cs.CL · arxiv.org