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

Accelerating Score-based Generative Models for High-Resolution Image Synthesis

Hengyuan Ma, Li Zhang, Xiatian Zhu, Jingfeng Zhang, Jianfeng FengarXiv 2022 · DOI

Abstract

Score-based generative models (SGMs) produce high-quality images but are computationally expensive, often requiring thousands of iterations for a single synthesis. This paper introduces Target Distribution Aware Sampling (TDAS), a plug-and-play method that leverages spatial and frequency priors to accelerate high-resolution image synthesis. By shaping the noise added during sampling to align with the target distribution, TDAS achieves up to an 18.4× speedup on 1024×1024 images without requiring model retraining.

Introduction

While SGMs and diffusion models have surpassed GANs in image quality and diversity, their inference phase remains a significant bottleneck. Generating an image typically involves starting with random noise and iteratively refining it using a score function. To ensure stability, researchers use small step sizes and thousands of iterations (e.g., 2,000 steps). Attempting to accelerate this process by taking larger steps often causes the isotropic Gaussian noise to overwhelm the signal, leading to a "drift" away from the target distribution. This problem is particularly acute for high-resolution images where the computational cost per step is already substantial.

Methodology

Target Distribution Aware Sampling (TDAS) moves away from standard sampling, which treats all pixels and frequency components as equally important. The method is based on three core pillars:

  1. Orthogonal Invariance Analysis: The authors demonstrate that standard sampling is orthogonally invariant, meaning it ignores the inherent structure of natural images. TDAS breaks this invariance to prioritize meaningful data structures.
  2. Space-Frequency Filtering: Instead of isotropic noise, TDAS uses two filters to shape the initial sample and subsequent noise:
  3. Frequency Filter ($M_{freq}$): Natural images concentrate energy in low frequencies. TDAS suppresses high-frequency noise components that are difficult for the model to learn and prone to causing instability during fast sampling.
  4. Space Filter ($M_{space}$): For datasets with consistent geometry (e.g., faces), TDAS utilizes the average spatial structure to regulate noise.
  5. Theoretical Convergence: Through "Deviation Analysis," the authors prove that if added noise is positively correlated with the target distribution, the deviation from the target decreases, enabling larger, more stable sampling steps.

Critically, TDAS is model-agnostic and works with pre-trained models like NCSN++ without any additional training.

Experimental Setup

The researchers evaluated TDAS across several standard benchmarks, ranging from low-resolution to high-resolution datasets:

  • CIFAR-10 (32×32): Low-resolution baseline.
  • CelebA (64×64): Centered facial images.
  • LSUN Bedroom & Church (256×256): Complex indoor and outdoor scenes.
  • FFHQ (1024×1024): High-resolution facial images, serving as the primary stress test for acceleration.

Results and Discussion

TDAS demonstrates significant improvements in both speed and stability, particularly as image resolution increases. On the FFHQ 1024×1024 task, TDAS achieved a dramatic 18.4× speedup, reducing generation time from 1758.6 seconds (at 2,000 steps) to just 95.8 seconds (at 100 steps).

Visual comparison of TDAS (top rows) vs. Vanilla sampling (bottom rows) across decreasing iteration counts (T). TDAS maintains image structure even at very low step counts where vanilla sampling fails.

As shown in the visual results, vanilla sampling fails completely at 100 iterations, producing unrecognizable noise (FID of 442.82). In contrast, TDAS maintains high quality with an FID of 38.68. The benefits of TDAS scale with resolution; while low-resolution tasks see modest gains, high-resolution tasks see the most dramatic improvements.

Quantitative comparison of generation time and speedup factors across different datasets and resolutions.

Conclusion

TDAS provides a robust solution for accelerating SGMs by acknowledging that pixel location and frequency components are not equally important. By viewing noise as a potential disruptor and shaping it to look more like the target data, TDAS prevents model failure during high-speed sampling. Future work may involve exploring other structural priors, such as wavelets, and making spatial filters more adaptive for varied, non-centered datasets.

Summary updated

BibTeX
@misc{ma2022accelerating,
  author = {Hengyuan Ma and Li Zhang and Xiatian Zhu and Jingfeng Zhang and Jianfeng Feng},
  title = {{Accelerating Score-based Generative Models for High-Resolution Image Synthesis}},
  year = {2022},
  eprint = {2206.04029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04029},
}
Figure