TL;DR
TiUE introduces a "one-pass" UNet architecture for distilled diffusion models, where a single encoder pass feeds multiple parallel decoder steps. By eliminating iterative loops and adding KL-divergence regularization, it achieves one-step generation speed with the diversity and quality typically reserved for multi-step models.
What Problem Does This Paper Address?
Text-to-Image (T2I) diffusion models like Stable Diffusion produce stunning results but are computationally expensive, often requiring dozens of iterative sampling steps. While distillation techniques (e.g., LCM, SD-Turbo) have successfully compressed this process into 1–4 steps, they frequently suffer from a "diversity-quality trade-off."
One-step models, in particular, often produce blurry images or fall into "mode collapse," where they generate very similar-looking outputs even when given different random seeds. The authors identify that a major bottleneck is the redundant computation in the UNet encoder across these steps, which doesn't necessarily contribute to better semantic refinement.
Methods
The researchers propose the Time-independent Unified Encoder (TiUE), a novel architecture for student models that breaks the iterative loop of standard diffusion.
- One-Pass Encoder Scheme: Based on the observation that encoder features are highly similar across time steps, TiUE runs the UNet encoder only once. These structural features are then shared across multiple parallel decoder steps.
- Parallel Decoding: Unlike standard models that feed the output of one step back into the next, TiUE’s decoders operate in parallel to refine semantic information from different "virtual" time steps simultaneously. This architecture is detailed in Figure 5.
- KL Divergence Regularization: To maintain the Gaussian output prior of the original teacher model, the authors introduce a Kullback–Leibler (KL) divergence loss. This prevents the student model from losing generation diversity during the distillation process.
- Variational Score Distillation (VSD): The model is trained using VSD, which allows for high-quality distillation without requiring a massive dataset of paired images and text.
Datasets
- Training: The model was trained on 1.4 million unique captions sourced from the JourneyDB dataset.
- Evaluation: Performance was benchmarked across several standard datasets, including COCO 2014 (30K prompts) and COCO 2017 (5K prompts).
- Diversity Testing: To specifically assess diversity and fidelity, the authors used AFHQ (animal faces), CelebA-HQ (human faces), DrawBench, and PartiPrompts.
Key Insights and Ideas
- Encoders are Structural, Decoders are Semantic: The authors found that the encoder primarily handles structural layout, which remains stable across steps. The decoder is responsible for the "richer and more explicit semantic information" that evolves during denoising.
- Redundancy is an Opportunity: As shown in Figure 1, encoder feature similarity stays high above a certain threshold of steps. By sharing these features, TiUE eliminates the "loop" in generation, enabling massive parallelization.
- Diversity Requires Regularization: The "mode collapse" in other one-step models is often due to the student network drifting away from the Gaussian noise distribution. The KL loss acts as a crucial anchor for maintaining variety in outputs.
Key Results
- Superior Quality: TiUE outperforms state-of-the-art baselines like LCM and SD-Turbo. On COCO 2014, it achieved an FID of 13.09, significantly better than SD-Turbo's 19.51 (lower is better).
- High Diversity: Qualitative results in Figure 3 show that TiUE produces much more varied results for the same prompt compared to SD-Turbo or SwiftBrushv2, which tend to produce nearly identical images regardless of the random seed.
- Efficiency: Despite running multiple decoder steps, the parallel "one-pass" architecture keeps inference time around 165ms (on an A100 GPU), which is comparable to existing one-step models but with much higher fidelity.
Limitations and Future Work
The authors note that their current work focuses on image-free distillation (distilling from a teacher model without using real images). They suggest that applying this shared encoder strategy to image-dependent distillation—such as for ControlNet or other conditional models—could further enhance inference speeds across the board. Additionally, while TiUE is efficient, the parallel decoding does introduce a slight increase in memory usage compared to a single-step UNet pass, which might be a consideration for edge deployment.
Summary updated