A Computationally Efficient Method for Learning Exponential Family Distributions

Abhin Shah, Devavrat Shah, Gregory Wornell

Introduction

Exponential families—which include familiar distributions like Gaussian, Poisson, and Dirichlet—are the bread and butter of statistical modeling. However, real-world data is often truncated. For example, GPS data is limited by signal range, and crime statistics are often bounded by city limits.

The gold standard for learning these distributions is Maximum Likelihood Estimation (MLE). While MLE has beautiful statistical properties (it’s "efficient," meaning it makes the best possible use of data), it has a massive practical flaw: it requires calculating a normalizing constant called the partition function. For many complex distributions, calculating this constant is computationally hard (often #P-complete), making MLE unusable for high-dimensional problems.

Researchers from MIT have developed a new, computationally efficient method for learning the parameters of truncated exponential family distributions. By introducing a novel loss function that bypasses the need to calculate the notoriously difficult partition function, they provide an estimator that is both statistically consistent and as efficient to compute as it is to sample.

The Proposed Method

Previous attempts to bypass the partition function, like "score matching" or "pseudo-likelihood," often fall short. They either require expensive third-order derivatives, lack clear statistical guarantees, or only work for specific "node-wise" structures (like sparse graphs) rather than global structures like low-rank matrices.

To overcome this, the authors propose a surprisingly simple novel loss function, $L_n(\Theta)$, to estimate the natural parameter $\Theta$:

$$L_n(\Theta) = \frac{1}{n} \sum_{t=1}^{n} \exp \left( -\langle \Theta, \bar{\Phi}(x^{(t)}) \rangle \right)$$

Here, $\bar{\Phi}$ represents "centered" natural statistics. The "secret sauce" is that this objective function is convex, meaning we can reliably find the global minimum using standard tools like Projected Gradient Descent.

What makes this approach unique is that it completely avoids the partition function. Instead of trying to approximate the true distribution's density, the method minimizes a surrogate loss that, at the population level, is equivalent to performing MLE on a re-parameterized version of the distribution. This connection allows the authors to prove that their estimator is both consistent (it converges to the truth) and asymptotically normal.

Versatility and Structured Parameters

As a theoretical statistics paper, this work provides rigorous mathematical proofs and illustrates the method's versatility through various classes of natural statistics, such as polynomial statistics (useful for modeling moments) and trigonometric statistics (useful for periodic data).

Crucially, the method can handle complex global constraints on the parameters. Unlike previous "interaction screening" methods that require parameters to be node-wise sparse (local), this method easily accommodates structured parameter decompositions.

Convex relaxations for structured parameter decompositions

As shown above, the framework seamlessly integrates with standard convex relaxations for sparse, low-rank, and sparse-plus-low-rank parameter structures, making it highly adaptable to different modeling assumptions.

Key Results and Insights

  • The MLE Proxy: The most elegant insight is that minimizing this new loss function is equivalent to minimizing the Kullback-Leibler (KL) divergence between the uniform distribution and a shifted version of the target distribution. This provides an intuitively pleasing justification for why a seemingly arbitrary exponential loss works.
  • Computational-Statistical Symmetry: The authors show that both the sample complexity (how much data you need) and the computational complexity (how many steps the computer takes) scale polynomially with the number of parameters ($k$) and the desired accuracy ($\alpha$). Specifically, both are $O(\text{poly}(k/\alpha))$.
  • Consistency and Normality: The estimator $\hat{\Theta}_n$ is proven to converge to the true parameter $\Theta^*$ as the number of samples $n$ goes to infinity. Furthermore, the distribution of the error follows a multivariate Gaussian distribution (asymptotic normality).
  • Finite Sample Guarantees: The paper provides a concrete bound: to achieve an error of $\alpha$, you need roughly $n \geq O\left(\frac{k_1^2 k_2^2}{\alpha^4 \lambda_{min}^2}\right)$ samples.

Limitations and Future Work

While a significant step forward, the method has a few limitations that pave the way for future research:

  • The Truncation Requirement: The current theory relies on the support of the distribution being bounded (truncated). Extending this to truly heavy-tailed, unbounded distributions remains an open challenge.
  • Centering Statistics: The method requires "centering" the natural statistics (subtracting their average relative to a uniform distribution). For very complex shapes, calculating this integral might become a new computational bottleneck, though it remains straightforward for polynomial and trigonometric cases.
  • Statistical Efficiency Gap: While the method is computationally efficient, it is not statistically efficient in the same way MLE is (it doesn't achieve the Cramér-Rao lower bound). The authors pose a compelling question for future research: Can a single estimator be both computationally and statistically optimal for this class?

Summary updated

BibTeX
@inproceedings{shah2021computationally,
  author = {Abhin Shah and Devavrat Shah and Gregory Wornell},
  title = {{A Computationally Efficient Method for Learning Exponential Family Distributions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=fxGT4XaLkpX},
}
Figure