A Stein Identity for q-Gaussians with Bounded Support

Sophia Sklaviadis, Thomas Moellenhoff, Andre F. T. Martins, Mario A. T. Figueiredo, Mohammad Emtiyaz Khan

TL;DR

This paper introduces a novel Stein’s identity for $q$-Gaussians with bounded support, a class of non-Gaussian distributions where samples are guaranteed to lie within a finite radius. By leveraging "escort distributions" from statistical physics, the authors derive gradient estimators (Bonnet- and Price-type theorems) that look nearly identical to standard Gaussian ones but offer bounded variance. This mathematical bridge opens up new, stable pathways for stochastic optimization, Bayesian deep learning, and sharpness-aware minimization.

What Problem Does This Paper Address?

In machine learning, we frequently need to compute the gradient of an expectation—for example, when optimizing a loss function under uncertainty in variational inference or generative modeling. Stein’s identity is the mathematical workhorse that makes this easy for Gaussian distributions, giving rise to clean analytical formulas like Bonnet’s and Price’s theorems. These theorems underpin the famous "reparameterization trick."

However, Gaussians have unbounded support, meaning samples can theoretically be infinitely far from the mean. This can lead to high gradient variance and instability. While researchers want to use bounded-support distributions to keep gradients well-behaved, extending Stein’s identity to non-Gaussian families has historically resulted in complex, impractical formulas that are difficult to implement. This paper tackles that exact gap: creating a simple, practical Stein identity for bounded-support distributions.

Methods

The authors focus on a subfamily of elliptical distributions known as Pearson Type II distributions, parameterized as bounded-support $q$-Gaussians (where $q < 1$).

Examples of q-Gaussian densities and their sharper escort distributions.

The key breakthrough lies in connecting two separate fields: the classical statistical literature on elliptical distributions and the concept of escort distributions from information geometry and statistical physics. The authors prove that the "associated law" needed to make Stein's identity work for $q$-Gaussians is exactly a $(2-q)$-escort distribution ($p^\star(x) \propto p(x)^{2-q}$).

By substituting the standard expectation on the right-hand side of Stein's identity with an expectation over this escort distribution, they derive new $q$-Bonnet and $q$-Price theorems. Crucially, because these distributions are bounded, the authors prove that the resulting Monte Carlo gradient estimators have a strictly bounded variance. They also provide an efficient 4-step sampling routine using standard Beta distributions, making the method as easy to implement as a standard Gaussian reparameterization trick.

Datasets

The methods were evaluated on two benchmarks:

  1. Synthetic Logistic Regression: A simulated dataset used to precisely measure and isolate coordinate-gradient variance across different dimensions ($D \in \{10, 50, 200\}$).
  2. CIFAR-10: The standard image classification dataset, used to train a ResNet-20 model to evaluate the practical performance of the proposed $q$-VSGD algorithm.

Key Insights and Ideas

  • The Escort Connection: Discovering that the complex "associated laws" of elliptical distributions match the elegant power-law structure of escort distributions simplifies the math significantly. It keeps the final gradient estimators structurally analogous to the Gaussian case.
  • Guaranteed Bounded Variance: Because the support is a compact ellipsoid, the gradient and Hessian terms cannot explode. Under mild boundedness assumptions on the target function, the variance of the gradient estimators is mathematically guaranteed to be bounded.
  • Bridging SAM and Variational SGD: Sharpness-Aware Minimization (SAM) searches for a worst-case adversarial perturbation within a bounded sphere, while Variational SGD (VSGD) averages Gaussian perturbations over an infinite space. The authors' proposed $q$-VSGD acts as a conceptual bridge: it averages perturbations, but strictly within a bounded support.
Figure 3: Sharpness-Aware Minimization (SAM) [18] considers an adversarial perturbation over a compact ball. Variational stochastic gradient descent (VSGD) with Gaussian weight perturbation averages perturbations over whole space (unbounded support). Our proposed q-VSGD uses q- Gaussian weight perturbations, which have bounded support similarly to SAM but uses averages similarly to VSGD. The method combines the two complementary features of SAM and VSGD.

Key Results

  • Variance Reduction: In synthetic experiments, smaller values of $q$ (which correspond to more tightly bounded, compact supports) consistently yielded lower-variance gradient estimators than the standard Gaussian baseline.
Empirical gradient variance and maximum radius plotted against dimensionality D.
  • Image Classification Performance: When training a ResNet-20 on CIFAR-10, the proposed $q$-VSGD method with $q=0.6$ achieved a test accuracy of 92.2% (with 1 Monte Carlo sample) and 92.6% (with 5 samples). This slightly outperformed standard Gaussian VSGD (92.1% / 92.4%) and performed competitively with SAM (92.6%), demonstrating that bounded-support smoothing is a viable alternative to traditional Gaussian perturbation methods.

Limitations and Future Work

The primary limitation identified is the curse of dimensionality. As the number of dimensions ($D$) grows large, the maximum support radius ($R$) of the $q$-Gaussian is heavily dominated by $D$ rather than $q$. Consequently, in high-dimensional spaces, different values of $q$ behave very similarly, diminishing the variance-reduction benefits.

To counteract this, the authors suggest that future work should explore more flexible parameterizations, such as learning/adapting the radius $R$, utilizing anisotropic scale matrices ($\Sigma$), or developing a low-dimensional $q$-Gaussian factorization (a $q$-IVON variant) to better exploit these bounded-support advantages in deep networks.

Summary updated

Abstract

Stein's identity is a fundamental tool in machine learning with applications in generative models, stochastic optimization, and other problems involving gradients of expectations under Gaussian distributions. Less attention has been paid to problems with non-Gaussian expectations. Here, we consider the class of bounded-support $q$-Gaussians and derive a new Stein identity leading to gradient estimators which have nearly identical forms to the Gaussian ones, and which are similarly easy to implement. We do this by extending the previous results of Landsman, Vanduffel, and Yao (2013) to prove new Bonnet- and Price-type theorems for q-Gaussians. We also simplify their forms by using escort distributions. Our experiments show that bounded-support distributions can reduce the variance of gradient estimators, which can potentially be useful for Bayesian deep learning and sharpness-aware minimization. Overall, our work simplifies the application of Stein's identity for an important class of non-Gaussian distributions.
BibTeX
@inproceedings{sklaviadis2026stein,
  author = {Sophia Sklaviadis and Thomas Moellenhoff and Andre F. T. Martins and Mario A. T. Figueiredo and Mohammad Emtiyaz Khan},
  title = {{A Stein Identity for q-Gaussians with Bounded Support}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2026},
  url = {https://openreview.net/forum?id=AdtW8Bayno},
}
Figure