Manuscript Offprint
arXiv:2610.13337Exploring Attention Sinks in Text-to-Image Transformers from Diffusion and Autoregressive Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Binglei Li, Mengping Yang, Zhiyu Tan, Wenxu Qian, Junping Zhang, Hao Li
Fudan University Shanghai Innovation Institute Shanghai Academy of AI for Science
Project Lead
{blli24}@m.fudan.edu.cn, {jpzhang, lihao_lh}@fudan.edu.cn
(a). T2I Transformer Architecture

Bidirectional Diffusion Transformer
Casual AR Transformer
→ Bidirectional attention
→ Casual attention
Text
Image
(b). Attention Maps with Sinks

Keys:
Keys:
-
Sink position depends on generation paradigm.
-
Sink heads are sparse and stable.
-
Sinks are structural and semantic anchors.
★ Attention sink
---- Boundary
(c). Intervention Strategies
(d). Visualization of Intervention Strategies and Removing Sink Token

Standard Attention
QK
logits
Softmax
②. Value Substitution
Remove sink contribution
③. Head Pruning
Head 1
Head 2
Head 3
Remove sink-dominant heads
head
output

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.
The set of AS tokens is then given by:
where is a concentration threshold. This formulation highlights the extreme numerical prominence of AS tokens. Across different architectures, AS tokens consistently correspond to uninformative tokens.
Text-to-Image Transformers. The Transformer [35] defines a sequence modeling paradigm based on the multi-head self-attention mechanism. For an input , where denotes the sequence length and the feature dimension, the queries , keys , and values are obtained via linear projection. Attention is then computed:
where and H is the total number of heads.
In MMDiTs [3, 9, 21], the image feature and the text embedding are concatenated and jointly modeled via bidirectional attention across transformer blocks to progressively denoise the latent. Autoregressive models [15, 24, 34] factorize the joint distribution as , with the transformers predicting the next token via causal attention or next scale over a coarse-to-fine hierarchy.
3. Analytical Framework
We establish a unified framework for identifying, localizing, and intervening on attention sinks in T2I Transformers, with related metrics (Sec. 3.1), intervention strategies (Sec. 3.2), and experimental setup (Sec. 3.3).
3.1. Metrics for Attention Sinks
Sink Concentration. Unless otherwise specified, we average cumulative attention mass over prompts and generation steps. For head h at layer l, we define its sink concentration as
where denotes the averaged attention mass received by token , defined in Eq. 1. Because is normalized by the number of visible tokens, the uniform-attention null of is mask-independent, giving under bidirectional, causal, and variable-availability masks alike. Values above therefore indicate genuine concentration on a few tokens rather than mask geometry, and is directly comparable across the two models. We rank heads by and denote the top- sink heads as . For each head, the top- sink-token set is
which contains the k token positions receiving the largest attention mass. Empirically, we set for the diffusion models and for Infinity-2B.
Position-Wise Sink Ratio. For each evaluated attention unit , let denote its top-k sink-token set. For a candidate position , such as the sequence start, a modality boundary, or an autoregressive global-scale token, we define its position-wise sink ratio as
where U is the set of layer-head units included in the analysis. Thus, is the fraction of units for which c is the dominant sink, whereas measures how often c appears among the five strongest sinks. This metric compares the prominence of predefined positions, but by itself does not distinguish a sink-specific effect from causal visibility or an architectural token role.
Generation-Time Dynamics. We divide inference into early, middle, and late stages. For diffusion models, measures the fraction of top-k sink tokens falling in the image-token region. For Infinity-2B (autoregressive coarse-to-fine), we use a fine-scale score to measure whether sink mass shifts toward finer visual scales. We quantify positional stability via the Jaccard overlap (i.e., the ratio of the intersection to the union) of the top-k sink sets across adjacent steps and across generation stages. Detailed formulas for , are provided in the appendix.
Prompt-Distribution Stability. To assess whether sink behaviors depend on prompt distribution, we conduct experiments on GenEval and DPG-Bench. We compare the sink-head stability using Pearson correlation of two sets of sink-head profiles. To measure whether the sink position of a fixed attention unit wanders across prompts, we use normalized sink-position entropy and report the fraction of high-entropy units with . Detailed formulas and explanations are provided in the appendix.
3.2. Intervention Strategy
To probe the functional role of attention sinks, we use three suppressive interventions targeting different components of multi-head attention:
where is a head mask, is a logit-bias matrix, and is a possibly modified value matrix. The vanilla model sets , , and for all heads. During interventions, we apply only one intervention strategy at a time.
Logit Penalty. Given sink positions , we set with penalty strength . Typically, we set . This perturbs attention routing before the softmax while leaving value states unchanged.
Value Substitution. We zero out value vectors at sink positions, i.e., for and otherwise. This tests whether sink-token value states carry useful information even when attention routing remains intact.
Head Pruning. We set for , removing the entire output contribution of selected sink heads. This measures how generation changes when the output contribution of selected high-concentration heads is removed.
3.3. Experimental Setups
Models. We study two T2I Transformer paradigms: bidirectional denoising models, including FLUX.1-dev [21] and Z-Image [3], and a causal autoregressive model, Infinity-2B [15]. During inference, all models generate images using their official inference settings. FLUX.1 and Z-Image use the EDM [20] sampler with 28 denoising steps, while Infinity-2B uses a bitwise sampler with a 13-scale schedule.
Token Layouts. Token layouts differ across models: Infinity follows a causal sequence, whereas FLUX.1 and Z-Image adopt a fixed interleaved structure. Moreover, FLUX.1 places text tokens first and Z-Image places image tokens first. We therefore define three positional relations: 1) sequence position, 2) text-side relation, and 3) image-side relation. In the following, token position refers to the index within the sequence, while modality relations are discussed separately.
Datasets and Metrics. We evaluate on two complementary benchmarks: GenEval [11], which contains 553 prompts for compositional generation such as counting, color attribution, and spatial relations, and DPG-Bench [17], which contains 1065 prompts for fine-grained text-image alignment. Together, they provide 1618 prompts with distinct lengths and semantic densities. We report official GenEval and DPG-Bench scores for semantic alignment, and use HPSv2 [39] and ImageReward [42] as auxiliary preference and perceptual-quality metrics. For intervention tables, denotes the average percentage change across the reported
Table 1. Sink ratios of predefined candidate positions. Infinity exhibits pronounced concentration on the first token, while the diffusion models concentrate attention near modality boundaries, in text-token regions, and at spatial corners.
| Model | Candidate c | ||
|---|---|---|---|
| FLUX.1 | sequence pos 0 | 0.32% | 0.56% |
| text pos 7 | 12.95% | 32.26% | |
| boundary pos 511 | 6.05% | 23.06% | |
| image pos 4544 | 3.04% | 18.33% | |
| Z-Image | sequence pos 0 | 0.47% | 0.65% |
| boundary pos 4096 | 10.89% | 21.31% | |
| text pos 4109 | 11.62% | 32.49% | |
| Infinity-2B | 1×1 token pos 0 | 37.52% | 100.00% |

Figure 2. Attention mass by token position across models. We highlight the most prominent sink positions for each model. Panels show FLUX.1, Z-Image, and Infinity-2B, while vertical markers identify modality or scale boundaries and insets magnify local peaks. Diffusion models peak near modality boundaries or image corners, whereas Infinity exhibits a pronounced position-0 sink.
metrics relative to the corresponding baseline. All evaluations follow the official protocols, and all experiments are conducted on NVIDIA H100 GPUs.
4. Systematic Analysis
4.1. Effects of Token Position on Attention Sinks
Attention sinks are positionally model-dependent. Fig. 1(b) shows that Infinity-2B concentrates attention on its first and global token, whereas FLUX.1 places strong attention near structural text-image or layout positions. The aggregate statistics in Tab. 1 and Fig. 2 show the same pattern beyond the visual examples. The first position is rarely selected as a sink in the evaluated diffusion models

Figure 3. Layer-head maps of sink concentration across models. Each cell represents one attention head, and higher values indicate stronger concentration on a single key token. Sink-dominant heads are sparse and occur at architecture-specific depths.
with , while Infinity-2B shows a pronounced position-0 concentration with . Moreover, bidirectional diffusion models favor the text region and modality boundary, as the highlighted in the Fig. 2. This shows that T2I attention sinks do not follow a universal first-token pattern inherited from language models. Instead, their preferred positions depend on the generation paradigm and token layout.
Spatial corner bias in image tokens. The boundary and sink markers in Fig. 1(b) motivate a closer look at image-layout positions. Fig. 2 shows prominent image-token peaks at FLUX.1 index 4544, the bottom-left corner, and Z-Image index 0, the top-left corner of its image stream. These positions are not semantic but fixed layout anchors that repeatedly absorb attention. Infinity-2B's analogous position is its sole global-scale token, which represents a coarse global canvas rather than a local patch. Together, the visual examples and aggregate curves indicate that image-side sinks are tied to corners, boundaries, or global layout tokens.
Takeaways: 1. Sink positions are model-dependent rather than universally tied to the first token. 2. Frequent sinks usually correspond to structural anchors, including global tokens, modality boundaries, and image-corner patches.
4.2. Effects of Layer-Head on Attention Sinks
We use the sink concentration to identify heads whose attention is dominated by a single key position. The attention maps in Fig. 1(b) illustrate this unit-level view while Fig. 3 then shows where such concentrated heads occur across the full stack. For simplicity, we denote head as .
Sink concentration is sparse across layers and heads. Fig. 3 shows that only about of heads are sink-dominant in each model. Although their locations differ by models, this sparse localization is consistent across models. A larger count of sink-dominant heads in a layer increases the likelihood of sink-token emergence, while weaker sink-head tendencies correspondingly mitigate the sink phenomenon.
Table 2. Attention sink dynamics over generation. Image-directed ratio is the for FLUX.1 and Z-Image, and the for Infinity-2B. Sink Position Stability is the Jaccard overlap at adjacent steps or across each full stage. Larger values indicate greater image/fine-scale concentration or greater positional persistence.
| Configurations | FLUX.1 | Z-Image | Infinity-2B | |
|---|---|---|---|---|
| Image-Directed Ratio | ||||
| Early Stage | 41.21% | 7.46% | 81.24% | |
| Middle Stage | 45.34% | 9.70% | 86.61% | |
| Late Stage | 50.47% | 12.73% | 89.95% | |
| Sink Position Stability | ||||
| Adjacent Step | Top-1 | 79.12% | 76.03% | 52.56% |
| Top-5 | 55.10% | 68.78% | 29.67% | |
| Full Stage | Top-1 | 61.29% | 54.11% | 39.58% |
| Top-5 | 30.23% | 36.47% | 22.79% | |
Sink placement occurs at model-specific depths. Sink depth follows each model's behavior rather than a universal pattern. FLUX.1 peaks after the double-to-single stream transition in L39 to L47, Z-Image is dominated by the shallow head L02H25, and Infinity-2B concentrates sinks in middle-to-late blocks around L27 to L30. Each model therefore exhibits a compact set of high-concentration heads at model-specific depths. Pruning top heads changes generation scores in all three models to different degrees (Tab. 4).
Takeaways: 1. Sink heads are sparsely localized in transformer. 2. Their locations differ across models rather than following a universal depth.
4.3. Effects of Timestep on Attention Sinks
Sink positions become increasingly image-directed. We analyze how sink positions evolve among the modalities during generation Tab. 2 shows that the image-directed ratio increases throughout generation in all three models. FLUX.1 rises from to , Z-Image from to , and Infinity-2B from to . This trend indicates that sink positions become more tied to visual or fine-scale structure as generation proceeds, despite differences in token layout and generation schedule.
Sink positions are locally stable but drift across stages. As shown in Tab. 2, sink positions remain relatively stable between adjacent steps, especially in FLUX.1 and Z-Image, where top-1 overlap reaches and . However, the overlap decreases across full stages, which suggests gradual relocation rather than independent stepwise switching. Moreover, Infinity-2B shows lower stabil-

Figure 4. Trajectories of for text/image positions during generation. Candidate positions are from Fig. 2.
ity with top-1 overlap decreasing from 52.56% to 39.58%, consistent with its progressively expanding token set. Overall, sinks preserve local continuity during nearby steps, but their preferred positions shift as generation moves across stages.
Takeaways: 1. Sink positions become more image-directed as generation proceeds. 2. Sink positions are stable across nearby steps but drift across longer stages.
4.4. Effects of Prompt on Attention Sinks
We compare GenEval [11] and DPG-Bench [17] to examine whether attention sinks are stable under different prompt distributions. GenEval contains shorter compositional prompts, while DPG-Bench contains longer and denser prompts.
Sink heads are stable across datasets. The layer-head concentration maps are highly correlated across the two datasets, with Pearson correlations above 0.98 for all three models, as shown in Tab. 3. This indicates that the heads prone to sink behavior are largely stable under different prompt sets. Together with the pruning results in Tab. 6, these results suggest that sink-head identity is more tied to model structure than to a specific prompt benchmark.
Sink-position entropy differs across prompt datasets. The normalized entropy of sink positions is computed for each model and dataset. Although sink heads remain stable, sink positions show stronger dataset dependence. In the diffusion models, the high-entropy ratio increases substantially on DPG-Bench, from 6.8% to 92.2% for FLUX.1 and from 2.7% to 49.4% for Z-Image. Infinity-2B remains nearly unchanged. This suggests that prompt distribution mainly affects where stable sink heads route attention, rather than which heads become sink-dominant. Because the datasets differ in prompt length, semantics, and complexity, we do not attribute this change to a single prompt factor.
Table 3. Cross-dataset stability of sink heads and sink positions. Pearson compares layer-head concentration maps between and . is the normalized entropy of top-1 sink positions across prompts, and gives the fraction of high-entropy heads. Higher entropy indicates greater positional variation.
| Model | Sink Heads Pearson r | ||||
|---|---|---|---|---|---|
| FLUX.1 | 0.988 | 0.37 | 0.61 | 6.8% | 92.2% |
| Z-Image | 0.983 | 0.31 | 0.43 | 2.7% | 49.4% |
| Infinity-2B | 0.999 | 0.26 | 0.26 | 2.3% | 2.4% |
Takeaways: 1. Sink-head identities are stable across prompt distributions. 2. Sink positions vary more with prompt distribution, especially in diffusion models.
5. Intervention Results
We next move from descriptive sink patterns to functional probes. Given the sink positions and sink-dominant heads identified in Sec. 4, we perturb the corresponding pathways and measure generation changes relative to each model's baseline. Because several frequent sinks also coincide with modality boundaries, corner positions, or global-scale tokens, we interpret score changes as pathway sensitivity rather than isolated causal effects of sink behavior alone.
5.1. Impact of Intervention Strategies.
We evaluate the three strategies from Sec. 3.2 using GenEval, DPG, HPSv2, and ImageReward. Fig. 1(c) illustrates their intended targets, Fig. 1(d) shows their visual effects, and Tab. 4 reports the aggregate scores. Across models, severity follows the intervention scope. Logit penalties produce the smallest average changes (-0.19%, -0.36%, and -2.79% for FLUX.1, Z-Image, and Infinity-2B), indicating limited final-score sensitivity when only routing to the selected sinks is discouraged. Value substitution causes larger drops (-0.71%, -0.58%, and -5.45%), consistent with the selected sink values carrying useful generation information. Head pruning is most disruptive (-4.19%, -2.36%, and -6.56%), as it removes both sink routing and the surrounding head computation. Infinity-2B is consistently the most sensitive, which agrees with the first-token case in Fig. 1(d).
Sensitivity to sink token numbers. To test the effect of the perturbed sink-token count, we vary this number and plot under logit and value interventions in Fig. 5. The slope is steepest for Infinity-2B, whose dominant sink coincides with the first/global token, while FLUX.1 and Z-Image degrade more gently, matching their more distributed sinks. This token-count ablation thus supports the positional analysis in Sec. 4.1, as sink sensitivity grows with how much of
Table 4. Effects of three interventions on the top-50 sink heads across models. Logit penalizes attention to selected sink positions, Value zeros their value vectors, and Head removes the selected sink-dominant heads. GenEval and DPG are averages over four independent runs. is the mean % change from baseline over 4 metrics, where more negative values denote greater degradation.
| Settings \ Models | FLUX.1 | Z-Image | Infinity-2B | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metrics | GenEval | DPG | HPSv2 | ImgRwd | GenEval | DPG | HPSv2 | ImgRwd | GenEval | DPG | HPSv2 | ImgRwd | |||
| Baseline | 67.14 | 83.67 | 29.62 | 0.9539 | - | 76.18 | 87.41 | 29.28 | 0.9481 | - | 64.56 | 81.84 | 29.68 | 0.9761 | - |
| Logit. | 66.99 | 83.86 | 29.58 | 0.9478 | -0.19 | 76.55 | 87.27 | 28.92 | 0.9429 | -0.36 | 62.57 | 78.82 | 29.40 | 0.9424 | -2.79 |
| Value. | 66.51 | 83.84 | 29.60 | 0.9343 | -0.71 | 75.98 | 87.15 | 28.93 | 0.9427 | -0.58 | 61.35 | 76.41 | 28.68 | 0.9096 | -5.45 |
| Head. | 63.69 | 82.29 | 29.47 | 0.8636 | -4.19 | 72.94 | 87.06 | 28.98 | 0.9125 | -2.36 | 60.84 | 75.72 | 28.37 | 0.8923 | -6.56 |

Figure 5. Curves of vs. number of perturbed sink tokens for logit and value intervention experiments. FLUX.1 and Z-Image use left axis, Infinity-2B right axis.
the model-specific sink structure is covered.
5.2. Sensitivity to Structural Sink-Token Removal.
We compare structural sink-token removal across generation stages in Tab. 5, with visual outputs shown in Fig. 1(d). For Infinity-2B, removing position-0 token from s1 reduces GenEval from 64.56 to 11.37 and drives ImageReward from 0.9761 to -0.8055; starting at s4 or s8 recovers GenEval to 62.90 or 63.35. In contrast, FLUX.1 does not exhibit such degradation upon sink-token removal (positions 7, 511, 4544). Its GenEval score remains between 64.81 and 65.45, while DPG and ImageReward stay near or slightly above baseline. These results indicate that the compensatory effect during generation is both model-dependent and stage-specific. It fails in Infinity-2B at early steps (s1) but becomes effective at later steps (s4/s8), while FLUX.1 exhibits inherent robustness across all tested positions.
5.3. Interventions on Sink Heads.
We rank heads by their average sink concentration across timesteps and prompts to test the sparse-head hypothesis in Sec. 4.2. If high- heads are merely visual artifacts, pruning them should not be more harmful than pruning low or random heads. On Z-Image, pruning more high-concentration
Table 5. Effects of sink-token removal over selected generation intervals. For FLUX.1, intervals denote denoising timestep ranges (e.g., full trajectory). For Infinity-2B, intervals denote autoregressive scale ranges (e.g., remove the position-0 global token from scale onwards). is the mean percentage change across the reported metrics relative to baseline.
| Settings | Geneval | DPG | HPSv2 | ImgRwd | |
|---|---|---|---|---|---|
| FLUX.1 | 67.14 | 83.67 | 29.62 | 0.9539 | - |
| [T,0] | 64.81 | 84.19 | 29.46 | 0.9638 | -0.59 |
| [T,T//2] | 65.45 | 83.74 | 29.59 | 0.9631 | -0.39 |
| [T//2,0] | 64.95 | 83.77 | 29.48 | 0.9617 | -0.70 |
| Infinity-2B | 64.56 | 81.84 | 29.68 | 0.9761 | - |
| [s1,s12] | 11.37 | 20.31 | 22.56 | -0.8055 | -91.02 |
| [s2,s12] | 22.78 | 35.73 | 24.67 | -0.3545 | -68.56 |
| [s3,s12] | 53.82 | 65.45 | 28.38 | 0.4553 | -23.60 |
| [s4,s12] | 62.90 | 73.87 | 29.20 | 0.8548 | -6.59 |
| [s8,s12] | 63.35 | 78.23 | 29.58 | 0.9727 | -1.74 |
heads progressively increases degradation, from Top-20 (-1.12%) to Top-100 (-5.84%) in Tab. 6. At a fixed budget of 50 heads, Top-50 pruning causes greater average and GenEval degradation than Random-50 or Bottom-50. This experiment confirms that the selected sink heads indeed play a more significant role than other heads during generation, providing either semantic or structural information.
Table 6. Ablation results of pruning selected attention heads on Z-Image. Top-K/Bottom-50 removes the K heads with highest/lowest sink concentration, while Random-50* randomly selects 50 heads for three runs. is the mean percentage change across metrics relative to baseline.
| Settings | Geneval | DPG | HPSv2 | ImgRwd | |
|---|---|---|---|---|---|
| Baseline | 76.18 | 87.41 | 29.28 | 0.9481 | - |
| Top-20 | 75.42 | 87.21 | 29.24 | 0.9187 | -1.12 |
| Top-50 | 72.94 | 87.06 | 28.98 | 0.9125 | -2.36 |
| Top-100 | 71.44 | 86.87 | 28.69 | 0.8104 | -5.84 |
| Random-50* | 74.02 | 86.91 | 29.13 | 0.9156 | -1.84 |
| Bottom-50 | 74.32 | 87.02 | 29.07 | 0.9214 | -1.60 |
Table 7. Register-token probe on FLUX.1 generation quality and position-wise top-1 sink ratios. Adding the register improves GenEval and DPG while slightly reducing the dominance of native sink positions. The low but nonzero supports partial redistribution of sink dominance rather than wholesale replacement of the original structural sinks.
| Settings | GenEval | DPG | |||
|---|---|---|---|---|---|
| FLUX.1 | 67.14 | 83.67 | 12.95% | 3.04% | - |
| + register token | 68.85 | 84.01 | 12.44% | 2.72% | 0.53% |
5.4. Probing Sink Attention with Register Tokens.
The interventions above weaken native sink tokens to test generation sensitivity. We further ask the complementary question of whether sink attention can shift to a dedicated non-semantic position without hurting generation quality. Following Zhang et al. [46], we insert one learnable register token to the FLUX.1 image-token sequence, expose it to joint attention, freeze the pretrained backbone, and remove the register output before unpatchification.. The register thus serves as an auxiliary routing slot rather than a direct image-content token. Implementation details are in the Appendix.
Tab. 7 shows that adding the register improves GenEval from 67.14 to 68.85 and DPG from 83.67 to 84.01. Meanwhile, the two recurring native sink positions are weakened but not removed, with decreasing from to , and from to . These results show partial redistribution, not full replacement, of native sinks, suggesting that the added low-semantic slot redirects a small share of sink-dominant routing while keeping the original structural anchors. Since measures top-1 sink frequency, not total attention mass, we view this as a redistribution of sink dominance, not a full absorption of displaced attention.
6. Related Work
6.1. Text-to-Image Transformer
Transformer-based T2I generation has developed along two complementary paradigms: diffusion transformers and autoregressive models. Both of them rely heavily on multi-head attention as the core computational primitive. The seminal Diffusion Transformer (DiT) [27] first replaced the U-Net with a pure transformer architecture, building upon foundational diffusion frameworks [7, 16, 30]. SD3 [9] introduced the MMDiT, which employed joint self-attention for text and image modalities. This paradigm has since been advanced by open-source models such as FLUX.1 [21], Z-Image [3], Qwen-Image [37, 47], and Hunyuan-Image [4], as well as commercial systems [1, 10, 12]. In contrast, autoregressive Transformers treat images as discrete token sequences and generate them left-to-right. Early works including DALL-E [28], CogView [8], and Parti [43] established the paradigm with large-scale transformer models. More recent efforts such as LlamaGen [33] revisited next-token prediction without visual inductive biases, VAR [34] introduced next-scale prediction for faster inference, and Infinity series [15, 24] applied bit-wise quantization for efficient high-resolution generation. Despite these architectural differences, both paradigms exhibit structured attention behaviors, motivating our analysis.
6.2. Attention Sinks in Transformers
Attention sinks (AS) are tokens that absorb extremely high attention. This phenomenon arises from the sum-to-one constraint of Softmax: when no semantically relevant key exists, attention mass is forced onto specific uninformative tokens as a numerical no-op buffer [2, 32]. AS were first characterized in autoregressive LLMs, where initial tokens dominate under causal masking [41]. Subsequent work empirically traces their emergence [13, 14, 31], exploits them for context anchoring [25], attention redistribution [36, 44], and connects them to activation outliers [32]. In Vision Transformers, Bondarenko et al. [2] show that sinks are localized on low-information background patches, not on positional tokens. Darcet et al. [6] and Lappe and Giese [22] demonstrate that injecting learnable register tokens absorbs this excess attention. In Multimodal LLMs, visual sinks on non-semantic tokens degrade grounding [19, 45], and further studies examine visual information pathways [26] and audio-visual speech recognition [5]. Diffusion LMs exhibit distinct features compared to autoregressive counterparts. Rulli et al. [29] observe moving sinks that shift throughout the denoising process. Zhang et al. [46] further identify moving sinks as protecting against over-mixing in diffusion while dynamic position hurts. In Diffusion Models, attention sinks have high norms [18, 40], while Wu and Summa [38] argue that they are not functional structures essential for semantic alignment. Li et al. [23] show that text template tokens act as implicit semantic registers. However, the extent to which findings transfer across diffusion and autoregressive T2I Transformers remains unclear. A unified comparison across layer, head, token-position, and generation-stage dimensions is still limited for recent text-to-image architectures.
7. Conclusions
We presented a systematic study of attention sinks in text-to-image Transformers. Our results show that the evaluated T2I models do not all reproduce the canonical language-model first-token pattern, varying with multimodal token layouts and generation stages. The evaluated autoregressive model exhibits strong first-token attraction, whereas the evaluated bidirectional models concentrate sink mass near modality boundaries and spatial corner positions. Intervention experiments further show that model performance is sensitive to selected sink-related heads and positions, which motivates further study of dedicated non-semantic positions. Overall, attention sinks provide a useful lens for interpreting and potentially controlling generative attention in T2I models.
Limitations and Future Work. Our study covers three text-to-image Transformers, leaving broader architectures, scales, and training recipes for future validation. We only focus on inference-time behavior, while understanding how attention sinks emerge during training remains an important next step.
References
[1] Jason Baldridge, Jakob Bauer, Mukul Bhutani, Nicole Brichtova, Andrew Bunner, et al. Imagen 3. arXiv preprint arXiv:2408.07009, 2024. 8
[2] Yelysei Bondarenko, Markus Nagel, and Tijmen Blankevoort. Quantizable transformers: Removing outliers by helping attention heads do nothing. In Advances in Neural Information Processing Systems, 2023. 8
[3] Huanqia Cai, Sihan Cao, Ruoyi Du, Peng Gao, Steven Hoi, Zhaohui Hou, Shijie Huang, Dengyang Jiang, Xin Jin, Liangchen Li, et al. Z-image: An efficient image generation foundation model with single-stream diffusion transformer. arXiv preprint arXiv:2511.22699, 2025. 2, 3, 4, 8
[4] Siyu Cao, Hangting Chen, Peng Chen, Yiji Cheng, Yutao Cui, Xinchi Deng, Ying Dong, Kipper Gong, Tianpeng Gu, Xiusen Gu, et al. Hunyuanimage 3.0 technical report. arXiv preprint arXiv:2509.23951, 2025. 8
[5] Umberto Cappellazzo, Stavros Petridis, Maja Pantic, et al. Mitigating attention sinks and massive activations in audiovisual speech recognition with llms. arXiv preprint arXiv:2510.22603, 2025. 8
[6] Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. Vision transformers need registers. In Proceedings of the International Conference on Learning Representations, 2024. 8
[7] Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. In Advances in Neural Information Processing Systems, pages 8780–8794, 2021. 8
[8] Ming Ding, Zhuoyi Yang, Wenyi Hong, Wendi Zheng, Chang Zhou, Da Yin, Junyang Lin, Xu Zou, Zhou Shao, Hongxia Yang, et al. Cogview: Mastering text-to-image generation via transformers. In Advances in Neural Information Processing Systems, 2021. 8
[9] Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis. In Proceedings of the International Conference on Machine Learning, 2024. 2, 3, 8
[10] Yu Gao, Haoyuan Guo, Tuyen Hoang, Weilin Huang, Lu Jiang, Fangyuan Kong, Huixia Li, Jiashi Li, Liang Li, Xiaojie Li, et al. Seedance 1.0: Exploring the boundaries of
video generation models. arXiv preprint arXiv:2506.09113, 2025. 8
[11] Dhruba Ghosh, Hannaneh Hajishirzi, and Ludwig Schmidt. Geneval: An object-focused framework for evaluating text-to-image alignment. In Advances in Neural Information Processing Systems, pages 52132–52152, 2023. 2, 4, 6
[12] Lixue Gong, Xiaoxia Hou, Fanshi Li, Liang Li, Xiaochen Lian, Fei Liu, Liyang Liu, Wei Liu, Wei Lu, Yichun Shi, et al. Seedream 2.0: A native chinese-english bilingual image generation foundation model. arXiv preprint arXiv:2503.07703, 2025. 8
[13] Xiangming Gu, Tianyu Pang, Chao Du, Qian Liu, Fengzhuo Zhang, Cunxiao Du, Ye Wang, and Min Lin. When attention sink emerges in language models: An empirical view. In Proceedings of the International Conference on Learning Representations, 2025. 2, 8
[14] Zhiyu Guo, Hidetaka Kamigaito, and Taro Watanabe. Attention score is not all you need for token importance indicator in kv cache reduction: Value also matters. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2024. 2, 8
[15] Jian Han, Jinlai Liu, Yi Jiang, Bin Yan, Yuqi Zhang, Zehuan Yuan, Bingyue Peng, and Xiaobing Liu. Infinity: Scaling bitwise autoregressive modeling for high-resolution image synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025. 2, 3, 4, 8
[16] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, pages 6840–6851, 2020. 8
[17] Xiwei Hu, Rui Wang, Yixiao Fang, Bin Fu, Pei Cheng, and Gang Yu. Ella: Equip diffusion models with llm for enhanced semantic alignment. arXiv preprint arXiv:2403.05135, 2024. 2, 4, 6
[18] Amna Jamal, Mika Tan, Clarissa Aurelia Nahid Saputra, Quan Huynh, Kevin Zhu, and Antonio Mari. Diffusion transformers use sink registers. In Second Workshop on XAI4Science: From Understanding Model Behavior to Discovering New Scientific Knowledge, 2026. 8
[19] Seil Kang, Jinyeong Kim, Junhyeok Kim, and Seong Jae Hwang. See what you are told: Visual attention sinks in multimodal llms. In Proceedings of the International Conference on Learning Representations, 2025. 8
[20] Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems, pages 26565–26577, 2022. 4
[21] Black Forest Labs. Flux. github.com/black-forest-labs/flux, 2024. 2, 3, 4, 8
[22] Alexander Lappe and Martin Giese. Register and [cls] tokens induce a decoupling of local and global features in large vits. Advances in Neural Information Processing Systems, 38:1009–1029, 2026. 8
[23] Maohua Li, Qirui Li, Yanke Zhou, Yiduo Li, Zhaosheng Chi, Chao Xu, Cuifeng Shen, Yixuan Xu, Hanlin Tang, Kan Liu, et al. Text template tokens are implicit semantic registers in diffusion transformers. arXiv preprint arXiv:2607.19139, 2026. 8
[24] Jinlai Liu, Jian Han, Bin Yan, Hui Wu, Fengda Zhu, Xing Wang, Yi Jiang, Bingyue Peng, and Zehuan Yuan. Infinitystar: Unified spacetime autoregressive modeling for visual generation. Advances in Neural Information Processing Systems, 38:170054–170072, 2026. 3, 8
[25] Xu Liu, Guikun Chen, and Wenguan Wang. Sinktrack: Attention sink based context anchoring for large language models. In Proceedings of the International Conference on Learning Representations, 2026. 8
[26] Jiayun Luo, Wan-Cyuan Fan, Lyuyang Wang, Xiangteng He, Tanzila Rahman, Purang Abolmaesumi, and Leonid Sigal. To sink or not to sink: Visual information pathways in large vision-language models. arXiv preprint arXiv:2510.08510, 2025. 2, 8
[27] William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4195–4205, 2023. 8
[28] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In Proceedings of the International Conference on Machine Learning, 2021. 8
[29] Maximo Eduardo Rulli, Simone Petruzzi, Edoardo Michielon, Fabrizio Silvestri, Simone Scardapane, and Alessio Devoto. Attention sinks in diffusion language models. In Findings of the Association for Computational Linguistics: ACL 2026, pages 43244–43256, 2026. 8
[30] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In Proceedings of the International Conference on Learning Representations, 2021. 8
[31] Zunhai Su, Hengyuan Zhang, Wei Wu, Yifan Zhang, Yaxiu Liu, He Xiao, Qingyao Yang, Yuxuan Sun, Rui Yang, Chao Zhang, et al. Attention sink in transformers: A survey on utilization, interpretation, and mitigation. arXiv preprint arXiv:2604.10098, 2026. 8
[32] Mingjie Sun, Xinlei Chen, J Zico Kolter, and Zhuang Liu. Massive activations in large language models. arXiv preprint arXiv:2402.17762, 2024. 2, 3, 8
[33] Peize Sun, Yi Jiang, Shoufa Chen, Shilong Zhang, Bingyue Peng, Ping Luo, and Zehuan Yuan. Autoregressive model beats diffusion: Llama for scalable image generation. arXiv preprint arXiv:2406.06525, 2024. 8
[34] Keyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng, and Liwei Wang. Visual autoregressive modeling: Scalable image generation via next-scale prediction. In Advances in Neural Information Processing Systems, 2024. 2, 3, 8
[35] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. 2, 3
[36] Yifei Wang, Feng Xiong, Yong Wang, Linjing Li, Xiangxiang Chu, and Daniel Dajun Zeng. Position bias mitigates position bias: Mitigate position bias through inter-position knowledge distillation. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 1495–1512, 2025. 8
[37] Chenfei Wu, Jiahao Li, Jingren Zhou, and et al. Qwen-image technical report. arXiv preprint arXiv:2508.02324, 2025. 8
[38] Fangzheng Wu and Brian Summa. Attention sinks in diffusion transformers: A causal analysis. In Proceedings of the International Conference on Machine Learning, 2026. 8
[39] Xiaoshi Wu, Yiming Hao, Keqiang Sun, Yixiong Chen, Feng Zhu, Rui Zhao, and Hongsheng Li. Human preference score v2: A solid benchmark for evaluating human preferences of text-to-image synthesis. arXiv preprint arXiv:2306.09341, 2023. 4
[40] Xiaoyu Wu, Yifei Wang, Tsu-Jui Fu, Liang-Chieh Chen, Zhe Gan, and Chen Wei. Taming outlier tokens in diffusion transformers. arXiv preprint arXiv:2605.05206, 2026. 8
[41] Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis. Efficient streaming language models with attention sinks. In Proceedings of the International Conference on Learning Representations, 2024. 2, 3, 8
[42] Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. Imagereward: Learning and evaluating human preferences for text-to-image generation. In Advances in Neural Information Processing Systems, 2023. 4
[43] Jiahui Yu, Yuanzhong Xu, Jing Yu Koh, Thang Luong, Gunjan Baid, Zirui Wang, Vijay Vasudevan, Alexander Ku, et al. Scaling autoregressive models for content-rich text-to-image generation. arXiv preprint arXiv:2206.10789, 2022. 8
[44] Zhongzhi Yu, Zheng Wang, Yonggan Fu, Huihong Shi, Khalid Shaikh, and Yingyan Celine Lin. Unveiling and harnessing hidden attention sinks: Enhancing large language models without training through attention calibration. In Proceedings of the International Conference on Machine Learning, pages 1513–1525, 2024. 8
[45] Xiaofeng Zhang, Yihao Quan, Chen Shen, Chaochen Gu, Xiaosong Yuan, Shaotian Yan, Jiawei Cao, Hao Cheng, Kaijie Wu, and Jieping Ye. Shallow focus, deep fixes: Enhancing shallow layers vision attention sinks to alleviate hallucination in lvlms. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2025. 2, 8
[46] Zihou Zhang, Zheyong Xie, Li Zhong, Haifeng Liu, and Shaosheng Cao. One token is enough: Improving diffusion language models with a sink token. arXiv preprint arXiv:2601.19657, 2026. 8
[47] Bing Zhao, Chenfei Wu, Deqing Li, and et al. Qwen-image-2.0 technical report. arXiv preprint arXiv:2605.10730, 2026. 8