A Memory-Network Based Solution for Multivariate Time-Series Forecasting

Yen-Yu Chang, Fan-Yun Sun, Yueh-Hua Wu, Shou-De LinarXiv 2018

Introduction

Multivariate time-series forecasting is a critical task in various domains, from urban traffic management to financial market analysis. Traditional methods often struggle with long-term dependencies and complex periodic patterns. This paper introduces MTNet (Memory Time-series Network), a deep learning architecture that adapts the "Memory Network" concept—originally developed for natural language processing—to the challenges of time-series prediction.

The Challenges of Time-Series Forecasting

The authors identify three primary limitations in existing state-of-the-art models:

  1. Vanishing Gradients: Standard Recurrent Neural Networks (RNNs) lose information over long sequences because gradients diminish during backpropagation.
  2. Rigid Periodicity: Models like LSTNet rely on manually defined "skip-connections" to capture cycles (e.g., daily or weekly). This approach fails if the period length is unknown or shifts over time.
  3. The "Black Box" Problem: Most deep learning models offer little insight into their decision-making process, making them difficult to trust in sensitive applications.

The MTNet Architecture

MTNet addresses these gaps through a multi-component architecture designed for both local feature extraction and long-term memory retrieval.

The MTNet architecture featuring the Encoder structure and the memory-based attention mechanism.

The model consists of several key elements:

  • Encoder Structure: A combination of Convolutional Neural Networks (CNNs) and Attention layers extracts local features and captures dependencies between multiple variables.
  • Memory Component: Instead of compressing the entire history into a single hidden state, MTNet stores long-term historical data in a structured "memory" divided into chunks.
  • Three-Encoder System: Separate encoders process the memory input (Encoder_m), the current short-term query (Encoder_in), and the context representation (Encoder_c).
  • Hybrid Modeling: A linear Autoregressive (AR) model runs in parallel with the non-linear neural components, ensuring robustness to changes in data scale.

Experimental Setup

MTNet was evaluated against eight baseline models, including traditional statistical methods (AR, LSVR) and modern deep learning architectures (LSTNet, DA-RNN). The testing involved six diverse datasets:

  • Univariate: Beijing PM2.5 and GEFCom 2014 Electricity Price.
  • Multivariate: Traffic (San Francisco road occupancy), Solar-Energy (Alabama production), Electricity (321 clients), and Exchange-Rate (8 countries).

Key Insights: Dynamic Periodicity and Interpretability

One of the most significant advantages of MTNet is its ability to handle dynamic periodicity. By using an attention mechanism to query the memory, the model can identify relevant historical patterns regardless of whether they follow a fixed cycle.

Visualization of attention weights for traffic data, demonstrating the model's ability to identify relevant historical periods.

As shown in the attention weight visualizations, MTNet assigns higher importance to historical segments that mirror the current trend. For traffic data, the model effectively "looks back" at similar times of day or similar traffic conditions in the past to inform its prediction. This not only improves accuracy but also provides a level of explainability that is often missing in deep learning models.

Results and Performance

MTNet consistently outperformed all baselines across nearly all datasets and forecasting horizons (3, 6, 12, and 24 steps ahead). Key findings include:

  • Superior Accuracy: MTNet achieved the lowest Mean Absolute Error (MAE) and Root Squared Error (RMSE) in most scenarios.
  • Long-Horizon Robustness: The performance advantage of MTNet became more pronounced as the forecasting horizon increased, highlighting its effectiveness in capturing long-term dependencies.

Conclusion and Future Work

MTNet represents a significant step forward in multivariate time-series forecasting by combining the strengths of CNNs, memory networks, and linear modeling. While highly effective, the authors note that handling "rare events" remains a challenge. Future research may focus on optimizing memory overhead and further refining the interpretability of the multi-encoder structure.

Summary updated

BibTeX
@misc{chang2018memory,
  author = {Yen-Yu Chang and Fan-Yun Sun and Yueh-Hua Wu and Shou-De Lin},
  title = {{A Memory-Network Based Solution for Multivariate Time-Series Forecasting}},
  year = {2018},
  eprint = {1809.02105},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.02105},
}
Figure