Energy-Tweedie: Score meets Score, Energy meets Energy

Andrej Leban

TL;DR

Modern diffusion models owe much of their magic to Tweedie’s formula, a mathematical shortcut that turns simple Gaussian denoising into a compass pointing toward higher data density. Energy-Tweedie breaks the Gaussian monopoly, generalizing this classic bridge to work for virtually any energy-based noise distribution—even heavy-tailed, outlier-prone ones. By linking generative scores with statistical scoring rules, this framework unlocks flexible non-Gaussian diffusion paths, a fresh way to estimate scores from posterior samples, and a sharp tool for uncovering unknown noise shapes in messy data.

What Problem Does This Paper Address?

Imagine you are lost in a thick fog, trying to find the nearest mountain peak. In generative modeling, the "landscape" is your data distribution, and the compass pointing uphill is the Stein score (the gradient of the log-probability density). Under standard additive Gaussian noise, a 1950s result called Tweedie’s formula tells us something miraculous: if you train a model to guess the average clean data point given a noisy one (minimizing squared error), the vector from the noisy point to that average gives you the exact uphill score.

This neat alignment is why Gaussian noise dominates diffusion models. But what happens when noise in the real world isn't a neat Gaussian bell curve—say, it has heavy tails (like Laplace or Student-$t$ noise) or directional skew? Once you leave Gaussian territory, the simple posterior mean is no longer what the score exposes, and the classical Tweedie bridge collapses. The author asks: Is there a universal version of Tweedie’s formula that works for any additive energy-based noise?

Methods

To rebuild this bridge, the paper unites two pairs of mathematical homonyms: energy-based models meet the energy score, and the Stein score meets scoring rules.

  1. Gibbs Noise & Induced Scoring Rules: Instead of Gaussian noise, the author considers any normalizable Gibbs distribution, defined by a symmetric "noise potential" (energy function) $\mathcal{E}$. In probabilistic forecasting, scoring rules evaluate how good a predicted entire probability distribution is, rather than just a single point guess. The author uses the noise potential $\mathcal{E}$ to define a matched kernel scoring rule (for generalized Gaussians, this naturally becomes the Mahalanobis energy score).
  2. The Energy-Tweedie Identity: Rather than predicting a posterior mean, suppose we have access to the full denoising posterior distribution $P(X \mid Y=y)$. The core theoretical result proves that the Stein score of the noisy data is proportional to the path derivative (taking the spatial gradient while holding the posterior distribution fixed, akin to a stop-gradient in PyTorch/JAX) of that matched kernel scoring rule.
Comparison of the classical Gaussian Tweedie framework versus the generalized Energy-Tweedie correspondence.

From this single identity, three practical algorithms emerge:

  • Posterior-to-Score Estimation & ET-DSM: Any model that can sample from the denoising posterior immediately gives a Monte Carlo estimate of the noisy score. Alternatively, one can train a neural score network directly on clean–noisy pairs, dubbed Energy-Tweedie Denoising Score Matching (ET-DSM).
  • Noise-Parameter M-Estimation: If you have noisy data with unknown noise characteristics (like tail heaviness or covariance), you can learn them by minimizing the mismatch between an auxiliary blind score estimator (like Hyvärinen’s score matching) and the Energy-Tweedie posterior score.
  • Energy-Tweedie Diffusion: Training a posterior model conditioned on noise parameters allows score-based MCMC sampling (like annealed Langevin dynamics) along any user-chosen trajectory through noise-parameter space—varying scale, anisotropy, and tail weight on the fly at generation time.

Datasets

No new datasets are introduced; instead, the paper uses two classic benchmarks to cleanly isolate and visualize the mathematics in action:

  • Synthetic 2D Eight-Gaussians Ring: A standard multi-modal toy benchmark in generative modeling, paired with a 5-parameter generalized Gaussian noise family controlling tail exponent ($\beta$), scale, and 2D covariance shape.
  • MNIST: Used to test high-dimensional image generation across different user-chosen noise-parameter diffusion paths.

Key Insights and Ideas

  • Why Gaussian Denoising Only Needs the Mean: When you plug Gaussian noise ($\beta=2$) into the Energy-Tweedie identity, the matched kernel score ceases to be strictly proper—its distance metric collapses so that it only cares whether two distributions have the same mean. Classical Tweedie isn't an isolated quirk; it's a degenerate boundary case of a broader distributional law!
  • Mean-Seeking vs. Median-Seeking Scores: Changing the noise tail exponent $\beta$ fundamentally changes the geometry of the score field. While Gaussian noise ($\beta=2$) pulls samples toward the mean (concentrating mass along the ring between modes in Eight-Gaussians), Laplace-like noise ($\beta=1$) averages unit directions, creating a robust, geometric-median-seeking field that aims straight at mixture centers.
  • Surviving Heavy Tails Without a Mean: Because the identity relies on the noise potential rather than moments, it works for Student-$t$ noise even when the noise distribution’s mean is mathematically undefined.
  • Diffusion Schedules Become Multi-Dimensional Paths: Recent generative models trained with scoring rules lacked a score-based sampling view (relying on DDPM/DDIM-like steps). Energy-Tweedie supplies the missing score-based perspective, turning a rigid 1D noise schedule into a steerable path through multi-parameter noise space at sampling time.

Key Results

  • Score Estimation: Across five noise-parameter sweeps on Eight-Gaussians, ET-DSM achieves the sharpest noisy-score Normalized Mean Squared Error (NMSE of 0.014–0.019 and cosine similarity of 0.990–0.992), slightly edging out Hyvärinen score matching (0.022–0.027 NMSE). Drawing samples from a learned posterior model also recovers accurate scores (0.029–0.077 NMSE, 0.951–0.982 cosine similarity).
  • Recovering Unknown Noise Geometry: On a 4-parameter estimation task with ground truth $(\beta^*, \lambda^*, u^*, v^*) = (1.4, 1.8, 0.25, 0.35)$, the fully learned Energy-Tweedie estimator recovers $(1.4398, 1.7875, 0.2512, 0.3472)$ with a held-out score NMSE of 0.0146. Crucially, even if you hand competing misspecified models (like standard isotropic Gaussian noise) perfect oracle scores and posteriors, their error jumps by 2.3$\times$ to 14.2$\times$ (reaching 0.2081 NMSE)—proving that modeling the right noise family matters far more than nuisance estimation error.
Full-SPD noise-parameter estimation showing that learning the generalized noise family outperforms misspecified Gaussian or isotropic assumptions even when the latter use oracle inputs.
  • Non-Gaussian Diffusion: On MNIST, sharing the exact same trained model and sampling budget while changing only the sampling-time path through noise space produces recognizable, class-diverse digits across all setups—with a heavy-tailed, anisotropic (generalized/non-diagonal) path achieving the best quantitative generation metrics.

Limitations and Future Work

  • Theoretical Assumptions in Parameter Estimation: The consistency guarantees for estimating unknown noise parameters currently assume that the posterior model is well-specified and the auxiliary score estimator is sufficiently accurate; relaxing these assumptions is left for future work.
  • Scale of Experiments: While the framework works cleanly on 2D benchmarks and MNIST, scaling Energy-Tweedie diffusion to competitive, large-scale high-resolution image benchmarks remains an open engineering and research frontier.
  • Promising Extensions: The author highlights natural next steps in non-Gaussian inverse problems (where noisy likelihood scores are needed without assuming Gaussianity) and test-time adaptation under shifting noise distributions.

Summary updated

BibTeX
@inproceedings{leban2026energy,
  author = {Andrej Leban},
  title = {{Energy-Tweedie: Score meets Score, Energy meets Energy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lTLzpUqJPJ},
}
Figure