Bayesian Inference over the Stiefel Manifold via the Givens Representation

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

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.

Introduction

Orthogonal matrices, defined by the constraint $Y^T Y = I$, are fundamental components in statistical models such as Principal Component Analysis (PCA), factor analysis, and signal processing. In a Bayesian framework, performing posterior inference over the "Stiefel manifold"—the space of these matrices—is challenging due to its curved, constrained geometry. Standard sampling methods often struggle with these constraints, necessitating specialized algorithms like Geodesic Monte Carlo (GMC). However, GMC is complex to implement and lacks support in popular probabilistic programming languages like Stan or PyMC3.

This paper proposes a transformation-based approach using the Givens representation. By reparameterizing orthogonal matrices into a sequence of rotation angles in Euclidean space, we enable the use of high-performance, off-the-shelf samplers like the No-U-Turn Sampler (NUTS) while maintaining the necessary orthogonality constraints.

Methods

The core methodology relies on decomposing an orthogonal matrix into a sequence of Givens rotations. Instead of sampling matrix entries directly, the model samples rotation angles $\theta_{ij}$. This mapping naturally respects the orthogonality constraint.

Geometric interpretation of Givens rotations on the Stiefel manifold.

Change-of-Measure

Transforming from a manifold to Euclidean space requires a Jacobian adjustment to account for the "stretching" of the space. The authors derive a computationally efficient analytic form for this change-of-measure:

$$J = \prod_{i,j} \cos^{j-i-1} \theta_{ij}$$

This simple product of cosines avoids expensive matrix operations, making it trivial to integrate into sampling loops.

Addressing Topological Issues

Mapping a spherical manifold to a flat plane introduces "seams" and "poles." To mitigate these:

  1. Auxiliary Parameter Expansion: Angles are mapped to $(x, y)$ coordinates, allowing the sampler to move smoothly across boundaries.
  2. Singularity Analysis: The authors prove that the "pole" problem (where density drops to zero) affects a negligible volume of the space, scaling at $O(p\epsilon^2)$, which is insignificant for standard numerical precision.

Results and Discussion

The Givens approach was evaluated against simulated and real-world datasets.

Performance Benchmarks

In a Network Eigenmodel experiment using a $230 \times 230$ protein-protein interaction network, the Givens implementation in Stan collected 1,000 samples in approximately 300 seconds. In contrast, a specialized GMC algorithm required 812 seconds. While GMC may scale better when the number of columns $p$ is much smaller than rows $n$, the Givens approach is significantly more efficient as $p$ approaches $n$.

Sparse PPCA

A unique advantage of the angle-based representation is the ability to apply sparsity-inducing priors, such as the Horseshoe prior, directly to the rotation angles. This enables "Sparse PPCA," producing orthogonal matrices with many near-zero entries, which is difficult to achieve with traditional parameterizations.

Conclusion

The Givens representation provides a practical and efficient framework for Bayesian inference on the Stiefel manifold. By leveraging standard Euclidean samplers and a simple analytic Jacobian, it lowers the barrier to implementing complex orthogonal models. While the $O(np^2)$ complexity remains a consideration for very high-dimensional data, the ease of use and robustness make it a powerful tool for modern probabilistic modeling.

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