Classification Diffusion Models: Revitalizing Density Ratio Estimation

Shahar Yadin, Noam Elata, Tomer Michaeli
2/15/2024
cs.LG

No official code found. Best implementation: shaharYadin/CDM (6 stars, MIT, last commit 2024-10-17).

Abstract

A prominent family of methods for learning data distributions relies on density ratio estimation (DRE), where a model is trained to $\textit{classify}$ between data samples and samples from some reference distribution. DRE-based models can directly output the likelihood for any given input, a highly desired property that is lacking in most generative techniques. Nevertheless, to date, DRE methods have failed in accurately capturing the distributions of complex high-dimensional data, like images, and have thus been drawing reduced research attention in recent years. In this work we present $\textit{classification diffusion models}$ (CDMs), a DRE-based generative method that adopts the formalism of denoising diffusion models (DDMs) while making use of a classifier that predicts the level of noise added to a clean signal. Our method is based on an analytical connection that we derive between the MSE-optimal denoiser for removing white Gaussian noise and the cross-entropy-optimal classifier for predicting the noise level. Our method is the first DRE-based technique that can successfully generate images beyond the MNIST dataset. Furthermore, it can output the likelihood of any input in a single forward pass, achieving state-of-the-art negative log likelihood (NLL) among methods with this property. Code is available on the project's webpage in https://shaharYadin.github.io/CDM/ .

View on arXivView PDF

Code Implementations(1)

shaharYadin/CDMCommunity63%
MIT

Official pytorch implementation of the paper: "Classification Diffusion Models: Revitalizing Density Ratio Estimation"

62PythonOct 5, 20242 years agoMIT

Similar Papers

Cite this paper

@article{yadin2024classification,
  title  = {Classification Diffusion Models: Revitalizing Density Ratio Estimation},
  author = {Shahar Yadin and Noam Elata and Tomer Michaeli},
  year   = {2024},
  eprint = {2402.10095},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2402.10095},
  url    = {http://arxiv.org/abs/2402.10095v3},
  journal = {NEURIPS 2024 2024}
}

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/2402.10095.svg)](https://codeofpaper.com/paper/2402.10095)

Discussion