TL;DR
UltraDiff is a new distillation framework that brings high-fidelity image generation to highly compressed latent spaces. By transferring generative knowledge from a standard $f8$ model to an efficient $f32$ model, it achieves near-top-tier quality while generating 2K images 40x faster than traditional baselines—clocking in at just 6.2 seconds on a single A100 GPU.
What Problem Does This Paper Address?
High-resolution image synthesis using Latent Diffusion Models (LDMs) and Diffusion Transformers (DiTs) faces a steep "efficiency vs. fidelity" trade-off. This is largely dictated by the latent compression factor ($f$).
Standard models typically use $f=8$ (8x spatial downsampling). While $f8$ produces excellent details, the computational cost of self-attention scales quadratically with the number of tokens. For Ultra-High-Definition (UHD) resolutions like 2K or 4K, $f8$ models become prohibitively slow or simply run out of memory.
Aggressive compression ($f=32$) solves the efficiency problem by reducing the token count by 16x compared to $f8$. However, $f32$ latent spaces suffer from severe information loss. The model struggles to learn fine-grained details and precise layouts from such a sparse grid, leading to blurry results and poor prompt adherence. The authors ask: Can we transfer the rich generative knowledge of a pre-trained $f8$ model to guide the training of an efficient $f32$ model?
Methods
The authors propose UltraDiff, a two-stage framework consisting of a "MixTeacher" and a "Marginal Score Distillation" strategy.
1. The MixTeacher
Instead of training $f8$ and $f32$ models separately, the authors introduce MixTeacher, a dual-branch DiT that models the joint distribution of both latent spaces.
- Architecture: The two branches have separate parameters for projections and normalization to handle their distinct distributions, but they share self-attention layers.
- Shared Attention: This allows the $f32$ branch to "see" and incorporate fine-grained structural details from the $f8$ tokens during training.
- Stochastic Routing: To ensure the $f32$ branch doesn't become a "crutch" for the $f8$ branch, they use a routing strategy that alternates between joint training and solo-branch training.
2. Marginal Score Distillation
Once the MixTeacher is trained, it acts as an "omniscient supervisor." The final student model (a standard $f32$ DiT) is trained to mimic the velocity field predicted by the teacher’s $f32$ branch.
- The "Aha" Theory: Theoretically, this forces the student to learn the conditional expectation of the teacher's trajectory. This process effectively "integrates out" the ambiguity and aliasing artifacts inherent to the compressed $f32$ space, guiding the student toward a structurally coherent manifold.
Datasets
- Training: A proprietary corpus of approximately 0.37 billion text-image pairs.
- Evaluation:
- GenEval: For text-to-image alignment.
- DPG Bench & HPSv3: For human preference and detailed prompt following.
- MJHQ-30k: Used for CLIP and ImageReward (IR) metrics.
- Aesthetic-4K: For evaluating Fréchet Inception Distance (FID) at high resolutions.
Key Insights and Ideas
- Initialization is Not Enough: Simply initializing an $f32$ model with $f8$ weights helps (improving GenEval from 0.54 to 0.61), but a massive gap remains compared to the $f8$ anchor (0.73). Dynamic guidance is required.
- Native Space Distillation: Unlike previous methods that align intermediate features (which often causes checkerboard artifacts due to grid interpolation), UltraDiff distills the vector field directly in the student's native $f32$ space.
- Resolving Ambiguity: The shared attention mechanism in MixTeacher is crucial. It allows the teacher to resolve the structural ambiguity of the $f32$ space by using $f8$ priors as a reference, providing a "clean" supervision signal for the student.
Key Results
UltraDiff achieves a best-of-both-worlds result: $f32$ efficiency with near-$f8$ quality.
- Performance Gap Bridged: On the GenEval benchmark, UltraDiff reaches a score of 0.72, nearly matching the $f8$ anchor's 0.73, while the baseline $f32$ model lags at 0.54.
- Massive Speedup: At 2K resolution, UltraDiff generates an image in 6.2 seconds (20 steps, A100), which is 40.3x faster than the $f8$ baseline (249.8s).
- 4K Scalability: UltraDiff can generate 4K images in 28.3 seconds. In contrast, the $f8$ anchor model suffers from Out-of-Memory (OOM) errors at this resolution.
- Qualitative Superiority: As seen in Figure 1, the model maintains sharp textures and complex semantic details (like text rendering and fine hair) that typically fail in compressed models.
Limitations and Future Work
- Architectural Scope: The study focused on one specific DiT pipeline. While the principles should generalize, empirical validation across different backbones (like U-Nets or different Transformer variants) is still needed.
- Proprietary Components: The current implementation relies on a proprietary $f8$ teacher and specific VAEs, which may limit immediate reproducibility for the open-source community until weights or code are released.
- Multi-stage Training: The training process is complex, involving $f32$ pre-training, MixTeacher training, and finally distillation. Simplifying this pipeline is a noted direction for future work.
- Conditioning: The authors suggest that moving beyond T5-XXL to more modern vision-language models could further improve prompt adherence.
Summary updated