Peri-midFormer
A Transformer that forecasts time series from a pyramid of periodic components.
Time series · 1,321 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
- 3.9M
- Operations
- 1,321
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2024
- Cited by
- 6 (as of 28 October 2026)
- Authors
- Qiang Wu, Gechang Yao, Zhixi Feng, Shuyuan Yang
- 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
- m19298
- Graph hash
- 4159012c90bb700c406c665d487ed9cc04b96f9b199f097d54face1e77b5fc13
- Skeleton hash
- e1077172910d6f5a4c1cdf00d562803838592a8b5ed4483234169b194311671a
- Architecture hash
- 664b08e2386263dec7aae82628eb10b2cdbfa26cf27135460c58bf92992f385e
- Diagram SHA-256
- 48965214ee5b048a80cd433f42603dbdcbe41fb17e1ae9d31f65c0a640c190fb
- 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
Peri-midFormer analyzes time series by splitting them into repeating components and arranging those components as a pyramid. The paper applies it to forecasting, imputation, classification and anomaly detection.
A fast Fourier transform (FFT) finds the periods and breaks the series into components of different lengths. Every component becomes one token with a positional embedding. Attention between tokens follows their place in the pyramid, depending on whether components include, overlap or sit next to each other. These relationships are imposed by masking entries of the attention matrix.
The paper calls each branch from the top of the pyramid to the bottom a periodic feature flow. Every flow is mapped linearly to the length of the target series, and the results are averaged. The last steps add back the trend part and undo the normalization to give the output.
Key idea. Time series are decomposed into a pyramid of periodic components, and attention follows the components' inclusion, overlap and adjacency.
- Peri-midFormer
- Periodic Pyramid Transformer
- periodic pyramid
- time series forecasting
- long-term forecasting
- time series analysis
- FFT decomposition
- periodic components
- pyramid attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wu2024perimidformerperiodicpyramidtransformer,
title={Peri-midFormer: Periodic Pyramid Transformer for Time Series Analysis},
author={Qiang Wu and Gechang Yao and Zhixi Feng and Shuyuan Yang},
year={2024},
eprint={2411.04554},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2411.04554},
}