cs.LGAug 18, 2026

Optimize Your Sampling: Tuned Diffusion Sampling with Bayesian Optimization

Authors: Travis Zhang, Christian Belardi, Justin Lovelace, Jin Peng Zhou, Saebyeol Shin, Carla P. Gomes, Kilian Q. Weinberger

Organizations: Cornell University

Abstract

Sampling from a diffusion model typically requires many forward passes through a large neural network, making generation computationally expensive. While much work has focused on efficient solvers and samplers, comparatively little attention has been paid to selecting the sampling timesteps themselves. A recent line of work optimizes theoretically derived surrogates for sample quality rather than the quality metric itself. We propose Optimizing Your Sampling (OYS), which instead treats timestep selection as a black-box optimization problem, optimizing the target metric directly with Bayesian optimization. OYS outperforms both the default schedules and those of Align Your Steps on text-to-image generation, and improves over the default schedules on inpainting and other image tasks, in both quantitative and human evaluations. OYS requires no additional training, is applicable even to distilled models, and improves both simple and sophisticated samplers such as Euler and DPM-Solver++. A 5-step OYS schedule retains 89%-94% of the quality of a 50-step schedule while reducing inference cost by 10x.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Analyzing and Improving Fast Sampling of Text-to-Image Diffusion Models

    Feb 28, 2026Zhenyu Zhou, Defang Chen, Siwei Lyu +2Diffusion Model Inference AccelerationT2I Diffusion Models

  2. Ctrl-Z Sampling: Scaling Diffusion Sampling with Controlled Random Zigzag Explorations

    Jun 25, 2025Shunqi Mao, Wei Guo, Chaoyi Zhang +3Diffusion SamplingConditional Diffusion Models