Optimize Your Sampling: Tuned Diffusion Sampling with Bayesian Optimization

Travis Zhang, Christian Belardi, Justin Lovelace, Jin Peng Zhou, Saebyeol Shin +2 more
8/18/2026
cs.LGcs.CV
diffusion-flowbayesian

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026optimize,
  title  = {Optimize Your Sampling: Tuned Diffusion Sampling with Bayesian Optimization},
  author = {Travis Zhang and Christian Belardi and Justin Lovelace and Jin Peng Zhou and Saebyeol Shin and Carla P. Gomes and Kilian Q. Weinberger},
  year   = {2026},
  eprint = {2608.18040},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.18040v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.18040.svg)](https://codeofpaper.com/paper/2608.18040)

Discussion