DA-RNN RUL
A two-stage attention recurrent network that predicts a target series from its history and its driving series.
Time series · 380 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Time series
- Parameters
- 59.8K
- Operations
- 380
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- IJCAI 2017
- Cited by
- 1,645 (as of 26 October 2026)
- Authors
- Yao Qin, Dongjin Song, Haifeng Chen and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15519
- Graph hash
- 3862b0e5f4136ca423e146fc340611f57fd2addae310f49072f1cc57c8517601
- Skeleton hash
- d80c6692a646ce99c857564c7a7199bb9266e5bd58b60ce94e78d46d2fd39814
- Architecture hash
- f078f26e84a09f7e85b15017048a07c472706a2fc710859e2942219042a02ba7
- Diagram SHA-256
- 5e53bef753238d57a390a7145b808c51c7a5b6dd7d76fb7e1244e3e6e6c5219f
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
DA-RNN is a dual-stage attention-based recurrent neural network for time series prediction. It works in the nonlinear autoregressive exogenous (NARX) setting, where the current value of a target series is predicted from its previous values and from the current and past values of multiple driving series. The paper argues that few earlier NARX models could both capture long-term temporal dependencies and select which driving series are relevant.
The two attention stages sit in an encoder and a decoder, each an LSTM-based recurrent network. In the encoder, an input attention mechanism weights the driving series at each time step, so the encoder can focus on certain series rather than treating them all equally. In the decoder, a temporal attention mechanism builds a context vector as a weighted sum of all the encoder hidden states. A linear function over the decoder hidden state and the context vector then gives the prediction.
The paper reports that DA-RNN achieved the best MAE, MAPE and RMSE among the compared methods on the SML 2010 and NASDAQ 100 Stock datasets. In one test the authors added 81 randomly permuted copies of the 81 NASDAQ driving series as noise. They found that the input attention assigned larger weights to the 81 original series and smaller weights to the 81 noisy ones.
Key idea. DA-RNN adds an input attention stage that selects relevant driving series and a temporal attention stage that selects relevant encoder hidden states across all time steps.
- da-rnn
- dual-stage attention-based recurrent neural network
- dual-stage attention
- time series prediction
- time series forecasting
- narx
- driving series
- input attention
- temporal attention
- remaining useful life
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{qin2017dualstageattentionbasedrecurrentneural,
title={A Dual-Stage Attention-Based Recurrent Neural Network for Time Series Prediction},
author={Yao Qin and Dongjin Song and Haifeng Chen and Wei Cheng and Guofei Jiang and Garrison Cottrell},
year={2017},
eprint={1704.02971},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1704.02971},
}