Efficient Controllable Diffusion via Optimal Classifier Guidance

Owen Oertell, Shikun Sun, Yiding Chen, Jin Peng Zhou, Zhiyong Wang, Wen SunarXiv 2025 · DOI

Introduction

Diffusion models have revolutionized generative AI, yet "steering" these models to satisfy specific downstream objectives—such as maximizing image aesthetics or optimizing biological sequence activity—remains a significant hurdle. Supervised Learning based Controllable Diffusion (SLCD) introduces a novel framework that achieves optimal control through iterative supervised classification, bypassing the instabilities of Reinforcement Learning (RL) while maintaining high inference efficiency.

The Challenge of Steering Diffusion

Controllable generation typically follows one of two paths:

  1. Classifier Guidance: A classifier trained on fixed data "nudges" the diffusion process. This often fails due to covariate shift, where the generated samples drift away from the classifier's training distribution.
  2. Reinforcement Learning (RL) Fine-tuning: Methods like PPO treat generation as a sequence of actions. While powerful, RL is computationally expensive, unstable, and prone to "reward hacking," where models produce low-quality outputs that technically achieve high scores.

SLCD offers a "third way," framing controllable generation as a distribution matching problem that maximizes reward while staying close to the base model via KL-regularization.

The SLCD Framework

The core of SLCD is an iterative loop inspired by imitation learning (specifically the DAgger algorithm). Instead of complex RL, it reduces the problem to a sequence of multi-class classification tasks:

  • Roll-in/Roll-out: The model generates samples using a lightweight guidance classifier. At various steps, it "branches off" using the base model to evaluate the final reward.
  • Dataset Aggregation: These (state, time, reward) triples form an online dataset.
  • Supervised Training: A small classifier learns to predict the distribution of rewards for any given noisy state.

By training on its own generated data, the classifier inherently overcomes covariate shift. Furthermore, the guidance strength ($\eta$) can be adjusted at test time without retraining.

Visual impact of increasing guidance strength ($\eta$) on image compression and aesthetic tasks.

Key Results

SLCD was evaluated across diverse domains, including image compression, aesthetic optimization, and biological sequence design (DNA enhancers and RNA 5’ UTR).

Performance and Efficiency

SLCD consistently outperformed baselines like SVDD, DPS, and Sequential Monte Carlo (SMC). In image compression, it achieved rewards nearly 4x higher than the next best method. Crucially, it adds almost zero overhead to inference; on an NVIDIA A6000, SLCD generated images in 6.06 seconds, nearly identical to the base Stable Diffusion model (5.99s).

SLCD performance across continuous (Image Compression) and discrete (DNA Enhancer) tasks compared to baselines.

Pareto Frontier

The framework maintains a superior balance between reward and data quality. As shown in the results, SLCD stays closer to the original model's style (lower FID) while achieving higher target objectives compared to competing value-guided methods.

Conclusion

SLCD demonstrates that complex RL is not a prerequisite for effective diffusion steering. By leveraging iterative supervised learning, the framework provides a theoretically sound, stable, and highly efficient solution for controllable generation across both continuous and discrete data domains. Future work will explore scaling this approach to multi-objective constraints and more complex text-to-image prompts.

Summary updated

BibTeX
@misc{oertell2025efficient,
  author = {Owen Oertell and Shikun Sun and Yiding Chen and Jin Peng Zhou and Zhiyong Wang and Wen Sun},
  title = {{Efficient Controllable Diffusion via Optimal Classifier Guidance}},
  year = {2025},
  eprint = {2505.21666},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.21666},
}
Figure