Adaptive stochastic gradient algorithms on Riemannian manifolds

Hiroyuki Kasai, Pratik Jawanpuria, Bamdev MishraarXiv 2019

Abstract

Adaptive stochastic gradient algorithms in the Euclidean space have attracted much attention lately. Such explorations on Riemannian manifolds, on the other hand, are relatively new, limited, and challenging. This is because of the intrinsic non-linear structure of the underlying manifold and the absence of a canonical coordinate system. In machine learning applications, however, most manifolds of interest are represented as matrices with notions of row and column subspaces. In addition, the implicit manifold-related constraints may also lie on such subspaces. For example, the Grassmann manifold is the set of column subspaces. To this end, such a rich structure should not be lost by transforming matrices to just a stack of vectors while developing optimization algorithms on manifolds. We propose novel stochastic gradient algorithms for problems on Riemannian matrix manifolds by adapting the row and column subspaces of gradients. Our algorithms are provably convergent and they achieve the convergence rate of order $\mathcal{O}(\log (T)/\sqrt{T})$, where $T$ is the number of iterations. Our experiments illustrate the efficacy of the proposed algorithms on several applications.

Introduction

Adaptive stochastic gradient algorithms, such as ADAM and AdaGrad, have become the standard for optimization in Euclidean space due to their ability to automatically adjust learning rates for different coordinates. However, many critical machine learning problems—including Principal Component Analysis (PCA), matrix completion, and low-rank learning—are defined on non-linear Riemannian manifolds rather than flat Euclidean space.

The transition of adaptive methods to Riemannian manifolds is non-trivial. Manifolds lack a canonical coordinate system, and their intrinsic non-linear structure makes standard adaptation difficult. Furthermore, existing approaches often treat gradient matrices as flattened vectors, which discards the rich row and column subspace structure inherent in matrix manifolds like the Grassmann manifold. This paper introduces the Riemannian Adaptive Stochastic gradient Algorithm (RASA) to address these challenges by adapting row and column subspaces directly.

Methodology

The core innovation of RASA lies in its exploitation of the matrix structure of the Riemannian stochastic gradient $G_t$. Instead of applying a single weight to every entry or treating the matrix as a vector, RASA computes "left" ($l_t$) and "right" ($r_t$) adaptive weight matrices. These matrices adapt the row and column subspaces respectively.

Algorithm 1: The Riemannian adaptive stochastic algorithm (RASA) framework.

As shown in Algorithm 1, the update rule is defined as:

$$x_{t+1} = R_{x_t}(-\alpha_t \mathcal{P}_{x_t}(\text{Diag}(\hat{\mathbf{l}}_t^{-1/4})\mathbf{G}_t\text{Diag}(\hat{\mathbf{r}}_t^{-1/4})))$$

where $R_{x_t}$ is a retraction mapping and $\mathcal{P}_{x_t}$ is a projection onto the tangent space. By modeling $l_t$ and $r_t$ as diagonal matrices, the algorithm maintains computational efficiency, reducing the number of adaptive parameters from $n \times r$ to just $n + r$. This ensures that the adaptation respects the matrix geometry while remaining fast enough for large-scale applications. Crucially, RASA avoids expensive "vector transport" operations by focusing on diagonal scaling within the current tangent space.

Experimental Evaluation

The authors evaluated RASA across a variety of benchmarks to demonstrate its versatility and performance:

  • Synthetic Datasets: Used for PCA to test performance under varying condition numbers (well-conditioned vs. ill-conditioned scenarios).
  • Image Datasets: Utilizing MNIST (handwritten digits), COIL-100 and COIL-20 (object images), and YaleB (human faces) for subspace learning tasks.
  • Matrix Completion: Benchmarking on recommendation system datasets including MovieLens-1M, MovieLens-10M, and the Jester joke rating dataset.

Key Insights and Results

A primary finding is that preserving the matrix structure is superior to flattening. Adapting row and column subspaces separately aligns better with manifold constraints, such as orthogonality. Theoretically, this work provides the first convergence analysis for a Riemannian adaptive gradient method in a non-convex stochastic setting, proving a rate of $\mathcal{O}(\log(T)/\sqrt{T})$.

Empirically, the RASA-LR variant (adapting both subspaces) consistently outperformed Riemannian SGD and cRMSProp in terms of convergence speed and final error rates. RASA also demonstrated significant robustness to the initial learning rate ($\alpha_0$), a common pain point in stochastic optimization. On the MovieLens-10M dataset, RASA-LR showed superior generalization on the test set, suggesting that subspace adaptation may provide a beneficial regularizing effect.

Limitations and Future Directions

While RASA is efficient, it currently lacks a momentum term to avoid the computational cost of vector transport (moving vectors between different tangent spaces). Future work could explore "cheap" Riemannian momentum or full-matrix adaptation for high-precision scenarios where computational overhead is less of a concern. Additionally, extending this subspace adaptation logic to higher-order structures like tensors presents a natural next step for research.

Conclusion

RASA bridges the gap between adaptive Euclidean optimization and Riemannian geometry by respecting the inherent matrix structure of many machine learning problems. By adapting row and column subspaces, it achieves state-of-the-art performance with theoretical guarantees, offering a robust and efficient tool for optimization on manifolds.

Summary updated

BibTeX
@misc{kasai2019adaptive,
  author = {Hiroyuki Kasai and Pratik Jawanpuria and Bamdev Mishra},
  title = {{Adaptive stochastic gradient algorithms on Riemannian manifolds}},
  year = {2019},
  eprint = {1902.01144},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.01144},
}
Figure