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

Eliminating Oversaturation and Artifacts of High Guidance Scales in Diffusion Models

Seyedmorteza Sadat, Otmar Hilliges, Romann M. Weber

TL;DR

Classifier-Free Guidance (CFG) is essential for steering text-to-image diffusion models, but turning the guidance scale up too high results in ugly, "deep-fried" oversaturation and artifacts. This paper introduces Adaptive Projected Guidance (APG), a plug-and-play sampling modification that decomposes the guidance step into parallel and orthogonal components to neutralize the vector responsible for oversaturation. By combining this projection with optimization-inspired rescaling and reverse momentum, APG enables ultra-high guidance scales for pristine image quality and superior prompt alignment without visual degradation.

What Problem Does This Paper Address?

To make diffusion models strictly follow a text prompt or class condition, practitioners rely on Classifier-Free Guidance (CFG). CFG works by amplifying the difference between a conditional model prediction and an unconditional (null-prompt) prediction.

However, there is a notorious trade-off: to get highly accurate prompt alignment, you need a high guidance scale ($w$). But if you turn that dial up too high, the images suffer from severe oversaturation, unnatural contrast, and bizarre geometric artifacts.

Elephant generation comparison showing standard CFG vs APG at a high guidance scale of 15.

Existing fixes like dynamic thresholding or CFG rescaling help slightly but often wash out fine details or fail when applied to latent diffusion models. The authors of this paper set out to mathematically isolate why high CFG scales degrade images and fix it directly at the inference level without any retraining.

Methods

The authors introduce Adaptive Projected Guidance (APG), which replaces the standard CFG update rule using three core components:

  1. Orthogonal Projection: The authors mathematically decompose the CFG update vector into two components: one parallel to the conditional model's prediction and one orthogonal to it. They discover that the parallel component acts as a "gain" filter, pushing pixel values to extreme limits and causing oversaturation. APG down-weights or completely removes this parallel component ($\eta \to 0$).
  2. Update Rescaling: By framing the CFG update as a single step of gradient ascent maximizing the distance between conditional and unconditional outputs, the authors apply techniques from normalized optimization. They constrain the update vector to lie within a sphere of radius $r$, preventing massive sampling drifts during the backward process.
  3. Reverse Momentum: Instead of standard momentum that accelerates sampling in the same direction, APG introduces negative momentum ($\beta < 0$). This creates a repulsive effect between consecutive steps, forcing the model to focus on new update directions rather than over-amplifying previous ones.

Datasets

The method was comprehensively evaluated across multiple state-of-the-art conditional diffusion models and standard benchmarks:

  • EDM2-S, EDM2-XXL, and DiT-XL/2 evaluated on ImageNet (for class-conditional image generation).
  • Stable Diffusion 2.1, Stable Diffusion XL (SDXL), and Stable Diffusion 3 evaluated on MS COCO 2017 (for text-to-image generation).
  • Distilled, few-step models including PixArt-$\delta$, SDXL-Lightning, and SDXL-Flash.

Key Insights and Ideas

  • The Saturation Culprit Discovered: The paper's most elegant insight is the vector decomposition. The orthogonal component drives structural image quality and prompt alignment, while the parallel component is almost entirely responsible for the deep-fried, high-contrast artifacting.
  • CFG as Gradient Ascent: Connecting CFG to optimization theory allows the authors to borrow well-studied tricks like gradient clipping (rescaling) and momentum.
  • The Power of Negative Momentum: While machine learning usually relies on positive momentum to speed up convergence, diffusion sampling benefits from reverse (negative) momentum to prevent the trajectory from getting stuck in repetitive, artifact-inducing directions.

Key Results

  • Quantitative Superiority: Across all tested models, APG consistently outperformed standard CFG. For instance, on EDM2-S ($w=4$), APG improved the Fréchet Inception Distance (FID) from 10.42 to 6.49 and boosted Recall (diversity) from 0.48 to 0.62, while significantly dropping the saturation score.
  • High Guidance Stability: APG allows users to scale guidance up to extreme values (like $w=15$ on SDXL) while keeping saturation perfectly flat and natural.
  • Better Text Rendering: When integrated with Stable Diffusion 3, APG noticeably improved text spelling accuracy in generated images by stabilizing the high guidance scales required for complex text generation.
  • Zero Overhead: APG is incredibly lightweight. For SDXL, a forward pass takes ~130ms, while the APG guidance step takes a mere 0.45ms, making it a true drop-in replacement.

Limitations and Future Work

While APG successfully eliminates the visual degradation associated with high guidance scales, it does not solve the fundamental computational bottleneck of CFG: you still have to run the diffusion network twice per sampling step (once for the conditional prompt and once for the unconditional prompt). The authors note that accelerating guided sampling to match the speed of unguided sampling remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{sadat2025eliminating,
  author = {Seyedmorteza Sadat and Otmar Hilliges and Romann M. Weber},
  title = {{Eliminating Oversaturation and Artifacts of High Guidance Scales in Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=e2ONKX6qzJ},
}
Figure