SPDM: Geometry-Modulated State Space Modeling with Manifold Constraints for Time Series Forecasting
Summary
SPDM introduces a geometry-aware state-space model that uses manifold constraints on the symmetric positive definite manifold for time series forecasting, achieving state-of-the-art performance on 11 benchmarks.
View Cached Full Text
Cached at: 06/10/26, 06:18 AM
# SPDM: Geometry-Modulated State Space Modeling with Manifold Constraints for Time Series Forecasting
Source: [https://arxiv.org/html/2606.09917](https://arxiv.org/html/2606.09917)
1\]organization=School of Computing and Data Science, The University of Hong Kong, city=Hong Kong SAR, country=China
###### Abstract
Multivariate time series forecasting requires capturing the continuously evolving correlation structure among interacting variables\. Existing state\-space models process time series by scanning tokenized temporal or spatial sequences, discarding the evolutionary geometric structure\. We address this limitation by introducing manifold constraints into state\-space modeling: treating the cross\-variable correlation structure as a continuous trajectory on the symmetric positive definite manifold, whose Riemannian geometric features, tangent space linearity, and Fréchet mean centrality act as a principled geometric regularizer that guides and stabilizes the selective scanning dynamics of SSMs\. We proposeSPDM, a geometry\-aware SSM architecture that realizes this principle through two cooperating mechanisms: a manifold trajectory path that projects dynamically evolving covariance matrices from the SPD manifold to a Euclidean tangent space, and a geometric gating scheme that directly modulates SSM’s internal selective parameters based on geometric signals derived from the manifold trajectory\. The parameterization preserves the linear\-time complexity of the Mamba parallel scan while embedding rich structural constraints, making the architecture preserve prediction accuracy and computational efficiency simultaneously\. Extensive experiments on eleven real\-world benchmark datasets establish state\-of\-the\-art forecasting performance, and further studies confirm that geometrically constrained state\-space dynamics are the dominant architectural factor behind its performance gains\. The code is available at[https://github\.com/XsChen524/spdm](https://github.com/XsChen524/spdm)
###### keywords:
Manifold\-Constrained Dynamics\\sepSPD Manifold\\sepRiemannian Geometry\\sepState\-Space Modeling\\sepDeep Learning\\sepTime Series Forecasting
## 1Introduction
The ability to model structured dependencies among multiple interacting channels is a fundamental challenge in neural sequence modeling\. In complex dynamical systems, whether physical, biological, or manufacturing, multivariate observations continuously record the evolving states of interacting components, yielding time\-varying correlation structures that encode how subsystems influence one another and how the system transitions between operational regimes\[[19](https://arxiv.org/html/2606.09917#bib.bib19)\]\. A central challenge therefore lies in equipping neural architectures with the capacity to represent this evolving spatial correlation structure with geometric fidelity, which is absent in both static adjacency\-based methods and self\-attention mechanisms\.
Existing neural sequence architectures largely treat inter\-channel relationships as an afterthought\. Early statistical and recurrent models treated variables as independent channels, discarding cross\-variable dependency information\. While the Transformer\[[21](https://arxiv.org/html/2606.09917#bib.bib21)\]introduced temporal interaction in global range and spurred a series of forecasting frameworks\[[16](https://arxiv.org/html/2606.09917#bib.bib16),[32](https://arxiv.org/html/2606.09917#bib.bib32)\], its𝒪\(L2\)\\mathcal\{O\}\(L^\{2\}\)self\-attention creates a dual bottleneck: computational infeasibility for long sequences, and a fundamental inability to propagate correlation structure continuously along the temporal dimension\. Linearized alternatives\[[30](https://arxiv.org/html/2606.09917#bib.bib30),[33](https://arxiv.org/html/2606.09917#bib.bib33)\]reduce overhead but sacrifice temporal precision\. Beyond computational considerations, an emerging line of work recognizes that correlation structure possesses intrinsic geometric properties amenable to structured modeling: Koopman\-based approaches\[[22](https://arxiv.org/html/2606.09917#bib.bib22)\]learn spectral operators for nonlinear dynamics, TimesNet\[[25](https://arxiv.org/html/2606.09917#bib.bib25)\]discovers multi\-periodicity through 2D temporal restructuring, and HyperTime\[[31](https://arxiv.org/html/2606.09917#bib.bib31)\]enforces hyperbolic entailment constraints to embed hierarchical channel relationships in non\-Euclidean space\. However, these methods either rely on static geometric priors or apply geometric transformations as auxiliary mechanisms, without modeling the correlation structure as a*continuously evolving geometric trajectory*on a principled geometric manifold\.
Recently, state\-space models \(SSMs\)\[[17](https://arxiv.org/html/2606.09917#bib.bib17)\]have emerged as a principled and efficient alternative for sequence modeling\. The Mamba architecture\[[7](https://arxiv.org/html/2606.09917#bib.bib7)\]introduces selective scanning mechanisms with linear time complexity, achieving superior scalability over Transformer\-based methods, and has been extended to time series forecasting through bidirectional scanning\[[15](https://arxiv.org/html/2606.09917#bib.bib15),[24](https://arxiv.org/html/2606.09917#bib.bib24)\]and inverted embedding\[[16](https://arxiv.org/html/2606.09917#bib.bib16)\]\. However, existing Mamba\-based models mainly perform modeling and prediction through causal scanning on varied dimensions, while even graph\-based methods that explicitly model pairwise variable dependencies\[[23](https://arxiv.org/html/2606.09917#bib.bib23)\]treat the correlation structure as a static graph, both discarding the geometric continuity essential for capturing its temporal evolution\. DyGraphformer\[[8](https://arxiv.org/html/2606.09917#bib.bib8)\]employs dynamic graph convolution to infer time\-varying spatial dependencies, yet still relies on discrete adjacency structures within a Transformer backbone\. RCL\[[27](https://arxiv.org/html/2606.09917#bib.bib27)\]highlights that standard Mamba blocks suffer from insufficient focus on critical time steps, motivating architectures that strengthen selectivity through principled geometric guidance rather than post\-hoc pretraining\.
To address these limitations, we introduce the principle of manifold\-constrained state\-space dynamics\. The central insight is that the evolving cross\-variable correlation structure resides on the manifold of symmetric positive definite \(SPD\) matrices𝒫N\\mathcal\{P\}\_\{N\}, whose geodesic smoothness, tangent space linearity, and Fréchet mean centrality provide principled geometric regularization for SSM\-based forecasting\. We realize this principle throughSPDM, which models the cross\-variable correlation structure as a continuous trajectory on𝒫N\\mathcal\{P\}\_\{N\}, scans it with a dedicated Geometry Mamba, and directly injects resulting geometric signals into the selective parameters of a bidirectional Mamba Inter\-variate Correlations \(VC\) Encoder\. In this way it effectively couples the SSM’s information gating to the evolving manifold geometry\. In contrast to existing approaches that impose static geometric constraints\[[31](https://arxiv.org/html/2606.09917#bib.bib31),[13](https://arxiv.org/html/2606.09917#bib.bib13)\]or model variable relationships as discrete graph structures,SPDMexplicitly intervenes at the SSM parameterization level, making geometry a formative component of the sequence modeling process\.
Our primary contributions are:
- •We introduce the principle of manifold\-constrained state\-space dynamics, demonstrating that treating the evolving cross\-variable correlation structure as a continuous Riemannian trajectory on the SPD manifold provides effective geometric regularization for SSM\-based multivariate forecasting\.
- •We proposeSPDM, a geometry\-aware SSM architecture that realizes this principle by scanning SPD manifold trajectories with a Geometry Mamba in the tangent space and directly modulating Mamba’s selective parameters through geometric gating, maintaining linear time complexity while achieving intrinsic geometric awareness without external conditioning\.
- •We provide comprehensive experimental evidence by conducting systematic studies on eleven real\-world benchmark datasets, confirming that manifold\-constrained dynamics constitute the dominant factor behindSPDM’s state\-of\-the\-art forecasting performance instead of isolated architectural components\.
Through modeling state\-space for the given sequences in non\-Euclidean space and modulating the intrinsic parameters of the scanning process,SPDMachieves efficient, geometric cross\-variate pattern recognition, as well as maintaining considerable scalability given sequences of increasing lengths\. This work establishes a foundation for manifold\-constrained neural dynamics in state\-space architectures, opening avenues for geometric deep learning on structured non\-Euclidean representations\.
## 2Related Work
### 2\.1Mamba and State Space Models for Time Series
SSMs have recently emerged as an efficient paradigm for long\-sequence modeling\. The Mamba architecture\[[7](https://arxiv.org/html/2606.09917#bib.bib7)\]introduces a selective scanning mechanism that enables input\-dependent state transitions with linear\-time complexity, offering significant efficiency advantages over attention\-based models\. For time series forecasting, S\-Mamba\[[24](https://arxiv.org/html/2606.09917#bib.bib24)\]employs bidirectional Mamba branches to capture forward and reverse temporal dependencies, while BiMamba4TS\[[15](https://arxiv.org/html/2606.09917#bib.bib15)\]extends this with specialized architectures for multivariate settings\. RCL\[[27](https://arxiv.org/html/2606.09917#bib.bib27)\]enhances Mamba’s selectivity for time series prediction through token\-level contrastive pretraining, highlighting that standard Mamba blocks suffer from insufficient focus on critical time steps, a limitation that motivates our architectural intervention at the SSM parameterization level\. Beyond time series, Mamba variants have been adopted across diverse domains, including FA\-Mamba\[[28](https://arxiv.org/html/2606.09917#bib.bib28)\]for multimodal remote sensing classification and Geo\-Mamba\[[3](https://arxiv.org/html/2606.09917#bib.bib3)\]for geometry\-informed functional brain organization learning, illustrating the broad applicability of the Mamba architectural paradigm\. However, existing Mamba\-based methods primarily focus on one\-dimensional temporal scanning and treat multivariate interactions as flat sequences\. They lack explicit mechanisms to capture the*geometric structure*of evolving inter\-variable correlations, which is the core focus ofSPDM\.
### 2\.2Riemannian Geometry for Multivariate Modeling
The application of Riemannian geometry to multivariate data analysis has a rich history\. The SPD manifold𝒫N\\mathcal\{P\}\_\{N\}arises naturally when modeling covariance or correlation matrices, with applications spanning brain\-computer interfaces, action recognition, and medical imaging\. Foundational work on Riemannian geometry of matrix geometric means\[[2](https://arxiv.org/html/2606.09917#bib.bib2)\]established key properties of geodesics and barycenters on𝒫N\\mathcal\{P\}\_\{N\}, while the log\-Euclidean framework\[[1](https://arxiv.org/html/2606.09917#bib.bib1)\]defines a family of Riemannian metrics on𝒫N\\mathcal\{P\}\_\{N\}by embedding the manifold in a Euclidean space through the matrix logarithm, offering a computationally efficient alternative to the affine\-invariant metric while preserving key geometric properties such as invariance under inversion and similarity transformations\. Classical methods such as geodesic filtering and Fréchet mean computation on𝒫N\\mathcal\{P\}\_\{N\}provide principled tools for statistical analysis of covariance trajectories\.
In the broader context of manifold\-based time series analysis, Slavakis et al\.\[[20](https://arxiv.org/html/2606.09917#bib.bib20)\]pioneered Riemannian multi\-manifold modeling for brain\-network time series, viewing temporal features as points on a union of Riemannian submanifolds; this line of work was extended by Ye et al\.\[[29](https://arxiv.org/html/2606.09917#bib.bib29)\]to fast sequential clustering on dynamic multilayer networks\. RM\-BLS\[[5](https://arxiv.org/html/2606.09917#bib.bib5)\]utilizes manifold embedding for robust chaotic system prediction through random perturbation approximation, further demonstrating the value of manifold representations for sequential data\. More recently, Riemannian deep learning has extended neural network operations to manifold\-valued data, enabling end\-to\-end learning on SPD matrices\. Nava\-Yazdani\[[18](https://arxiv.org/html/2606.09917#bib.bib18)\]proposed ridge regression directly on Riemannian manifolds for time\-series prediction, providing explicit gradient formulations for manifold\-valued regression via Bézier curves\. However, these geometric methods have not been integrated with efficient state\-space scanning for time series forecasting, a gap thatSPDMdirectly addresses by projecting SPD trajectories to the tangent space and leveraging Mamba’s parallel scan\.
### 2\.3Geometric Deep Learning on Manifolds
Geometric deep learning provides a unified framework for generalizing neural networks to non\-Euclidean domains\. For the SPD manifold specifically, SPDNet\[[10](https://arxiv.org/html/2606.09917#bib.bib10)\]and its variants have introduced layers that respect the Riemannian geometry, such as BiMap, ReEig, and LogEig operations\. Tangent space methods have been employed to map manifold\-valued features to Euclidean spaces where standard architectures can operate\. Recently, ManifoldFormer\[[6](https://arxiv.org/html/2606.09917#bib.bib6)\]extended this paradigm through geodesic\-aware attention and manifold\-constrained neural ODEs for neural dynamics modeling on Riemannian manifolds\. Complementary theoretical studies have employed Riemannian curvature tensors to characterize trained deep networks\[[11](https://arxiv.org/html/2606.09917#bib.bib11)\]and geometry flow to preserve data manifold structure in deep metric learning\[[14](https://arxiv.org/html/2606.09917#bib.bib14)\]\. Recent work on Riemannian SSMs has explored manifold\-constrained recurrent dynamics, but efficient parallel scanning on learned manifold trajectories remains underexplored\.SPDMbridges this gap by injecting the output of Geometry Mamba scanning on trajectory into the mature Mamba VC encoder, achieving both geometric fidelity and computational efficiency\.
### 2\.4Organization
The remainder of this paper is organized as follows\. Section[3](https://arxiv.org/html/2606.09917#S3)presents theSPDMframework, including the manifold trajectory construction, tangent space projection, geometric gating mechanism, and prediction pipeline\. Section[4](https://arxiv.org/html/2606.09917#S4)reports comprehensive experiments on eleven benchmark datasets, covering forecasting effectiveness, ablation studies, efficiency analysis, etc\. Section[5](https://arxiv.org/html/2606.09917#S5)concludes the work\.
Figure 1:Framework ofSPDM
## 3Methodology
### 3\.1Problem Formulation
Let𝐗=\[𝐱1,𝐱2,…,𝐱L\]∈ℝL×N\\mathbf\{X\}=\[\\mathbf\{x\}\_\{1\},\\mathbf\{x\}\_\{2\},\\ldots,\\mathbf\{x\}\_\{L\}\]\\in\\mathbb\{R\}^\{L\\times N\}denote a multivariate time series withLLhistorical time steps andNNvariables\. Each vector𝐱t=\[xt1,xt2,…,xtN\]\\mathbf\{x\}\_\{t\}=\[x\_\{t\}^\{1\},x\_\{t\}^\{2\},\\ldots,x\_\{t\}^\{N\}\]represents the observations ofNNcorrelated signals at time steptt\. Given a historical observation window of lengthLL, the forecasting objective is to predict the nextPPtime steps:
𝐘^=\[𝐱^L\+1,𝐱^L\+2,…,𝐱^L\+P\]=fθ\(𝐗1:L\)\\hat\{\\mathbf\{Y\}\}=\[\\hat\{\\mathbf\{x\}\}\_\{L\+1\},\\hat\{\\mathbf\{x\}\}\_\{L\+2\},\\ldots,\\hat\{\\mathbf\{x\}\}\_\{L\+P\}\]=f\_\{\\theta\}\(\\mathbf\{X\}\_\{1:L\}\)\(1\)wherefθ\(⋅\)f\_\{\\theta\}\(\\cdot\)represents a learnable forecasting model parameterized byθ\\theta, and𝐘^∈ℝP×N\\hat\{\\mathbf\{Y\}\}\\in\\mathbb\{R\}^\{P\\times N\}is the predicted future sequence\.
In multivariate forecasting, a key challenge is capturing evolving temporal and spatial dynamics in given time windows\. At each time steptt, the cross\-variable covariance matrixΣt\\Sigma\_\{t\}encodes the instantaneous correlation patterns; as time advances, the sequence\{Σ1,…,ΣT\}\\\{\\Sigma\_\{1\},\\ldots,\\Sigma\_\{T\}\\\}traces a trajectory that reflects how inter\-variable dependencies evolve\. Traditional approaches either model this as a static graph or rely on attention mechanisms with quadratic complexity, failing to capture the continuous geometric nature of this evolution\.
### 3\.2Overall Architecture
SPDMmodels the evolving spatiotemporal correlation structure as acontinuous Riemannian trajectoryon the SPD manifold𝒫N\\mathcal\{P\}\_\{N\}\. The core insight is that each covariance matrixΣt\\Sigma\_\{t\}of a time window naturally resides on𝒫N\\mathcal\{P\}\_\{N\}, and projecting this trajectory to a Euclidean tangent space enables seamless integration with the efficient Mamba parallel scan\. As illustrated in Figure[1](https://arxiv.org/html/2606.09917#S2.F1), the model comprises two complementary paths:
Path A: SPD Manifold Trajectory Pathconstructs a sliding\-window dynamic covariance sequence on𝒫N\\mathcal\{P\}\_\{N\}, computes the log\-Euclidean Fréchet mean as a reference point, projects each covariance matrix to the tangent space via the logarithmic map, flattens the resulting symmetric matrices into vectors, and processes the tangent vector sequence through a dedicated Geometry Mamba to produce the modulation parameterΔgeo\\Delta^\{\\text\{geo\}\}\.
Path B: Modulated Mamba Encoderprocesses sequences through inverted embedding and a stack of bidirectional Mamba VC encoder layers\. Crucially, the geometric signals from Path A are injected directly into the selective state\-space parameters \(BB,CCby default\) of Mamba VC through dedicated learned projections𝐖Bgeo\\mathbf\{W\}\_\{B\}^\{\\text\{geo\}\}and𝐖Cgeo\\mathbf\{W\}\_\{C\}^\{\\text\{geo\}\}, making it feasible to modulate historical sequence processing and prediction with geometric features\.
This modulation is not merely a data transformation but a principled mechanism for regularizing the latent space of the SSM: by characterizing and constraining the state\-space dynamics on the SPD manifold, we effectively incorporate the geometric consistency of data into forecasting while maintaining remarkable scalability\. The full pipeline is summarized in Algorithm[1](https://arxiv.org/html/2606.09917#alg1)\. Before entering the two paths, the input𝐗∈ℝB×L×N\\mathbf\{X\}\\in\\mathbb\{R\}^\{B\\times L\\times N\}is normalized along the temporal dimension:𝐗~=\(𝐗−𝝁\)/𝝈\\tilde\{\\mathbf\{X\}\}=\(\\mathbf\{X\}\-\\boldsymbol\{\\mu\}\)/\\boldsymbol\{\\sigma\}, where𝝁,𝝈∈ℝN\\boldsymbol\{\\mu\},\\boldsymbol\{\\sigma\}\\in\\mathbb\{R\}^\{N\}are computed per\-variable with population variance\. Then the sequences are passed to separate paths, one of which is to model the geometric information and generate the modulation parameters, while the other one is to scan and modeling the spatial pattern\.
### 3\.3Path A: SPD Manifold Trajectory
Path A constructs and processes the Riemannian trajectory of inter\-variable correlations on the SPD manifold\. The pipeline proceeds through five stages, each designed to preserve geometric fidelity while enabling efficient computation\.
#### 3\.3\.1Dynamic Covariance Construction
Given the normalized input𝐗~\\tilde\{\\mathbf\{X\}\}, we first unfold the sequence along time dimension into overlapping sliding windows to obtain local snapshots of the correlation structure:
𝐗w=Unfold\(𝐗~;W,S\)∈ℝB×Tw×N×W\\mathbf\{X\}\_\{w\}=\\text\{Unfold\}\(\\tilde\{\\mathbf\{X\}\};W,S\)\\in\\mathbb\{R\}^\{B\\times T\_\{w\}\\times N\\times W\}\(2\)whereWWis the window size,SSis the stride, andTw=⌊\(L−W\)/S⌋\+1T\_\{w\}=\\lfloor\(L\-W\)/S\\rfloor\+1is the number of windows\. For datasets with a large number of variables \(e\.g\., ECL withN=321N=321\), an optional low\-rank projection𝐖proj∈ℝR×N\\mathbf\{W\}\_\{\\text\{proj\}\}\\in\\mathbb\{R\}^\{R\\times N\}withR≪NR\\ll Nreduces the effective variable dimension fromNNtoRR\. For each window positiont∈\{1,…,Tw\}t\\in\\\{1,\\ldots,T\_\{w\}\\\}, the instantaneous spatial correlation is captured by the sample covariance matrix as demonstrated in figure[2](https://arxiv.org/html/2606.09917#S3.F2):
Σt=1W−1𝐗~wt\(𝐗~wt\)⊤\+ϵ𝐈∈𝒫N\\Sigma\_\{t\}=\\frac\{1\}\{W\-1\}\\tilde\{\\mathbf\{X\}\}\_\{w\}^\{t\}\(\\tilde\{\\mathbf\{X\}\}\_\{w\}^\{t\}\)^\{\\top\}\+\\epsilon\\mathbf\{I\}\\quad\\in\\mathcal\{P\}\_\{N\}\(3\)where𝐗~wt∈ℝN×W\\tilde\{\\mathbf\{X\}\}\_\{w\}^\{t\}\\in\\mathbb\{R\}^\{N\\times W\}is the mean\-centered window content,ϵ\\epsilonis a small regularization constant \(e\.g\.,10−410^\{\-4\}\) ensuring positive definiteness, and𝐈\\mathbf\{I\}is the identity matrix\. The sequence\{Σ1,…,ΣTw\}\\\{\\Sigma\_\{1\},\\ldots,\\Sigma\_\{T\_\{w\}\}\\\}traces a discrete trajectory on manifold𝒫N\\mathcal\{P\}\_\{N\}\.
Figure 2:SPD covariance geometry along the input sequence on ETTm2 with 7 variables\. \(a\) Sample covariance matrixΣ0\\Sigma\_\{0\}at the first window \(t∈\[0,15\]t\\in\[0,15\]\), exhibiting moderate variances with diagonal range 0\.01\-0\.87 and predominantly positive cross\-variable correlations among the high and mid\-frequency load series \(HUFL\-MULL\)\. \(b\) Covariance matrixΣ20\\Sigma\_\{20\}at the last window \(t∈\[80,95\]t\\in\[80,95\]\)\. The variances of HUFL\-MULL increase by up to5×5\\timescompared to \(a\), also their mutual correlations strengthen dramatically\. The negative cross\-group correlations emerge with the low\-frequency variables, indicating a substantial regime shift in the underlying multivariate dynamics\. \(c\) Pairwise Log\-Euclidean geodesic distance matrixd\(Σi,Σj\)=‖logΣi−logΣj‖Fd\(\\Sigma\_\{i\},\\Sigma\_\{j\}\)=\\\|\\log\\Sigma\_\{i\}\-\\log\\Sigma\_\{j\}\\\|\_\{F\}across all windows\. The structure reveals distinct covariance regimes separated by abrupt transitions, rather than a smooth drift\. Notably, the late windows \(w18w\_\{18\}\-w20w\_\{20\}\) return geometrically close to the early windows \(w0w\_\{0\},w3w\_\{3\}\-w6w\_\{6\};d≈3d\\approx 3\-55\), suggesting near\-periodic dynamics in the covariance structure\. These non\-stationary patterns in the evolving covariance geometry motivate the SPD tangent projection pathway\.
#### 3\.3\.2Tangent Space Projection
To project the trajectory to a flat Euclidean space amenable to Mamba block processing, we first establish a geometrically principled reference point on𝒫N\\mathcal\{P\}\_\{N\}\. The Fréchet mean, Riemannian center of mass, under the log\-Euclidean metric admits a closed\-form solution:
Σ¯=exp\(1Tw∑t=1Twlog\(Σt\)\)∈𝒫N\\bar\{\\Sigma\}=\\exp\\left\(\\frac\{1\}\{T\_\{w\}\}\\sum\_\{t=1\}^\{T\_\{w\}\}\\log\(\\Sigma\_\{t\}\)\\right\)\\quad\\in\\mathcal\{P\}\_\{N\}\(4\)wherelog\(⋅\)\\log\(\\cdot\)andexp\(⋅\)\\exp\(\\cdot\)are the matrix logarithm and matrix exponential computed via eigenvalue decomposition\. Unlike the arithmetic mean used in prior work, the Fréchet mean respects the curved geometry of𝒫N\\mathcal\{P\}\_\{N\}, avoiding projection distortions when covariance matrices differ substantially\. With the reference pointΣ¯\\bar\{\\Sigma\}established, each covariance matrixΣt\\Sigma\_\{t\}is projected to the tangent spaceTΣ¯𝒫NT\_\{\\bar\{\\Sigma\}\}\\mathcal\{P\}\_\{N\}via the logarithmic map:
𝐕t=logΣ¯\(Σt\)=Σ¯1/2log\(Σ¯−1/2ΣtΣ¯−1/2\)Σ¯1/2\\mathbf\{V\}\_\{t\}=\\log\_\{\\bar\{\\Sigma\}\}\(\\Sigma\_\{t\}\)=\\bar\{\\Sigma\}^\{1/2\}\\;\\log\\left\(\\bar\{\\Sigma\}^\{\-1/2\}\\,\\Sigma\_\{t\}\\,\\bar\{\\Sigma\}^\{\-1/2\}\\right\)\\;\\bar\{\\Sigma\}^\{1/2\}\(5\)whereΣ¯1/2\\bar\{\\Sigma\}^\{1/2\}andΣ¯−1/2\\bar\{\\Sigma\}^\{\-1/2\}are the matrix square\-root and its inverse, reused from the Fréchet mean eigendecomposition\. All matrix operations \(log, exp, sqrt, inv\-sqrt\) are computed via eigendecomposition, with eigenvalues clamped to\[ϵ,∞\)\[\\epsilon,\\infty\)for numerical stability\. The resulting tangent vectors𝐕t∈TΣ¯𝒫N\\mathbf\{V\}\_\{t\}\\in T\_\{\\bar\{\\Sigma\}\}\\mathcal\{P\}\_\{N\}are symmetric matrices lying in a Euclidean vector space\. To manage the𝒪\(N3\)\\mathcal\{O\}\(N^\{3\}\)cost of eigendecompositions for datasets with numerous variables, previously mentioned low\-rank projection reduces the effective dimension toR≪NR\\ll N, lowering the per\-eigendecomposition cost to𝒪\(R3\)\\mathcal\{O\}\(R^\{3\}\)\.
Since each tangent vector𝐕t∈ℝN×N\\mathbf\{V\}\_\{t\}\\in\\mathbb\{R\}^\{N\\times N\}is symmetric, we extract only its upper\-triangular elements to eliminate redundancy by𝐯t=triu\(𝐕t\)∈ℝN\(N\+1\)/2\\mathbf\{v\}\_\{t\}=\\text\{triu\}\(\\mathbf\{V\}\_\{t\}\)\\in\\mathbb\{R\}^\{N\(N\+1\)/2\}\. The resulting vector𝐯t\\mathbf\{v\}\_\{t\}encodes the evolution of spatial correlation structure as a trajectory of flat vectors, where each dimension corresponds to a specific pair of variables’ correlation dynamics\.
#### 3\.3\.3Geometry Mamba
The tangent vector sequence is processed by a Geometry Mamba module to capture the temporal dynamics of the geometric trajectory:
𝐡geo=LN\(Mamba\(𝐖in𝐯\)\+𝐖in𝐯\)∈ℝB×Tw×dgeo\\mathbf\{h\}\_\{\\text\{geo\}\}=\\text\{LN\}\(\\text\{Mamba\}\(\\mathbf\{W\}\_\{\\text\{in\}\}\\mathbf\{v\}\)\+\\mathbf\{W\}\_\{\\text\{in\}\}\\mathbf\{v\}\)\\in\\mathbb\{R\}^\{B\\times T\_\{w\}\\times d\_\{\\text\{geo\}\}\}\(6\)where𝐖in∈ℝN\(N\+1\)/2×dgeo\\mathbf\{W\}\_\{\\text\{in\}\}\\in\\mathbb\{R\}^\{N\(N\+1\)/2\\times d\_\{\\text\{geo\}\}\}projects the flattened upper\-triangular vector to the geometry model dimension\. Given the short tangent sequence length \(equal toTwT\_\{w\}\), the Geometry Mamba operates with compact dimensions to maintain its inferential ability and avoid involving noise\. Its output𝐡geo\\mathbf\{h\}\_\{\\text\{geo\}\}encodes the evolving geometric state of inter\-variable correlations, helping with spatial state\-space modeling\.
#### 3\.3\.4Sparse Window Alignment
The Geometry Mamba output𝐡geo∈ℝB×Tw×dgeo\\mathbf\{h\}\_\{\\text\{geo\}\}\\in\\mathbb\{R\}^\{B\\times T\_\{w\}\\times d\_\{\\text\{geo\}\}\}encodes the SPD trajectory at window granularity, while the Mamba VC encoder in Path B operates at the variable token level \(NNpositions\)\. To bridge this granularity gap, aSparse Window Alignmentstrategy is adopted:
𝚫geo\[i\]=\{𝐖proj𝐡geo\[w\],ifi=w⋅Sfor somew∈\[0,Tw\)𝟎,otherwise\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}^\{\[i\]\}=\\begin\{cases\}\\mathbf\{W\}\_\{\\text\{proj\}\}\\mathbf\{h\}\_\{\\text\{geo\}\}^\{\[w\]\},&\\text\{if \}i=w\\cdot S\\text\{ for some \}w\\in\[0,T\_\{w\}\)\\\\ \\mathbf\{0\},&\\text\{otherwise\}\\end\{cases\}\(7\)where𝐖proj∈ℝdgeo×dinner\\mathbf\{W\}\_\{\\text\{proj\}\}\\in\\mathbb\{R\}^\{d\_\{\\text\{geo\}\}\\times d\_\{\\text\{inner\}\}\}projects geometry features to the Mamba inner dimension\. The sparse design is well\-motivated: each covariance matrixΣt\\Sigma\_\{t\}characterizes correlations over a contiguous window, and spreading its tangent vector across positions via interpolation would mix distinct covariance regimes, diluting the geometric signal\. Sparse alignment instead ensures each variable token receives the geometric context most causally relevant to its temporal neighborhood, preserving the native resolution of the SPD trajectory\. Ablation experiments \(Section[4\.3](https://arxiv.org/html/2606.09917#S4.SS3)\) confirm that this approach consistently outperforms linear interpolation alternatives\.
### 3\.4Path B: Mamba VC Encoder with Modulation
Path B processes the normalized time series through Mamba VC encoder layers whose selective state\-space dynamics are adaptively modulated by geometric signals from Path A\. Following the inverted embedding operation, sequences of variates are treated as tokens that encode full temporal history into feature vectors of model dimension\. Modulated Mamba scans bidirectionally along the variable channel to capture cross\-variable dependencies, propagating to feed\-forward network \(FFN\) layer for refinement\.
#### 3\.4\.1Inverted Embedding
Following the inverted embedding paradigm\[[16](https://arxiv.org/html/2606.09917#bib.bib16)\], each variable is treated as a token\. The normalized input𝐗~∈ℝB×L×N\\tilde\{\\mathbf\{X\}\}\\in\\mathbb\{R\}^\{B\\times L\\times N\}is transposed so that the variable axis becomes the primary sequence dimension, enabling the Mamba to scan across variables rather than time steps\. The transposed sequence is then projected to the model dimension:
𝐇enc=LinearL→d\(𝐗~⊤\)∈ℝB×N×d\\mathbf\{H\}\_\{\\text\{enc\}\}=\\text\{Linear\}\_\{L\\to d\}\(\\tilde\{\\mathbf\{X\}\}^\{\\top\}\)\\in\\mathbb\{R\}^\{B\\times N\\times d\}\(8\)Auxiliary time\-feature tokens \(e\.g\., month, day, weekday, hour\) provided inXmarkX\_\{\\text\{mark\}\}for specific datasets are also concatenated as additional variable tokens, bringing the total token count toN=Nvars\+MN=N\_\{\\text\{vars\}\}\+M\.
#### 3\.4\.2Geometry\-Modulated Mamba
The core innovation ofSPDMlies in theGeometry\-Modulated Mambamodule, which directly injects geometric signals from Path A into the selective state\-space parameters of the Mamba VC\. Rather than treating the geometric trajectory as an external conditioning signal applied to the Mamba output, Geometry\-Modulated Mamba intercepts the internal SSM parameterization to make the selective scan itself geometry\-aware\. By modulating𝐁\\mathbf\{B\}and𝐂\\mathbf\{C\}, extracted manifold constraint information directly influences SSM’s input\-to\-state and state\-to\-output pathways, transforming the selective scan from a purely causal inference mechanism into a topology\-aware neural primitive\.
A standard Mamba selective scan operates as follows: the input𝐱∈ℝL×d\\mathbf\{x\}\\in\\mathbb\{R\}^\{L\\times d\}is projected through𝐖in\\mathbf\{W\}\_\{\\text\{in\}\}and split into𝐱,𝐳∈ℝdinner\\mathbf\{x\},\\mathbf\{z\}\\in\\mathbb\{R\}^\{d\_\{\\text\{inner\}\}\}; after depthwise convolution and activation,𝐱\\mathbf\{x\}is projected by𝐖x\\mathbf\{W\}\_\{\\text\{x\}\}to produce the time\-step size𝚫∈ℝdinner\\boldsymbol\{\\Delta\}\\in\\mathbb\{R\}^\{d\_\{\\text\{inner\}\}\}\(via𝐖Δ\\mathbf\{W\}\_\{\\Delta\}with rankrr\) and the input/output projection parameters𝐁,𝐂∈ℝS\\mathbf\{B\},\\mathbf\{C\}\\in\\mathbb\{R\}^\{S\}; the selective scan then computes:
𝐡t=exp\(𝚫t𝐀\)𝐡t−1\+𝚫t𝐁𝐱t,𝐲t=𝐂𝐡t\+𝐃𝐱t\\mathbf\{h\}\_\{t\}=\\exp\(\\boldsymbol\{\\Delta\}\_\{t\}\\mathbf\{A\}\)\\mathbf\{h\}\_\{t\-1\}\+\\boldsymbol\{\\Delta\}\_\{t\}\\mathbf\{B\}\\mathbf\{x\}\_\{t\},\\quad\\mathbf\{y\}\_\{t\}=\\mathbf\{C\}\\mathbf\{h\}\_\{t\}\+\\mathbf\{D\}\\mathbf\{x\}\_\{t\}\(9\)where𝐀∈ℝdinner×S\\mathbf\{A\}\\in\\mathbb\{R\}^\{d\_\{\\text\{inner\}\}\\times S\}is a diagonal state transition matrix \(initialized asdiag\(1,2,…,S\)\\text\{diag\}\(1,2,\\ldots,S\)\),𝐁,𝐂∈ℝS\\mathbf\{B\},\\mathbf\{C\}\\in\\mathbb\{R\}^\{S\}are the input and output projection vectors,𝐃∈ℝdinner\\mathbf\{D\}\\in\\mathbb\{R\}^\{d\_\{\\text\{inner\}\}\}is a residual connection, andexp\(𝚫t𝐀\)\\exp\(\\boldsymbol\{\\Delta\}\_\{t\}\\mathbf\{A\}\)is element\-wise exponentiation\.
Geometry\-Modulated Mamba intercepts SSM parameterization*after*the𝐱\\mathbf\{x\}\-projection produces𝐁base\\mathbf\{B\}^\{\\text\{base\}\}and𝐂base\\mathbf\{C\}^\{\\text\{base\}\}\. The geometric signal𝚫geo∈ℝB×N×dinner\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}\\in\\mathbb\{R\}^\{B\\times N\\times d\_\{\\text\{inner\}\}\}is projected through learned transformations𝐖Bgeo,𝐖Cgeo∈ℝdinner×S\\mathbf\{W\}\_\{B\}^\{\\text\{geo\}\},\\mathbf\{W\}\_\{C\}^\{\\text\{geo\}\}\\in\\mathbb\{R\}^\{d\_\{\\text\{inner\}\}\\times S\}and additively injected into the SSM input/output projection parameters, where each projection comprises a two\-layer MLP with GELU activation:
𝐁=𝐁base\+𝐖Bgeo\(𝚫geo\),𝐂=𝐂base\+𝐖Cgeo\(𝚫geo\)\\mathbf\{B\}=\\mathbf\{B\}^\{\\text\{base\}\}\+\\mathbf\{W\}\_\{B\}^\{\\text\{geo\}\}\(\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}\),\\quad\\mathbf\{C\}=\\mathbf\{C\}^\{\\text\{base\}\}\+\\mathbf\{W\}\_\{C\}^\{\\text\{geo\}\}\(\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}\)\(10\)This design has a clear physical interpretation: by modulating𝐁\\mathbf\{B\}and𝐂\\mathbf\{C\}, the geometric trajectory directly controls which information enters and exits SSM’s hidden state𝐡t\\mathbf\{h\}\_\{t\}and to what extent\. When the covariance structure undergoes a shift, the geometric signal amplifies the input projection for variables whose correlation patterns are changing, while suppressing contributions from stable regions\. The additive injection is applied identically in both the forward and reverse Mamba directions, ensuring bidirectional geometric awareness\.
Consequently, the geometric gating constitutes an architectural intervention at the SSM parameterization level: it couples the Mamba’s selection mechanism to the evolving covariance geometry of the input distribution, enabling the latent state𝐡t\\mathbf\{h\}\_\{t\}to adapt its information retention and retrieval dynamics in response to structural changes in the underlying recognized pattern\. Alternative injection designs \(bounded scaling,Δ\\Deltamodulation\) and alignment strategies are evaluated in Section[4\.3](https://arxiv.org/html/2606.09917#S4.SS3)\.
Algorithm 1Forecasting Pipeline ofSPDM0:Input
X∈ℝB×L×NX\\in\\mathbb\{R\}^\{B\\times L\\times N\},
Xmark∈ℝB×L×MX\_\{mark\}\\in\\mathbb\{R\}^\{B\\times L\\times M\}
X~←InstanceNorm\(X\)\\tilde\{X\}\\leftarrow\\text\{InstanceNorm\}\(X\)
⊳\\trianglerightPath A: SPD Manifold Trajectory
Xw←Unfold\(X~;W,S\)X\_\{w\}\\leftarrow\\text\{Unfold\}\(\\tilde\{X\};W,S\)⊳\[B,Tw,N,W\]\\triangleright\[B,T\_\{w\},N,W\]
ifLow\-rank \(
R\>0R\>0\)then
Xw←LinearN→R\(Xw\)X\_\{w\}\\leftarrow\\text\{Linear\}\_\{N\\to R\}\(X\_\{w\}\)⊳\[B,Tw,R,W\]\\triangleright\[B,T\_\{w\},R,W\]
endif
D←RD\\leftarrow Rif low\-rank else
NN
Σt←1W−1X~wt\(X~wt\)⊤\+ϵ𝐈\\Sigma\_\{t\}\\leftarrow\\frac\{1\}\{W\-1\}\\tilde\{X\}\_\{w\}^\{t\}\(\\tilde\{X\}\_\{w\}^\{t\}\)^\{\\top\}\+\\epsilon\\mathbf\{I\}⊳\[B,Tw,D,D\]\\triangleright\[B,T\_\{w\},D,D\]
Σ¯←MatrixExp\(mean\(log\(Σt\)\)\)\\bar\{\\Sigma\}\\leftarrow\\text\{MatrixExp\}\\big\(\\text\{mean\}\(\\log\(\\Sigma\_\{t\}\)\)\\big\)⊳\\trianglerightLog\-Euclidean Fréchet mean;Σ¯\\bar\{\\Sigma\},𝐕\\mathbf\{V\},𝝀\\boldsymbol\{\\lambda\}returned jointly
Σ¯1/2←𝐕diag\(𝝀\)𝐕⊤\\bar\{\\Sigma\}^\{1/2\}\\leftarrow\\mathbf\{V\}\\text\{diag\}\(\\sqrt\{\\boldsymbol\{\\lambda\}\}\)\\mathbf\{V\}^\{\\top\},
Σ¯−1/2←𝐕diag\(1/𝝀\)𝐕⊤\\bar\{\\Sigma\}^\{\-1/2\}\\leftarrow\\mathbf\{V\}\\text\{diag\}\(1/\\sqrt\{\\boldsymbol\{\\lambda\}\}\)\\mathbf\{V\}^\{\\top\}⊳\\trianglerightReuses eigendecomposition from Fréchet mean
𝐕t←Σ¯1/2⋅log\(Σ¯−1/2ΣtΣ¯−1/2\)⋅Σ¯1/2\\mathbf\{V\}\_\{t\}\\leftarrow\\bar\{\\Sigma\}^\{1/2\}\\cdot\\log\(\\bar\{\\Sigma\}^\{\-1/2\}\\Sigma\_\{t\}\\bar\{\\Sigma\}^\{\-1/2\}\)\\cdot\\bar\{\\Sigma\}^\{1/2\}⊳\\trianglerightLogarithmic map
𝐯t←triu\(𝐕t\)\\mathbf\{v\}\_\{t\}\\leftarrow\\text\{triu\}\(\\mathbf\{V\}\_\{t\}\)⊳\[B,Tw,D\(D\+1\)/2\]\\triangleright\[B,T\_\{w\},D\(D\+1\)/2\]
𝐡geo←GeometryMamba\(𝐯\)\\mathbf\{h\}\_\{\\text\{geo\}\}\\leftarrow\\text\{GeometryMamba\}\(\\mathbf\{v\}\)⊳\[B,Tw,dgeo\]\\triangleright\[B,T\_\{w\},d\_\{\\text\{geo\}\}\]
⊳\\trianglerightSparse Window Alignment
𝚫geo←SparseAlign\(𝐖proj⋅𝐡geo\)\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}\\leftarrow\\text\{SparseAlign\}\(\\mathbf\{W\}\_\{\\text\{proj\}\}\\cdot\\mathbf\{h\}\_\{\\text\{geo\}\}\)⊳\[B,N,dinner\]\\triangleright\[B,N,d\_\{\\text\{inner\}\}\]
⊳\\trianglerightPath B: Mamba VC Encoder
𝐇enc←DataEmbed\_inv\(X~,Xmark\)\\mathbf\{H\}\_\{\\text\{enc\}\}\\leftarrow\\text\{DataEmbed\\\_inv\}\(\\tilde\{X\},X\_\{mark\}\)⊳\[B,N,d\]\\triangleright\[B,N,d\]
for
l=1l=1to
EEdo
𝐎←GMambafwd\(𝐇enc,𝚫geo\)\\mathbf\{O\}\\leftarrow\\text\{GMamba\}\_\{\\text\{fwd\}\}\(\\mathbf\{H\}\_\{\\text\{enc\}\},\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}\)⊳\\trianglerightBB\+CCgeometric injection
𝐎\+=Flip\(GMambarev\(Flip\(𝐇enc\),Flip\(𝚫geo\)\)\)\\mathbf\{O\}\\mathrel\{\+\}=\\text\{Flip\}\(\\text\{GMamba\}\_\{\\text\{rev\}\}\(\\text\{Flip\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}\),\\text\{Flip\}\(\\boldsymbol\{\\Delta\}\_\{\\text\{geo\}\}\)\)\)
𝐇enc←LayerNorm\(𝐇enc\+𝐎\)\\mathbf\{H\}\_\{\\text\{enc\}\}\\leftarrow\\text\{LayerNorm\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}\+\\mathbf\{O\}\)
𝐇enc←LayerNorm\(𝐇enc\+FFN\(𝐇enc\)\)\\mathbf\{H\}\_\{\\text\{enc\}\}\\leftarrow\\text\{LayerNorm\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}\+\\text\{FFN\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}\)\)
endfor
𝐇enc←LayerNorm\(𝐇enc\)\\mathbf\{H\}\_\{\\text\{enc\}\}\\leftarrow\\text\{LayerNorm\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}\)
⊳\\trianglerightPrediction
Y^←Lineard→P\(𝐇enc\[:,:N,:\]\)\\hat\{Y\}\\leftarrow\\text\{Linear\}\_\{d\\to P\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}^\{\[:,:N,:\]\}\)⊳\[B,N,P\]\\triangleright\[B,N,P\]
Y^←Denorm\(Y^\)\\hat\{Y\}\\leftarrow\\text\{Denorm\}\(\\hat\{Y\}\)
Output
Y^∈ℝB×P×N\\hat\{Y\}\\in\\mathbb\{R\}^\{B\\times P\\times N\}
#### 3\.4\.3Bidirectional Mamba VC Encoding
Multiple encoder layers are stacked, with each of them applying Geometry\-Modulated Mamba in both forward and reverse directions along the variable channel for bidirectional cross\-variable coverage\. The Mamba VC employs a compact depthwise convolution kernel since the spatial dimension lacks the smooth continuity that benefits from larger kernels\. The bidirectional scanning and modeling can be expressed as:
𝐎=GMambafwd\(𝐇\)\+Flip\(GMambarev\(Flip\(𝐇\)\)\)\\mathbf\{O\}=\\text\{GMamba\}\_\{\\text\{fwd\}\}\(\\mathbf\{H\}\)\+\\text\{Flip\}\\big\(\\text\{GMamba\}\_\{\\text\{rev\}\}\(\\text\{Flip\}\(\\mathbf\{H\}\)\)\\big\)\(11\)whereFlip\(⋅\)\\text\{Flip\}\(\\cdot\)reverses the order of variable tokens, enabling the SSM to aggregate cross\-variable information from both directions\. The bidirectional output is combined with a residual connection, followed by LayerNorm and an FFN with GELU activation:
𝐇′=LN\(𝐇\+𝐎\),𝐇′′=LN\(𝐇′\+FFN\(𝐇′\)\)\\mathbf\{H\}^\{\\prime\}=\\text\{LN\}\(\\mathbf\{H\}\+\\mathbf\{O\}\),\\quad\\mathbf\{H\}^\{\\prime\\prime\}=\\text\{LN\}\(\\mathbf\{H\}^\{\\prime\}\+\\text\{FFN\}\(\\mathbf\{H\}^\{\\prime\}\)\)\(12\)whereFFNapplies dense non\-linear connections to refine the cross\-variable representations of each token\. The residual connections preserve gradient flow and enable identity\-preserving information propagation through deep layers, while LayerNorm enhances convergence and training stability by standardizing activations to a Gaussian distribution\.
### 3\.5Prediction
After a stack of encoder layers, a concluding LayerNorm standardizes the latent representations𝐇enc∈ℝB×N′×d\\mathbf\{H\}\_\{\\text\{enc\}\}\\in\\mathbb\{R\}^\{B\\times N^\{\\prime\}\\times d\}and ensures stable activation statistics entering the prediction head\. Then a linear projector maps each variable token’s representation to the full prediction horizon:
𝐘^=Lineard→P\(𝐇enc\)∈ℝB×N×P\\hat\{\\mathbf\{Y\}\}=\\text\{Linear\}\_\{d\\to P\}\(\\mathbf\{H\}\_\{\\text\{enc\}\}\)\\in\\mathbb\{R\}^\{B\\times N\\times P\}\(13\)A permute operation restores the conventional time\-first layout\[B,P,N\]\[B,P,N\]from inverted embedding diagram\. Finally, a de\-normalization recovers the original data scale with𝐘^′=𝐘^⋅𝝈\+𝝁∈ℝB×P×N\\hat\{\\mathbf\{Y\}\}^\{\\prime\}=\\hat\{\\mathbf\{Y\}\}\\cdot\\boldsymbol\{\\sigma\}\+\\boldsymbol\{\\mu\}\\in\\mathbb\{R\}^\{B\\times P\\times N\}\. The operations in the prediction phase ensureSPDMoutputs predictions with considerable efficiency and accuracy, while avoiding computational bottlenecks or factors that interfere with the training process\.
### 3\.6Model Complexity Analysis
The manifold\-constrained SSM framework provides theoretical guarantees for stable state propagation: since the Fréchet mean of a set of SPD matrices remains on𝒫N\\mathcal\{P\}\_\{N\}, and the tangent space is isomorphic to a Euclidean vector space, the discretized SSM state transitions enjoy the same numerical stability properties as standard Mamba, with geometry\-induced perturbations bounded by the spectral radius of the projected tangent vectors\.
Path A \(SPD Trajectory\) involves sliding\-window covariance construction costing𝒪\(Tw⋅D2⋅W\)\\mathcal\{O\}\(T\_\{w\}\\cdot D^\{2\}\\cdot W\)whereD=ND=Nwithout low\-rank orD=RD=Rwith low\-rank projection, and2Tw\+12T\_\{w\}\+1eigendecompositions onD×DD\\times Dmatrices costing𝒪\(Tw⋅D3\)\\mathcal\{O\}\(T\_\{w\}\\cdot D^\{3\}\)\. Overall Path A complexity is𝒪\(Tw⋅D2⋅W\+Tw⋅D3\)\\mathcal\{O\}\(T\_\{w\}\\cdot D^\{2\}\\cdot W\+T\_\{w\}\\cdot D^\{3\}\), reducible to𝒪\(Tw⋅R3\)\\mathcal\{O\}\(T\_\{w\}\\cdot R^\{3\}\)via low\-rank projection\. Path B \(Mamba VC Encoder\) costs𝒪\(E⋅N⋅d⋅\(dinner\+dff\)\)\\mathcal\{O\}\(E\\cdot N\\cdot d\\cdot\(d\_\{\\text\{inner\}\}\+d\_\{\\text\{ff\}\}\)\), which is linear in the variable countNNand independent of the original temporal lengthLL, with the geometric injection projections adding𝒪\(N⋅dinner⋅S\)\\mathcal\{O\}\(N\\cdot d\_\{\\text\{inner\}\}\\cdot S\)per layer\. Overall,SPDMmaintains linear complexity with respect to all key dimensions, avoiding𝒪\(L2\)\\mathcal\{O\}\(L^\{2\}\)attention costs\. The selective scan leverages a work\-efficient parallel associative scan with𝒪\(logN\)\\mathcal\{O\}\(\\log N\)parallel depth and𝒪\(N⋅dinner⋅S\)\\mathcal\{O\}\(N\\cdot d\_\{\\text\{inner\}\}\\cdot S\)total work\.
## 4Experiments
We conduct experiments to answer the following research questions:RQ1:How doesSPDMcompare against state\-of\-the\-art baselines in overall forecasting accuracy?RQ2:What is the contribution of each architectural component toSPDM’s performance?RQ3:How doesSPDMbalance forecasting accuracy with computational efficiency?RQ4:How robust isSPDMunder varying levels of input noise?RQ5:How does varying the lookback window length affectSPDM’s forecasting accuracy?RQ6:How sensitive isSPDM’s performance to variations in key hyperparameters?
### 4\.1Experimental Setup
All experiments were conducted on an Ubuntu 24\.04 server with NVIDIA RTX 4090/5090 GPUs, running Python 3\.12, CUDA 12\.8, PyTorch 2\.8\.0, and Mamba 2\.3\.1\. We evaluateSPDMusing eleven publicly available benchmark datasets as summarized in Table[1](https://arxiv.org/html/2606.09917#S4.T1)\. These datasets span diverse application domains, variable counts \(from 7 to 883\), and temporal granularities \(from 5 minutes to 1 week\), providing a comprehensive testbed for evaluating both forecasting accuracy and scalability\. MSE and MAE are used as evaluation metrics\.
We compareSPDMagainst eight leading models spanning diverse architectural paradigms:S\-Mamba\[[24](https://arxiv.org/html/2606.09917#bib.bib24)\], a bidirectional Mamba with inverted embedding\.iTransformer\[[16](https://arxiv.org/html/2606.09917#bib.bib16)\]treats each variate as a token through inverted embedding with self\-attention;PatchTST\[[9](https://arxiv.org/html/2606.09917#bib.bib9)\], which segments sequences into patches for channel\-independent modeling; andCrossformer\[[32](https://arxiv.org/html/2606.09917#bib.bib32)\], which employs a two\-stage attention mechanism across time and variable dimensions\. Additional baselines includeTiDE\[[4](https://arxiv.org/html/2606.09917#bib.bib4)\], a simple MLP\-based encoder\-decoder with dense residual connections;TimesNet\[[25](https://arxiv.org/html/2606.09917#bib.bib25)\], which transforms 1D time series into 2D tensors for multi\-periodicity modeling;DLinear\[[30](https://arxiv.org/html/2606.09917#bib.bib30)\], a decomposition\-based linear model that serves as a competitive simplicity baseline; andAutoformer\[[26](https://arxiv.org/html/2606.09917#bib.bib26)\], a Transformer with auto\-correlation mechanism for series decomposition\. Beyond the main effectiveness comparison, we additionally evaluateBiMamba4TS\[[15](https://arxiv.org/html/2606.09917#bib.bib15)\]\(bidirectional Mamba with channel\-independent patching\) andinterPDN\[[12](https://arxiv.org/html/2606.09917#bib.bib12)\]\(patch\-based decomposition with RevIN and contrastive learning\) in the efficiency comparison \(Section[4\.4](https://arxiv.org/html/2606.09917#S4.SS4)\) and the lookback length study \(Section 4\.6\)\.
Table 1:Overview of 11 publicly available datasets\.DatasetVariablesTotal Time StepsSampling IntervalETTh1717,4201 hourETTh2717,4201 hourETTm1769,68015 minutesETTm2769,68015 minutesECL32126,3041 hourExchange87,5881 dayWeather2152,69610 minutesPEMS0335826,2095 minutesPEMS0788328,2245 minutesPEMS0817017,8565 minutesIllness79661 week
### 4\.2Effectiveness
We conduct effectiveness experiments onSPDMwith input sequenceL=96L=96and forecast horizonsP∈\{96,192,P\\in\\\{96,192,336,720\}336,720\\\}\(PEMS datasets useP∈\{12,24,48,96\}P\\in\\\{12,24,48,96\\\}, Illness usesP∈\{24,36,48,60\}P\\in\\\{24,36,48,60\\\}\)\. Table[2](https://arxiv.org/html/2606.09917#S4.T2)presents MSE and MAE comparisons across eleven datasets\.SPDMachieves the best overall average MSE or MAE on ETTh1, ETTh2, Weather, and Illness, and ranks second on ETTm1, ETTm2, and ECL\. On ECL,SPDMattains the best MSE at horizons 192 and 336 and ties for best MAE at 336, while S\-Mamba leads at the shortest and longest horizons to claim the best overall average\. On the PEMS traffic benchmarks,SPDMachieves top\-two MSE at short prediction lengths \(12, 24\) across all three subsets and extends this advantage to horizon 48 on PEMS08\. On low\-variate\-count datasets with pronounced periodicity \(ETT benchmarks, Illness\),SPDMmatches or outperforms PatchTST and S\-Mamba; the geometric pathway’s advantage remains competitive on datasets with richer inter\-variable correlation structure, particularly ECL and PEMS\. These results confirm thatSPDMoffers strong, geometry\-aware forecasting performance on datasets with both sparse correlations and those with informative, evolving inter\-variable correlation dynamics\. Low\-rank covariance projection preserves these benefits at scale\.
The observed performance patterns reflect the geometry\-aware dual\-path design\. Path A models the evolving cross\-variable correlation structure as a Riemannian trajectory on the SPD manifold, with the tangent space projection via the log\-Euclidean Fréchet mean providing a geometrically principled reference whose contribution scales with the richness of inter\-variable dynamics, as evidenced on ECL and the PEMS benchmarks\. Path B injects this geometric signal directly into the selective state\-space parameters \(BB,CC\) of the Mamba VC through the Geometry\-Modulated Mamba mechanism, making the SSM’s input/output projections responsive to spatial topology changes\. The sparse window alignment preserves temporal resolution and avoids information loss during cross\-path information transfer\.
Table 2:Comparison results betweenSPDMand baselines on 11 datasets in effectiveness experiments\.Bolddenotes best MSE/MAE andunderlinedenotes second\-best\. The experimental results of baselines on National Illness are derived from experiments\. Other baseline results sourced from\[[24](https://arxiv.org/html/2606.09917#bib.bib24)\]\.ModelsSPDMS\-Mamba\(2025\)iTransformer\(2024\)PatchTST\(2023\)Crossformer\(2023\)TiDE\(2023\)TimesNet\(2023\)DLinear\(2023\)Autoformer\(2021\)MetricMSEMAEMSEMAEMSEMAEMSEMAEMSEMAEMSEMAEMSEMAEMSEMAEMSEMAEETTm1960\.3290\.3670\.3330\.3680\.3340\.3680\.3290\.3670\.4040\.4260\.3640\.3870\.3380\.3750\.3450\.3720\.5050\.4751920\.3720\.3920\.3760\.3900\.3770\.3910\.3670\.3850\.4500\.4510\.3980\.4040\.3740\.3870\.3800\.3890\.5530\.4963360\.4070\.4130\.4080\.4130\.4260\.4200\.3990\.4100\.5320\.5150\.4280\.4250\.4100\.4110\.4130\.4130\.6210\.5377200\.4710\.4510\.4750\.4480\.4910\.4590\.4540\.4390\.6660\.5890\.4870\.4610\.4780\.4500\.4740\.4530\.6710\.561Avg0\.3950\.4060\.3980\.4050\.4070\.4090\.3870\.4000\.5130\.4950\.4190\.4190\.4000\.4060\.4030\.4070\.5880\.517ETTm2960\.1790\.2640\.1790\.2630\.1800\.2640\.1750\.2590\.2870\.3660\.2070\.3050\.1870\.2670\.1930\.2920\.2550\.3391920\.2460\.3070\.2500\.3090\.2500\.3090\.2410\.3020\.4140\.4920\.2900\.3640\.2490\.3090\.2840\.3620\.2810\.3403360\.3080\.3450\.3120\.3490\.3110\.3480\.3050\.3430\.5970\.5420\.3770\.4220\.3210\.3510\.3690\.4270\.3390\.3727200\.4070\.4030\.4110\.4060\.4120\.4070\.4020\.4001\.7301\.0420\.5580\.5240\.4080\.4030\.5540\.5220\.4330\.432Avg0\.2850\.3300\.2880\.3320\.2880\.3320\.2810\.3260\.7570\.6110\.3580\.4040\.2910\.3330\.3500\.4010\.3270\.371ETTh1960\.3840\.4090\.3860\.4050\.3860\.4050\.4140\.4190\.4230\.4480\.4790\.4640\.3840\.4020\.3860\.4000\.4490\.4591920\.4420\.4400\.4430\.4370\.4410\.4360\.4600\.4450\.4710\.4740\.5250\.4920\.4360\.4290\.4370\.4320\.5000\.4823360\.4840\.4610\.4890\.4680\.4870\.4580\.5010\.4660\.5700\.5460\.5650\.5150\.4910\.4690\.4810\.4590\.5210\.4967200\.5040\.4950\.5020\.4890\.5030\.4910\.5000\.4880\.6530\.6210\.5940\.5580\.5210\.5000\.5190\.5160\.5140\.512Avg0\.4540\.4510\.4550\.4500\.4540\.4480\.4690\.4550\.5290\.5220\.5410\.5070\.4580\.4500\.4560\.4520\.4960\.487ETTh2960\.2940\.3470\.2960\.3480\.2970\.3490\.3020\.3480\.7450\.5840\.4000\.4400\.3400\.3740\.3330\.3870\.3460\.3881920\.3690\.3940\.3760\.3960\.3800\.4000\.3880\.4000\.8770\.6560\.5280\.5090\.4020\.4140\.4770\.4760\.4560\.4523360\.4000\.4190\.4240\.4310\.4280\.4320\.4260\.4331\.0430\.7310\.6430\.5710\.4520\.4520\.5940\.5410\.4820\.4867200\.4060\.4330\.4260\.4440\.4270\.4450\.4310\.4461\.1040\.7630\.8740\.6790\.4620\.4680\.8310\.6570\.5150\.511Avg0\.3670\.3980\.3810\.4050\.3830\.4060\.3870\.4070\.9420\.6830\.6110\.5500\.4140\.4270\.5590\.5150\.4500\.459ECL960\.1430\.2390\.1390\.2350\.1480\.2400\.1810\.2700\.2190\.3140\.2370\.3290\.1680\.2720\.1970\.2820\.2010\.3171920\.1580\.2550\.1590\.2550\.1620\.2530\.1880\.2740\.2310\.3220\.2360\.3300\.1840\.2890\.1960\.2850\.2220\.3343360\.1750\.2690\.1760\.2720\.1780\.2690\.2040\.2930\.2460\.3370\.2490\.3440\.1980\.3000\.2090\.3010\.2310\.3387200\.2090\.3020\.2040\.2980\.2250\.3170\.2460\.3240\.2800\.3630\.2840\.3730\.2200\.3200\.2450\.3330\.2540\.361Avg0\.1710\.2660\.1690\.2650\.1780\.2700\.2050\.2900\.2440\.3340\.2520\.3440\.1930\.2950\.2120\.3000\.2270\.338Exchange960\.0860\.2060\.0860\.2070\.0860\.2060\.0880\.2050\.2560\.3670\.0940\.2180\.1070\.2340\.0880\.2180\.1970\.3231920\.1790\.3010\.1820\.3040\.1770\.2990\.1760\.2990\.4700\.5090\.1840\.3070\.2260\.3440\.1760\.3150\.3000\.3693360\.3180\.4090\.3320\.4180\.3310\.4170\.3010\.3971\.2680\.8830\.3490\.4310\.3670\.4480\.3130\.4270\.5090\.5247200\.8650\.7000\.8670\.7030\.8470\.6910\.9010\.7141\.7671\.0680\.8520\.6980\.9640\.7460\.8390\.6951\.4470\.941Avg0\.3620\.4040\.3670\.4080\.3600\.4030\.3660\.4040\.9400\.7070\.3700\.4130\.4160\.4430\.3540\.4140\.6130\.539Weather960\.1660\.2090\.1690\.2100\.1740\.2140\.1770\.2180\.1580\.2300\.2020\.2610\.1720\.2200\.1960\.2550\.2660\.3361920\.2120\.2530\.2140\.2530\.2210\.2540\.2250\.2590\.2060\.2770\.2420\.2980\.2190\.2610\.2370\.2960\.3070\.3673360\.2720\.2960\.2740\.2960\.2780\.2960\.2780\.2970\.2720\.3350\.2870\.3350\.2800\.3060\.2830\.3350\.3590\.3957200\.3500\.3450\.3530\.3480\.3580\.3470\.3540\.3480\.3980\.4180\.3510\.3860\.3650\.3590\.3450\.3810\.4190\.428Avg0\.2500\.2760\.2530\.2770\.2580\.2780\.2590\.2800\.2590\.3150\.2700\.3200\.2590\.2860\.2650\.3170\.3380\.382PEMS03120\.0670\.1730\.0650\.1690\.0710\.1740\.0990\.2160\.0900\.2030\.1780\.3050\.0850\.1920\.2900\.3780\.8840\.711240\.0920\.2040\.0870\.1960\.0930\.2010\.1420\.2590\.1210\.2400\.2570\.3710\.1180\.2230\.3200\.3980\.8340\.692480\.1420\.2570\.1330\.2430\.1250\.2360\.2110\.3190\.2020\.3170\.3790\.4630\.1550\.2600\.3530\.4150\.9410\.723960\.2230\.3270\.2010\.3050\.1640\.2750\.2690\.3700\.2620\.3670\.4900\.5390\.2280\.3170\.3560\.4130\.8820\.717Avg0\.1310\.2400\.1210\.2280\.1130\.2220\.1800\.2910\.1690\.2820\.3260\.4190\.1460\.2480\.3300\.4010\.8850\.711PEMS07120\.0620\.1630\.0630\.1590\.0670\.1650\.0950\.2070\.0940\.2000\.1730\.3040\.0820\.1810\.1480\.2720\.4240\.491240\.0850\.1920\.0810\.1830\.0880\.1900\.1500\.2620\.1390\.2470\.2710\.3830\.1010\.2040\.2240\.3400\.4590\.509480\.1210\.2310\.0930\.1920\.1100\.2150\.2530\.3400\.3110\.3690\.4460\.4950\.1340\.2380\.3550\.4370\.6460\.610960\.1830\.2930\.1170\.2170\.1390\.2450\.3460\.4040\.3960\.4420\.6280\.5770\.1810\.2790\.4520\.5040\.9120\.748Avg0\.1130\.2200\.0880\.1880\.1010\.2040\.2110\.3030\.2350\.3150\.3800\.4400\.1240\.2260\.2950\.3880\.6100\.590PEMS08120\.0770\.1800\.0760\.1780\.0790\.1820\.1680\.2320\.1650\.2140\.2270\.3430\.1120\.2120\.1540\.2760\.4360\.485240\.1090\.2160\.1040\.2090\.1150\.2190\.2240\.2810\.2150\.2600\.3180\.4090\.1410\.2380\.2480\.3530\.4670\.502480\.1780\.2760\.1670\.2280\.1860\.2350\.3210\.3540\.3150\.3550\.4970\.5100\.1980\.2830\.4400\.4700\.9660\.733960\.2870\.3480\.2450\.2800\.2210\.2670\.4080\.4170\.3770\.3970\.7210\.5920\.3200\.3510\.6740\.5651\.3850\.915Avg0\.1630\.2550\.1480\.2240\.1500\.2260\.2800\.3210\.2680\.3060\.4410\.4640\.1930\.2710\.3790\.4160\.8140\.659Illness241\.3120\.7241\.7070\.7921\.5300\.7962\.3420\.9824\.3951\.4292\.5341\.0162\.3330\.9183\.4211\.2894\.1271\.445361\.1030\.6771\.3180\.7341\.4980\.7692\.2740\.9684\.0961\.3242\.4910\.9781\.5410\.7772\.8591\.1293\.3231\.222481\.1800\.6981\.4320\.7771\.4560\.7832\.1250\.9354\.0441\.3082\.3310\.9581\.5020\.7872\.6331\.0893\.2581\.224601\.5590\.7951\.9300\.9181\.8430\.8872\.3290\.9994\.2961\.3572\.4921\.0041\.7880\.8752\.9371\.1743\.4761\.281Avg1\.2880\.7241\.5970\.8051\.5820\.8092\.2680\.9714\.2081\.3552\.4620\.9891\.7910\.8392\.9621\.1703\.5461\.293–36/3830/4418/2127/43/00/03/76/70/0
Table 3:Ablation study results forSPDMacross ETTh2, ETTm1, Weather, ECL, and PEMS08 datasets\.Bolddenotes the best result within each metric and prediction horizon\. Prediction lengths:12/24/48/96 for PEMS08, 96/192/336/720 for others\.VariantLenETTh2ETTm1WeatherECLPEMS08MSEMAEMSEMAEMSEMAEMSEMAEMSEMAEFull Model96/120\.3000\.3510\.3330\.3680\.1680\.2110\.1570\.2510\.0770\.180192/240\.3820\.4010\.3790\.3950\.2170\.2570\.1740\.2650\.1080\.215336/480\.4100\.4270\.4110\.4160\.2740\.2970\.1930\.2860\.1770\.276720/960\.4300\.4470\.4780\.4550\.3500\.3470\.2360\.3220\.2940\.351Avg0\.3810\.4070\.4000\.4090\.2520\.2780\.1900\.2810\.1640\.256α⋅tanh\\alpha\\cdot\\tanhInjection96/120\.2980\.3490\.3360\.3700\.1690\.2130\.1850\.2740\.0780\.181192/240\.3830\.4020\.3810\.3970\.2190\.2560\.1930\.2830\.1100\.216336/480\.4080\.4280\.4120\.4170\.2800\.2990\.2270\.3180\.1910\.286720/960\.4270\.4460\.4780\.4540\.3560\.3490\.2660\.3470\.3140\.370Avg0\.3790\.4060\.4020\.4100\.2560\.2790\.2180\.3060\.1730\.263w/oBB\+CCInjection96/120\.2980\.3490\.3370\.3700\.1690\.2120\.1810\.2700\.0790\.182192/240\.3830\.4020\.3830\.3990\.2190\.2560\.1930\.2830\.1130\.218336/480\.4080\.4270\.4120\.4170\.2810\.2990\.2170\.3080\.1880\.284720/960\.4250\.4450\.4780\.4550\.3560\.3490\.2660\.3470\.3220\.374Avg0\.3790\.4060\.4020\.4100\.2560\.2790\.2140\.3020\.1760\.265withΔ\\DeltaModulation96/120\.3080\.3560\.3440\.3750\.1760\.2210\.1750\.2680\.0770\.181192/240\.3830\.4010\.4010\.4090\.2170\.2570\.1920\.2840\.1150\.221336/480\.4120\.4270\.4200\.4230\.2730\.2960\.2150\.3080\.1940\.293720/960\.4200\.4420\.5060\.4720\.3490\.3460\.2630\.3460\.3040\.354Avg0\.3810\.4070\.4180\.4200\.2540\.2800\.2110\.3020\.1730\.262Linear Interpolation96/120\.3010\.3510\.3450\.3760\.1680\.2100\.1770\.2680\.0790\.183192/240\.3830\.4010\.3780\.3930\.2180\.2550\.1910\.2820\.1120\.216336/480\.4150\.4270\.4130\.4190\.2770\.2980\.2150\.3070\.1970\.288720/960\.4270\.4450\.4800\.4560\.3530\.3480\.2620\.3450\.3230\.373Avg0\.3820\.4060\.4040\.4110\.2540\.2780\.2110\.3010\.1780\.265Geodesic Smoothness Reg96/120\.3000\.3510\.3420\.3750\.1710\.2150\.1880\.2790\.0770\.181192/240\.3820\.4010\.4030\.4110\.2160\.2560\.1930\.2830\.1100\.215336/480\.4100\.4270\.4280\.4290\.2740\.2970\.2160\.3070\.1880\.285720/960\.4300\.4470\.4840\.4600\.3500\.3470\.2650\.3470\.2950\.351Avg0\.3810\.4070\.4140\.4190\.2530\.2790\.2160\.3040\.1670\.258
### 4\.3Ablation Study
Table[3](https://arxiv.org/html/2606.09917#S4.T3)presents comprehensive ablation results on ETTh2, ETTm1, Weather, ECL, and PEMS08 datasets with variable counts ranging from 7 to 321\. For PEMS08, prediction lengths are\{12,24,48,96\}\\\{12,24,48,96\\\}, and they are\{96,192,\\\{96,192,336,720\}336,720\\\}for the other datasets\. We evaluate six architectural variants to assess the contribution of geometric injection design and alignment strategies:
Geometric Injection Variants:\(i\)Full Model: direct additive injection of geometric signals intoBBandCC\(default\)\. \(ii\)α⋅tanh\\alpha\\cdot\\tanhInjection: applies a learnable scale factorα\\alphawithtanh\\tanhbounding to the geometric modulation, providing stability through bounded\(−1,1\)\(\-1,1\)modulation\. \(iii\)Δ\\DeltaModulation: additionally injects geometry into the time\-step size𝚫\\boldsymbol\{\\Delta\}through an MLP alongsideBBandCCinjection, enabling the geometric trajectory to influence the SSM’s forgetting rate\. \(iv\)w/oBB\+CCInjection: removes all geometric modulation to isolate the contribution of the geometry pathway\.
The Full Model achieves the best average MSE and MAE on four of five datasets, confirming that direct, unbounded additiveBB\+CCinjection is the most effective configuration\. RemovingBB\+CCinjection reveals a pronounced gradient of geometric dependency across dataset dimensionalities: on ECL \(N=321N=321\), the average MSE degrades by12\.6%\(0\.190→\\to0\.214\), with the largest gap at horizon 96 \(0\.157→\\to0\.181, \+15\.3%\); on PEMS08 \(N=170N=170\), the degradation is7\.3%\(0\.164→\\to0\.176\)\. In contrast, on low\-variate\-count datasets such as ETTh2 and ETTm1, removing geometric injection causes negligible performance change \(e\.g\., ETTh2: 0\.381→\\to0\.379\), indicating that the geometric trajectory provides limited additional information when the inter\-variable correlation space is small\. This dimensional threshold effect validates the core design hypothesis: the geometric injection is most impactful in high\-dimensional datasets where rich inter\-variable correlation dynamics exist to be modeled\.
Theα⋅tanh\\alpha\\cdot\\tanhvariant yields marginal gains on ETTh2 \(average MSE 0\.379 vs\. 0\.381\), with improvements concentrated at shorter horizons\. However, on ECL its performance degrades substantially \(0\.190→\\to0\.218, \+14\.7%\), demonstrating that bounding the geometric modulation viatanh\\tanhrestricts the injection magnitude when strong geometric signals are needed to modulate SSM parameters in high\-dimensional regimes\. TheΔ\\DeltaModulation variant exhibits a complementary trade\-off: while it underperforms the Full Model on ETTm1 and ECL, it achieves the best results at the longest horizon on ETTh2 \(H720: 0\.430→\\to0\.420\) and ties the Full Model on Weather at long horizons \(H336: 0\.274→\\to0\.273; H720: 0\.350→\\to0\.349\)\. This suggests that modulating the forgetting rate𝚫\\boldsymbol\{\\Delta\}provides complementary temporal control that becomes beneficial specifically at extended prediction horizons, though at the cost of increased optimization difficulty in high\-dimensional settings\.
Alignment and Regularization:\(v\)Linear Interpolationreplaces the sparse window alignment with linear interpolation to map geometric signals in temporal windows to the variate grid\. \(vi\)Geodesic Smoothness Regularizationadds an auxiliary loss penalizing large deviations between consecutive log\-covariance matrices to encourage smoother geometric trajectories on the SPD manifold\.
The default sparse window alignment outperforms linear interpolation in most cases, particularly evident in high\-dimensional datasets and long\-term prediction: ECL improves by11\.1%\(0\.211→\\to0\.190\), PEMS08 by8\.5%\(0\.178→\\to0\.164\), while on low\-variate\-count datasets, where some results prove inferior to the replacement\. This confirms that sparse placement, which preserves the native temporal resolution of each covariance window at its exact position, avoids the information smearing introduced by interpolation\-based alignment across variable tokens\. The Geodesic Smoothness Regularization degrades performance on most datasets \(ECL: 0\.190→\\to0\.216; ETTm1: 0\.400→\\to0\.414\), indicating that the log\-Euclidean Fréchet mean and tangent space projection inherently enforce sufficient geometric smoothness without explicit auxiliary regularization\. The learned covariance trajectory is already constrained by the manifold geometry to evolve coherently, making additional smoothness penalties redundant\.
### 4\.4Efficiency
Figure[3](https://arxiv.org/html/2606.09917#S4.F3)presents a comprehensive efficiency comparison betweenSPDMand representative baselines on ETTm1, Weather, and ECL, spanning forecasting accuracy \(MSE\), training time \(milliseconds per iteration\), and maximum GPU memory allocated\. All experiments use either unified hyperparameter configurations or those suggested in the official repositories\. The main model employs the optimal configuration obtained through hyperparameter search\.
SPDMconsistently achieves the lowest or near\-lowest MSE across all three studies while yielding substantial improvements in both training speed and memory efficiency\. In terms of forecasting accuracy,SPDMattains competitive MSE values of approximately 0\.335 on ETTm1, 0\.168 on Weather, and 0\.182 on ECL\. On training speed,SPDMcompletes one iteration in approximately 23 ms on ECL, compared to roughly 36 ms for interPDN and 110 ms for PatchTST, showing its great scalability and efficiency in handling multivariate forecasting\. The peak memory ofSPDMremains compact: approximately 175 MB on ETTm1 and 326 MB on ECL, demonstrating that incorporating geometric constraints does not introduce significant overhead and maintainsSPDMś efficiency when surpassing state\-of\-the\-art models\.
This efficiency advantage derives from two complementary design properties\. First, Mamba VC encoder is built upon the Mamba SSM, which inherits linear time complexity with respect to sequence length, in contrast to the cost of Transformer and patching baselines\. Second, the SPD manifold trajectory path projects high\-dimensional cross\-variable correlations onto a compact tangent space via the logarithmic map, producing a low\-dimensional sequence that the Geometry Mamba processes with minimal overhead\. For large\-scale datasets, the low\-rank covariance projection bounds the SPD operation cost to𝒪\(R3\)\\mathcal\{O\}\(R^\{3\}\), ensuring computational tractability at scale\.
Figure 3:Comparison of efficiency experimental results betweenSPDMand baselines\.
### 4\.5Robustness
Figure[4](https://arxiv.org/html/2606.09917#S4.F4)presents the robustness analysis ofSPDMon ETTm2, where Gaussian white noise with increasing standard deviationσ∈\{0\.0,0\.1,0\.2,0\.3,0\.5\}\\sigma\\in\\\{0\.0,0\.1,0\.2,0\.3,0\.5\\\}is injected into the input sequences across forecast horizonsP∈\{96,192,336,P\\in\\\{96,192,336,720\}720\\\}\. Both MSE and MAE and their relative percentage changes are reported at each noise level\. Asσ\\sigmarises, the error metrics exhibit a controlled and gradual upward trend consistent with expectation under increasing input perturbation\. Crucially, the degradation rate is tightly constrained: atσ=0\.3\\sigma=0\.3, the MSE increase remains negligible across all horizons; even under strong perturbation atσ=0\.5\\sigma=0\.5, the MSE growth at the longest prediction horizon is limited to approximately 11%\. In stark contrast to models operating directly in the raw input space, which typically suffer performance collapse at comparable noise levels,SPDMmaintains functional forecasting accuracy throughout the entire perturbation range\.
This noise resilience stems from two mechanisms\. First, the per\-window covariance estimation aggregates signals acrossWWtime steps, attenuating zero\-mean random components\. Second, the log\-Euclidean Fréchet mean and tangent space projection act as an implicit geometric regularizer, suppressing high\-frequency perturbations while preserving genuine correlation structure changes\. The geometric modulation signals injected into the SSM parameters \(BB,CC\) thus reflect genuine topological changes in the cross\-variable correlation structure rather than stochastic artifacts\.
Figure 4:Robustness experimental results on ETTm2 under increasing Gaussian noise\.
### 4\.6Lookback Length Study
Figure[5](https://arxiv.org/html/2606.09917#S4.F5)illustrates the effect of progressively increasing the lookback window length on the forecasting accuracy ofSPDMand baseline models across three datasets with diverse physical dynamics\. The experiments use lookback window ranges ofL∈\{48,96,192,336,720\}L\\in\\\{48,96,192,336,720\\\}for ETTm1 and Weather, andL∈\{48,96,144,192\}L\\in\\\{48,96,144,192\\\}for PEMS08 reflecting its shorter temporal granularity\. Across all configurations,SPDMexhibits a clear and smooth monotonic decreasing trend in MSE as the lookback window expands, consistently delivering the best or near\-best forecasting accuracy over the entire range of window sizes\. Notably, on PEMS08,SPDMmaintains strong predictive accuracy and its MSE continues to decline as the sequence length increases, without any sign of performance rebound even at the maximal lookback length of 192\. In contrast, baseline models such as Transformer and Informer exhibit performance saturation or noticeable degradation: their MSE curves plateau at intermediate windows and in several cases rebound upward atL=336L=336orL=720L=720, indicating a fundamental inability to effectively exploit longer historical contexts\. S\-Mamba, while capable of benefiting from extended lookback windows, yields an error curve that remains consistently above that ofSPDMacross the full spectrum of Weather and ECL\.
The robust long\-range modeling capability ofSPDMis grounded in two interconnected design properties\. First, the mature inverted embedding and Mamba VC encoder’s structured state transition preserves spatial dependencies with linear\-time complexity, enablingSPDMto extract effective patterns from extended historical observations without being overwhelmed by redundant or noisy inputs\. Second, the SPD manifold trajectory path provides implicit geometric regularization by mapping the dynamic covariance structure onto𝒫N\\mathcal\{P\}\_\{N\}and modulating the hidden state transition through informative constraints, the model effectively suppresses high\-frequency stochastic perturbations\. The continuous geometric evolution of covariance patterns on the manifold acts as a spatiotemporal smoother, attenuating noise components that lack coherent geometric structure while faithfully preserving the underlying correlation dynamics\.
Figure 5:Prediction error ofSPDMand baselines with increasing lookback length\.
### 4\.7Hyperparameter Sensitivity Study
Figure[6](https://arxiv.org/html/2606.09917#S4.F6)examines the sensitivity ofSPDMto four core hyperparameters through sub\-figures spanning prediction lengthL∈\{96,336\}L\\in\\\{96,336\\\}on Weather\. Those are \(a\) Hidden Dimensiondmodeld\_\{\\text\{model\}\}, \(b\) SPD Regularization constantϵ\\epsilon, \(c\) Geometry Mamba Dimensiondgeod\_\{\\text\{geo\}\}, and \(d\) Covariance RankRRof the low\-rank projection\.
Subfigure \(a\) reveals that moderate hidden dimensionsdmodel=256d\_\{\\text\{model\}\}=256achieve almost the best forecasting accuracy, with excessively large dimensions yielding no additional benefit\. Sub\-figure \(d\) demonstrates that low\-rank covariance projection withR∈\{8,16\}R\\in\\\{8,16\\\}not only substantially reduces the eigendecomposition cost from𝒪\(N3\)\\mathcal\{O\}\(N^\{3\}\)to𝒪\(R3\)\\mathcal\{O\}\(R^\{3\}\), but also achieves accuracy comparable to or exceeding that of the full\-rank counterpart withN=21N=21, indicating that the dominant modes of correlation dynamics are well captured within a compact low\-dimensional subspace\.SPDMalso shows remarkably flat sensitivity toϵ\\epsilonanddgeod\_\{\\text\{geo\}\}\. At the prediction lengthP=96P=96, the MSE fluctuates within a negligible band of 0\.001\-0\.005 across the entire evaluated range of these parameters, demonstrating that the model’s accuracy does not rely on meticulous hyperparameter tuning of these components\. Notably, for high\-dimensional datasets, an excessively smallϵ\\epsilonmay provide insufficient regularization for covariance matrices, rendering them nearly singular and thereby destabilizing the eigen\-decomposition and subsequent matrix logarithm on the SPD manifold, which can ultimately cause training failures\.
Collectively, these results affirm thatSPDM’s superior forecasting performance stems from its foundational geometric inductive bias, the architectural principle of modeling cross\-variable correlations as a continuous Riemannian trajectory on the SPD manifold, rather than from exhaustive hyperparameter search or parameter scaling\. The insensitivity toϵ\\epsilonanddgeod\_\{\\text\{geo\}\}demonstrates that manifold constraints and geometric state\-space dynamic modeling provide a geometrically robust framework that tolerates wide variations in its auxiliary parameterization\.
Figure 6:Results of hyperparameter sensitivity study\.
### 4\.8Case Study
Figure[7](https://arxiv.org/html/2606.09917#S4.F7)presents the scaled prediction results ofSPDM, S\-Mamba, iTransformer, and PatchTST against the ground truth on the ETTm2 dataset, which reflects electricity transformer temperature and load with 15\-minute sampling\. The study covering two representative nodes across four forecasting scenarios: Node 1 with prediction lengths 96 \(Day 1\) and 384 \(Day 3\) represents high useful load, and Node 5 with prediction lengths 96 \(Day 1\) and 192 \(Day 2\) represents low useless load\. These sub\-figures reveal two complementary capabilities that distinguishSPDMfrom competing architectures: noise resilience against high\-frequency localized perturbations, and responsiveness to long\-range structural regime shifts\.
Noise Resilience\.The ground\-truth signal of Node 1 on Day 1 exhibits sharp, localized downward spikes typical of electricity transformer data under sudden load fluctuations\. Baselines such as iTransformer and PatchTST are misled by these stochastic excursions, producing erroneous fluctuations that overfit to the instantaneous noise\. In contrast,SPDMsuccessfully suppresses these spurious transients and closely adheres to the underlying signal\. This is the direct consequence of Path A’s geometric processing: per\-window covariance estimation attenuates zero\-mean random components, while the log\-Euclidean manifold projection at the Fréchet mean functions as an implicit low\-pass filter in the geometric domain\.
Structural Regime\-Shift Tracking\.Node 1 on Day 3 exhibits a pronounced baseline elevation spanning approximately the 14th through 18th hour\. Baseline models like S\-Mamba display a visible lag in responding to this shift, whereasSPDMtracks the transition seamlessly and settles into the post\-shift regime without delay\. Node 5 further revealsSPDM’s precision at complex nonlinear valley dynamics: at inflection points where the signal transitions from descent to ascent, competing models exhibit phase shifts or oversmoothing to varying degrees, whileSPDMachieves competitive spatio\-temporal alignment\. These capabilities derive from the geometric modulation mechanism\. When the cross\-variable covariance trajectory on𝒫N\\mathcal\{P\}\_\{N\}experiences a geometric deflection, the Geometry Mamba encodes this evolution, and Mamba VC injects such dynamics to hidden state transition procedures, enabling the SSM’s memory dynamics to adapt to the changing correlation topology\.
Figure 7:Ground truth and prediction results ofSPDMand baselines on ETTm2\. Node 1 represents high useful load \(HUFL\); Node 5 represents low useless load \(LULL\)\.
## 5Conclusion
This paper introduces the principle of state\-space dynamic modeling with manifold constraints for multivariate time series forecasting\. By treating the evolving cross\-variable correlation structure as a continuous Riemannian trajectory on the SPD manifold and directly injecting geometric signals into the selective parameters of Mamba VC,SPDMdemonstrates that manifold constraints serve as principled geometric regularization, simultaneously improving forecasting accuracy and noise resilience while preserving the linear\-time complexity of the Mamba parallel scan\.
Experiments on eleven real\-world benchmarks establish state\-of\-the\-art forecasting performance, withSPDMachieving the best or near\-best average MSE on datasets with varied physical characteristics\. Systematic ablation reveals that direct additive injection of geometric signals into the SSM’sBBandCCparameters is the dominant performance factor, whose contribution scales with dataset dimensionality; sparse window alignment and the log\-Euclidean Fréchet mean reference point prove essential\. Hyperparameter sensitivity further confirms the model’s robustness\.
By seamlessly integrating manifold\-constrained dynamics with the linear\-complexity selective scan,SPDMestablishes a paradigm for bridging Riemannian geometry and efficient state\-space modeling\. Promising extensions include handling irregularly sampled signals, exploiting higher\-order product manifolds and Grassmannians for richer correlation representations, and developing self\-supervised pre\-training strategies that leverage geometric trajectory representations for cross\-domain transfer learning\.
## References
- Arsigny et al\. \[2007\]Arsigny, V\., Fillard, P\., Pennec, X\., Ayache, N\., 2007\.Geometric means in a novel vector space structure on symmetric positive\-definite matrices\.SIAM Journal on Matrix Analysis and Applications 29, 328–347\.
- Bhatia and Holbrook \[2006\]Bhatia, R\., Holbrook, J\., 2006\.Riemannian geometry and matrix geometric means\.Linear algebra and its applications 413, 594–618\.
- Cao et al\. \[2026\]Cao, Y\., Dan, T\., Yang, Y\., Wu, G\., 2026\.Geo\-mamba: Geometry\-informed state\-space learning of functional brain organization\.Medical image analysis 112, Article 104081\.doi:[10\.1016/j\.media\.2026\.104081](https://arxiv.org/doi.org/10.1016/j.media.2026.104081)\.
- Das et al\. \[2023\]Das, A\., Kong, W\., Leach, A\., Mathur, S\., Sen, R\., Yu, R\., 2023\.Long\-term forecasting with tide: Time\-series dense encoder\.arXiv preprint arXiv:2304\.08424 \.
- Feng et al\. \[2019\]Feng, S\., Ren, W\., Han, M\., Chen, Y\.W\., 2019\.Robust manifold broad learning system for large\-scale noisy chaotic time series prediction: A perturbation perspective\.Neural networks 117, 179–190\.
- Fu et al\. \[2026\]Fu, Y\., He, L\., Chen, Q\., 2026\.Manifoldformer: Geometric deep learning for neural dynamics on riemannian manifolds, in: ICASSP 2026\-2026 IEEE International Conference on Acoustics, Speech and Signal Processing \(ICASSP\), IEEE\. pp\. 6801–6805\.
- Gu and Dao \[2023\]Gu, A\., Dao, T\., 2023\.Mamba: Linear\-time sequence modeling with selective state spaces\.arXiv preprint arXiv:2312\.00752 \.
- Han et al\. \[2025\]Han, S\., Xun, Y\., Cai, J\., Yang, H\., Li, Y\., 2025\.Dygraphformer: Transformer combining dynamic spatio\-temporal graph network for multivariate time series forecasting\.Neural Networks 181, 106776\.
- Huang et al\. \[2024\]Huang, X\., Tang, J\., Shen, Y\., 2024\.Long time series of ocean wave prediction based on patchtst model\.Ocean Engineering 301, 117572\.
- Huang and Van Gool \[2017\]Huang, Z\., Van Gool, L\., 2017\.A riemannian network for SPD matrix learning, in: Proceedings of the AAAI Conference on Artificial Intelligence, pp\. 2036–2042\.
- Kaul and Lall \[2019\]Kaul, P\., Lall, B\., 2019\.Riemannian curvature of deep neural networks\.IEEE transactions on neural networks and learning systems 31, 1410–1416\.
- Kong and Hong \[2025\]Kong, L\., Hong, X\., 2025\.Time series forecasting via direct per\-step probability distribution modeling URL:[https://arxiv\.org/abs/2511\.23260](https://arxiv.org/abs/2511.23260),[arXiv:2511\.23260](http://arxiv.org/abs/2511.23260)\.
- Li et al\. \[2026\]Li, F\., Yu, Y\., Zhou, H\., Dong, R\., 2026\.Dfimformer: Dynamic frequency\-enhanced itransformer for multiscale time series forecasting\.Information systems \(Oxford\) 141, 102747–\.
- Li et al\. \[2023\]Li, Y\., Fei, C\., Wang, C\., Shan, H\., Lu, R\., 2023\.Geometry flow\-based deep riemannian metric learning\.IEEE/CAA Journal of Automatica Sinica 10, 1882–1892\.
- Liang et al\. \[2024\]Liang, A\., Jiang, X\., Sun, Y\., Lu, C\., 2024\.Bi\-mamba4ts: Bidirectional mamba for time series forecasting\.arXiv preprint arXiv:2404\.15772 \.
- Liu et al\. \[2023\]Liu, Y\., Hu, T\., Zhang, H\., Wu, H\., Wang, S\., Ma, L\., Long, M\., 2023\.itransformer: Inverted transformers are effective for time series forecasting\.arXiv preprint arXiv:2310\.06625 \.
- Merrill et al\. \[2024\]Merrill, W\., Petty, J\., Sabharwal, A\., 2024\.The illusion of state in state\-space models\.arXiv preprint arXiv:2404\.08819 \.
- Nava\-Yazdani \[2025\]Nava\-Yazdani, E\., 2025\.Ridge regression on riemannian manifolds for time\-series prediction URL:[https://arxiv\.org/abs/2411\.18339](https://arxiv.org/abs/2411.18339),[arXiv:2411\.18339](http://arxiv.org/abs/2411.18339)\.
- Papageorgiou and Tjortjis \[2025\]Papageorgiou, G\., Tjortjis, C\., 2025\.Adaptive sliding window normalization\.Information systems \(Oxford\) 129, 102515–\.
- Slavakis et al\. \[2017\]Slavakis, K\., Salsabilian, S\., Wack, D\.S\., Muldoon, S\.F\., Baidoo\-Williams, H\.E\., Vettel, J\.M\., Cieslak, M\., Grafton, S\.T\., 2017\.Clustering brain\-network time series by riemannian geometry\.IEEE Transactions on Signal and Information Processing over Networks 4, 519–533\.
- Vaswani et al\. \[2017\]Vaswani, A\., Shazeer, N\., Parmar, N\., Uszkoreit, J\., Jones, L\., Gomez, A\.N\., Kaiser, Ł\., Polosukhin, I\., 2017\.Attention is all you need\.Advances in neural information processing systems 30\.
- Wang et al\. \[2023\]Wang, R\., Dong, Y\., Arik, S\.Ö\., Yu, R\., 2023\.Koopman neural forecaster for time series with temporal distribution shifts URL:[https://arxiv\.org/abs/2210\.03675](https://arxiv.org/abs/2210.03675),[arXiv:2210\.03675](http://arxiv.org/abs/2210.03675)\.
- Wang et al\. \[2024\]Wang, X\., Xing, Q\., Xiao, H\., Ye, M\., 2024\.Contrastive learning enhanced by graph neural networks for universal multivariate time series representation\.Information Systems 125, 102429\.
- Wang et al\. \[2025\]Wang, Z\., Kong, F\., Feng, S\., Wang, M\., Yang, X\., Zhao, H\., Wang, D\., Zhang, Y\., 2025\.Is mamba effective for time series forecasting?Neurocomputing 619, 129178\.
- Wu et al\. \[2023\]Wu, H\., Hu, T\., Liu, Y\., Zhou, H\., Wang, J\., Long, M\., 2023\.Timesnet: Temporal 2d\-variation modeling for general time series analysis, in: The Eleventh International Conference on Learning Representations\.URL:[https://openreview\.net/forum?id=ju\_Uqw384Oq](https://openreview.net/forum?id=ju_Uqw384Oq)\.
- Wu et al\. \[2021\]Wu, H\., Xu, J\., Wang, J\., Long, M\., 2021\.Autoformer: Decomposition transformers with auto\-correlation for long\-term series forecasting\.Advances in neural information processing systems 34, 22419–22430\.
- Yan et al\. \[2025\]Yan, W\., Cao, H\., Tan, Y\., 2025\.Repetitive contrastive learning enhances mamba’s selectivity in time series prediction\.Neural Networks , 108290\.
- Yang et al\. \[2026\]Yang, D\., Li, D\., Ma, J\., Lu, Y\., Li, Y\., Fang, L\., Xie, W\., 2026\.Fa\-mamba: Frequency attention driven mamba for multimodal remote sensing classification\.Neural Networks , 108931\.
- Ye et al\. \[2021\]Ye, C\., Slavakis, K\., Nakuci, J\., Muldoon, S\.F\., Medaglia, J\., 2021\.Fast sequential clustering in Riemannian manifolds for dynamic and time\-series\-annotated multilayer networks\.IEEE Open Journal of Signal Processing 2, 190–206\.
- Zeng et al\. \[2023\]Zeng, A\., Chen, M\., Zhang, L\., Xu, Q\., 2023\.Are transformers effective for time series forecasting?, in: Proceedings of the AAAI conference on artificial intelligence, pp\. 11121–11128\.
- Zhang and Xu \[2026\]Zhang, K\., Xu, Y\., 2026\.Multivariate time series forecasting under hyperbolic space hierarchical constraints URL:[https://openreview\.net/forum?id=vuzL4ImPKW](https://openreview.net/forum?id=vuzL4ImPKW)\.
- Zhang and Yan \[2023\]Zhang, Y\., Yan, J\., 2023\.Crossformer: Transformer utilizing cross\-dimension dependency for multivariate time series forecasting, in: The Eleventh International Conference on Learning Representations\.URL:[https://openreview\.net/forum?id=vSVLM2j9eie](https://openreview.net/forum?id=vSVLM2j9eie)\.
- Zhou et al\. \[2022\]Zhou, T\., Ma, Z\., Wen, Q\., Wang, X\., Sun, L\., Jin, R\., 2022\.Fedformer: Frequency enhanced decomposed transformer for long\-term series forecasting URL:[https://arxiv\.org/abs/2201\.12740](https://arxiv.org/abs/2201.12740),[arXiv:2201\.12740](http://arxiv.org/abs/2201.12740)\.Similar Articles
PIMSM: Physics-Informed Multi-Scale Mamba for Stable Neural Representations under Distribution Shift
This paper proposes Physics-Informed Multi-Scale Mamba (PIMSM), a state-space architecture that aligns model memory with physical timescales to improve robustness under distribution shift in scientific time series, demonstrating improvements on fMRI and weather forecasting tasks.
TSSM: Triaxial State Space Model for Global Station Weather Forecasting with Temporal-Variable-Historical Modeling
This paper proposes TSSM, a triaxial state space model for global station weather forecasting that incorporates historical data aligned by period to improve long-horizon and extreme event prediction. It achieves state-of-the-art performance on the large-scale Weather-5K dataset and demonstrates strong robustness under missing observations.
PESD-TSF: A Period-Aware and Explicit Structured Decomposition Framework for Long-Term Time Series Forecasting
Proposes PESD-TSF, a physics-inspired structured decomposition framework for long-term time series forecasting that addresses periodic perception degradation, trend-noise entanglement, and loss of cross-variable dependencies via multiplicative periodic gating, multi-scale structured encoder, and cross-scale collaborative attention.
Nested Spatio-Temporal Time Series Forecasting
This paper proposes a nested spatiotemporal forecasting framework that uses spectral clustering to construct semantically coherent macro-level regions, which provide top-down guidance for fine-grained micro-level predictions. Experiments on high-dimensional datasets show consistent improvements over state-of-the-art baselines.
SpaR3D-MoE: Adaptive 3D Spatial Reasoning from Sparse Views Meets Geometry-Inductive Mixture-of-Experts
Introduces SpaR3D-MoE, an end-to-end framework for adaptive 3D spatial reasoning from sparse RGB views, using manifold sampling and geometry-inductive mixture-of-experts to achieve state-of-the-art performance on VSI-Bench, ScanQA, and SQA3D.