CMamba: Channel Correlation Enhanced State Space Models for Multivariate Time Series Forecasting

Chaolv Zeng, Zhanyu Liu, Guanjie Zheng, Linghe Kong

TL;DR

CMamba adapts the powerful Mamba state space model for multivariate time series forecasting by introducing mechanisms to effectively capture cross-channel correlations. By combining a tailored temporal Mamba module with a highly efficient Global Data-Dependent MLP (GDD-MLP) and a novel Channel Mixup regularization strategy, CMamba achieves state-of-the-art forecasting accuracy with minimal computational overhead.

What Problem Does This Paper Address?

While deep learning architectures like Transformers and CNNs have advanced multivariate time series forecasting (MTSF), researchers face a persistent dilemma: how to balance temporal modeling with cross-channel (variable) correlations. Recently, the Mamba state space model emerged as a highly efficient alternative for sequence modeling, but its vanilla design lacks a clean mechanism to handle cross-channel dependencies.

To capture these interactions, models typically choose between a Channel-Independent (CI) strategy (treating each variable as an isolated series) or a Channel-Dependent (CD) strategy. While CD strategies offer higher representational capacity, simpler mixing approaches like Multi-Layer Perceptrons (MLPs) often degrade performance. The authors discover that standard MLPs fail because they apply static weights regardless of the input data and process time points independently, ignoring the global context. Real-world data demands a channel-mixing approach that is both data-dependent and globally aware, yet computationally lighter than self-attention.

Figure 1: An illustration of the rela- tionship of variables in the ETT dataset. HULL means High UseLess Load and MULL means Middle UseLess Load.

Methods

The authors introduce CMamba, an architecture explicitly designed to decouple and optimize temporal and channel mixing.

Figure 3: The overall framework of CMamba. (a) The Channel Mixup module, active during train- ing, fuses different channels of a sample to create a virtual sample. New samples are normalized via instance norm and segmented into patches before being fed into the model. (b) The CMamba block consists of two parts: the M-Mamba module and GDD-MLP before residual connection. (c) The M-Mamba module captures cross-time dependencies. (d) The GDD-MLP module captures cross- channel dependencies.

The framework consists of three core components:

  1. Modified Mamba (M-Mamba): Instead of treating raw time steps as tokens, CMamba uses a patching mechanism to group time steps into subseries patches, providing localized semantic meaning. The M-Mamba block removes the redundant x-branch convolution, utilizes a feature-independent transition matrix, and introduces a data-dependent skip connection matrix to better suit time series dynamics.
  2. Global Data-Dependent MLP (GDD-MLP): To fix the flaws of standard MLPs, GDD-MLP applies global average and max pooling across the patch embeddings to generate dynamic, data-dependent weights and biases. This allows the network to adaptively adjust channel correlations based on the specific historical context.
  3. Channel Mixup: To prevent the overfitting common to Channel-Dependent models, this training-only data augmentation technique linearly interpolates different channels within the same sample. This creates virtual channels that regularize the model without disrupting shared temporal features like seasonality or periodicity.

Datasets

CMamba was evaluated on seven widely recognized real-world benchmarks:

  • ETT (Electricity Transformer Temperature): Four separate datasets (ETTh1, ETTh2, ETTm1, ETTm2) tracking indicator variables over 15-minute and 1-hour resolutions.
  • Electricity: Hourly electricity consumption data for 321 customers.
  • Weather: 21 meteorological factors recorded every 10 minutes.
  • Traffic: Hourly road occupancy rates from 862 sensors.

Key Insights and Ideas

  • Why MLPs Fail (and How to Fix Them): Standard MLPs struggle with channel mixing because their weights are fixed after training. By dynamically computing weights and biases from the input data via global pooling, GDD-MLP rescues the MLP architecture, turning a performance-degrading component into a performance booster.
  • Intra-Sample Mixup: Traditional Mixup blends different time windows, which destroys temporal patterns like periodicity. Mixing channels within the same time window preserves temporal consistency while forcing the network to generalize to unseen channel combinations.
  • Efficiency over Self-Attention: While models like iTransformer use self-attention for channel mixing, it incurs heavy computational costs. GDD-MLP achieves comparable data-dependency with a fraction of the compute.
Figure 2: A case study on the Electricity dataset using different modules to model cross-channel dependencies. The look-back length is 96. Avg means the average metrics for four horizons.

Key Results

CMamba was benchmarked against 10 state-of-the-art models (including iTransformer, PatchTST, and ModernTCN) across 70 experimental settings (varying datasets, metrics, and prediction horizons):

  • Top Performance: CMamba achieved the top-1 performance in 65 out of 70 settings, and ranked top-2 in all remaining configurations.
  • Extreme Efficiency: The computational overhead of the GDD-MLP module is remarkably low. Even on the massive Traffic dataset (862 channels), adding GDD-MLP only increased the total FLOPs by 1.35%.
  • Versatility: When the GDD-MLP and Channel Mixup modules were retrofitted into other backbones like PatchTST and RLinear, they yielded average performance promotions of up to 17.8%.

Limitations and Future Work

Currently, CMamba focuses exclusively on endogenous variables (predicting future values based solely on the history of those same variables). However, real-world forecasting often depends heavily on exogenous variables (e.g., predicting traffic based on weather or calendar events). Additionally, the model showed more modest improvements on highly periodic datasets like Traffic. The authors suggest that incorporating prior structural knowledge—such as actual road network connectivity graphs—could be a promising direction to further refine cross-channel modeling in highly structured domains.

Summary updated

BibTeX
@misc{zeng2024cmamba,
  author = {Chaolv Zeng and Zhanyu Liu and Guanjie Zheng and Linghe Kong},
  title = {{CMamba: Channel Correlation Enhanced State Space Models for Multivariate Time Series Forecasting}},
  year = {2024},
  eprint = {2406.05316},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05316},
}
Figure