TL;DR
While Mamba’s selective state space model (SSM) excels at long-sequence modeling with linear complexity, it lacks a natural, lightweight mechanism to model dependencies across multiple channels. CMamba adapts Mamba for multivariate time series forecasting by redesigning the Mamba block for global temporal context, introducing a lightweight Global Data-Dependent MLP (GDD-MLP) to capture cross-channel interactions, and using Channel Mixup to curb overfitting.
What Problem Does This Paper Address?
Multivariate time series forecasting (MTSF) requires models to capture two orthogonal dimensions: changes across time and interactions across variables (channels).
Recently, State Space Models like Mamba have emerged as efficient linear-time alternatives to Transformers. However, adapting Mamba to MTSF poses significant challenges:
- Weak Cross-Channel Modeling: Vanilla Mamba models sequences along a single dimension. Prior fixes (like treating channels sequentially) introduce heavy computational overhead and impose an artificial sequential ordering on channels.
- The MLP Channel-Mixing Dilemma: In Transformer architectures (such as iTransformer), cross-channel self-attention works well, but standard Multi-Layer Perceptrons (MLPs) degrade performance. Standard MLPs apply fixed weights independent of input data and focus on point-wise interactions, lacking the global receptive field and dynamic data-dependence needed to track variable relationships over time.
- Overfitting in Channel-Dependent (CD) Models: Integrating channel dependencies frequently leads to severe overfitting when test distributions drift.
Methods
CMamba introduces a streamlined architecture that separates and balances temporal and channel modeling:
Input Series ──► Channel Mixup (training only) ──► Patching & Linear Projection
▲
│
┌──────────┴──────────┐
│ M-Mamba Module │ (Cross-Time Modeling)
└──────────┬──────────┘
│
┌──────────┴──────────┐
│ GDD-MLP Module │ (Cross-Channel Modeling)
└──────────┬──────────┘
│
Flatten + Linear ──► Forecast
- M-Mamba (Modified Mamba for Time): Vanilla Mamba includes components designed for local continuity in text/audio that hinder long-term forecasting. The authors strip the local 1D convolution on the input branch, make the state-transition matrix $A$ feature-independent (since temporal dynamics are shared within a patch), and derive the skip parameter $D$ dynamically from the input.
- Global Data-Dependent MLP (GDD-MLP for Channels): To combine the computational efficiency of MLPs with the adaptive power of attention, GDD-MLP pools embeddings across patch features using both average and max pooling to create channel descriptors. A lightweight MLP maps these descriptors to dynamically generated channel weights and biases, scaling the channel representations globally with minimal compute.
- Channel Mixup: Rather than mixing samples across different time steps (which breaks periodicity), Channel Mixup linearly interpolates channels within the same sample during training ($\lambda \sim \mathcal{N}(0, \sigma^2)$). This synthesizes unseen virtual channels while preserving shared temporal dynamics, preventing overfitting.
- L1 Optimization: Training optimizes Mean Absolute Error (MAE / L1) rather than MSE (L2), providing robustness against outliers and preventing vanishing gradients when error magnitudes are small.
Datasets
The authors evaluate CMamba on seven standard real-world multivariate benchmarks across four prediction horizons ($T \in \{96, 192, 336, 720\}$):
- ETT (ETTm1, ETTm2, ETTh1, ETTh2): Electricity transformer temperatures recorded at 15-minute and 1-hour intervals (7 channels).
- Electricity: Hourly electricity consumption of 321 customers over two years.
- Weather: 21 meteorological features logged every 10 minutes.
- Traffic: Hourly road occupancy indicators from 862 freeway sensors in San Francisco.
No new datasets were introduced.
Key Insights and Ideas
- Local operators hurt long-term horizons: In Mamba, 1D convolution overemphasizes local patch interactions. Removing it frees the SSM to prioritize long-range global dependencies, boosting performance especially at longer forecasting horizons (e.g., $T = 720$).
- Data-dependence explains the Attention vs. MLP gap: Standard MLPs fail at cross-channel mixing because their weights are static across samples. By generating MLP weights and biases dynamically from pooled channel descriptors, GDD-MLP matches attention's adaptiveness while adding only ~1.35% FLOPs, even on 862-channel datasets.
- Channel-wise interpolation preserves temporal structure: Standard Mixup across time destroys seasonality and trend. Interpolating across variables acts as an effective regularizer against distribution shifts without damaging phase or frequency information.
Key Results
- State-of-the-Art Accuracy: Across 70 benchmark combinations (7 datasets $\times$ 4 prediction horizons $\times$ 2 metrics), CMamba achieves top-1 performance in 65 settings and ranks top-2 in all 70, consistently outperforming strong baselines like iTransformer, ModernTCN, TimeMixer, and PatchTST.
- Plug-and-Play Versatility: Inserting GDD-MLP and Channel Mixup into existing models (iTransformer, PatchTST, RLinear, TimesNet) yielded an average 5% performance improvement, with PatchTST achieving a 17.8% MSE reduction on Electricity.
- Parameter Efficiency: CMamba maintains a compact footprint (~1.35M parameters on Weather and ~1.65M on Electricity), significantly smaller than PatchTST (10.74M) or ModernTCN (up to 129M).
Limitations and Future Work
- Endogenous Variables Only: The current formulation assumes all input channels are target variables observed over identical historical windows; it does not accommodate exogenous covariates.
- Domain Priors in High-Channel Settings: On datasets with high periodicity and spatial structure (such as Traffic), MAE gains were less pronounced. Incorporating explicit graph topology or spatial priors (e.g., road network connectivity) remains open for future study.
- Hardware Parallelism: While SSMs exhibit linear theoretical complexity, their sequential recurrence still lags behind highly optimized dense matrix multiplications (Transformers/MLPs) in wall-clock training speed on current GPU architectures.
Summary updated