NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AC-Sampler: Accelerate and Correct Diffusion Sampling with Metropolis-Hastings Algorithm

Minsang Park, Gyuwon Sim, Hyungho Na, Jiseok Kwak, Sumin Lee, Richard Lee Kim, Donghyeok Shin, Byeonghu Na, Yeongmin Kim, Il-chul MoonICLR 2026

TL;DR

AC-Sampler is a new training-free framework that simultaneously speeds up and improves the quality of diffusion model sampling. By using the Metropolis-Hastings algorithm guided by a small, time-dependent discriminator, it allows researchers to "jump" to intermediate timesteps and correct approximation errors on the fly. This approach achieves state-of-the-art image quality with significantly fewer computations.

What Problem Does This Paper Address?

Diffusion models generate high-quality data by slowly reversing a noise-adding process. However, they face two major hurdles:

  1. Speed: To get good results, you typically need many iterative steps (a high Number of Function Evaluations, or NFE), which makes them computationally expensive.
  2. Accuracy: Each step in the reverse process is just an approximation. As you chain hundreds of these steps together, small errors accumulate, leading to a "drift" away from the true data distribution.

Existing research usually treats these as separate problems. Some methods focus on "acceleration" (taking bigger steps), which often hurts quality. Others focus on "correction" (fixing the drift), which usually adds even more computational burden. The authors of AC-Sampler aim to solve both at once without requiring any expensive fine-tuning of the original pre-trained diffusion model.

Methods

The core of AC-Sampler is the Metropolis-Hastings (MH) algorithm, a classic Markov Chain Monte Carlo (MCMC) technique.

AC-Sampler Method Overview

The process works in three main phases:

  1. Acceleration (The Jump): Instead of starting from pure noise and denoising all the way, the sampler proposes samples directly at an intermediate timestep $\tau$. This bypasses the early, most computationally expensive steps.
  2. Correction (The MH Step): To ensure these proposed samples actually belong to the true data distribution (and aren't just artifacts of the model's errors), the authors use a Metropolis-Adjusted Langevin Algorithm (MALA).
  3. The Discriminator: The "magic" that makes the MH step work is a tractable density ratio. The authors train a small, time-dependent discriminator to distinguish between the true data distribution and the model's distribution at various noise levels. This discriminator provides the "acceptance probability" for the MH algorithm, effectively acting as a filter that keeps good samples and rejects bad ones.

Importantly, this method is orthogonal to other samplers. You can layer AC-Sampler on top of existing fast solvers like DPM-Solver to get even better performance.

Datasets

The authors evaluated AC-Sampler across several standard benchmarks to prove its versatility:

  • CIFAR-10: For unconditional image generation.
  • CelebA-HQ (256×256): For high-resolution face generation.
  • ImageNet (64×64 and 256×256): For class-conditional generation.
  • MS-COCO: Used for evaluating text-to-image performance via Stable Diffusion v1.5.

No new datasets were introduced, but the variety of tasks (unconditional, conditional, and text-to-image) demonstrates the method's broad applicability.

Key Insights and Ideas

  • The Density Ratio Shortcut: Calculating the exact probability of a high-dimensional image is nearly impossible. The authors derived a way to use a simple binary discriminator to estimate the ratio of the true distribution to the model distribution. This ratio is all the MH algorithm needs to decide whether to accept a sample.
  • Propose-Until-Accept: In standard MH, if a proposal is rejected, you stay at the current state. In image generation, this leads to "stagnation" (identical images). The authors used a "propose-until-accept" strategy, which they theoretically link to Jump Markov Chains, to ensure every step in the chain explores new regions of the image space.
  • Efficiency of Correction: Training the required discriminator is significantly cheaper (taking less than 2 hours on a single GPU for CIFAR-10) than training or fine-tuning the massive diffusion model itself.

Key Results

AC-Sampler consistently outperformed base models in both quality (measured by FID) and speed (NFE):

FID vs NFE Performance
  • CIFAR-10: Achieved an FID of 2.38 with only 15.8 NFEs, beating the base sampler's FID of 3.23 at 17 NFEs.
  • CelebA-HQ: Attained a sharp FID of 6.6 with 98.3 NFEs, showing clear improvements over previous correction methods like DLG.
  • Compatibility: When added to DPM-v3 (which originally had an FID of 12.41 at 5 NFEs), AC-Sampler improved the quality to 9.88 FID while actually reducing the NFE to 4.78.
  • Wall-clock time: Despite the overhead of the discriminator, the "jump" in timesteps resulted in faster overall generation times compared to standard denoising paths.

Limitations and Future Work

  • Discriminator Dependency: While the discriminator is small, it still requires a separate training phase for each model/dataset combination. The authors showed that even a "randomly initialized" feature extractor helps, but a pre-trained one is better.
  • Jump Markov Bias: The "propose-until-accept" strategy introduces a small theoretical bias (KL divergence gap) compared to "perfect" MH sampling. While it works better in practice, the authors suggest a more rigorous theoretical analysis of this gap as a direction for future work.
  • High-Dimensional Scaling: While it works on 256x256 images, scaling MCMC methods to even higher resolutions (like 1024x1024) remains a general challenge in the field due to the "curse of dimensionality" affecting acceptance rates.

Summary updated

BibTeX
@inproceedings{park2026ac,
  author = {Minsang Park and Gyuwon Sim and Hyungho Na and Jiseok Kwak and Sumin Lee and Richard Lee Kim and Donghyeok Shin and Byeonghu Na and Yeongmin Kim and Il-chul Moon},
  title = {{AC-Sampler: Accelerate and Correct Diffusion Sampling with Metropolis-Hastings Algorithm}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=kWl13kRJTQ},
}
Figure