Abstract
We reframe linear dimensionality reduction as a problem of Bayesian inference on matrix manifolds. This natural paradigm extends the Bayesian framework to dimensionality reduction tasks in higher dimensions with simpler models at greater speeds. Here an orthogonal basis is treated as a single point on a manifold and is associated with a linear subspace on which observations vary maximally. Throughout this paper, we employ the Grassmann and Stiefel manifolds for various dimensionality reduction problems, explore the connection between the two manifolds, and use Hybrid Monte Carlo for posterior sampling on the Grassmannian for the first time. We delineate in which situations either manifold should be considered. Further, matrix manifold models are used to yield scientific insight in the context of cognitive neuroscience, and we conclude that our methods are suitable for basic inference as well as accurate prediction.
Introduction
Linear dimensionality reduction (LDR) techniques, such as Principal Component Analysis (PCA) and Factor Analysis, are fundamental tools for extracting latent structures from high-dimensional data. In a Bayesian framework, these models typically represent data through a loading matrix $F$. However, a significant challenge arises from rotational symmetry: multiple loading matrices can represent the same subspace, leading to a non-identifiable posterior. This "flatness" in the posterior distribution often causes standard Markov Chain Monte Carlo (MCMC) samplers to converge slowly or fail entirely.
Methodology: Geometry as a Constraint
We propose reframing LDR as Bayesian inference directly on matrix manifolds. By constraining loading matrices to specific geometric structures, we bake identifiability into the model and eliminate redundant parameters.
The Stiefel and Grassmann Manifolds
We utilize two primary manifolds:
- Stiefel Manifold ($O_{d,k}$): The space of $d \times k$ matrices with orthonormal columns. This is appropriate when the specific orientation of the latent axes is scientifically relevant.
- Grassmann Manifold ($G_{d,k}$): The space of all $k$-dimensional subspaces. This is ideal for tasks where only the "plane" containing the data matters.
Geodesic Hybrid Monte Carlo and the pF Metric
To sample from these manifolds, we employ Geodesic Hybrid Monte Carlo (HMC). Unlike standard HMC, Geodesic HMC "glides" along the shortest paths (geodesics) of the manifold, ensuring samples stay on the manifold without messy projection steps. To track convergence on these curved surfaces, we utilize the Projection Frobenius (pF) metric to calculate the distance of samples from the mean subspace.
Efficiency and Convergence
The geometric approach significantly improves sampling efficiency. By removing redundant rotational parameters, the sampler traverses a much simpler posterior landscape.
As shown in the figure above, the Stiefel-parameterized model reaches an equilibrium reconstruction error in approximately 100 samples. In contrast, an unconstrained model fails to reach comparable error levels even after 10,000 samples, illustrating the dramatic impact of manifold constraints on MCMC performance.
Reconstruction and Robustness
The robustness of the manifold-based approach was tested using synthetic binary data subjected to corruption and missingness.
The model successfully recovers the underlying signal from highly degraded inputs. This capability extends to real-world applications, such as metabolite data infilling, where the Stiefel HMC model significantly outperformed Variational Bayes (VB) when 50% or more of the data was missing.
Applications in Neuroscience
The utility of these methods was further demonstrated on neural spike train data from rats. A Bayesian joint model using manifold constraints achieved a cross-validation error rate of 0.076 in decoding odor sequences, significantly outperforming Random Forest (0.103) and Partial Least Squares (0.111). Notably, it was the only model capable of accurately predicting "out-of-sequence" events, highlighting its strength in scientific inference.
Conclusion
Bayesian inference on matrix manifolds offers a mathematically elegant and computationally efficient framework for linear dimensionality reduction. While each iteration involves a Singular Value Decomposition (SVD) to calculate geodesic paths, the massive reduction in required samples makes the approach highly competitive. Future work will explore more informative priors and the extension of these geometric principles to non-linear dimensionality reduction models.
Summary updated