TSLib SegRNN
A GRU-based long-term time series forecaster that iterates over segments and decodes all steps in parallel.
Time series · 27 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
- 1.6M
- Operations
- 27
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Internet of Things Journal (arXiv 2023)
- Cited by
- 122 (as of 24 October 2026)
- Authors
- Shengsheng Lin, Weiwei Lin, Wentai Wu 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
- m3044
- Graph hash
- 1c5a1f4b52ca0fe842667639f121e91333901240b27bce685492e8d9c50a8e1c
- Skeleton hash
- b1743d6395140748e43567501b36960d17d2630616a1a1cdd13e496e41f4ccb8
- Architecture hash
- ff47f3853c1f00b5ee7a0b6b487c72cf95ac5e921ee003868580555450975376
- Diagram SHA-256
- 2ce2e7954cd2e1db858d1550bc9cb0ae2da2dabf438f770b679e5acb542e30b5
- 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
SegRNN is a recurrent neural network (RNN) for long-term time series forecasting (LTSF), an area where, the paper says, dominance had shifted towards Transformer, MLP and CNN approaches. The authors trace the limitations of RNNs in LTSF to the substantial number of recurrent iterations that long look-back windows and forecast horizons require. Their strategy is to minimize the count of recurrent iterations while keeping the sequential information.
In the encoding phase SegRNN replaces iteration over single time points with iteration over segments of the series, which reduces the number of iterations from L to L/w for a look-back of length L and segments of length w. In the decoding phase, Parallel Multi-step Forecasting (PMF) reduces the number of iterations from H/w to 1 for a horizon of length H. The decoder reuses the GRU cell of the encoder, and positional embeddings identify the positions of the output segments. Channels are forecast independently, and a channel position encoding partly compensates for what this Channel Independent (CI) strategy loses about relationships between variables.
The design is not limited to a specific RNN cell, and the paper uses GRU as its example. On 7 LTSF datasets (four ETT sets plus Traffic, Electricity and Weather), the paper reports top-two positions in 50 out of 56 metrics, including 45 first-place rankings. It also reports a runtime and memory reduction of over 78% against Transformer-based models.
Key idea. SegRNN reduces the recurrent iterations an RNN needs for long-term forecasting by iterating over segments instead of time points and by decoding all future segments in parallel.
- segrnn
- segment recurrent neural network
- long-term time series forecasting
- ltsf
- time series forecasting
- rnn forecasting
- segment-wise iterations
- parallel multi-step forecasting
- gru
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lin2023segrnnsegmentrecurrentneural,
title={SegRNN: Segment Recurrent Neural Network for Long-Term Time Series Forecasting},
author={Shengsheng Lin and Weiwei Lin and Wentai Wu and Feiyu Zhao and Ruichao Mo and Haotong Zhang},
year={2023},
eprint={2308.11200},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2308.11200},
}