PGN: The RNN's New Successor is Effective for Long-Range Time Series Forecasting

Yuxin Jia, Youfang Lin, Jing Yu, Shuo Wang, Tianhao Liu, Huaiyu Wan

TL;DR

Recurrent Neural Networks (RNNs) have long struggled with long-range forecasting due to their sequential nature and $O(L)$ information propagation paths. This paper introduces the Parallel Gated Network (PGN), a parallelizable successor that achieves $O(1)$ propagation, and the Temporal PGN (TPGN) framework, which leverages 2D data reshaping to achieve state-of-the-art accuracy with a favorable $O(\sqrt{L})$ complexity.

What Problem Does This Paper Address?

While RNNs were once the standard for sequence modeling, they face three major hurdles in long-range time series forecasting (LTSF):

  1. Sequential Bottlenecks: Recurrent structures cannot be parallelized, making them slow on modern hardware.
  2. Information Loss: The path for information to travel from the start of a sequence to the end is proportional to the sequence length ($O(L)$), leading to gradient vanishing/explosion and loss of long-term dependencies.
  3. Modeling Complexity: Capturing both local fluctuations and long-term periodic patterns in a 1D sequence is difficult.

Recent shifts toward Transformers and CNNs have addressed some of these issues, but often at the cost of high computational complexity or a failure to directly capture periodic semantic information.

Methods

The authors propose two main innovations:

1. Parallel Gated Network (PGN)

PGN is designed as a direct replacement for the RNN cell. Instead of sequential recurrence, it uses a Historical Information Extraction (HIE) layer—a linear layer that aggregates information from all preceding time steps in parallel.

  • Gated Mechanism: Like an LSTM or GRU, PGN uses gates to select and fuse historical info with the current step, but it does so using a single gate across all steps simultaneously.
  • Efficiency: This reduces the maximum information propagation path to $O(1)$, effectively "short-circuiting" the long paths found in standard RNNs.

2. Temporal PGN (TPGN) Framework

To optimize forecasting, TPGN reshapes 1D time series into a 2D format (where rows represent short-term changes and columns represent long-term periodic patterns). It then employs a two-branch architecture:

  • Long-term Branch: Applies PGN to the columns to capture periodic characteristics.
  • Short-term Branch: Uses a patch-based approach with linear layers to aggregate local information.
Figure 2: The structures of PGN and TPGN.

By operating on this 2D representation, TPGN achieves a theoretical complexity of $O(\sqrt{L})$, making it significantly more efficient for very long sequences.

Datasets

The model was evaluated on five standard LTSF benchmark datasets:

  • ECL (Electricity): Hourly consumption of 321 customers.
  • Traffic: Hourly road occupancy rates.
  • ETTh1 & ETTh2: Electricity Transformer Temperature (recorded every 15 minutes, aggregated to hourly).
  • Weather: 21 meteorological indicators recorded every 10 minutes.

All datasets were split into training, validation, and test sets using a 6:2:2 ratio.

Key Insights and Ideas

  • The $O(1)$ Advantage: By replacing recurrence with the HIE layer, PGN ensures that the "distance" between any two points in the history is constant, regardless of sequence length. This drastically reduces the difficulty of learning long-term dependencies.
  • 2D Reshaping is a Power-Up: Reshaping 1D data into 2D allows the model to treat periodicity as a spatial relationship. Modeling columns with PGN preserves local periodic traits while the patch-based row branch handles global aggregation.
  • Complexity vs. Performance: TPGN manages to outperform $O(L^2)$ Transformers and $O(L)$ CNNs while maintaining a lower $O(\sqrt{L})$ complexity, proving that "heavier" models aren't always better for time series.

Key Results

TPGN achieved State-of-the-Art (SOTA) results across all five benchmarks:

  • Accuracy: An average MSE improvement of 12.35% and MAE improvement of 7.25% compared to the previous best-performing models (including iTransformer, PatchTST, and TimesNet).
  • Stability: As forecasting horizons increase (e.g., predicting 1440 steps ahead), TPGN shows a much slower performance decay than its competitors.
  • Efficiency: Experimental evaluations confirmed that TPGN maintains high execution speed and manageable memory overhead, even with its superior accuracy.
Figure 3: Experimental results with different forecasting lengths on the ECL dataset.

Limitations and Future Work

The authors identify a few areas for growth:

  • Variable Modeling: The current work focuses primarily on temporal modeling. It does not explicitly address the complex inter-variable correlations in multivariate datasets, though it can be integrated with other methods that do.
  • Generalization: While effective for forecasting, the PGN paradigm's performance in other tasks like time series classification or anomaly detection remains to be explored.
  • Hyperparameters: The model relies on a norm parameter that needs to be tuned based on the variance differences between training and validation sets.

For those interested in implementation, the code is available at https://github.com/Water2sea/TPGN.

Summary updated

Abstract

Due to the recurrent structure of RNN, the long information propagation path poses limitations in capturing long-term dependencies, gradient explosion/vanishing issues, and inefficient sequential execution. Based on this, we propose a novel paradigm called Parallel Gated Network (PGN) as the new successor to RNN. PGN directly captures information from previous time steps through the designed Historical Information Extraction (HIE) layer and leverages gated mechanisms to select and fuse it with the current time step information. This reduces the information propagation path to $\mathcal{O}(1)$, effectively addressing the limitations of RNN. To enhance PGN's performance in long-range time series forecasting tasks, we propose a novel temporal modeling framework called Temporal PGN (TPGN). TPGN incorporates two branches to comprehensively capture the semantic information of time series. One branch utilizes PGN to capture long-term periodic patterns while preserving their local characteristics. The other branch employs patches to capture short-term information and aggregate the global representation of the series. TPGN achieves a theoretical complexity of $\mathcal{O}(\sqrt{L})$, ensuring efficiency in its operations. Experimental results on five benchmark datasets demonstrate the state-of-the-art (SOTA) performance and high efficiency of TPGN, further confirming the effectiveness of PGN as the new successor to RNN in long-range time series forecasting. The code is available in this repository: \url{https://github.com/Water2sea/TPGN}.
BibTeX
@inproceedings{jia2024pgn,
  author = {Yuxin Jia and Youfang Lin and Jing Yu and Shuo Wang and Tianhao Liu and Huaiyu Wan},
  title = {{PGN: The RNN's New Successor is Effective for Long-Range Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ypEamFKu2O},
}
Figure