Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks

Guokun Lai, Wei-Cheng Chang, Yiming Yang, Hanxiao LiuSIGIR 2017

Abstract

Multivariate time series forecasting is an important machine learning problem across many domains, including predictions of solar plant energy output, electricity consumption, and traffic jam situation. Temporal data arise in these real-world applications often involves a mixture of long-term and short-term patterns, for which traditional approaches such as Autoregressive models and Gaussian Process may fail. In this paper, we proposed a novel deep learning framework, namely Long- and Short-term Time-series network (LSTNet), to address this open challenge. LSTNet uses the Convolution Neural Network (CNN) and the Recurrent Neural Network (RNN) to extract short-term local dependency patterns among variables and to discover long-term patterns for time series trends. Furthermore, we leverage traditional autoregressive model to tackle the scale insensitive problem of the neural network model. In our evaluation on real-world data with complex mixtures of repetitive patterns, LSTNet achieved significant performance improvements over that of several state-of-the-art baseline methods.

Introduction

Predicting the future of multivariate time series—such as traffic flow, electricity consumption, or stock prices—is a complex task because these signals typically contain a mixture of patterns. For instance, traffic data exhibits short-term fluctuations caused by accidents or signal changes, alongside long-term cycles like morning/evening rushes and weekday/weekend variations.

Traditional models, such as Vector Autoregression (VAR), are linear and often fail to capture complex non-linear relationships. Conversely, standard deep learning models like LSTMs or GRUs frequently struggle with very long-term dependencies due to vanishing gradients. Moreover, these neural models are often "scale-insensitive," meaning they perform poorly when the data's magnitude shifts suddenly, such as a spike in electricity usage.

The LSTNet Framework

To address these challenges, we propose LSTNet, a hybrid architecture designed to capture both short-term local dependencies and long-term periodic patterns.

The LSTNet architecture combines CNN, RNN, and Recurrent-skip layers with a linear Autoregressive component.

The framework consists of four primary components:

  1. Convolutional Component: A CNN layer (without pooling) extracts short-term patterns in the time dimension and local dependencies between variables.
  2. Recurrent Component: A GRU layer processes the CNN output to capture sequential dependencies.
  3. Recurrent-skip Component: To handle long-term periodicity, this layer adds skip-connections between hidden cells separated by a fixed period $p$. This allows the model to "jump" through time, effectively capturing seasonal patterns without losing information in the intervening steps. For cases where the period is unknown, a Temporal Attention Layer can be used as an alternative.
  4. Autoregressive (AR) Component: A linear bypass runs in parallel to the neural network. This acts as a "highway," ensuring the final prediction remains robust to changes in the input data scale—a common failure point for non-linear neural networks.

Evaluation and Results

We evaluated LSTNet on four benchmark datasets: Traffic, Solar-Energy, Electricity, and Exchange-Rate. These datasets exhibit varying degrees of periodicity, as shown in the autocorrelation analysis below.

Autocorrelation plots for the four datasets show strong periodic patterns in Traffic, Solar, and Electricity, but not in Exchange-Rate.

Performance Highlights

LSTNet consistently outperformed traditional linear models (AR, VAR, Ridge) and standard deep learning models (RNN-GRU).

  • Significant Gains: On the Solar-Energy, Traffic, and Electricity datasets, LSTNet improved upon standard GRU models by 9.2%, 11.7%, and 22.2% respectively in terms of Root Relative Squared Error (RSE) at large forecasting horizons.
  • Horizon Robustness: The model proved particularly effective at longer horizons, where traditional models typically degrade.
  • Ablation Insights: Removing the AR component led to the most significant performance drops, confirming its crucial role in handling scale fluctuations.

Conclusion and Future Work

LSTNet provides a robust framework for multivariate time series forecasting by explicitly modeling both short- and long-term patterns. While highly effective on seasonal data, future work could focus on automatically learning the skip-length $p$ rather than manual tuning. Additionally, integrating variable weighting into the CNN layer could further improve accuracy by accounting for the varying informativeness of different sensors.

Summary updated

BibTeX
@inproceedings{lai2017modeling,
  author = {Guokun Lai and Wei-Cheng Chang and Yiming Yang and Hanxiao Liu},
  title = {{Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2017},
  url = {https://openreview.net/forum?id=YiievrK6Hnb},
}
Figure