Diff-Instruct*: Towards Human-Preferred One-step Text-to-image Generative Models

Weijian Luo, Colin Zhang, Debing Zhang, Zhengyang Geng · OpenReview

Abstract

In this paper, we introduce Diff-Instruct (DI), an image data-free approach for building one-step text-to-image generative models that align with human preference while maintaining the ability to generate highly realistic images. We frame human preference alignment as online reinforcement learning using human feedback (RLHF), where the goal is to maximize the reward function while regularizing the generator distribution to remain close to a reference diffusion process. Unlike traditional RLHF approaches, which rely on the KL divergence for regularization, we introduce a novel score-based divergence regularization, which leads to significantly better performances. Although the direct calculation of this preference alignment objective remains intractable, we demonstrate that we can efficiently compute its gradient by deriving an equivalent yet tractable loss function. Remarkably, we used Diff-Instruct to train a Stable Diffusion-XL-based 1-step model, the 2.6B DI-SDXL-1step text-to-image model, which can generate images of a resolution of 1024x1024 with only 1 generation step. DI-SDXL-1step model uses only 1.88% inference time and 29.30% GPU memory cost to outperform 12B FLUX-dev-50step significantly in PickScore, ImageReward, and CLIPScore on Parti prompt benchmark and HPSv2.1 on Human Preference Score benchmark, establishing a new state-of-the-art benchmark of human-preferred 1-step text-to-image generative models. Besides the strong quantitative performances, extensive qualitative comparisons also confirm the advantages of DI in terms of maintaining diversity, improving image layouts, and enhancing aesthetic colors.

Introduction: The Speed-Quality Frontier

In the rapidly evolving field of AI art, a persistent trade-off exists between inference speed and image quality. State-of-the-art Diffusion Models (DMs) like FLUX-dev or SD3.5 produce stunning results but require dozens of iterative steps, making them computationally expensive and slow for real-time applications. Conversely, one-step generators offer lightning-fast performance but historically struggle to match the fidelity and human alignment of their multi-step counterparts.

When aligning these models using Reinforcement Learning from Human Feedback (RLHF), researchers typically employ Kullback-Leibler (KL) divergence to prevent the model from drifting too far from its original state. However, KL divergence is prone to "mode seeking," often causing models to collapse into repetitive, over-saturated styles—a phenomenon known as "reward hacking." This paper introduces Diff-Instruct (DI), a method that overcomes these limitations by reimagining the regularization framework.

Methodology: Score-Based Regularization

DI frames alignment as an online RLHF problem but replaces traditional KL divergence with a novel score-based divergence*. This mathematical shift is crucial for preserving diversity and preventing style collapse.

Key Technical Innovations

  1. Tractable Optimization: While score-based objectives are typically intractable, the authors derived a strictly equivalent loss function that allows for efficient gradient computation.
  2. Assistant Diffusion Model: The framework utilizes an "assistant" model that learns the current state of the one-step generator. This assistant interacts with a frozen teacher model to provide the necessary gradients for updating the generator.
  3. CFG Distillation: Classifier-Free Guidance (CFG) is traditionally an inference-time technique. DI* treats CFG as an implicit reward function during training, baking its benefits directly into the model's weights. This allows the model to follow complex prompts in a single step without the speed penalty usually associated with CFG.

Datasets and Evaluation

The model was trained using 2.2 million prompts from the LAION-AESTHETIC dataset, filtered for high aesthetic quality. Performance was measured across several rigorous benchmarks:

  • Parti Prompts: For complex concept composition.
  • MSCOCO-2014: For standard zero-shot evaluation and FID scores.
  • HPSv2.1: A specialized benchmark for Human Preference Scores across Animation, Concept Art, Painting, and Photo styles.

Key Results: Small Model, Big Impact

The flagship DI*-SDXL-1step model (2.6B parameters) demonstrates that alignment quality can be more impactful than raw parameter count. Despite being significantly smaller than the 12B parameter FLUX-dev, DI* achieves superior human preference metrics.

Quantitative comparison of DI*-SDXL against state-of-the-art models on Parti and COCO benchmarks.

As shown in the quantitative analysis, the DI-SDXL-DDPO variant outperforms FLUX-dev-50step in ImageReward, PickScore, and CLIPScore on the Parti benchmark while requiring only 1.88% of the inference time and 29.3% of the GPU memory*. Qualitatively, the model maintains high fidelity, realistic lighting, and diverse layouts that were previously the exclusive domain of multi-step models.

Qualitative examples generated by the DI*-SDXL-1step model across diverse prompts.

Conclusion

Diff-Instruct establishes a new state-of-the-art for one-step text-to-image generation. By moving beyond KL divergence to score-based regularization, the authors have created a model that is not only efficient but also highly aligned with human aesthetic preferences. While one-step generation still faces challenges with ultra-fine details like human hands, DI proves that efficient models can indeed topple the diffusion giants. Future work may involve applying these techniques to "few-step" models to find the ultimate balance between speed and iterative refinement.

Summary updated

BibTeX
@misc{luo2024diff,
  author = {Weijian Luo and Colin Zhang and Debing Zhang and Zhengyang Geng},
  title = {{Diff-Instruct*: Towards Human-Preferred One-step Text-to-image Generative Models}},
  year = {2024},
  eprint = {2410.20898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.20898},
}
Figure