arXiv:2610.13337cs.CVOct 2026

Manuscript Offprint

arXiv:2610.13337

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

Binglei Li, Mengping Yang, Zhiyu Tan, Wenxu Qian, Junping Zhang, Hao Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Binglei Li1,2^{1,2}, Mengping Yang1,3†^{1,3\dagger}, Zhiyu Tan1,3^{1,3}, Wenxu Qian1,2^{1,2}, Junping Zhang1#^{1\#}, Hao Li1,2,3#^{1,2,3\#}

1^{1}Fudan University 2^{2}Shanghai Innovation Institute 3^{3}Shanghai Academy of AI for Science

†^{\dagger}Project Lead #CorrespondingAuthors\#Corresponding Authors

{blli24}@m.fudan.edu.cn, {jpzhang, lihao_lh}@fudan.edu.cn

(a). T2I Transformer Architecture

Figure

Bidirectional Diffusion Transformer

Casual AR Transformer

→ Bidirectional attention

→ Casual attention

Text

Image

(b). Attention Maps with Sinks

Figure

Keys: 0→N0 \rightarrow N

Keys: 0→N0 \rightarrow N

  1. Sink position depends on generation paradigm.

  2. Sink heads are sparse and stable.

  3. Sinks are structural and semantic anchors.

★ Attention sink

---- Boundary

(c). Intervention Strategies

(d). Visualization of Intervention Strategies and Removing Sink Token

Figure

Standard Attention

QK

logits

Softmax

②. Value Substitution

Vsink→0V_{sink} \rightarrow 0

Remove sink contribution

③. Head Pruning

Head 1

Head 2

Head 3

Remove sink-dominant heads

head

output

Figure

FLUX.1 Baseline

①. Logit Penalty

②. Value Substitution

③. Head Pruning

Infinity-2B Baseline

Remove from s1

Remove from s2

Remove from s3

FLUX.1 Baseline

Remove all stage

Remove early stage

Remove later stage

Figure 1. Overview of our analysis on attention sinks in text-to-image Transformers. (a) Transformer architecture of bidirectional diffusion and causal autoregressive models; (b) representative sink patterns in FLUX.1 (Diffusion) and Infinity-2B (Autoregressive); (c) intervention strategies, including logit penalty, value substitution, and head pruning; (d) their effects together with stage-wise global-token removal. The evaluated diffusion models concentrate attention near modality boundaries and spatial corner positions, whereas Infinity-2B exhibits strong raw concentration at its first/global token.

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.

1. Introduction

Transformers have become a central architecture for modern generative modeling, but their attention maps often contain attention sinks, where a small set of token positions absorb disproportionately large attention mass [35, 41]. Such phenomenon has been extensively studied in large language models (LLMs), where causal masking and sequence organization often cause early tokens to act as persistent attention anchors [13, 14, 32, 41]. However, the prevailing understanding of attention sinks remains largely centered in LLMs, with limited exploration in other domains.

Text-to-image Transformers differ substantially from LLMs. They jointly process text and image tokens, organize visual tokens according to spatial or multiscale structures, and generate images either through iterative diffusion denoising or autoregressive image-token prediction [3, 9, 15, 21, 34]. Therefore, their attention distributions might be relevant to modality boundaries, spatial topology, attention directionality, and generation stage. These properties may not be reflected by the conventional first-token sink of causal LLMs. Moreover, sink patterns reported in vision models [26, 45] do not directly explain how attention is allocated during multimodal T2I generation. A systematic study of attention sinks in T2I models is thus needed not only to determine whether the phenomenon occurs beyond LLMs, but also to better understand how T2I Transformers allocate and route attention during generation.

This paper addresses three fundamental questions: 1) whether attention sinks exist in modern T2I Transformers, 2) where they are located, and 3) are they functionally relevant to generation? To answer them, we conduct a systematic empirical study across three models: FLUX.1 and Z-Image as diffusion-based T2I Transformers, and Infinity-2B as an autoregressive T2I Transformer, as shown in Fig. 1(a). We first characterize their attention distributions by sink strength, attention inequality, layer-head localization, positional preference, prompt sensitivity, and inference-time dynamics. Concretely, we evaluate these properties on GenEval [11] and DPG-Bench [17], which cover diverse compositional generation and fine-grained text-image alignment. Then, we perform targeted interventions on attention routing, value contributions, sink-related heads, and candidate sink positions to assess their functional relevance. Finally, we introduce register tokens as dedicated non-semantic positions to examine whether sink-related attention can be redistributed without comprising synthesis quality.

Our results show that attention-sink patterns are structured in both diffusion and autoregressive T2I transformers, yet their locations differ substantially across architectures. Autoregressive model exhibits pronounced concentration on the global first token, while the diffusion models concentrate attention near modality boundaries, within text-token regions, and at spatial corners. Moreover, sink behavior is localized to a sparse subset of layers and heads and evolves across denoising or coarse-to-fine generation stages, suggesting that sink locations of T2I transformers are associated with the inference stage rather than fixed token positions.

To investigate their influence on generation, we perform interventions on sink tokens, which reveal heterogeneous functional effects. Perturbing sink-ranked heads produces larger average changes than the reported random or low-sink comparisons, indicating that certain sink-related heads participate in consequential generation pathways. In comparison, several sink-position perturbations have limited effects in bidirectional diffusion models. Additionally, register-token experiments further show that several configurations can redistribute attention while preserving or modestly improving generation performance. Together, these results extend the study of attention sinks beyond its language-centric formulation. Our analysis characterizes attention sinks as architecture-, stage-, and component-dependent phenomena and establishes an important distinction between where attention accumulates and where generation is functionally sensitive. Our contributions are summarized as:

• We systematically explore and characterize attention sinks in bidirectional diffusion and causal autoregressive T2I Transformers across token positions, layers, heads, prompts, and generation stages.

• We evaluate the functional relevance of sink-related components through targeted interventions and investigate register tokens as dedicated non-semantic positions for redistributing attention.

• We provide an empirical foundation for controlled mechanistic analysis and for the principled design of attention mechanisms and token layouts in T2I Transformers.

References (45)