Neural-g: A Deep Learning Framework for Mixing Density Estimation

Shijie Wang, Saptarshi Chakraborty, Qian Qin, Ray BaiarXiv 2024 · DOI

Abstract

Estimating the hidden mixing density (prior) from observed data is a fundamental challenge in empirical Bayes modeling. Traditional methods often struggle with a trade-off between the coarse, atomic estimates of Nonparametric Maximum Likelihood (NPMLE) and the rigid requirements of parametric models. We present Neural-$g$, a deep learning framework that utilizes multilayer perceptrons with a softmax output to provide a flexible, tuning-free approach to mixing density estimation. Neural-$g$ effectively captures complex prior shapes, including discontinuities and smooth tails, while offering improved uncertainty quantification and stability through a novel Weighted Average Gradient (WAG) optimizer.

Introduction: The Challenge of Prior Estimation

In many statistical scenarios, we observe data $y$ that depends on a hidden parameter $\theta$. To perform accurate inference, one must estimate the distribution of $\theta$, known as the mixing density or prior ($\pi$). This process, central to empirical Bayes or "$g$-modeling," has historically been caught between two extremes.

Nonparametric Maximum Likelihood (NPMLE) is powerful but tends to produce "atomic" estimates, predicting that parameters exist only at a few discrete points. This often leads to overconfident, narrow confidence intervals and poor performance on smooth distributions. Conversely, parametric or smoothed methods, such as Efron’s $g$, require manual selection of basis functions and tuning parameters, which can fail to capture the true underlying data structure if misspecified. Neural-$g$ addresses these limitations by providing a flexible, automated alternative.

The Neural-g Framework: Architecture and Optimization

Neural-$g$ treats prior estimation as a deep learning task using a Multilayer Perceptron (MLP) architecture. The input to the network is a grid of possible values for the hidden parameter $\theta$, and the output is the estimated probability at each point.

Key components of the framework include:

  • Softmax Activation: By employing a softmax layer at the output, the model ensures the estimated prior is a valid probability distribution (positive values summing to one).
  • Universal Approximation: The authors provide theoretical justification through a new Universal Approximation Theorem, proving that a neural network with a softmax output can approximate any valid probability mass function on a discrete space.
  • Weighted Average Gradient (WAG): To combat the "flat" likelihood surfaces common in mixture models—where standard optimizers like Adam or SGD may stall—the authors introduced WAG. This optimizer updates parameters using a weighted average of current and historical gradients, stabilizing training and helping the model escape suboptimal plateaus.

Key Results and Insights

Neural-$g$ was evaluated against synthetic scenarios (including Uniform, Piecewise Constant, and Heavy-tailed priors) and real-world datasets such as TCGA protein mutation data and Arizona Medicare hospital stay records.

Comparison of Neural-g with NPMLE and Efron's g-modeling across Point Mass and Gaussian priors.

As shown in Figure 1, Neural-$g$ acts as a "Goldilocks" estimator. In the Point Mass Prior scenario (left), it successfully captures the discrete spikes, remaining competitive with NPMLE while avoiding the excessive smoothing of Efron's method. In the Gaussian Prior scenario (right), it provides a smooth, accurate density estimate where NPMLE remains stuck in a coarse, discrete representation.

Beyond visual accuracy, Neural-$g$ consistently achieved the lowest Wasserstein-1 distance in simulations and provided more reliable uncertainty quantification. While NPMLE often fails to reach nominal 95% coverage rates due to its discreteness, Neural-$g$ hits these targets much more consistently. In real-world applications, such as the Arizona Medicare dataset, Neural-$g$ was uniquely capable of capturing both a sharp spike (patients staying exactly 2 days) and a smooth tail for longer stays.

Conclusion and Future Directions

Neural-$g$ represents a significant step forward in bridging the gap between classical statistics and deep learning. It offers a robust, multivariate-capable framework that handles complex prior shapes without manual tuning. Future work may address the current dependence on pre-specified grids and extend the model to incorporate covariates, allowing the prior to vary based on observed auxiliary variables.

Summary updated

BibTeX
@misc{wang2024neural,
  author = {Shijie Wang and Saptarshi Chakraborty and Qian Qin and Ray Bai},
  title = {{Neural-g: A Deep Learning Framework for Mixing Density Estimation}},
  year = {2024},
  eprint = {2406.05986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05986},
}
Figure