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

Representative Guidance: Diffusion Model Sampling with Coherence

Anh-Dung Dinh, Daochang Liu, Chang XuICLR 2025

TL;DR

Representative Guidance (RepG) addresses the "incoherence" problem in diffusion models—where noise directions shift inconsistently across timesteps—by steering the sampling process toward stable, self-supervised feature targets. By replacing narrow, discriminative classifiers with rich, self-supervised representations, RepG improves image detail and realism without sacrificing the diversity of generated samples.

The Problem: Incoherence in Diffusion Sampling

Ideally, the diffusion sampling process would follow a smooth trajectory from random noise to a crisp image. However, the authors identify a persistent issue known as incoherence.

During training, a diffusion model always has access to the "ground truth" image ($x_0$). But during inference, the model has to guess what that original image looked like at every step. Because the noise added at each timestep is uncontrollable, these intermediate guesses ($\tilde{x}_0$) can fluctuate wildly.

Incoherence in diffusion sampling

For instance, the model's intermediate prediction might shift drastically from one step to the next, causing distributional shifts. These shifts lead to artifacts, missing background details, and inconsistent features (like a dog with a bizarrely shaped head or random black bubbles appearing in the frame).

While "Classifier Guidance" is a popular fix, the authors argue it is a blunt instrument. Classifiers are trained to be discriminative—they only care about the bare minimum features needed to tell one class apart from another. This often results in "adversarial" looking images that lack fine details or diversity because the model is over-optimizing for a narrow set of class-specific cues.

The Solution: Representative Guidance (RepG)

The authors introduce Representative Guidance (RepG), which reformulates sampling as a downstream task guided by self-supervised models.

  1. Self-Supervised Targets: Instead of using a classifier trained on labels, RepG uses pre-trained self-supervised models (like MoCo-v2 or SimSiam). These models learn "representative" features of the world—textures, shapes, and contexts—rather than just rigid class boundaries.
  2. Representative Vectors: For each class, the researchers pre-calculate a set of $K$ "representative vectors" (centroids in the feature space). During sampling, the model calculates the distance between the current predicted image's features and these representative targets.
  3. Coherent Steering: RepG injects a gradient into the sampling equation that "pulls" the image toward these representative features. This acts as a North Star, ensuring that even as noise is added and removed, the underlying features of the image remain consistent and detailed across all timesteps.
  4. Loss Functions: The team experimented with both Negative Cosine Similarity and Contrastive Loss to match the generated features to the representative targets, finding that contrastive loss slightly edges out in performance.

Key Insights

  • Diversity over Discrimination: Classifiers often "crush" diversity because they push every image toward the most "prototypical" version of a class. RepG operates at the feature level, allowing it to fix faulty details while preserving the unique content of the specific image being generated.
  • Sampling as a Downstream Task: By treating the diffusion process as a task for a self-supervised model to "solve," the authors leverage the rich world-knowledge these models possess without needing to retrain them on noisy data.
  • Efficiency: Unlike traditional classifier guidance, which requires training expensive "noise-aware" classifiers, RepG uses off-the-shelf ResNet-50 backbones. This makes it significantly more lightweight and faster to implement.

Key Results and Visual Correction

The researchers evaluated RepG on standard generative modeling benchmarks, including ImageNet 64x64 and ImageNet 256x256, comparing it against baselines like ADM (Ablated Diffusion Model) and various classifier-based guidance methods.

  • Quality Boost: On ImageNet 64x64, adding RepG to the ADM baseline improved the FID (Fréchet Inception Distance) from 2.07 to 1.69.
  • Superior Diversity: RepG consistently achieved higher Recall scores than classifier-based methods. On ImageNet 256x256, ADM + RepG maintained a Recall of 0.61, whereas classifier-guided versions often saw significant diversity drops.
  • Visual Correction: Qualitatively, RepG successfully removes artifacts that vanilla diffusion models struggle to fix, while simultaneously sharpening textures like animal fur and grass.
Visual comparison of baseline vs. RepG
  • SOTA Synergy: When combined with Classifier-Free Guidance (CFG), RepG surpassed existing state-of-the-art benchmarks, proving it is a highly complementary technique.

Limitations and Future Work

While RepG shows impressive results, the authors note a few areas for future exploration:

  • Resolution Gap: On 256x256 images, while RepG significantly improves the baseline, it still lags behind some specialized SOTA methods in raw FID. This is partly because RepG prioritizes diversity and fine detail over the "global" class-level shifts that some other guidance methods focus on.
  • Target Selection: Performance is sensitive to the number of representative vectors ($K$). Too few vectors limit diversity, while too many can "confuse" the sampling process.
  • Future Directions: The authors suggest exploring even more powerful self-supervised backbones (like DINO or CLIP) to see if richer representative information can further refine the sampling process.

Summary updated

BibTeX
@inproceedings{dinh2025representative,
  author = {Anh-Dung Dinh and Daochang Liu and Chang Xu},
  title = {{Representative Guidance: Diffusion Model Sampling with Coherence}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=gWgaypDBs8},
}
Figure