Reconciling Visual Perception and Generation in Diffusion Models

Liulei Li, Yi Yang, Wenguan WangICLR 2026

Introduction

In computer vision, researchers have traditionally treated "understanding" an image (perception, such as identifying a bird) and "generating" an image (synthesis, such as creating a picture of a bird) as separate problems. Discriminative models focus on finding decision boundaries between classes but often ignore the underlying data distribution, making them brittle to unseen patterns or noise. Conversely, generative models learn the full data distribution but frequently lack a high-level semantic understanding of the scenes they create due to their reliance on low-level reconstruction losses.

Existing attempts to unify these tasks often compromise one for the benefit of the other. GENREP is a unified framework designed to bridge this gap within a single diffusion model. By creating a bidirectional feedback loop—where generative knowledge guides perception and high-level semantics inform synthesis—GENREP achieves state-of-the-art performance in both domains simultaneously, proving that these two fundamental goals are deeply complementary.

Methodology

GENREP reconciles these two paradigms through three core innovations:

  1. Distributional Knowledge Transfer: To assist the perception task, the model "distills" knowledge from the generative side. It uses a Markov Chain Monte Carlo (MCMC) approximation to estimate class-wise posterior probabilities. By examining the intermediate steps of the diffusion process, it provides "soft" guidance to the classification head, helping it understand class ambiguities better than standard "one-hot" labels.
  2. Semantic-Driven Generation: To improve synthesis, the model uses high-level semantic embeddings learned by the perception branch to guide the denoising process. It dynamically adjusts both the mean and the variance of the noise distribution based on these semantics, steering the generation toward the desired content.
  3. Gradient Alignment: Training one model for two vastly different goals can lead to "gradient conflict," where the update for one task degrades the other. GENREP employs a symmetric gradient alignment strategy. It decomposes the gradients from both tasks and dampens the conflicting components, ensuring the shared feature space evolves to support both understanding and synthesis harmoniously.
The overall pipeline of GenRep showing how perception and generation are linked through knowledge transfer, semantic guidance, and gradient alignment.

Key Insights

The most significant insight from GENREP is the establishment of a positive feedback loop. Perception and generation are mutually beneficial: high-level semantics act as a "compass" for generation, while generative distributions act as a "regularizer" for perception. By learning the underlying data distribution, GENREP becomes significantly more robust to image corruption and noise compared to standard discriminative models. Furthermore, the authors found that distillation can be highly efficient; instead of running thousands of full reverse-diffusion steps, using intermediate states from a single trajectory is both fast and effective.

Experimental Results

The authors evaluated GENREP across a massive battery of benchmarks, initializing the model with weights from ImageNet and LAION-5B for fair comparison.

GENREP achieved top-tier results across the board, often outperforming specialized "single-task" models:

  • Out-of-Distribution (OOD) Mastery: On ObjectNet, a notoriously difficult benchmark for generalization, GENREP achieved 57.8% accuracy, surpassing prior diffusion-based methods by over 5%.
  • Superior Segmentation: It reached 54.6 mIoU on ADE20K for semantic segmentation, setting a new state-of-the-art for unified models.
  • Enhanced Generation: The integration of perceptual semantics significantly improved image quality. On ImageNet, the Fréchet Inception Distance (FID) improved from 7.77 to 6.92 when GENREP was added to a standard Latent Diffusion Model.
Quantitative results demonstrating GENREP's strong performance on fine-grained classification (CUB-200) and OOD generalization (ObjectNet).

Limitations and Future Work

The primary trade-off for this unified power is computational cost. Because GENREP relies on a diffusion model backbone, its inference speed is lower than highly specialized, lightweight perception architectures (e.g., operating at 12.6 FPS for segmentation, whereas models like MaskFormer can reach nearly 20 FPS). Future work will likely focus on developing more efficient diffusion sampling techniques or model quantization to bridge this efficiency gap, making powerful unified models viable for real-time applications like robotics or autonomous systems.

Summary updated

BibTeX
@inproceedings{li2026reconciling,
  author = {Liulei Li and Yi Yang and Wenguan Wang},
  title = {{Reconciling Visual Perception and Generation in Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=yKC3CaFg8K},
}
Figure