[Paper Review] Practical Riemannian Neural Networks
This paper introduces practical quasi-diagonal Riemannian neural network optimization methods that provide invariance to parameter scaling and activation function changes, using computationally efficient approximations of the natural gradient. These methods achieve consistent performance gains over SGD and AdaGrad across MNIST, SVHN, FACES, and EEG datasets, with a ~2x computational overhead and significantly faster convergence.
We provide the first experimental results on non-synthetic datasets for the quasi-diagonal Riemannian gradient descents for neural networks introduced in [Ollivier, 2015]. These include the MNIST, SVHN, and FACE datasets as well as a previously unpublished electroencephalogram dataset. The quasi-diagonal Riemannian algorithms consistently beat simple stochastic gradient gradient descents by a varying margin. The computational overhead with respect to simple backpropagation is around a factor $2$. Perhaps more interestingly, these methods also reach their final performance quickly, thus requiring fewer training epochs and a smaller total computation time. We also present an implementation guide to these Riemannian gradient descents for neural networks, showing how the quasi-diagonal versions can be implemented with minimal effort on top of existing routines which compute gradients.
Motivation & Objective
- To implement and evaluate quasi-diagonal Riemannian gradient descent algorithms on real, non-synthetic datasets for neural networks.
- To demonstrate that these Riemannian methods preserve key invariance properties—such as insensitivity to activation function choice or input encoding changes—while remaining computationally feasible.
- To show that these methods achieve faster convergence and better final performance than standard SGD and AdaGrad, even with minimal hyperparameter tuning.
- To provide a practical implementation guide enabling integration of these algorithms on top of existing deep learning frameworks with minimal code changes.
- To validate that the invariance properties of the natural gradient can be approximated effectively without the full computational cost of exact Fisher information matrix computation.
Proposed method
- The method uses quasi-diagonal Riemannian metrics derived from the natural gradient framework, which preserve invariance under affine transformations of parameters and activation functions.
- It introduces two key routines: QDRankOneUpdate for updating the preconditioning matrix and QDSolve for solving the linear system efficiently using a low-rank correction structure.
- The algorithms rely on tracking gradients and squared gradients per parameter—similar to RMSProp and AdaGrad—enabling reuse of existing gradient computation pipelines.
- The preconditioning matrix is structured to be nearly diagonal with a few well-chosen non-diagonal terms, allowing fast inversion while maintaining invariance under scaling and sign-flip transformations.
- The method incorporates a small numerical regularization term (ε = 10⁻⁸) to ensure matrix invertibility without breaking invariance, chosen for numerical stability.
- The approach is applied to both classification and autoencoder tasks, including reconstruction with Gaussian outputs and learned variances, on MNIST, SVHN, FACES, and EEG datasets.
Experimental results
Research questions
- RQ1Can quasi-diagonal Riemannian optimization methods outperform standard SGD and AdaGrad on real-world, non-synthetic datasets?
- RQ2To what extent do these Riemannian methods preserve invariance under parameter scaling and activation function changes (e.g., sigmoid vs. tanh) in practice?
- RQ3How does the computational overhead of these methods compare to standard backpropagation, and does it justify the performance gains?
- RQ4Do these methods converge faster than standard algorithms, reducing the number of required training epochs and total computation time?
- RQ5How do the methods perform under different data distributions and architectures, including autoencoders with learned output variances?
Key findings
- The quasi-diagonal Riemannian algorithms consistently outperform SGD and AdaGrad across all tested datasets, including MNIST, SVHN, FACES, and EEG, with performance gains varying by dataset.
- On the FACES dataset, Riemannian methods (especially QDOP) reduced mean square error below 45 in few epochs, while SGD and AdaGrad remained stuck around 45 even after many epochs.
- On the EEG dataset, the Riemannian methods achieved a notable but less dramatic performance gain compared to FACES, demonstrating robustness across diverse data types.
- The MNIST autoencoder experiment with learned output variances showed that QDOP remained the most efficient algorithm, even when the true noise model deviated from the assumed diagonal Gaussian.
- Convergence was significantly faster in early training epochs for Riemannian methods, enabling earlier attainment of final performance and reducing total training time.
- The computational overhead was approximately a factor of 2 compared to standard backpropagation, making the method practical for real-world deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.