Supply the Global, Supervise the Local: Combining Representation Conditioning and Alignment in Diffusion Transformers
Authors: Chaojie Ji, Sergio Quiroga-Sandoval, Ruxin Wang, Zheju Zheng, Yankai Cao
Organizations: Department of Mathematics, The University of British Columbia, Canada · Institute of Applied Mathematics, The University of British Columbia, Canada · Departamento de Matem´aticas, Universidad Nacional de Colombia, Colombia · Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences, Shenzhen, China · Department of Chemical and Biological Engineering, The University of British Columbia, Canada
A pretrained image representation helps train a diffusion transformer in several roles, including as an alignment target, which the model's hidden states learn to match, as in representation alignment (REPA), and as a condition, an extra input describing the image to be generated. Combined, they would give the model an input and a target, but whether they conflict is unknown. To test this, we let the condition carry only part of REPA's target: we split the representation of each image patch into an image-level (global) part, shared by all patches of the image, and a within-image (local) part, the patch's difference from the image-level part, and use one token carrying the image-level part as the condition. Then, the two roles overlap on the image-level part, where they could conflict, while only REPA supervises the within-image part, where we can see whether the token helps REPA. We find that the token and REPA together teach both the image-level part and the within-image part, the main source of REPA's FID improvement, far more than the sum of what each teaches alone, so they cooperate rather than conflict. These findings give one design rule for combining REPA with an image-level condition, supply the global, supervise the local, which we implement as Global-Condition REPA (GC-REPA): REPA with the token as an extra input; the token carries no information beyond REPA's target and is drawn at sampling from a separately trained token prior. GC-REPA greatly accelerates convergence: on ImageNet 256*256, SiT-XL/2 + GC-REPA reaches REPA's 4M- and SiT-XL/2's 7M-iteration FIDs within 200K and 100K iterations (20 and 70 fewer).
Figures & tables
Figure 1: Faster convergence than SiT and REPA, and the split of the representation. (a) FID of SiT-XL/2 over training iterations (ImageNet 256×256 ); arrows: how many times fewer iterations GC-REPA needs to reach the published FID of SiT at 7M and REPA at 4M iterations [ 30 , 52 ] . (b) Each patch’s representation is the image-level part, shared by all patches, plus the within-image part, the patch’s difference from it (RGB colors: projection onto the top three principal components, the same in all maps; References ).
Figure 2: Roles of a pretrained representation y∗ (one vector per patch of the image) in training a diffusion transformer, which maps the noisy latent zt to the predicted velocity v^ . (a) Alignment target only. (b) Condition only. (c) Jointly generated output: noised and generated with the image ( v^y : its predicted velocity). (d) GC-REPA: the patch average g of y∗ enters clean as the token, supplied at sampling by a token prior model; the REPA loss is unchanged.
Token
REPA
Mimage↑
Mwithin↑
FID ↓
sFID ↓
–
–
0.260 ± 0.001
0.315 ± 0.001
93.97 ± 1.08
14.19 ± 0.32
–
full
0.319 ± 0.002
0.325 ± 0.000
77.66 ± 0.36
15.61 ± 1.55
early
–
0.539 ± 0.005
0.330 ± 0.002
67.41 ± 1.02
0 9.32 ± 0.28
early
full
0.836 ± 0.012
0.399 ± 0.001
47.03 ± 0.10
0 8.06 ± 0.17
late
–
0.245 ± 0.003
0.316 ± 0.001
70.97 ± 0.84
0 9.70 ± 0.59
late
full
0.318 ± 0.001
0.326 ± 0.000
61.20 ± 0.26
0 9.06 ± 0.06
Table 1: Token placement × REPA target (SiT-B/2, 50K iterations; mean ± std.). Mimage , Mwithin : linear-probe scores for the image-level and within-image parts. Token: none (–), early or late (before or after the aligned blocks). REPA: none (–), full, or one part only; more metrics: References .
Figure 3: The three findings (SiT-B/2; higher is better; each panel and metric on its own scale). (a, b) Gain in Mimage (a) and Mwithin (b) over the model with neither token nor REPA; dashed: the sum of the two separate gains. (c) Gain in Mwithin (hollow) and FID improvement (filled), over the model with neither token nor REPA, of the token with REPA aligning only the image-level part, only the within-image part, or both (full).
Figure 4: Both parts across noise levels, with and without the token (SiT-B/2, 50K): image-level and within-image cosine at block 4. Dotted in (a): the class-mean reference (hidden states replaced by the class mean of yˉ ); token zeroed : the trained token + REPA model, fed a zeroed token.
SiT-B/2 (130M)
SiT-L/2 (458M)
SiT-XL/2 (675M)
Method
50K
100K
200K
400K
50K
100K
200K
400K
50K
100K
200K
400K
SiT [ 30 ]
–
–
–
33.0
–
–
–
18.8
–
–
–
17.2
+ REPA [ 52 ]
78.2
49.5
33.2
24.4
55.4
24.1
14.0
10.0
52.3
19.4
11.1
7.9
+ HASTE [ 46 ]
–
39.9
25.7
19.6
–
19.6
12.1
8.9
–
15.9
9.9
7.3
+ REED [ 43 ]
66.0
36.8
24.6
19.5
41.7
19.1
12.1
8.9
38.0
16.0
9.8
7.3
+ iREPA [ 42 ]
–
43.4
–
21.4
–
20.3
–
9.4
–
17.0
–
7.5
Table 2: FID without guidance across training iterations and model sizes . Baselines: published numbers; the parameter counts are those of SiT, and GC-REPA has an extra 96M token prior shared by all sizes; “–”: not reported.
Method
FID ↓
sFID ↓
IS ↑
Prec. ↑
Rec. ↑
SiT-B/2, 400K iterations
+ REPA [ 52 ]
24.4
6.40
59.9
0.59
0.65
+ HASTE [ 46 ]
19.6
6.38
73.0
0.62
0.64
+ REED [ 43 ]
19.5
–
75.9
0.61
0.65
+ iREPA [ 42 ]
21.4
6.77
70.9
0.60
0.65
+ sREPA [ 49 ]
20.5
6.53
71.2
0.61
0.65
Table 3: All metrics at 400K iterations , without guidance.
Figure 5: Samples of SiT-XL/2 with GC-REPA after 400K iterations . More samples are in References .
Parameters (M)
Training (iter./s)
Sampling (img/s)
Model
REPA
GC-REPA
REPA
GC-REPA
REPA
GC-REPA
SiT-B/2
130
131 + 96
2.79
2.78
5.79
5.76
SiT-L/2
458
459 + 96
1.16
1.16
2.11
2.10
SiT-XL/2
675
676 + 96
0.82
0.82
1.47
1.47
Table 4: Cost of REPA and GC-REPA. Parameters: the diffusion transformer, plus the 96M token prior of GC-REPA (trained once in 13 GPU-minutes, shared by all sizes). Speeds on one GPU: training at batch size 256; sampling includes the token prior ( References ).
Method
Iter.
FID ↓
sFID ↓
IS ↑
Prec. ↑
Rec. ↑
+ REPA § [ 52 ]
400K
1.98
4.60
263.0
0.80
0.61
+ iREPA [ 42 ]
400K
1.93
4.59
268.8
0.80
0.60
+ sREPA [ 49 ]
400K
2.25
4.65
257.5
0.83
0.58
+ GC-REPA (ours)
400K
1.78
4.62
245.8
0.84
0.62
+ REPA [ 52 ]
1M
1.96
4.49
264.0
0.82
0.60
+ REED [ 43 ]
1M
1.80
–
267.5
0.81
0.61
Table 5: SiT-XL/2 with guidance . Guidance: baselines as published. § Re-run by iREPA [ 42 ] .
Figure 6: The token sets the scene; the noise sets the details (golden retriever). Each row shares one token from the token prior, each column one initial noise z1 .