RMLR: Extending Multinomial Logistic Regression into General Geometries

Ziheng Chen, Yue Song, Rui Wang, Xiaojun Wu, Nicu Sebe

Abstract

Deep learning has increasingly moved beyond Euclidean spaces to represent complex data types—such as brain signals, rotation matrices, and hierarchical structures—on curved Riemannian manifolds. However, the final classification step in these architectures often relies on "flattening" the manifold into a tangent space, a process that introduces geometric distortion. In this paper, we present RMLR, a universal framework for Riemannian Multinomial Logistic Regression. By re-imagining classification through Riemannian trigonometry and utilizing the Riemannian logarithm map, RMLR provides a theoretically sound, "plug-and-play" classifier applicable to almost any geometry. Our framework outperforms traditional methods across diverse manifolds, including Symmetric Positive Definite (SPD) matrices and rotation groups ($SO(n)$).

Introduction

While deep learning has seen immense success in Euclidean domains, many real-world data types naturally reside on non-Euclidean surfaces known as Riemannian manifolds. To process such data, researchers have developed specialized "backbone" networks designed to preserve manifold geometry. However, a persistent bottleneck remains: the final classification layer. Standard Multinomial Logistic Regression (MLR) assumes data points are vectors in a flat space. To bridge this gap, practitioners often use Tangent Space Mapping—projecting data onto a flat plane at a specific point—which causes significant distortion for points far from the projection center. Alternatively, researchers develop geometry-specific MLRs (e.g., for hyperbolic space) that rely on niche algebraic properties like "gyro-structures," making them difficult to adapt to other geometries.

The RMLR Framework

The RMLR framework addresses these limitations by providing a universal approach to manifold classification. The core innovation is a shift in perspective: instead of defining a hyperplane as a flat sheet, RMLR defines a Riemannian hyperplane using the Riemannian logarithm map ($ ext{Log}_P S$).

To calculate class probabilities, MLR requires a "margin distance"—the distance from a data point to the decision boundary. RMLR reinterprets this distance using Riemannian trigonometry. The authors prove that the distance from a point to a manifold hyperplane can be expressed simply using the Riemannian logarithm and the metric tensor, effectively calculating the margin as $\sin(\text{angle}) \times \text{geodesic distance}$. This approach bypasses the need for complex optimization problems typically required to find the "closest point" on a curved surface.

Key Methodological Innovations

  • Minimal Geometric Requirements: Unlike previous specialized classifiers, RMLR only requires the Riemannian Log map, making it compatible with a vast array of manifolds.
  • Power-Deformed Metrics: For SPD manifolds, the framework supports five families of MLRs under "power-deformed" metrics (AIM, LEM, PEM, LCM, and BWM), allowing the classifier to adapt to varying data curvatures.
  • Lie MLR: RMLR provides the first direct extension of MLR to Lie groups, such as rotation matrices ($SO(n)$), using bi-invariant metrics.
  • Numerical Stability: The authors developed a "backpropagation-friendly" Lyapunov solver for the Bures-Wasserstein Metric (BWM), ensuring that deep Riemannian networks remain stable during training.

Experimental Evaluation

The authors validated RMLR across a wide range of applications and datasets:

  • Human Action Recognition: Evaluated on HDM05 and G3D datasets using skeleton-based motion capture data.
  • EEG Classification: Mental workload estimation using the Hinss2021 dataset.
  • Node Classification: Tested on tree-like structures (Disease) and citation networks (Cora, Pubmed).
  • Lie Group Dynamics: Action recognition using the LieNet backbone on NTU60 and G3D datasets.

Results and Discussion

RMLR consistently outperformed standard "LogEig" (tangent space) baselines and previous state-of-the-art Riemannian classifiers.

On the HDM05 dataset using an SPDNet backbone, RMLR improved classification accuracy by 14.23% over non-intrinsic baselines. In the domain of EEG analysis—a field where inter-subject variability makes classification notoriously difficult—RMLR achieved a 4.46% performance boost. Furthermore, for rotation-based networks (LieNet), the proposed Lie MLR not only improved accuracy but also resolved the convergence failures that frequently occurred with previous methods on the HDM05 dataset.

One notable finding is that RMLR remains functional even on "geodesically incomplete" manifolds, where certain paths may not extend infinitely. This is a significant advantage over previous gyro-based methods, which typically fail in such scenarios.

Limitations and Future Work

The primary limitation of the current RMLR framework is potential over-parameterization. Each class requires its own Riemannian parameter ($P_k$) and Euclidean parameter ($A_k$), which may lead to high computational costs in large-scale classification tasks (e.g., thousands of classes). Future research will focus on developing parameter-efficient versions of RMLR and exploring its utility in exotic geometries found in biological and physical modeling.

Conclusion

RMLR represents a significant step forward in geometric deep learning. By providing a theoretically grounded and universal framework for classification on manifolds, it allows researchers to maintain geometric integrity from the first layer of a network to the final prediction.

Summary updated

BibTeX
@inproceedings{chen2024rmlr,
  author = {Ziheng Chen and Yue Song and Rui Wang and Xiaojun Wu and Nicu Sebe},
  title = {{RMLR: Extending Multinomial Logistic Regression into General Geometries}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=lBp2cda7sp},
}
Figure