DIVE: Inverting Conditional Diffusion Models for Discriminative Tasks

Yinqi Li, Hong Chang, Ruibing Hou, Shiguang Shan, Xilin Chen
4/24/2025
3 citations
cs.CVcs.MM
diffusion-flow

Official code: LiYinqi/DIVE (6 stars, Python, MIT, last commit 2025-04-25).

Abstract

Diffusion models have shown remarkable progress in various generative tasks such as image and video generation. This paper studies the problem of leveraging pretrained diffusion models for performing discriminative tasks.

Show full abstract

Specifically, we extend the discriminative capability of pretrained frozen generative diffusion models from the classification task to the more complex object detection task, by "inverting" a pretrained layout-to-image diffusion model. To this end, a gradient-based discrete optimization approach for replacing the heavy prediction enumeration process, and a prior distribution model for making more accurate use of the Bayes' rule, are proposed respectively. Empirical results show that this method is on par with basic discriminative object detection baselines on COCO dataset. In addition, our method can greatly speed up the previous diffusion-based method for classification without sacrificing accuracy. Code and models are available at https://github.com/LiYinqi/DIVE .

View on arXivView PDF

Code Implementations(1)

LiYinqi/DIVEOfficial100%
MIT

[TMM'25] A work to explore discriminative abilities in frozen pretrained generative models.

61PythonApr 16, 20251 years agoMIT
bayes-theoremdiffusiondiffusion-modelsdiscriminative-modelgenerative-model

Similar Papers

Cite this paper

@article{li2025dive,
  title  = {DIVE: Inverting Conditional Diffusion Models for Discriminative Tasks},
  author = {Yinqi Li and Hong Chang and Ruibing Hou and Shiguang Shan and Xilin Chen},
  year   = {2025},
  eprint = {2504.17253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.17253v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.17253.svg)](https://codeofpaper.com/paper/2504.17253)

Discussion