Skip to main content
QUICK REVIEW

[Paper Review] TimeMachine: A Time Series is Worth 4 Mambas for Long-term Forecasting

Md Atik Ahamed, Qiang Cheng|arXiv (Cornell University)|Mar 14, 2024
Time Series Analysis and ForecastingComputer Science5 citations
TL;DR

TimeMachine uses a quadruple Mamba state-space architecture to capture long-term dependencies in multivariate time series with linear scalability and low memory, unifying channel-mixing and channel-independence handling for improved long-term forecasting.

ABSTRACT

Long-term time-series forecasting remains challenging due to the difficulty in capturing long-term dependencies, achieving linear scalability, and maintaining computational efficiency. We introduce TimeMachine, an innovative model that leverages Mamba, a state-space model, to capture long-term dependencies in multivariate time series data while maintaining linear scalability and small memory footprints. TimeMachine exploits the unique properties of time series data to produce salient contextual cues at multi-scales and leverage an innovative integrated quadruple-Mamba architecture to unify the handling of channel-mixing and channel-independence situations, thus enabling effective selection of contents for prediction against global and local contexts at different scales. Experimentally, TimeMachine achieves superior performance in prediction accuracy, scalability, and memory efficiency, as extensively validated using benchmark datasets. Code availability: https://github.com/Atik-Ahamed/TimeMachine

Motivation & Objective

  • Motivate the need for effective long-term forecasting in multivariate time series (LTSF) with scalability and efficiency constraints.
  • Propose a purely SSM-based architecture to capture long-range dependencies and context-aware predictions.
  • Develop a unified framework that handles both channel-mixing and channel-independence in MTS data.
  • Leverage multi-scale contextual cues and downsampling to enhance long-range dependency modeling.

Proposed method

  • Introduce TimeMachine built on four Mamba state-space modules arranged in two embedding levels (E1, E2) with two Mamba blocks per level.
  • Normalize input via RevIN or Z-score normalization before processing.
  • Support both channel-mixing and channel-independence by reshaping inputs accordingly and using transposed branches to switch modes.
  • Use two-stage embedded representations (E1, E2) to produce fixed-length tokens for Mamba processing, enabling scalable, scale-aware context extraction.
  • Each Mamba branch computes linear projections (B, C, Delta) conditioned on input tokens, followed by a 1D causal convolution, SiLU activation, and a structured SSM; outputs from branches are merged via additive and multiplicative interactions and passed through two-stage output projections P1 and P2 with residual connections.
  • Final prediction y is produced by P2 after concatenating outer and inner Mamba outputs with a skip connection.

Experimental results

Research questions

  • RQ1Can a purely state-space model (SSM) based architecture capture long-range dependencies in multivariate time series with linear scalability and small memory footprint?
  • RQ2How can channel-mixing and channel-independence be unified in a single architecture to maximize forecasting accuracy across diverse MTS datasets?
  • RQ3Do multi-scale, downsampled contextual cues improve long-term forecasting performance compared to point-token or patch-token strategies?
  • RQ4What is the impact of architectural choices (MLP sizes, dropout, residuals) on performance and stability across datasets with varying channel counts?

Key findings

  • TimeMachine achieves superior predictive performance compared with strong baselines on seven standard LTSF benchmarks across multiple forecast horizons.
  • The model demonstrates favorable scalability and memory efficiency, with memory footprints comparable to or better than state-of-the-art methods on large-channel datasets like Traffic and Electricity.
  • TimeMachine benefits from multi-scale context cues and channel-aware processing, effectively leveraging inter-channel correlations when channel-mixing is used and exploiting local context in channel-independence settings.
  • A two-stage embedding (E1, E2) and quadruple Mamba blocks enable robust long-range dependency modeling with linear parameter growth with respect to data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.