UltraDiff: Transferring High-Fidelity Priors to Compressed Latent Spaces for High-Resolution Image Generation
Organizations: The Hong Kong University of Science and Technology (Guangzhou) · Adobe Research
Abstract
High-resolution synthesis with Latent Diffusion Models (LDMs) faces a fundamental trade-off between computational cost and generative fidelity. This trade off is largely governed by the latent compression factor f (e.g. f8 denotes f=8 and f32 f=32). While aggressive compression (f32) significantly improves efficiency, it suffers from severe information loss and ambiguity compared to standard f8 models. We propose UltraDiff, a framework that reformulates this challenge as joint latent diffusion learning followed by marginal score distillation. We introduce MixTeacher, a dual branch DiT that models the joint f8-f32 distribution, utilizing shared attention to resolve the ambiguity of the compressed space with high fidelity f8 priors. Crucially, we propose vector field distillation in the native f32 space. Theoretically, this compels the student to learn the conditional expectation of the teacher trajectory, effectively filtering out compression artifacts. Across the evaluated 1K to 4K settings, UltraDiff approaches f8 level quality while preserving f32 efficiency. With 20 sampling steps on a single A100 GPU, it generates a 2K image in 6.2 seconds over 40 times faster than our f8 baseline.
Figures & tables
| Method | CLIP | IR | GenEval | Token |
|---|---|---|---|---|
| f32 from scratch | 27.21 | 0.70 | 0.54 | |
| f32 after f8 initialization | 28.91 | 0.91 | 0.61 | |
| UltraDiff f32 student | 29.27 | 0.98 | 0.72 | |
| f8 anchor | 29.25 | 1.08 | 0.73 |
| Stage | Steps | Compute | Output |
|---|---|---|---|
| f32 transfer | 120K | 66.7 GPU-days | f32 initialization |
| MixTeacher training | 5K | 29.6 GPU-days | Joint f8–f32 teacher |
| Student distillation and scaling | 50K + 10K | 366.7 GPU-days | Standalone f32 student |
| UltraDiff adaptation total | 185K | 463.0 GPU-days | Final UltraDiff model |
| Model | DPG | GenEval | HPSv3 | FID | Aesthetic | CLIP |
|---|---|---|---|---|---|---|
| No distillation + high-res | 74.02 | 0.602 | 7.68 | 149.59 | 6.16 | 29.31 |
| UltraDiff | 85.40 | 0.680 | 9.39 | 146.60 | 6.34 | 30.14 |
| Resolution | Method | Params(B) | Latent( ) | Latency(s) / Step | FID | pFID | Aesthetic | CLIP |
|---|---|---|---|---|---|---|---|---|
| Ultrapixel ( Ren et al., 2024 ) | 5.1 | 12 / 20 | 46.60 | 43.03 | 6.24 | 30.21 | ||
| Diffusion-4k ( Zhang et al., 2025 ) | 12 | 23 / 50 | 37.79 | 42.43 | 6.28 | 29.21 | ||
| Sana-2K ( Xie et al., 2024 ) | 1.6 | 5.8 / 20 | 45.99 | 42.99 | 6.18 | 30.13 | ||
| Hunyuan-2.1 ( Team, 2025 ) | 17 | 82 / 50 | 43.45 | 48.72 | 6.44 | 30.17 | ||
| Ours | 2.0 | 6.2 / 20 | 39.52 | 42.17 | 6.40 | 30.53 | ||
| Ultrapixel ( Ren et al., 2024 ) | 5.1 | 73 / 20 | 155.17 | 57.14 | 5.91 | 27.39 |
| Method | Token | Params(B) | DPG | GenEval | HPSv3 |
|---|---|---|---|---|---|
| SDXL ( Podell et al., 2023 ) | 2.6 | 74.6 | 0.55 | 7.87 | |
| PlayGroundv2.5 ( Li et al., 2024 ) | 2.6 | 75.5 | 0.56 | 9.90 | |
| PixArt ( Chen et al., 2024 ) | 0.6 | 80.5 | 0.54 | 9.20 | |
| SD3-medium ( Esser et al., 2024 ) | 2.0 | 84.1 | 0.62 | 9.08 | |
| FLUX-dev ( Black Forest Labs, 2024 ) | 12 | 83.8 | 0.67 | 10.15 | |
| FLUX-schnell ( Black Forest Labs, 2024 ) | 12 | 84.8 | 0.71 | 9.37 |
| Resolution | f8 anchor | UltraDiff | Speedup |
|---|---|---|---|
| 27.3s | 3.2s | ||
| 249.8s | 6.2s | ||
| OOM | 28.3s | – |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value |
|---|---|
| Model Depth ( ) | 28 layers |
| Hidden Dimension ( ) | 2048 |
| Attention Heads | 16 |
| KV Heads | 16 |
| Head Dimension | |
| FFN Multiplier | 1.3 (SwiGLU variant) |
| VAE | Scale | Channels | PSNR | SSIM | LPIPS | rFID | PatchFID |
|---|---|---|---|---|---|---|---|
| Ours (f8) | f8 | 16 | 30.9588 | 0.8719 | 0.0343 | 2.1645 | 3.7048 |
| Ours (f32) | f32 | 64 | 26.6258 | 0.7416 | 0.0681 | 6.7395 | 3.2330 |
| SANA 1.5 DC-AE [ Xie et al., 2024 ] | f32 | 32 | 25.3647 | 0.6888 | 0.0930 | 7.8557 | 4.2969 |
| FLUX.2 autoencoder [ Black Forest Labs, 2025 ] | f8 | 32 | 33.8557 | 0.9242 | 0.0144 | 1.1360 | 0.9926 |
| HunyuanImage-2.1 VAE [ Team, 2025 ] | f32 | 64 | 29.4606 | 0.8217 | 0.1111 | 9.7390 | 10.1938 |
| Stable Diffusion 3.5 VAE [ Esser et al., 2024 ] | f8 | 16 | 30.6493 | 0.8609 | 0.0298 | 2.4047 | 1.3692 |
| Configuration | f8 VAE (Teacher Anchor) | f32 VAE (Target) |
|---|---|---|
| Type | 2D KL-VAE | 2D KL-VAE |
| Latent Space | Continuous (Gaussian) | Continuous (Gaussian) |
| Downsampling Factor | ||
| Latent Channels ( ) | 16 | 64 |
| Encoder | ||
| Channel Base | 128 | 128 |
| Parameter | Value |
|---|---|
| Optimizer | AdamW |
| Adam | 0.9, 0.95 |
| Learning Rate (LR) | |
| Weight Decay | 0.01 |
| LR Schedule | Linear Warmup + Cosine Decay |
| Warmup Steps | 500 |
Latent Diffusion Models
Latent diffusion models denoise compact representations to generate or transform images, video, audio, and other complex data efficiently.
See all 197 papers