OMS-DPM: Optimizing the Model Schedule for Diffusion Probabilistic Models

Enshu Liu, Xuefei Ning, Zinan Lin, Huazhong Yang, Yu Wang

Abstract

Diffusion Probabilistic Models (DPMs) have established themselves as the state-of-the-art in image generation but are hindered by high computational costs during sampling. While existing acceleration techniques focus on noise schedules and discretization solvers, they typically utilize a static neural network architecture throughout the entire denoising process. This paper introduces OMS-DPM, a framework that optimizes the "model schedule"—the sequence of different-sized pre-trained models used at each denoising step. By employing a predictor-based evolutionary search, OMS-DPM identifies optimal model combinations that significantly improve the quality-speed trade-off, achieving a 2.8× speedup on CIFAR-10 and a 2× acceleration for Stable Diffusion without sacrificing image quality.

Introduction

The primary bottleneck in Diffusion Probabilistic Models is the requirement for dozens or hundreds of sequential neural network evaluations (NFEs) to generate a single image. Current research into accelerating this process generally targets three areas: optimizing noise schedules, improving solvers (such as DDIM or DPM-Solver), or model distillation.

However, these approaches share a common limitation: they assume a "one-size-fits-all" model architecture for every step of the denoising process. OMS-DPM challenges this assumption by identifying that large models are slow but high-quality, while small models are fast but lower-quality. The authors propose that by intelligently mixing these models, one can achieve the best of both worlds. This introduces a new, orthogonal dimension for optimization: the model schedule.

The OMS-DPM Framework

OMS-DPM utilizes a predictor-based search algorithm to navigate the massive space of potential model sequences.

1. Flexible Search Space and Model Zoo

The process begins with a Model Zoo containing pre-trained models of varying sizes and latencies. To optimize both the model choice and the total number of steps, the authors define a fixed grid of potential steps (e.g., $L=100$) and introduce a "null model." If the search algorithm selects the null model for a specific step, that step is skipped, effectively shortening the generation process and allowing the search to find the optimal number of NFEs automatically.

2. Performance Prediction

Evaluating the Fréchet Inception Distance (FID) for every possible model schedule is computationally impossible. To address this, OMS-DPM trains a performance predictor. This predictor uses a specialized architecture—incorporating Model Embeddings, Timestep Embeddings, and an LSTM—to estimate the relative quality of a given schedule. By training on a small subset of data, the predictor can evaluate thousands of potential schedules in seconds.

Once the predictor is trained, an evolutionary algorithm is used to navigate the search space. This allows the framework to quickly identify the best-performing schedule that fits within a specific computational or time budget.

Key Insights

Local vs. Global Superiority

A surprising finding of this research is that a globally "worse" (smaller/faster) model can actually outperform a "better" (larger/slower) model at specific denoising steps. For instance, smaller models often perform better during the late stages of denoising, where the task shifts from structural generation to fine-detail refinement.

Orthogonality

OMS-DPM is not a replacement for fast solvers like DDIM or DPM-Solver. Instead, it is a complementary technique. A model schedule can be applied on top of existing fast sampling techniques to further improve the Pareto front of the speed-quality trade-off.

Experimental Evaluation

The authors evaluated OMS-DPM across several standard benchmarks, including CIFAR-10, CelebA, ImageNet-64, LSUN-Church, and MS-COCO (for Stable Diffusion validation).

  • CIFAR-10: OMS-DPM found schedules that achieved a superior FID (3.19 vs. 3.56) while being 2.8× faster than using a single standard model with a high-end solver.
  • Stable Diffusion: When applied to Stable Diffusion using its four public checkpoints as a "zoo," OMS-DPM accelerated sampling by 2× while maintaining the same generation quality on the MS-COCO dataset.
  • Consistency: Across all tested datasets and time budgets, the searched schedules consistently outperformed baselines that used only a single model or random model mixing.

Limitations and Future Work

While effective, OMS-DPM requires a significant one-time computational cost to prepare training data for the predictor, as it involves evaluating several thousand schedules. Additionally, the performance gains are limited by the diversity of the available pre-trained models in the zoo. Future work may explore the automatic creation of specialized model zoos or the development of a more universal predictor that does not require retraining for every new task.

Conclusion

OMS-DPM demonstrates that optimizing the model schedule is a highly effective and previously overlooked method for accelerating diffusion models. By breaking the "one-size-fits-all" model paradigm, the framework provides a flexible and powerful tool for achieving high-quality image synthesis at a fraction of the usual computational cost.

Summary updated

BibTeX
@inproceedings{liu2023oms,
  author = {Enshu Liu and Xuefei Ning and Zinan Lin and Huazhong Yang and Yu Wang},
  title = {{OMS-DPM: Optimizing the Model Schedule for Diffusion Probabilistic Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=miv2ZYRd1t},
}
Figure