[Paper Review] A Dual-Stage Attention-Based Recurrent Neural Network for Time Series Prediction
Introduces DA-RNN with an input attention encoder and a temporal attention decoder to improve time series prediction by selecting relevant driving series and long-term temporal dependencies; achieves state-of-the-art results on SML 2010 and NASDAQ 100 datasets.
The Nonlinear autoregressive exogenous (NARX) model, which predicts the current value of a time series based upon its previous values as well as the current and past values of multiple driving (exogenous) series, has been studied for decades. Despite the fact that various NARX models have been developed, few of them can capture the long-term temporal dependencies appropriately and select the relevant driving series to make predictions. In this paper, we propose a dual-stage attention-based recurrent neural network (DA-RNN) to address these two issues. In the first stage, we introduce an input attention mechanism to adaptively extract relevant driving series (a.k.a., input features) at each time step by referring to the previous encoder hidden state. In the second stage, we use a temporal attention mechanism to select relevant encoder hidden states across all time steps. With this dual-stage attention scheme, our model can not only make predictions effectively, but can also be easily interpreted. Thorough empirical studies based upon the SML 2010 dataset and the NASDAQ 100 Stock dataset demonstrate that the DA-RNN can outperform state-of-the-art methods for time series prediction.
Motivation & Objective
- Motivate time series prediction with multiple driving (exogenous) series (NARX setting).
- Develop a model that can automatically select relevant input features (driving series) at each time step.
- Capture long-term temporal dependencies by selecting encoder hidden states across time steps.
- Provide an interpretable mechanism to understand which inputs and time steps influence predictions.
- Demonstrate robustness to noisy inputs and compare against state-of-the-art baselines.
Proposed method
- Proposes a dual-stage attention-based RNN (DA-RNN) integrated with LSTM units.
- Encoder uses an input attention mechanism to weigh driving series at each time step and produce \\tilde{x}_t for the encoder.
- Decoder uses a temporal attention mechanism to compute a context vector c_t as a weighted sum of encoder hidden states h_i across time steps.
- Prediction combines the decoder state d_T and context c_T through a linear mapping to produce \\hat{y}_T.
- Training uses mean squared error with Adam optimizer in TensorFlow.
- Key equations include input attention: e_t^k = v_e^T tanh(W_e [h_{t-1}; s_{t-1}] + U_e x^k) and \\alpha_t^k = softmax(e_t^k); \\tilde{x}_t = (\\alpha_t^1 x_t^1, ..., \\alpha_t^n x_t^n)^T; encoder update via LSTM; temporal attention: l_t^i = v_d^T tanh(W_d [d_{t-1}; s'_{t-1}] + U_d h_i) and \\beta_t^i = softmax(l_t^i); c_t = sum_i \beta_t^i h_i; final output uses y_tilde and d_t to produce \\hat{y}_T.
Experimental results
Research questions
- RQ1Can dual-stage attention improve predictive accuracy in NARX-style time series with many exogenous inputs?
- RQ2Does input feature selection at each time step improve robustness to noisy driving series?
- RQ3Does temporal attention over encoder states capture long-range dependencies effectively for time series forecasting?
- RQ4How does DA-RNN compare to encoder-decoder and attention-based RNNs on standard time series benchmarks?
Key findings
- DA-RNN achieves best performance across datasets in MAE, MAPE, and RMSE compared with baselines.
- Input attention helps selectively emphasize relevant driving series, improving robustness to noisy inputs.
- Temporal attention enables leveraging long-term dependencies by focusing on salient encoder states across time steps.
- DA-RNN outperforms Encoder-Decoder and Attention RNN, and the combination of input and temporal attention yields strongest results.
- On NASDAQ 100, DA-RNN (128) achieves MAE 0.22, MAPE 0.45%, RMSE 0.33, and on SML 2010, DA-RNN (128) achieves MAE 1.50, MAPE 7.14%, RMSE 1.97.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.