Multi-variable LSTM neural network for autoregressive exogenous model

Tian Guo, Tao LinarXiv 2018

Abstract

This paper introduces MV-LSTM, a novel recurrent neural network architecture designed for multi-variable time series forecasting. By employing "tensorized" hidden states to track individual input variables separately, the model achieves state-of-the-art prediction accuracy while providing a clear, quantifiable measure of which variables are most important for its predictions. This approach addresses the inherent "black box" nature of standard LSTMs in Autoregressive Exogenous (ARX) modeling.

Introduction

In many real-world scenarios, such as air quality monitoring or energy management, we aim to predict a target value based on its own history and several "exogenous" variables (e.g., temperature, wind speed). This is known as an Autoregressive Exogenous (ARX) model. While standard Long Short-Term Memory (LSTM) networks are powerful for sequence prediction, they typically blend all input variables into a single hidden state vector. This makes it nearly impossible to determine which specific variable drove a particular prediction, a significant drawback in high-stakes fields like medicine or finance.

Methods

The authors propose the Multi-Variable LSTM (MV-LSTM), which introduces a structural change to the standard LSTM cell to maintain variable-specific information.

  1. Tensorized Hidden States: Instead of a single vector, the hidden state is represented as a matrix (or tensor) where each row is dedicated to a specific input variable. This ensures that information about different variables remains distinct throughout the memory process.
  2. Mixture Temporal and Variable Attention: The model utilizes a two-stage attention mechanism. Temporal Attention looks back at the history of each individual variable to create a summarized context. Variable Attention then treats each variable as an "expert" in a probabilistic mixture model, learning to weight their contributions to the final prediction.
The MV-LSTM architecture featuring temporal and variable attention mechanisms.
  1. Posterior Interpretation: To quantify variable importance, the authors calculate "posterior" attention, which evaluates how much a specific variable actually helped the model given the observed outcome.

Key Results

MV-LSTM was evaluated on four datasets: PM2.5 (air quality), Energy (appliance use), Plant (solar power), and a Synthetic dataset based on a Lorenz model.

Comparison of RMSE scores across different datasets and methods, showing MV-LSTM's superior performance.
  • Superior Accuracy: MV-LSTM consistently outperformed classical statistical models (ARIMAX), machine learning ensembles (XGBoost), and other interpretable neural networks (RETAIN, DUAL). In some instances, it reduced Root Mean Square Error (RMSE) by up to 40% compared to standard baselines.
  • Meaningful Interpretability: On the PM2.5 dataset, the model correctly identified "Dew Point" and "Wind Speed" as the most influential factors, matching established environmental science. On the synthetic dataset, it successfully assigned the highest importance scores to the mathematically designed causal factors, whereas baseline models were often misled by noise.

Discussion and Conclusion

The success of MV-LSTM highlights that keeping variable-specific information separate in the hidden state not only improves interpretability but also enhances prediction robustness by preventing variable interference. While the current model focuses on a single-layer LSTM and may face computational overhead with very high-dimensional data, it serves as a powerful tool for both forecasting and knowledge discovery. Future work may explore deeper architectures and dynamic importance metrics that shift over time.

Summary updated

BibTeX
@misc{guo2018multi,
  author = {Tian Guo and Tao Lin},
  title = {{Multi-variable LSTM neural network for autoregressive exogenous model}},
  year = {2018},
  eprint = {1806.06384},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.06384},
}
Figure