Abstract
Optimization on Symmetric Positive Definite (SPD) manifolds is a cornerstone of many machine learning applications, ranging from distance metric learning to medical imaging. Traditional Riemannian optimizers rely on hand-crafted update rules that often fail to exploit the specific data distributions of a given task. This paper presents a novel meta-learning framework, "Learning to Optimize" (L2O), specifically designed for SPD manifolds. By introducing a Matrix LSTM (mLSTM) that preserves structural symmetry through bilinear projections and integrating it with Riemannian geometry, the proposed approach achieves significantly faster convergence and higher accuracy than state-of-the-art hand-designed optimizers.
Introduction
Many modern machine learning tasks require parameters to reside within the space of Symmetric Positive Definite (SPD) matrices. These matrices are essential for representing covariances, kernels, and diffusion tensors. However, the space of SPD matrices is a non-linear Riemannian manifold, not a flat Euclidean space. Standard optimization techniques like Stochastic Gradient Descent (SGD) are unsuitable because their additive updates can easily produce matrices that are no longer positive definite or symmetric, effectively "falling off" the manifold.
To address this, researchers typically employ Riemannian optimizers. These methods utilize geometric tools such as retractions to map tangent vectors back onto the manifold and parallel transport to move gradients across the curved surface. While effective, these optimizers are "one-size-fits-all" and do not adapt to the nuances of specific datasets. This paper bridges the gap by introducing the first meta-learning framework for SPD manifold optimization.
Methodology: The Matrix LSTM and Riemannian Integration
The core of the proposed framework is a specialized optimizer that learns to generate update trajectories based on past gradients and hidden states.
Matrix LSTM (mLSTM)
Standard LSTMs are designed for vector inputs. Flattening a symmetric matrix into a vector destroys its inherent geometric structure and leads to a massive increase in parameters. To solve this, the authors propose the Matrix LSTM (mLSTM). Instead of standard linear layers, the mLSTM employs bilinear projections of the form $W^\top X W$. This architectural choice ensures that if the input gradient is symmetric, the internal transformations preserve that symmetry. Furthermore, this approach significantly reduces the parameter count, making the meta-learner more efficient.
Riemannian Optimizer Architecture
The optimizer takes the current Riemannian gradient $\nabla_M^{(t)}$ and the previous state as input. It outputs a search direction $T^{(t)}$ and a step size $\eta^{(t)}$, which are combined to form a tangent vector $P^{(t)}$. This vector is then mapped back to the manifold using a retraction $\Gamma_M$, resulting in the next iterate $M^{(t+1)}$.
Meta-Training and Experience Replay
The optimizer is trained using a nested loop strategy. In the inner loop, the optimizer updates a base learner for a specific task. In the outer loop, the weights of the optimizer itself are updated to minimize the cumulative loss of the base learner. To stabilize this process and break temporal correlations in optimization paths, the authors utilize an experience replay buffer, a technique borrowed from reinforcement learning.
Experimental Results
The framework was evaluated against several state-of-the-art Riemannian optimizers, including Riemannian SGD (RSGD), Riemannian SVRG (RSVRG), and Riemannian SGD with Momentum (RSGDM).
Convergence and Accuracy
In the Metric Nearness task, the learned optimizer demonstrated a dramatic improvement in convergence speed. As shown in the results, the proposed method reaches a lower loss in fewer than 10 iterations than baselines achieve in 40.
On the Kylberg texture clustering task, the learned optimizer achieved a classification accuracy of 84.37%, surpassing the best hand-designed baseline (RSVRG at 83.19%). Similar gains were observed in similarity learning tasks on the MNIST and CUB-200 datasets.
Computational Efficiency
A significant finding is that the learned optimizer often runs faster in "wall-clock" time. Traditional Riemannian methods frequently require parallel transport, which involves computationally expensive matrix power operations or inversions. The mLSTM's hidden state effectively tracks the optimization history, allowing the model to bypass explicit parallel transport while still maintaining high performance.
Conclusion and Future Directions
This work introduces a powerful new paradigm for optimization on non-linear manifolds. By learning from data, the optimizer discovers more efficient paths to the optimum than human-designed rules. While the empirical results are compelling, future research is needed to establish formal convergence guarantees for such learned optimizers. Additionally, exploring the generalization of these optimizers across different types of manifolds remains an open and promising challenge.
Summary updated