TL;DR
The paper introduces Dynamic Guidance (DG), a novel inference-time method to mitigate structural hallucinations (like six-fingered hands or mutated animals) in diffusion models. By adaptively updating the guidance target at each denoising step rather than sticking to a fixed condition, DG selectively sharpens the model's score function along artifact-prone directions while preserving desirable semantic diversity.
What Problem Does This Paper Address?
While diffusion models excel at generating high-fidelity images, they are notoriously prone to structural "hallucinations"—generating anatomically impossible features like extra limbs, missing heads, or blended objects.
Recent insights attribute this to mode interpolation. In the true data distribution, valid image types form distinct high-probability "modes" separated by low-probability gaps. However, the score functions learned by diffusion models tend to be excessively smooth across these gaps. During sampling (especially in few-step regimes), the model can get trapped in these intermediate, low-density regions, resulting in a blend of incompatible modes—a hallucination.
Existing solutions typically rely on post-hoc filtering (generating many images and throwing away bad ones, which wastes compute) or traditional static guidance (like Classifier Guidance). However, if the initial random noise is misaligned with a static guidance condition, the model can overshoot or undershoot, still resulting in artifacts.
Methods
Instead of committing to a fixed guidance target from the start, Dynamic Guidance (DG) adaptively selects the target mode at each denoising step.
At each timestep t:
1. Predict the most likely mode c* given the current noisy state xt using a classifier.
2. Apply guidance gradients specifically toward that local mode c*.
This approach ensures that the guidance signal remains aligned with the sample's evolving trajectory, effectively pushing it into the nearest high-probability mode.
Key Innovations:
- Selective Sharpening: DG only sharpens the score function along directions identified by the classifier as prone to causing hallucinations, leaving benign variations (like skin tone or object position) untouched.
- Guidance Windows: The authors find that applying DG across all timesteps is unnecessary. Instead, they restrict it to an intermediate window $[T_1, T_2]$ (e.g., timesteps 800 to 400 out of 1000) where the core image structure is actively forming.
- Extension to Text-to-Image: For text-conditioned models (where explicit class labels don't exist), the authors use a Large Language Model (LLM) to break an ambiguous prompt (e.g., "a horse in a field") into distinct, mutually exclusive structural "branches" (e.g., "a horse galloping" vs. "a horse lying down"). A Vision-Language Model (VLM) then acts as the dynamic classifier during denoising to steer the image toward the most promising branch.
Datasets
The authors evaluated Dynamic Guidance across several controlled and real-world setups:
- Single Shapes: A synthetic dataset of images containing 1–3 instances of the same shape (triangles, squares, or pentagons). Hallucinations are defined as images mixing different shapes.
- Mixed Shapes: A synthetic dataset where images can have multiple shape types, but a hallucination is defined as having duplicate instances of the same shape.
- Hands-11k: A natural dataset of human hands, where hallucinations correspond to anatomical errors (e.g., incorrect finger counts).
- ImageNet-1k: Used for large-scale evaluation of natural image generation.
- Stable Diffusion 2.1 Evaluation: A text-to-image benchmark evaluated via a human user study.
Key Insights and Ideas
- Not All Interpolations Are Bad: In generative modeling, interpolating between modes can be beneficial (e.g., smoothly varying an object's color or position). DG's superpower is its selectivity: by aligning guidance with specific classification boundaries, it suppresses structurally invalid interpolations while preserving creative diversity.
- Pseudo-Classes Work Just as Well: You don't need human-annotated labels to fix hallucinations. The authors demonstrated that clustering self-supervised features (from DINOv2) creates "pseudo-classes" that can train an effective DG classifier, making the method applicable to unlabelled datasets.
- Orthogonality to Conditioning: The labels used to guide the model out of hallucinations do not need to match the labels used to condition the generation. For instance, an ImageNet model conditioned on "Bison" can be dynamically guided by abstract DINO clusters to fix structural layout errors without losing the "Bison" identity.
Key Results
- Controlled Benchmarks: DG achieved up to a 74.21% reduction in hallucination rate on the Single Shapes dataset and a 72.97% reduction on Mixed Shapes, vastly outperforming post-hoc variance filtering.
- Anatomical Realism: On the challenging Hands-11k dataset, DG reduced anatomical hallucinations by 45.12%.
- ImageNet-1k: DG consistently outperformed static Classifier Guidance (CG) across various scales. At $\lambda=10$, DG boosted the Inception Score from 34.24 (unguided) to 88.49 (compared to CG's 83.19) and significantly improved Precision.
- Human Evaluation (Text-to-Image): In a user study on Stable Diffusion 2.1, DG reduced the perceived hallucination rate for 100% of the participants, yielding an average absolute reduction of 14.1% in flawed images.
Limitations and Future Work
While highly effective, Dynamic Guidance introduces a few trade-offs:
- Diversity vs. Hallucination Trade-off: By aggressively pushing samples away from low-probability boundaries, DG can cause a modest drop in sample recall (diversity), occasionally narrowing the variety of generated scenes.
- Classifier Bias: The generation process becomes dependent on the quality of the classifier. If the classifier strongly prefers certain easily identifiable classes, those classes will become over-represented in the final generated distribution.
- Computational Overhead: DG requires running a forward and backward pass through a classifier during the active guidance window, increasing generation time relative to unguided models (though it remains faster than full-timestep static guidance).
Summary updated