SPD Learn: A Geometric Deep Learning Python Library for Neural Decoding Through Trivialization

Bruno Aristimunha, Ce Ju, Antoine Collas, Florent Bouchard, Ammar Mian +3 more
2/26/2026
3 citations
q-bio.NCcs.LG

No official code found. Best implementation: spdlearn/spd_learn (41 stars, Python, PyTorch, last commit 2026-03-22).

Abstract

Implementations of symmetric positive definite (SPD) matrix-based neural networks for neural decoding remain fragmented across research codebases and Python packages. Existing implementations often employ ad hoc handling of manifold constraints and non-unified training setups, which hinders reproducibility and integration into modern deep-learning workflows.

Show full abstract

To address this gap, we introduce SPD Learn, a unified and modular Python package for geometric deep learning with SPD matrices. SPD Learn provides core SPD operators and neural-network layers, including numerically stable spectral operators, and enforces Stiefel/SPD constraints via trivialization-based parameterizations. This design enables standard backpropagation and optimization in unconstrained Euclidean spaces while producing manifold-constrained parameters by construction. The package also offers reference implementations of representative SPDNet-based models and interfaces with widely used brain computer interface/neuroimaging toolkits and modern machine-learning libraries (e.g., MOABB, Braindecode, Nilearn, and SKADA), facilitating reproducible benchmarking and practical deployment.

View on arXivView PDF

Code Implementations(1)

spdlearn/spd_learnCommunity74%
PyTorch

SPDlearn: A Geometric Deep Learning Python Library for Neural Decoding Through Trivialization

419PythonJan 16, 20268 months agoNOASSERTION
bcibrain-computer-interfacecovariance-matricesdeep-learningeeg+11 more

Similar Papers

Cite this paper

@article{aristimunha2026learn,
  title  = {SPD Learn: A Geometric Deep Learning Python Library for Neural Decoding Through Trivialization},
  author = {Bruno Aristimunha and Ce Ju and Antoine Collas and Florent Bouchard and Ammar Mian and Bertrand Thirion and Sylvain Chevallier and Reinmar Kobler},
  year   = {2026},
  eprint = {2602.22895},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.22895v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.22895.svg)](https://codeofpaper.com/paper/2602.22895)

Discussion