Learning normalized image densities via dual score matching

Florentin Guth, Zahra Kadkhodaie, Eero P Simoncelli
6/5/2025
cs.LG

No official code found. Best implementation: FlorentinGuth/DualScoreMatching (9 stars, BSD-3-Clause, last commit 2025-06-06).

Abstract

Learning probability models from data is at the heart of many machine learning endeavors, but is notoriously difficult due to the curse of dimensionality. We introduce a new framework for learning \emph{normalized} energy (log probability) models that is inspired from diffusion generative models, which rely on networks optimized to estimate the score. We modify a score network architecture to compute an energy while preserving its inductive biases. The gradient of this energy network with respect to its input image is the score of the learned density, which can be optimized using a denoising objective. Importantly, the gradient with respect to the noise level provides an additional score that can be optimized with a novel secondary objective, ensuring consistent and normalized energies across noise levels. We train an energy network with this \emph{dual} score matching objective on the ImageNet64 dataset, and obtain a cross-entropy (negative log likelihood) value comparable to the state of the art. We further validate our approach by showing that our energy model \emph{strongly generalizes}: log probabilities estimated with two networks trained on non-overlapping data subsets are nearly identical. Finally, we demonstrate that both image probability and dimensionality of local neighborhoods vary substantially depending on image content, in contrast with conventional assumptions such as concentration of measure or support on a low-dimensional manifold.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Official repository of "Learning normalized image densities via dual score matching".

90Python, Jupyter NotebookJun 2, 20251 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{guth2025learning,
  title  = {Learning normalized image densities via dual score matching},
  author = {Florentin Guth and Zahra Kadkhodaie and Eero P Simoncelli},
  year   = {2025},
  eprint = {2506.05310},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05310v2}
}

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

Discussion