# A Spectral Framework for Closed-Form Relative Density Estimation

*Francis Bach*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152831) · [Open on the map](../papers.html#p152831)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Optimal Transport and Distribution Alignment](../pgroup/219.md) · Type: new method · Keywords: relative density estimation, spectral method, KL divergence, chi-squared divergence, closed-form estimator

## Summary
The paper introduces a closed-form spectral framework for relative log-density estimation that yields explicit estimators from first- and second-order feature moments.

## Explained to a 5-year-old
We want to know how often something happens compared to something else. Instead of doing lots of hard calculations, we use a trick that turns the problem into solving easy math problems. By looking at simple numbers like averages and how things vary, we can get the answer right away. This works for many kinds of comparisons and can even be used with computers that learn. It helps us understand data better without needing a lot of computer power.

## Explained to a 5-year-old, longer
Imagine you have two bags of marbles and you want to know which bag has more red marbles. Instead of counting every marble one by one, you can look at how many marbles are in each bag and how often colors appear. You also look at how often two colors appear together to see if they like each other. By putting all this information into a special formula, you can calculate how different the two bags are. This formula works like a magic recipe that turns a hard problem into simple math. It gives you the answer without having to run a computer for a long time. The method can be used for many different kinds of data, like pictures, words, or numbers. It even works when the data is not perfect or when you only have a few examples. Scientists have proven that the answer gets better and more accurate as you give it more data. This makes it useful for things like spotting unusual events, making predictions, and understanding how things are related. In short, it’s a fast, easy way to compare how things are distributed without a lot of work. It helps researchers and engineers get useful insights quickly.

## For a technical reader
The paper addresses the problem of estimating relative log-densities (or KL divergences) in probabilistic models, especially when the models are unnormalized or conditional. It shows that the KL divergence can be expressed as an integral of weighted chi-squared divergences, which transforms the estimation task into a set of least-squares problems. By using only first- and second-order feature moments, the authors derive an explicit spectral formula that yields closed-form estimators for both divergences and log-density potentials. The framework is extensible to other f-divergences and can be combined with kernel methods or neural feature learning, and convergence guarantees are provided. Empirical evaluation on synthetic data and standard classification models demonstrates that the approach matches or outperforms existing variational formulations.

## Problem
Estimating relative log-densities (or KL divergences) in probabilistic models, especially when models are unnormalized or conditional, is challenging because existing approaches rely on iterative optimization and lack analytic solutions. The need for efficient, closed-form estimators of these divergences and log-density potentials remains open.

## Method
The approach represents the Kullback-Leibler divergence as an integral of weighted chi-squared divergences, turning divergence estimation into a family of least-squares problems. An explicit spectral formula is derived that depends only on first- and second-order feature moments, providing closed-form estimators for both divergences and log-density potentials. The framework can be extended to other f-divergences and combined with kernelization or neural feature learning.

## Contributions
Provides a closed-form spectral method for relative log-density estimation that yields explicit estimators from low-order moments, extends to a broad class of f-divergences, and offers convergence guarantees. Also demonstrates empirical performance on synthetic data against variational baselines.

## Research questions this paper is counted under

- [How can we accurately estimate expectations or densities under complex, high-dimensional, multi-modal distributions from unnormalized densities?](../q/410.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152831)
