NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unlocking the Power of LSTM for Long Term Time Series Forecasting

Yaxuan Kong, Zepu Wang, Yuqi Nie, Tian Zhou, Stefan Zohren, Yuxuan Liang, Peng Sun, Qingsong Wen

TL;DR

While Long Short-Term Memory (LSTM) networks have largely been displaced by Transformers and MLPs in long-term time series forecasting, this paper introduces P-sLSTM to bring them back to the forefront. By combining the recently proposed scalar LSTM (sLSTM) architecture with patching and channel independence, the authors overcome the inherent "short memory" limitations of recurrent networks, achieving state-of-the-art forecasting accuracy with significantly lower computational overhead.

What Problem Does This Paper Address?

In long-term time series forecasting (TSF), models must look back at a substantial window of historical data to predict far into the future. Historically, Recurrent Neural Networks (RNNs) and LSTMs were the default choice for these sequential tasks. However, they have fallen out of favor, losing the leaderboard race to Transformers and Multi-Layer Perceptrons (MLPs).

Standard LSTMs suffer from two main flaws in TSF:

  1. Statistically Short Memory: Despite being designed for long sequences, they struggle to mathematically memorize information over very long horizons.
  2. Rigid Gating: Their sigmoid-based forget gates lack the flexibility to dynamically revise storage decisions when data patterns shift abruptly.

A recent breakthrough in Natural Language Processing introduced the sLSTM (scalar LSTM), which features exponential gating and a novel multi-head memory mixing mechanism to fix these rigid gating issues. However, the authors of this paper mathematically demonstrate that sLSTM still inherently suffers from a short-memory limitation or risk of numerical overflow when applied directly to long time series data. The challenge is clear: how do we unlock the efficiency of an LSTM-based architecture for long-term forecasting without succumbing to memory decay?

Methods

The authors propose P-sLSTM (Patched scalar LSTM), an architecture that adapts the sLSTM framework for multivariate time series forecasting using two key techniques:

  1. Channel Independence (CI): Instead of mixing all multivariate time series channels together, the model treats each channel as an independent univariate series. All channels share the same sLSTM backbone weights, which drastically reduces overfitting and improves efficiency.
  2. Patching: Instead of feeding the time series step-by-step (which exacerbates the short-memory problem over long horizons), the input sequence is divided into local, overlapping or non-overlapping "patches" (sub-series tokens).

The overall pipeline flows as follows: An input tensor undergoes channel separation, is segmented into patches, projected into an embedding space, processed by stacked sLSTM blocks (featuring exponential gating and multi-head memory mixing), and finally mapped back via a linear layer to generate the future forecast.

Figure 1: Overview of P-sLSTM Architecture (Top Left: sLSTM structure; Bottom Left: sLSTM block (Beck et al. 2024)).

Datasets

The model was evaluated on 5 widely recognized multivariate time series benchmarks:

  • Weather (climatological readings)
  • Electricity (power consumption)
  • Solar (solar energy generation)
  • ETTm1 (Electricity Transformer Temperature)
  • PEMS03 (traffic flow data)

Key Insights and Ideas

  • The Theoretical Catch of sLSTM: The authors provide a rigorous proof showing that under mild conditions, the sLSTM process is geometrically ergodic, meaning the influence of past observations diminishes exponentially fast (short memory). If the gating weights are modified to force long memory, the cell states face exponential growth, leading to numerical overflow.
  • Patching as a Memory Savior: By grouping time steps into patches, the effective sequence length handled by the recurrent backbone is drastically shortened. This allows the sLSTM to extract local semantic information within patches and global dependencies across patches, bypassing its mathematical short-memory bottleneck. As a result, performance scales positively with larger look-back windows.
Figure 3: The MSE results (Y-axis) of models with different look-back window sizes (X-axis) of long-term forecasting (T=720) on Weather dataset.
  • Optimal Patch Size is a Balancing Act: Experimental analysis reveals that patches can be too small or too large. Small patches destroy local temporal context, while overly large patches overload the sLSTM block with too much information at once.
Figure 2: Exploration of the patch size on MSE results of P-sLSTM on Weather dataset.

Key Results

  • State-of-the-Art Performance: P-sLSTM achieved the best or second-best performance in 33 out of 40 experimental settings across the benchmarks, outperforming dominant Transformer models (like iTransformer and Crossformer) and MLP models (like DLinear).
  • Massive Accuracy Gains over Baselines: P-sLSTM outperformed standard sLSTM in 90% of settings and traditional LSTM in 95% of settings, yielding an average accuracy improvement of roughly 20%.
  • Superior Computational Efficiency: Thanks to its linear time and space complexity ($O(L)$), P-sLSTM proved significantly faster to train than Transformer counterparts. For instance, on the ETTm1 dataset, P-sLSTM completed training in 93.13 seconds, compared to 114.25 seconds for iTransformer.

Limitations and Future Work

  • Sensitivity to Noise: P-sLSTM underperformed on the PEMS03 traffic dataset. The authors note that PEMS03 is highly noisy, and P-sLSTM currently lacks explicit denoising mechanisms to handle such data.
  • The Sequential Bottleneck: Unlike Transformers, RNN-based architectures like sLSTM still process tokens sequentially, meaning they cannot be fully parallelized across the time dimension during training.

Future Directions: The authors suggest exploring more sophisticated patching methods to better preserve the natural periodicity of time series data. They also propose integrating mLSTM (matrix LSTM)—another variant from the xLSTM family—which utilizes a matrix memory structure that allows for full parallel training, potentially eliminating the sequential computing bottleneck entirely.

Summary updated

BibTeX
@inproceedings{kong2025unlocking,
  author = {Yaxuan Kong and Zepu Wang and Yuqi Nie and Tian Zhou and Stefan Zohren and Yuxuan Liang and Peng Sun and Qingsong Wen},
  title = {{Unlocking the Power of LSTM for Long Term Time Series Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33303},
}
Figure