One-Way Ticket:Time-Independent Unified Encoder for Distilling Text-to-Image Diffusion Models

Senmao Li, Lei Wang, Kai Wang, Tao Liu, Jiehang Xie, Joost van de Weijer, Fahad Shahbaz Khan, Shiqi Yang, Yaxing Wang, Jian Yang

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.
The TiUE architecture diagram showing the one-pass encoder and parallel decoder steps.

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.
Figure 1. The correlation between image generation quality (Fig.a-b) and encoder feature similarity (Fig.c). Above a certain threshold of steps, such as 15 steps in SD2.1, the model maintains image generation quality (Fig.a-b) while the features show high similarity (Fig.c). Below this threshold, feature similarity deteriorates along with worse generation quality, accompanied by a degradation in image generation quality. Furthermore, the encoder features consistently exhibit higher similarity than the decoder across all sampling steps (Fig.c).

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.
Figure 2. The generated images and the corresponding UNet de- coder features using different time steps. The images generated in one step mainly focus on structural information, with a min- imal amount of semantic information present in the feature lay- ers (Left). By comparison, the decoder across multiple time-steps contain richer and more explicit semantic information in the fea- ture level (Right), leading to better image generation.

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

BibTeX
@inproceedings{li2025one,
  author = {Senmao Li and Lei Wang and Kai Wang and Tao Liu and Jiehang Xie and Joost van de Weijer and Fahad Shahbaz Khan and Shiqi Yang and Yaxing Wang and Jian Yang},
  title = {{One-Way Ticket:Time-Independent Unified Encoder for Distilling Text-to-Image Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02194},
}
Figure