Bayesian Inference over the Stiefel Manifold via the Givens Representation

Arya Pourzanjani, Richard Jiang, Brian Mitchell, Paul J. Atzberger, Linda Petzold

TL;DR

This paper introduces a practical way to perform Bayesian inference on orthogonal matrices (the Stiefel manifold) by reparameterizing them using Givens rotations. By mapping constrained matrices to unconstrained angles in Euclidean space, the authors enable the use of standard, high-performance samplers like NUTS (in Stan) while providing an efficient, analytic solution for the necessary "change-of-measure" adjustments.

What Problem Does This Paper Address?

Many statistical models—like Principal Component Analysis (PCA), factor analysis, and signal processing—rely on orthogonal matrices (matrices where $Y^T Y = I$). In a Bayesian framework, we want to sample from the posterior distribution of these matrices.

However, the "Stiefel manifold" (the space of these matrices) is a curved, constrained surface. This makes standard sampling difficult. Existing solutions are often:

  1. Specialized: Limited to specific distributions (e.g., Bingham-von Mises-Fisher).
  2. Complex to Implement: Requiring custom "Geodesic Monte Carlo" (GMC) algorithms that aren't supported by popular probabilistic programming languages like Stan or PyMC3.
  3. Computationally Heavy: Often involving expensive matrix exponentials.

The authors seek a "transformation-based" approach that turns the manifold problem into a standard Euclidean one, allowing researchers to use off-the-shelf Bayesian tools.

Methods

The core of the paper is the Givens Representation.

  • The Transform: Any orthogonal matrix can be decomposed into a sequence of rotations (Givens rotations). Instead of sampling the matrix entries directly, the authors sample the angles of these rotations. This naturally respects the orthogonality constraint.
  • Change-of-Measure: When you move from a manifold to Euclidean space, you "stretch" the space. To keep the probability math correct, you need a Jacobian adjustment. The authors derive a surprisingly simple analytic form for this: a product of cosines of the angles.
  • Topological Fixes: Mapping a sphere-like manifold to a flat plane creates "seams" (like the $\pm 180^\circ$ line on a map) and "poles."
    • To fix the "seams," they use an auxiliary parameter expansion, essentially mapping the angles to $(x, y)$ coordinates so the sampler can move smoothly across the boundary.
  • They prove that the "pole" problem (where the density mathematically drops to zero) affects an insignificantly small volume of the space, making it a non-issue for most practical applications.

Datasets

The authors evaluated their method using:

  1. Simulated Data: Used for uniform sampling benchmarks and Probabilistic PCA (PPCA) to verify that the sampler recovers true parameters.
  2. Protein-Protein Interaction Network: A real-world dataset (originally from Butland et al., 2005) consisting of a $230 \times 230$ symmetric graph matrix. They used this to test a "Network Eigenmodel," comparing their Givens approach against Geodesic Monte Carlo.

Key Insights and Ideas

  • The "Simple" Jacobian: The derivation of the change-of-measure term as $\prod \cos^{j-i-1} \theta_{ij}$ is a major "aha" moment. It turns a potentially nightmarish matrix calculation into a simple product that is trivial to compute during sampling.
  • Sparse Orthogonality: Because the Givens representation uses angles, you can place sparsity-inducing priors (like the Horshoe prior) directly on the angles. This allows for "Sparse PPCA," where the resulting orthogonal matrix has many near-zero entries—a feat that is very difficult to achieve with other parameterizations.
  • GMC vs. Givens: The authors found a trade-off in scaling. GMC (Geodesic Monte Carlo) scales better when the number of columns ($p$) is much smaller than the number of rows ($n$). However, the Givens approach is more efficient when $p$ is large and approaches $n$.

Key Results

  • Efficiency: In the Network Eigenmodel experiment, the Givens implementation in Stan took ~300 seconds to collect 1,000 samples, while the specialized GMC algorithm took 812 seconds.
  • Robustness: The authors demonstrated that even with highly concentrated distributions near the "poles," the Givens representation remains accurate. The "blocked-off" region near singularities scales at $O(p\epsilon^2)$, which is negligible for standard numerical precision.
  • Ease of Use: By using this representation, the authors were able to implement complex models in Stan with just a few lines of code, leveraging automatic differentiation and the No-U-Turn Sampler (NUTS).

Limitations and Future Work

  • Scaling: While efficient, the total complexity is still $O(np^2)$. For extremely high-dimensional matrices, even this might become a bottleneck.
  • Coordinate Charts: The paper uses a single coordinate chart. While they show the "pole" issue is minor, extremely niche cases might still require switching between multiple charts to avoid singularities.
  • Prior Intuition: While placing priors on angles is mathematically easy, it isn't always intuitive how a prior on an angle translates to a specific physical property of the matrix (other than sparsity). Further work on "interpretable angle priors" could be beneficial.

Summary updated

Abstract

We introduce an approach based on the Givens representation for posterior inference in statistical models with orthogonal matrix parameters, such as factor models and probabilistic principal component analysis (PPCA). We show how the Givens representation can be used to develop practical methods for transforming densities over the Stiefel manifold into densities over subsets of Euclidean space. We show how to deal with issues arising from the topology of the Stiefel manifold and how to inexpensively compute the change-of-measure terms. We introduce an auxiliary parameter approach that limits the impact of topological issues. We provide both analysis of our methods and numerical examples demonstrating the effectiveness of the approach. We also discuss how our Givens representation can be used to define general classes of distributions over the space of orthogonal matrices. We then give demonstrations on several examples showing how the Givens approach performs in practice in comparison with other methods.
BibTeX
@inproceedings{pourzanjani2020bayesian,
  author = {Arya Pourzanjani and Richard Jiang and Brian Mitchell and Paul J. Atzberger and Linda Petzold},
  title = {{Bayesian Inference over the Stiefel Manifold via the Givens Representation}},
  booktitle = {Bayesian},
  year = {2020},
  doi = {10.1214/20-ba1202},
}

Loading related content...

Figure