Aligning Generative Denoising with Discriminative Objectives Unleashes Diffusion for Visual Perception

Ziqi Pang, Xin Xu, Yu-Xiong Wang

Introduction: The Rise of Generative Perception

Diffusion models have fundamentally transformed the landscape of image generation, demonstrating an unparalleled ability to synthesize complex, high-fidelity visual content. Recently, a new frontier has emerged: "re-purposing" these generative powerhouses for discriminative perception tasks, such as monocular depth estimation and semantic segmentation. In this paradigm, a depth map or segmentation mask is treated as just another image to be generated, conditioned on an input scene.

However, this transition from generation to perception is not seamless. While generative models prioritize plausibility—the creation of a result that looks realistic to the human eye—perception demands precision, requiring strict adherence to ground-truth spatial and semantic data. This paper introduces ADDP (Aligning Diffusion Denoising with Perception), a framework designed to bridge the fundamental gap between these two objectives.

The Precision-Plausibility Gap

In standard image generation, a slight deviation in an intermediate denoising step is often inconsequential; as long as the final image is aesthetically pleasing, the model has succeeded. In perception, however, errors compound. A minor misalignment in the early stages of denoising can lead to a final prediction that, while visually "reasonable," is factually incorrect. The authors identify two critical phenomena that hinder diffusion-based perception:

  1. Uneven Timestep Importance: Unlike generation, where all timesteps contribute to the final aesthetic, perception tasks rely heavily on early "semantic planning" stages. Later stages often contribute less to the final accuracy.
  2. The Quality Drop (Exposure Bias): Surprisingly, perception metrics (such as Intersection over Union or IoU) often decline during the final steps of the denoising process. This occurs because the model drifts away from the training distribution—a phenomenon known as exposure bias—leading to a loss of structural integrity in the final output.

The ADDP Framework: Bridging the Divide

To address these issues, ADDP introduces three "plug-and-play" alignment strategies:

1. Contribution-Aware Timestep Sampling

Rather than training on all timesteps ($t$) uniformly, ADDP estimates a "contribution factor" for each step. By identifying which stages of the diffusion process are most critical for semantic accuracy, the framework uses a multinomial distribution to sample these high-impact timesteps more frequently during training. This ensures the model excels at the most vital parts of the denoising trajectory.

2. Diffusion-Tailored Data Augmentation

To combat the quality drop observed in later stages, the authors propose augmentations that specifically mimic denoising errors. By purposefully corrupting ground-truth data during training—using Gaussian blur for depth maps or shape/location shifts for masks—the model learns to "recover" from the types of drift it will inevitably encounter during iterative sampling.

3. Interactivity via Correctional Guidance

Perhaps the most innovative aspect of ADDP is its use of the iterative nature of diffusion as an interactive interface. By re-purposing Classifier-Free Guidance (CFG), the model can accept "correctional prompts." If a model misidentifies an object (e.g., segmenting a child instead of a mother), a user or a secondary foundation model (like GPT-4o) can provide a prompt such as "not the child on the lap." The diffusion process then nudges the denoising trajectory away from the error and toward the correct target in real-time.

Experimental Evaluation

The researchers evaluated ADDP across three distinct perception scenarios:

  • Monocular Depth Estimation: Using models trained on Hypersim and Virtual-KITTI, ADDP was tested zero-shot across NYUv2, ScanNet, ETH3D, DIODE, and KITTI.
  • Referring Image Segmentation (RIS): Evaluated on RefCOCO, RefCOCO+, and G-Ref to test the model's ability to ground language in visual masks.
  • Generalist Perception: Tested within the InstructCV framework on NYUv2 (depth), ADE20K (semantic segmentation), and COCO (object detection).

Key Results and Insights

ADDP demonstrates significant improvements over existing generative baselines. In depth estimation, it enhanced the state-of-the-art Marigold model, improving its average rank across five benchmarks from 2.4 to 1.4. In the realm of Referring Image Segmentation, where diffusion models have historically lagged behind specialized discriminative models, ADDP boosted an InstructPix2Pix-SD2.0 baseline from 64.96 to 69.14 oIoU, effectively closing the performance gap.

Furthermore, the framework's "agentic" potential was proven by hooking the model up to GPT-4o. By automatically generating correctional prompts for difficult scenarios (G-Ref), the system achieved significant gains, demonstrating that the iterative nature of diffusion can be leveraged by AI agents to refine their own reasoning.

Limitations and Future Directions

Despite its success, ADDP highlights several challenges for the field. Most diffusion models are pre-trained on "highly aesthetic" datasets, which may introduce an "aesthetic bias" that hinders their ability to perceive mundane or "ugly" real-world scenes. Additionally, while ADDP improves accuracy, it does not solve the inherent latency of diffusion; the iterative process remains slower than single-forward-pass discriminative models. Future work will focus on refining error-simulating augmentations and exploring perception-focused pre-training to further unleash the potential of diffusion in the discriminative domain.

Summary updated

BibTeX
@inproceedings{pang2025aligning,
  author = {Ziqi Pang and Xin Xu and Yu-Xiong Wang},
  title = {{Aligning Generative Denoising with Discriminative Objectives Unleashes Diffusion for Visual Perception}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=rMOhA1JNPo},
}
Figure