Score-Based Diffusion Modeling for Nonparametric Empirical Bayes in Heteroscedastic Gaussian Mixtures

Gongyu Chen, Ying CuiNeurIPS 2025

Introduction

Recovering hidden signals from noisy observations is a fundamental challenge in the sciences. This paper introduces SDGM (Score-based Diffusion with G-Modeling), a novel framework that reinterprets the classic problem of recovering hidden signals from heteroscedastic noise through the lens of stochastic diffusion. By replacing traditional one-step denoising with a multi-step reverse-time Ordinary Differential Equation (ODE) and explicitly modeling the latent prior, SDGM achieves near-parametric error rates and significantly better performance in high-dimensional signal recovery compared to standard maximum likelihood methods.

The Challenge of Heteroscedastic Noise

In fields like astronomy or genomics, researchers frequently encounter "heteroscedastic" noise—where every single observation has a different, known level of uncertainty. The objective is Nonparametric Empirical Bayes (EB): recovering the true underlying signals and their distribution without assuming the distribution follows a rigid, predefined shape (like a simple Gaussian curve).

Historically, the gold standard for this task has been the Nonparametric Maximum Likelihood Estimator (NPMLE). However, NPMLE faces two major hurdles:

  1. Statistical Bias: It often suffers from "over-shrinkage," where the denoised signals are pulled too far toward the center of the distribution, washing out the true structural nuances of the data.
  2. Computational Complexity: In high dimensions, NPMLE becomes an infinite-dimensional optimization problem that is notoriously slow and difficult to scale.

A Stochastic Process Reinterpretation

To overcome these limitations, the authors propose a "stochastic process reinterpretation." Instead of viewing a noisy data point as a static value, they treat it as a snapshot at the end of a Forward Diffusion Process.

Key components of the SDGM framework include:

  • G-Modeling: Unlike standard diffusion models that use a neural network to approximate the "score" (the gradient of the log-density), this method explicitly models the latent prior distribution $G$.
  • Denoising Score Matching (DSM): The method uses a specialized objective function to match the model's score to the observed data, aggregating information across all different noise levels (SDE paths).
  • Multi-step Denoising: Instead of using the classic one-step "Tweedie’s formula," SDGM solves a reverse-time ODE. This allows for a gradual, controlled refinement of the signal, effectively mitigating the over-shrinkage bias seen in one-step methods.
  • Flexible Priors: The prior $G$ is implemented using both discrete mixtures and Normalizing Flows (specifically Neural Spline Flows), allowing the model to learn complex, continuous manifold structures.

Datasets and Empirical Evaluation

The framework was rigorously evaluated on both synthetic and real-world datasets:

  • Synthetic Manifolds: High-dimensional versions of a "Circle" and a "Letter A" shape (up to 32 dimensions), where the true signal exists only on a 2D manifold buried in noise.
Denoising a synthetic circle manifold
  • APOGEE Astronomy Data: A real-world dataset containing 19-dimensional chemical abundance measurements of over 27,000 stars. This data is characterized by complex, element-correlated Gaussian noise.

Key Insights and Results

The core innovation of SDGM is treating heteroscedasticity not as a nuisance, but as a family of unique diffusion paths that all originate from the same shared latent prior. By using an ODE to denoise, the model acts like an optimization process, "nudging" points toward the learned manifold over several steps rather than making one giant, often inaccurate leap.

Theoretically, the authors prove that their score estimation error achieves a rate of $\tilde{O}(1/n)$. This is a "near-parametric" rate, which is surprisingly fast for a nonparametric method and improves upon previous bounds in the diffusion literature.

Empirically, SDGM demonstrates superior fidelity and quantitative gains:

  • Superior Fidelity: In the "Letter A" experiment ($d=16$), traditional NPMLE and EM methods collapsed the legs of the "A" into a blurry blob, whereas SDGM perfectly preserved the thin manifold structure.
  • Quantitative Gains: SDGM consistently outperformed baselines across metrics like Fisher divergence, Negative Log-Likelihood (NLL), and Mean Squared Error (MSE). For example, in the circle task, the continuous version (SDGM-C) achieved an MSE of ~1.13 compared to NPMLE's ~3.57.
  • Scalability: While NPMLE becomes computationally prohibitive as dimensions increase, the score-based approach scales gracefully. It successfully recovered clear chemical structures in the 19-dimensional APOGEE data where other methods produced unreliable estimates.
Recovering chemical structures in APOGEE data

Limitations and Future Work

Despite strong empirical results, the current theory still includes a factor that scales exponentially with the ambient dimension $d$. The authors suggest that future work should focus on manifold-aware rates that depend only on the intrinsic dimension of the data. Furthermore, the score-matching objective is non-convex; while heuristics like Normalizing Flows solve it effectively in practice, theoretical guarantees for reaching the global minimum are still needed. Finally, algorithmic refinements could further optimize the formulation for extreme large-scale computation.

Summary updated

BibTeX
@inproceedings{chen2025score,
  author = {Gongyu Chen and Ying Cui},
  title = {{Score-Based Diffusion Modeling for Nonparametric Empirical Bayes in Heteroscedastic Gaussian Mixtures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=l0tTXno7c2},
}
Figure