Latent generative models typically rely on three separate networks: an encoder that tokenizes pixels, a generator that models the latent distribution, and a decoder that maps latents back to pixels. UNITE recently merged the first two into a single generative encoder trained in one stage, but its decoder remains a separate network. We ask whether this last network can be folded in too, so that one diffusion transformer encodes, generates, and decodes. Simply letting the shared backbone decode does not help. What makes it work is to cast all three modes as position-aligned sequence maps over one fully shared backbone, distinguished only by a mode token and the timestep. The resulting model, UNIFIED, is simple: one network trained from scratch in a single stage with only reconstruction and flow-matching losses, without adversarial losses or pretrained encoders (e.g., DINO). On ImageNet-1K 256x256 at matched parameters, UNIFIED improves gFID over UNITE at three sizes (~60M, ~115M, and ~215M) and reaches 2.08 with 215M parameters, the lowest among compared models under 250M parameters. On text-to-image generation, UNIFIED-B (218M) reaches a GenEval score of 0.87 at 512x512, exceeding single-stage pixel diffusion models with around one billion parameters. Full unification of latent diffusion is thus not merely feasible but beneficial.
Figures & tables
Figure 1: (Left) Selected samples from UNIFIED on ImageNet-1K 256×256 (CFG scale 4.0 ). (Right) Full unification is not merely feasible but beneficial. gFID ( ↓ ) at three sizes; bar labels give the total trainable parameters. UNIFIED improves on UNITE at every size, and Tiny UNIFIED nearly matches Small UNITE with about half the parameters ( 2.78 at 62 M vs. 2.76 at 117 M). Separate is a standard three-network pipeline (Figure 2 a), trained at Small and Base. UNITE and UNIFIED: mean over five evaluation seeds (Table 14 ).
Figure 2: From three networks to one shared transformer. (a) Separate: the standard latent-diffusion pipeline trains an encoder Eθ , a generator Gψ , and a decoder Dϕ . (b) UNITE shares one backbone between encoding and generation; the encoding pass appends N(0,I) readout tokens to the image patches and takes the latent z from their outputs, but a standalone decoder Dϕ remains. (c) UNITE++ folds decoding into the same backbone as a third mode, selected by a mode token, but keeps readout tokens for encoding (latent readouts) and decoding (pixel readouts). (d) UNIFIED (ours) removes all readout tokens: every pass maps a same-length, position-aligned sequence (image x , noisy latent zt , or latent z ) after a mode token at position 0 , and encodes clean images at tenc=1 rather than 0 . Bottom right: each model’s encoding and decoding timesteps.
Model
Mode
Input sequence
Output
t
c
Length
UNITE++
Encode
[qenc;r;Pxin(x)]
Pzout at the K latent readouts
0
∅
1+K+N
Generate
[qgen;Pzin(zt)]
Pzout at positions 1:K
t
c
1+K
Decode
[qdec;Pzin(z);xreadout]
Pxout at the N pixel readouts
1
∅
1+K+N
UNIFIED
Encode
[qenc;Pxin(x)]
Pzout at positions 1:N
1
∅
N+1
Generate
[qgen;Pzin(zt)]
Pzout at positions 1:N
t
c
N+1
Decode
[qdec;Pzin(z)]
Pxout at positions 1:N
1/−1
∅
N+1
Table 1: What each pass receives in the shared backbone Tθ . r∼N(0,I) : latent readouts; xreadout : pixel readouts. UNIFIED decodes either at the clean endpoint ( t=1 ) or with the learned decoding timestep ( t=−1 ).
Table 4
Scale
Method
Models
No Aux. Info.
Repr.
Epoch
Params
gFID ↓
IS ↑
UNITE-T ∗
Gen.+Dec.
✓
Dynamic
200
61M
3.00
272.4
≤ 100M
UNIFIED-T (Ours)
Gen.
✓
Dynamic
200
62M
2.78
280.1
JiT-B/16
Gen.
✓
Pixel
600
131M
3.66
275.1
PixelREPA-B/16
Gen.+VFM
Pixel
600
131M
3.17
284.6
JiT-B/16 + RG
Gen.
✓
Pixel
600
131M
2.96
251.1
UNITE-S ∗
Gen.+Dec.
✓
Dynamic
200
117M
2.76
283.9
Table 4: Class-conditional generation on ImageNet-1K 256×256 with at most 250 M parameters. Models: generator (Gen.), pretrained autoencoder (AE), pretrained vision foundation model (VFM), or standalone decoder trained jointly with the generator (Dec.). No Aux. Info.: ✓ if training uses no auxiliary pretrained representation (e.g., DINOv2 features). Repr.: the space in which diffusion runs, namely a frozen pretrained latent (Fixed), pixels (Pixel), or a latent learned jointly with the generator (Dynamic). Params counts all networks used. ∗ : UNITE trained under our protocol. UNITE ∗ and UNIFIED: mean over five evaluation seeds. Larger models and all baselines: Table 10 .
Figure 3: Layer-wise CKA between the encoding and generation passes. Following UNITE ( Duggal et al., 2026 ) , we record each block’s activations while encoding an image and while running the generation pass on its encoded latent corrupted to level t ( t=1 clean); each panel reports CKA ( Kornblith et al., 2019 ) at one t .
Figure 4: Generation quality across training and sampling budgets. Base models ( ∼215 M) on ImageNet-1K 256×256 , with CFG. Training budget : adaptive dopri5 solver over [0,1] , epoch- 40 to 200 checkpoints; epoch 200 (five evaluation seeds) and the UNIFIED ( tdec=−1 ) checkpoints of Table 9 are means over multiple evaluation seeds, other checkpoints are single runs. Sampling budget : epoch- 200 checkpoints, fixed-step Euler solver over [0,1] on the shifted time grid of Appendix B ; sampling FLOPs per image = NFE × one flow-matching forward pass. Small and Tiny: Figure 6 .
Pretraining ( 100 k steps)
SFT ( 2 k steps)
Method
#Params
GenEval
DPG-Bench
GenAI-Bench
GenEval
DPG-Bench
GenAI-Bench
UNITE-B
219M
0.430
0.780
0.657
0.826
0.820
0.709
DiT DH -XL (FLUX-VAE)
875M+84M
0.497
0.789
0.637
0.841
0.835
0.688
JiT
615M
0.516
0.782
0.674
–
–
–
NanoGen (SD-VAE)
611M+84M
0.578
0.804
0.691
–
–
–
UNIFIED-B (Ours)
218M
0.471
0.792
0.672
0.849
0.833
0.729
Table 5: Text-to-image generation on GenEval, DPG-Bench, and GenAI-Bench at 256×256 . All models are pretrained on same data (JourneyDB and BLIP3o) for 100 k iterations with the same text encoder. “SFT” denotes further fine-tuning on BLIP3o-60k for 2 k steps. #Params: generator + autoencoder. Higher is better for all metrics.
Method
#Params
No Aux. Info.
GenEval ↑
DPG-Bench ↑
PixelFlow-XL/4
882M
✓
0.60
0.779
PixNerd-XXL/16
1.2B
0.73
0.809
PixelGen-XXL/16
1.1B
0.79
–
DeCo-XXL/16
1.1B
0.86
0.814
UNIFIED-B (Ours)
218M
✓
0.87
0.827
Table 6: Text-to-image generation at 512×512 . All models are single-stage: they are trained end to end without a pretrained autoencoder. No Aux. Info.: ✓ if training uses no auxiliary pretrained representation (e.g., DINOv2 features as a representation-alignment target), as in Table 4 . Results of other methods are taken from their papers. “–” means not reported.
Figure 5: Text-to-image samples from UNIFIED. Top : UNIFIED-L ( 554 M) after 100 K pretraining steps at 256×256 (more in Figure 11 ). Bottom : UNIFIED-B ( 218 M) after 10 K fine-tuning steps at 512×512 (more in Figure 8 ). All samples use a 50 -step Euler solver and CFG scale 6.0 . Prompts are shown above each image.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
Value
Hyperparameter
Value
Base learning rate
1×10−4
Warmup epochs
20
Global batch size
1024
Total epochs
200
Optimizer
Muon
LR schedule
Cosine
AdamW betas
(0.9,0.999)
Min LR
1×10−6
Weight decay
0
Gradient clip
3.0
Reconstruction noise ( σrec )
0.7
EMA decay
0.9978
Appendix
Table 7: Training configuration for ImageNet-1K 256×256 , shared by all models.
UNIFIED-T
UNIFIED-S
UNIFIED-B
UNIFIED-L
Hidden dimension
528
720
984
1120
Layers
12
12
12
24
Attention heads
12
12
12
16
MLP ratio
4
4
4
4
Patch size
16
16
16
16
Latent dimension
32
32
32
32
Appendix
Table 8: Architecture configurations of UNIFIED. Parameters are for the class-conditional models; the text-to-image models replace the class embedding with a text-conditioning head ( 218 M for UNIFIED-B and 554 M for UNIFIED-L).
Size
Method
Epochs
Training EFLOPs
gFID ↓
Tiny
UNITE ( 2:1 )
200
218
3.00
UNIFIED
120
176
3.03
UNIFIED
160
235
2.91
Small
UNITE
200
296
2.76
UNIFIED
100
254
2.78
UNIFIED
120
305
2.65
Appendix
Table 9: UNITE and UNIFIED at matched training compute on ImageNet-1K 256×256 , with CFG. Training EFLOPs: total training FLOPs up to the checkpoint, in units of 1018 . UNITE: final ( 200 -epoch) models of Table 3 . UNIFIED ( tdec=−1 ): the two checkpoints whose training compute brackets UNITE’s. gFID: mean over multiple evaluation seeds.
Scale
Method
Models
No Aux. Info.
Repr.
Epoch
Params
gFID ↓
IS ↑
Two-stage
150–250M
REPA-B
Gen.+AE+VFM
Fixed
–
214M
2.15
268.3
MaskDiT
Gen.+AE
✓
Fixed
1600
759M
2.28
276.6
DiT-XL/2
Gen.+AE
✓
Fixed
1400
759M
2.27
278.2
RAE-B
Gen.+AE+VFM
Fixed
–
631M
2.08
275.1
SiT-XL/2
Gen.+AE
✓
Fixed
1400
759M
2.06
270.3
Appendix
Table 10: Class-conditional generation on ImageNet-1K 256×256 , comparing pixel-space and latent diffusion models. Models: networks the method uses, namely a generator (Gen.), a pretrained autoencoder (AE), a pretrained vision foundation model (VFM), or a standalone decoder trained jointly with the generator (Dec.). No Aux. Info.: ✓ if training uses no auxiliary pretrained representation (e.g., DINOv2 features as the latent or as a representation-alignment target). Repr.: the space in which diffusion runs, namely a frozen pretrained latent (Fixed), pixels (Pixel), or a latent learned jointly with the generator (Dynamic). Epoch: training epochs. Params counts all networks used. Results of other methods are taken from their papers. ∗ : UNITE trained under our protocol. UNITE ∗ and UNIFIED: mean over five evaluation seeds (Table 14 ). –: not reported.
Gen. w/o CFG
Gen. w/ CFG
Reconstruction
Method
gFID ↓
IS ↑
gFID ↓
IS ↑
rFID ↓
rIS ↑
PSNR ↑
LPIPS ↓
UNITE ( 1:2 ) †
41.19
37.9
5.01
239.6
1.24
196.4
26.60
0.115
UNITE ( 1:1 ) †
31.18
49.8
3.79
262.5
1.59
190.4
26.14
0.127
UNITE ( 2:1 )
26.02
60.8
3.00
272.4
1.27
197.2
26.31
0.115
UNIFIED ( tdec=1 )
20.71
75.2
2.75
282.0
1.30
196.7
25.65
0.127
UNIFIED ( tdec=−1 )
21.25
72.3
2.78
280.1
1.75
188.6
25.23
0.142
Appendix
Table 11: Encoder/decoder allocation at the Tiny level ( ∼60 M) on ImageNet-1K 256×256 , epoch 200 , ODE over [0,1] ; with CFG, each model uses its best scale. Generation with CFG: mean over five evaluation seeds (Table 14 ); † : single run. UNITE ( a:b ): ratio of encoder/generator to decoder parameters ( 60 – 61 M); UNIFIED ( 62 M) has no standalone decoder.
Gen. w/o CFG
Gen. w/ CFG
Reconstruction
Method
tenc
tdec
gFID ↓
IS ↑
gFID ↓
IS ↑
rFID ↓
rIS ↑
PSNR ↑
LPIPS ↓
UNITE
0
–
15.99
91.4
2.23
282.1
1.41
198.0
26.63
0.106
UNITE++
0
1
16.16
95.7
2.24
327.1
2.20
182.0
24.99
0.145
UNIFIED †
0
1
14.95
100.3
2.31
300.0
1.39
194.5
25.74
0.126
UNIFIED
1
1
14.20
100.4
2.15
312.8
0.97
203.9
26.63
0.103
UNIFIED
1
−1
14.12
103.6
2.08
314.4
0.95
205.2
26.69
0.101
Appendix
Table 12: Timestep conditioning at the Base level ( ∼215 M): full results of Table 3 , epoch 200 , ODE over [0,1] ; with CFG, each model uses its best scale. Generation with CFG: mean over five evaluation seeds (Table 14 ). tenc , tdec : timesteps of the encoding and decoding passes; tdec=−1 : learned decoding timestep; –: not applicable (UNITE). † : single run.
Gen. w/o CFG
Gen. w/ CFG
Reconstruction
Size
Method
gFID ↓
IS ↑
gFID ↓
IS ↑
rFID ↓
rIS ↑
PSNR ↑
LPIPS ↓
Tiny
UNITE ( 2:1 )
26.02
60.8
3.00
272.4
1.27
197.2
26.31
0.115
UNIFIED ( tdec=1 )
20.71
75.2
2.75
282.0
1.30
196.7
25.65
0.127
UNIFIED ( tdec=−1 )
21.25
72.3
2.78
280.1
1.75
188.6
25.23
0.142
Small
Separate †
42.54
36.9
5.17
244.8
1.64
200.1
27.74
0.085
UNITE
22.80
69.2
2.76
283.9
1.13
200.1
26.76
0.104
Appendix
Table 13: Separate, UNITE, and UNIFIED at matched sizes : full results of Table 3 , epoch 200 , ODE over [0,1] ; with CFG, each model uses its best scale. Generation with CFG: mean over five evaluation seeds (Table 14 ); † : single run. UNITE uses its best allocation at each size ( 2:1 at Tiny, Table 11 ). Parameters: Tiny 61 – 62 M, Small 113 – 117 M, Base 215 – 222 M.
Adaptive dopri5
Euler, 256 NFE
Size
Method
tenc
tdec
gFID ↓
IS ↑
gFID ↓
IS ↑
Tiny
UNITE ( 2:1 )
0
–
2.998±0.030
272.4±1.6
–
–
UNIFIED
1
1
2.754±0.026
282.0±1.0
–
–
UNIFIED
1
−1
2.783±0.025
280.1±0.6
–
–
Small
UNITE
0
–
2.761±0.020
283.9±1.1
–
–
UNIFIED
1
1
2.414±0.018
287.4±1.2
–
–
Appendix
Table 14: Variation across evaluation seeds (epoch 200 , with CFG, ODE over [0,1] , 50 K samples). Mean ± standard deviation over five evaluation seeds. Two solvers are tested: the adaptive dopri5 solver and a 256 -step Euler solver. –: not evaluated.
(a)
(b) stop at tend
(c) stop at tend + jump
Model
1.0
0.95
0.98
0.99
0.995
0.95
0.98
0.99
0.995
UNITE
2.206
2.206
2.208
2.208
2.206
2.210
2.207
2.199
2.194
UNIFIED ( tdec=1 )
2.145
2.032
2.038
2.040
2.040
2.037
2.048
2.052
2.168
UNIFIED ( tdec=−1 )
2.108
2.103
2.108
2.111
2.112
2.107
2.120
2.132
2.149
Appendix
Table 15: End point of the sampling ODE. Base models, gFID-50K ( ↓ ) with the adaptive dopri5 solver and CFG scale 2.0 . (a) Integrate over [0,1] . (b) Stop at tend and decode. (c) Stop at tend and jump to the predicted clean latent before decoding.
Figure 6: Generation quality across training budgets at Tiny and Small. ImageNet-1K 256×256 , with CFG and the adaptive dopri5 solver. For each size, gFID vs. training epochs and vs. total training FLOPs. Epoch 200 of UNITE ( 2:1 at Tiny) and UNIFIED is the mean over five evaluation seeds (Table 14 ), and the UNIFIED ( tdec=−1 ) checkpoints of Table 9 are also means over multiple evaluation seeds; other points are single runs. Left: Tiny ( ∼62 M), including UNITE at all three encoder/generator-to-decoder ratios (Table 11 ). Right: Small ( ∼116 M).
Figure 7: UNITE with position-aligned layout (evaluated up to epoch 80 ). Base models on ImageNet-1K 256×256 , with CFG and the adaptive dopri5 solver: gFID vs. training epochs (left) and vs. total training FLOPs (right). Other models as in the training-budget panels of Figure 4 .
Figure 8: Text-to-image samples from UNIFIED-B ( 218 M) after 10 K fine-tuning steps at 512×512 , with a 50 -step Euler solver and CFG scale 6.0 . Prompts are shown above each image.
Reconstruction
Generation
Method
Match (%) ↑
RMSD (Å) ↓
Valid (%) ↑
Unique (%) ↑
ADiT
99.38
0.025
94.04
94.86
UNITE
98.42
0.035
95.79
98.68
UNIFIED ( tdec=−1 )
97.30
0.058
96.11
98.49
Appendix
Table 16: Molecule reconstruction and generation on QM9. All models have ∼33 M parameters: ADiT uses a separate encoder, decoder, and generator ( 5.5 M/ 10.7 M/ 16.5 M), UNITE a generative encoder ( 22 M) and a decoder ( 10.7 M), and UNIFIED one shared backbone ( 32.7 M). Reconstruction is measured on the 12,831 test molecules and generation on 10,000 samples.
Table 17: QM9 configuration, shared by UNITE and UNIFIED.
Figure 9: Uncurated samples from UNIFIED on ImageNet-1K 256×256 (CFG scale 4.0 ): the first 10 samples of each class; class indices in parentheses.
Figure 10: Uncurated samples from UNIFIED on ImageNet-1K 256×256 (continued from Figure 9 ).
Figure 11: Text-to-image samples from UNIFIED-L ( 554 M, 100 K pretraining steps) at 256×256 , with a 50 -step Euler solver and CFG scale 6.0 . Prompts are from PartiPrompts ( Yu et al., 2022 ) , DrawBench ( Saharia et al., 2022 ) , and other sources; we show the first sample for each.