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

Diffusion Rejection Sampling

Byeonghu Na, Yeongmin Kim, Minsang Park, Donghyeok Shin, Wanmo Kang, Il-chul Moon

TL;DR

Diffusion Rejection Sampling (DiffRS) introduces a principled rejection sampling layer into the iterative generation process of diffusion models. By using a time-dependent discriminator to evaluate sample quality at each timestep, DiffRS selectively refines "poor" samples through noise injection and re-sampling, achieving state-of-the-art image quality with tighter theoretical error bounds.

The Challenge: Drifting from the Data Distribution

Diffusion models have revolutionized generative AI, but their sampling process—the "reverse diffusion" that iteratively turns noise into an image—often deviates from the true data distribution. Currently, researchers fix this in two ways: training the model longer (which is computationally expensive) or increasing the number of sampling steps (which makes generation painfully slow).

Recent "refinement" methods like Restart try to fix errors by occasionally adding noise back into a sample and re-running steps, but these often rely on heuristic rules. The core challenge remains: How can we systematically identify and correct "bad" samples during the generation process without retraining the entire model?

Introducing Diffusion Rejection Sampling (DiffRS)

The authors propose treating each step of the diffusion process as a proposal in a rejection sampling scheme. This allows the model to evaluate and correct samples mid-flight.

Diffusion Rejection Sampling Framework
  1. The Time-Dependent Discriminator: The method trains a discriminator ($d_\phi$) to distinguish between real data and generated samples at every stage of the diffusion process. This discriminator estimates the "density ratio," essentially asking, "How much does this intermediate sample look like a real image at this specific stage of corruption?"
  2. Acceptance Probability: At each timestep $t$, the algorithm calculates an acceptance probability based on the ratio of the true transition kernel to the model's transition kernel. If a sample is "accepted," it proceeds normally to $t-1$.
  3. Principled Re-initialization: If a sample is "rejected," it isn't discarded. Instead, the model adds a specific amount of noise to "push" the sample back to a previous timestep ($t+1$) and tries the transition again. High-quality samples breeze through the pipeline, while problematic ones are refined multiple times.
  4. The $\gamma$ Hyperparameter: Because finding the absolute maximum ratio for rejection sampling is mathematically intractable, the authors use a "rejection percentile" ($\gamma$) to set a practical threshold for what constitutes an acceptable sample.

Key Insights

  • Aligning Transition Kernels: The paper shifts the focus from just "fixing the final image" to "aligning the transition kernels." By making each individual step more accurate, the cumulative error of the entire generation chain is reduced.
  • The "Semantic Peak": The authors found that the rejection constant peaks around a noise level of $\sigma \approx 0.1$. This is the "aha moment" where the discriminator is most effective at distinguishing quality, coinciding with the stage where semantic structures (like eyes or wheels) begin to clearly emerge from the noise.
  • Theoretical Tightness: DiffRS achieves a tighter upper bound on the KL divergence (a measure of how two distributions differ) compared to standard pre-trained models. The math directly backs up the visual improvements.

State-of-the-Art Results

DiffRS was evaluated across a wide variety of standard generative benchmarks, including CIFAR-10, ImageNet, FFHQ, AFHQv2, and MS-COCO (for text-to-image with Stable Diffusion).

FID vs NFE Performance
  • New SOTA on CIFAR-10: DiffRS achieved a record-breaking FID (Fréchet Inception Distance) of 1.59 for unconditional generation.
  • Efficiency on ImageNet: On ImageNet $64 \times 64$, it reached an FID of 1.26, approaching state-of-the-art performance while requiring significantly fewer network function evaluations (NFEs) than competing high-end models.
  • Universal Compatibility: DiffRS isn't a standalone model; it's a plug-and-play sampling strategy. It successfully improved the performance of fast samplers like DPM-Solver++ and distillation methods like Consistency Models.
  • Stable Diffusion Boost: When applied to Stable Diffusion v1.5, DiffRS produced images with better FID scores for the same level of text alignment (CLIP score), effectively "cleaning up" the outputs of the large-scale model.

Limitations and Future Work

While more efficient than retraining a full diffusion model from scratch, DiffRS does increase the Number of Function Evaluations (NFE) during inference because rejected samples must be processed multiple times. Additionally, the method relies on a separately trained time-dependent discriminator, adding a step to the preparation pipeline.

Future directions include exploring more advanced sampling techniques like Metropolis-Hastings and using DiffRS to address "minority samples"—ensuring the model maintains diversity and doesn't just generate the most common types of images.

Summary updated

BibTeX
@inproceedings{na2024diffusion,
  author = {Byeonghu Na and Yeongmin Kim and Minsang Park and Donghyeok Shin and Wanmo Kang and Il-chul Moon},
  title = {{Diffusion Rejection Sampling}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=EsWJ5wd2ir},
}
Figure