Single-Transformer Latent Diffusion
Organizations: University of Illinois Urbana-Champaign
Abstract
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
| Model | Mode | Input sequence | Output | Length | ||
|---|---|---|---|---|---|---|
| UNITE++ | Encode | at the latent readouts | ||||
| Generate | at positions | |||||
| Decode | at the pixel readouts | |||||
| UNIFIED | Encode | at positions | ||||
| Generate | at positions | |||||
| Decode | at positions |
| 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 |
| Pretraining ( k steps) | SFT ( 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 |
| 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 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value | Hyperparameter | Value |
|---|---|---|---|
| Base learning rate | Warmup epochs | ||
| Global batch size | Total epochs | ||
| Optimizer | Muon | LR schedule | Cosine |
| AdamW betas | Min LR | ||
| Weight decay | Gradient clip | ||
| Reconstruction noise ( ) | EMA decay |
| 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 |
| Size | Method | Epochs | Training EFLOPs | gFID |
|---|---|---|---|---|
| Tiny | UNITE ( ) | 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 |
| 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 | |
| Gen. w/o CFG | Gen. w/ CFG | Reconstruction | ||||||
| Method | gFID | IS | gFID | IS | rFID | rIS | PSNR | LPIPS |
| UNITE ( ) † | 41.19 | 37.9 | 5.01 | 239.6 | 1.24 | 196.4 | 26.60 | 0.115 |
| UNITE ( ) † | 31.18 | 49.8 | 3.79 | 262.5 | 1.59 | 190.4 | 26.14 | 0.127 |
| UNITE ( ) | 26.02 | 60.8 | 3.00 | 272.4 | 1.27 | 197.2 | 26.31 | 0.115 |
| UNIFIED ( ) | 20.71 | 75.2 | 2.75 | 282.0 | 1.30 | 196.7 | 25.65 | 0.127 |
| UNIFIED ( ) | 21.25 | 72.3 | 2.78 | 280.1 | 1.75 | 188.6 | 25.23 | 0.142 |
| Gen. w/o CFG | Gen. w/ CFG | Reconstruction | ||||||||
| Method | gFID | IS | gFID | IS | rFID | rIS | PSNR | LPIPS | ||
| UNITE | – | 15.99 | 91.4 | 2.23 | 282.1 | 1.41 | 198.0 | 26.63 | 0.106 | |
| UNITE++ | 16.16 | 95.7 | 2.24 | 327.1 | 2.20 | 182.0 | 24.99 | 0.145 | ||
| UNIFIED † | 14.95 | 100.3 | 2.31 | 300.0 | 1.39 | 194.5 | 25.74 | 0.126 | ||
| UNIFIED | 14.20 | 100.4 | 2.15 | 312.8 | 0.97 | 203.9 | 26.63 | 0.103 | ||
| UNIFIED | 14.12 | 103.6 | 2.08 | 314.4 | 0.95 | 205.2 | 26.69 | 0.101 | ||
| Gen. w/o CFG | Gen. w/ CFG | Reconstruction | |||||||
| Size | Method | gFID | IS | gFID | IS | rFID | rIS | PSNR | LPIPS |
| Tiny | UNITE ( ) | 26.02 | 60.8 | 3.00 | 272.4 | 1.27 | 197.2 | 26.31 | 0.115 |
| UNIFIED ( ) | 20.71 | 75.2 | 2.75 | 282.0 | 1.30 | 196.7 | 25.65 | 0.127 | |
| UNIFIED ( ) | 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 | |
| Adaptive dopri5 | Euler, NFE | ||||||
| Size | Method | gFID | IS | gFID | IS | ||
| Tiny | UNITE ( ) | – | – | – | |||
| UNIFIED | – | – | |||||
| UNIFIED | – | – | |||||
| Small | UNITE | – | – | – | |||
| UNIFIED | – | – | |||||
| (a) | (b) stop at | (c) stop at + jump | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Model | |||||||||
| UNITE | 2.206 | 2.206 | 2.208 | 2.208 | 2.206 | 2.210 | 2.207 | 2.199 | 2.194 |
| UNIFIED ( ) | 2.145 | 2.032 | 2.038 | 2.040 | 2.040 | 2.037 | 2.048 | 2.052 | 2.168 |
| UNIFIED ( ) | 2.108 | 2.103 | 2.108 | 2.111 | 2.112 | 2.107 | 2.120 | 2.132 | 2.149 |
| 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 ( ) | 97.30 | 0.058 | 96.11 | 98.49 |
| Setting | Value |
|---|---|
| Backbone | width , heads, AdaLN blocks |
| Blocks | UNITE: (generative encoder) (decoder); UNIFIED: |
| Parameters | M each |
| Latent | channels per atom |
| Batch size / epochs | / |
| Reconstruction noise |
Latent Diffusion Models
Latent diffusion models denoise compact representations to generate or transform images, video, audio, and other complex data efficiently.
See all 232 papers