Blue noise for diffusion models

Xingchang Huang, Corentin Salaün, Cristina Nader Vasconcelos, Christian Theobalt, A. Cengiz Öztireli, Gurprit Singh

TL;DR

Standard diffusion models rely on Gaussian white noise, which treats all frequencies equally. This paper introduces a time-varying blue noise schedule that prioritizes high-frequency details during the final stages of image synthesis, resulting in sharper textures, more realistic fine details (like hair and eyes), and significantly better FID scores across multiple datasets.

What Problem Does This Paper Address?

Diffusion models generate images by reversing a process that gradually turns data into noise. Traditionally, this noise is "white noise" (uncorrelated Gaussian noise), which contains energy across all frequencies.

However, researchers have observed that denoising networks operate in a coarse-to-fine manner: they first reconstruct global structures (low frequencies) and then fill in fine details (high frequencies). The authors argue that using white noise throughout the entire process is sub-optimal. Because white noise contains significant low-frequency energy, it can "distract" the model during the final refinement stages where it should be focusing exclusively on high-frequency details.

Methods

The authors build their approach on the Iterative Alpha-(de)blending (IADB) framework, a deterministic diffusion model. Their core contributions include:

  1. Gaussian Blue Noise: Unlike white noise, blue noise is characterized by a power spectrum that lacks low-frequency energy. To generate this efficiently on the fly, the authors pre-compute a correlation matrix from thousands of blue noise masks and use Cholesky decomposition to create a transformation matrix ($L$). Multiplying standard white noise by $L$ produces "Gaussian blue noise."
  2. Time-Varying Noise Schedule: The model doesn't just use blue noise. It uses a $\gamma$-scheduler (a sigmoid-based function) to interpolate between white noise at the start of the process (high $t$) and blue noise at the end (low $t$). This ensures the model has the low-frequency information needed to build the image's structure before switching to blue noise to refine the texture.
  3. Rectified Mapping: To improve training stability and "gradient flow," the authors correlate noise and images within a single mini-batch. By using an L2 distance metric to pair the "closest" noise samples to specific images, they create a more direct, linear trajectory for the model to learn.
  4. Tiling for High Resolution: Since large matrix multiplications are computationally expensive, the authors generate $64^2$ blue noise masks and pad/tile them to reach higher resolutions (like $128^2$ or $512^2$) with negligible overhead.

Datasets

The authors evaluated their method on several standard benchmarks for image generation:

  • CelebA: Human faces at $64^2$ and $128^2$ resolutions.
  • AFHQ-Cat: High-quality cat faces at $64^2, 128^2,$ and $512^2$ (for LDM experiments).
  • LSUN-Church & LSUN-Bedroom: Architectural and interior scenes at $64^2$.

Key Insights and Ideas

  • Frequency Matters: The "aha moment" is realizing that the noise profile should match the task of the denoising network at a specific timestep. Blue noise is a "natural fit" for the final stages of diffusion because it forces the network to focus on high-frequency variations.
  • Blue Noise is Bad for Structure: The paper explicitly shows that using only blue noise leads to poor results (high FID) because the model lacks the low-frequency "anchors" needed to decide where to put a face or a building. The interpolation is the secret sauce.
  • Rectified Mapping Straightens the Path: By pairing noise to the most similar image in a batch, the model doesn't have to learn a "tangled" mapping, leading to faster convergence and better quality at low sampling steps.

Key Results

  • Quantitative Improvement: The proposed method outperformed the baseline IADB model on every dataset tested. For example, on AFHQ-Cat ($64^2$), the FID score improved from 9.19 to 7.95. On LSUN-Church, it dropped from 13.12 to 10.16.
  • Qualitative Sharpness: Visual comparisons show that the blue noise models produce much more detailed hair, clearer eye reflections, and sharper architectural lines compared to standard Gaussian models, which often look slightly "blurry" or "mushy" in the fine details.
  • Efficiency: The method maintains the speed of deterministic models like DDIM while achieving better visual fidelity.

Limitations and Future Work

  • Hyperparameter Tuning: The $\tau$ parameter in the noise scheduler currently needs to be tuned based on the image resolution, which adds a manual step to the pipeline.
  • Compute Constraints: The rectified mapping technique currently requires the entire mini-batch to reside on a single GPU to calculate the distance matrix, which could be a bottleneck for very large-scale distributed training.
  • Beyond Blue: The authors suggest that future work could explore other types of correlated noise, such as band-pass or low-pass filters, to see if they offer further benefits for specific generative tasks like video or 3D mesh synthesis.

Summary updated

BibTeX
@inproceedings{huang2024blue,
  author = {Xingchang Huang and Corentin Salaün and Cristina Nader Vasconcelos and Christian Theobalt and A. Cengiz Öztireli and Gurprit Singh},
  title = {{Blue noise for diffusion models}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2024},
  doi = {10.1145/3641519.3657435},
}

Loading related content...

Figure