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.
Figures & tables
Model
Candidate c
ρ1(c)
ρ5(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%
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.
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.
Figure 3: Layer–head maps of sink concentration κ(l,h) 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.
Configurations
FLUX.1
Z-Image
Infinity-2B
Image-Directed Ratio
Early Stage
T→0.7T
41.21%
7.46%
81.24%
Middle Stage
0.7T→0.3T
45.34%
9.70%
86.61%
Late Stage
0.3T→0
50.47%
12.73%
89.95%
Sink Position Stability
Adjacent Step
Top-1
79.12%
76.03%
52.56%
Table 2: Attention sink dynamics over generation. Image-directed ratio is the Rimg for FLUX.1 and Z-Image, and the Rfine 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.
Figure 4: Trajectories of ρ1(t)(c) for text/image positions during generation. Candidate positions c are from Fig. 2 .
Model
Sink Heads
Hnorm
Hnorm≥0.5
Pearson r
DGeneval
DDPG
DGeneval
DDPG
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%
Table 3: Cross-dataset stability of sink heads and sink positions. Pearson r compares layer–head concentration maps between DGenEval and DDPG . Hnorm is the normalized entropy of top-1 sink positions across prompts, and Hnorm≥0.5 gives the fraction of high-entropy heads. Higher entropy indicates greater positional variation.
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
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.
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.
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
Table 5: Effects of sink-token removal over selected generation intervals. For FLUX.1, intervals denote denoising timestep ranges (e.g., [T,0] = full trajectory). For Infinity-2B, intervals denote autoregressive scale ranges (e.g., [si,s12] = remove the position-0 global token from scale i onwards). Δˉ is the mean percentage change across the reported 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 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
ρ1(7)
ρ1(4544)
ρ1(creg)
FLUX.1
67.14
83.67
12.95%
3.04%
–
+ register token
68.85
84.01
12.44%
2.72%
0.53%
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 ρ1(creg) supports partial redistribution of sink dominance rather than wholesale replacement of the original structural sinks.