A geometric view of conjugate priors

Arvind Agarwal, Hal Daumé Iii

Abstract

In Bayesian machine learning, conjugate priors are frequently employed for their mathematical convenience, ensuring that the posterior distribution remains within the same family as the prior. However, this choice often lacks a deeper theoretical justification. This paper reinterprets conjugate priors through the lens of information geometry and Bregman divergences. We demonstrate that conjugate priors are the unique class of priors that share the intrinsic geometry of the likelihood function. By reframing Maximum A Posteriori (MAP) estimation as a geometric "median" problem, we show that hyperparameters in a conjugate prior function as "pseudo-data" points within the model's natural coordinate system.

Introduction

A central challenge in Bayesian modeling is the selection of a prior distribution. While conjugate priors simplify the derivation of the posterior, they are often criticized as a "hack" for computational ease rather than a principled choice. This paper addresses whether there is a fundamental, non-arbitrary reason to prefer conjugate priors and how to choose appropriate priors for complex "hybrid" models that combine generative and discriminative components.

Theoretical Framework: Information Geometry

The paper's core contribution lies in its use of Information Geometry. In exponential families, the log-partition function $G(\theta)$ defines the "curvature" or geometry of the statistical manifold.

Bregman Median and Legendre Duality

The authors prove that Maximum Likelihood (ML) estimation for exponential families is equivalent to finding a "Bregman median"—minimizing the divergence between a parameter and the observed data points. This formulation relies on the Legendre duality between the canonical parameter space $\Theta$ and the mean parameter space $\mathcal{M}$.

Mapping between the parameter space $\Theta$ and the mean parameter space $\mathcal{M}$ via Legendre duality.

As shown in Figure 4, points in the parameter space $\theta$ are linked to points in the mean parameter space $x$ (or $\mu$). This duality is essential for understanding how data informs parameter estimation.

Conjugate Priors as Natural Geometric Choices

The authors argue that for a prior to be "natural," it must utilize the same distance metric induced by the log-partition function as the likelihood.

Comparison of Euclidean distance (a) and geodesic distance (b) on a statistical manifold.

Figure 1 illustrates the difference between standard Euclidean distances ($d_e$) and the geodesic distances ($d_g$) that respect the manifold's geometry. Using a non-conjugate prior is akin to solving an optimization problem where distances to data points are measured with one ruler (the model's geometry), while distances to the prior are measured with an incompatible ruler (e.g., Euclidean distance).

Hyperparameters as Pseudo-Data

Under this geometric view, the MAP estimate with a conjugate prior is equivalent to an ML estimate performed on the original data plus additional "virtual" data points. The hyperparameter $\beta$ represents the count of these virtual points, and the ratio $\alpha/\beta$ defines their location in the mean parameter space. This provides a "turn-key" justification for conjugate priors: they maintain optimization within a single, consistent geometric space, explaining why they lead to closed-form solutions.

Applications to Hybrid Models

The framework is applied to hybrid models, such as Naive Bayes/Logistic Regression pairs. By replacing standard squared Euclidean distances (Gaussian priors) with the model's inherent Bregman divergence, the authors "couple" generative and discriminative parameters more effectively. They demonstrate that the "mode" of a coupling prior should be the dual of the parameters, correcting previous intuitions in hybrid model research.

Conclusion

This geometric perspective elevates conjugate priors from a matter of convenience to a requirement for geometric consistency. While currently focused on the exponential family, future work may extend these principles to broader classes of distributions and multi-view learning scenarios.

Summary updated

BibTeX
@inproceedings{agarwal2011geometric,
  author = {Arvind Agarwal and Hal Daumé III},
  title = {{A geometric view of conjugate priors}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=H1-8Nrzd-S},
}
Figure