TSLib PAttn
PAttn, a simple forecasting baseline: patch the time series, apply one attention layer, project to the forecast.
Time series · 39 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.3M
- Operations
- 39
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2024
- Cited by
- 95 (as of 23 October 2026)
- Authors
- Mingtian Tan, Mike A. Merrill, Vinayak Gupta 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
- m3040
- Graph hash
- e7b6b9cf15d5f665ddaf5bcf9d0484030b9c641798e7defd5a0746c4ccf40341
- Skeleton hash
- 5476b348552e4c042b4636a7f064d3d122cfe3b6ae38bdf72c62c06d6eaa55a6
- Architecture hash
- 8c6a4196d19103bd97a87f6da672640d42c444fc7d80f5aa25a0c482e0cc48e5
- Diagram SHA-256
- e2e42de22392d58f477b63f182566908c85ff7a0cd5dcb4dcf98fb0115937de9
- 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
PAttn is a simple forecasting baseline built from patching and attention. It comes from a paper that asks whether large language models are actually useful for time series forecasting. In ablation studies on three LLM-based forecasting methods, the authors found that removing the LLM component or replacing it with a basic attention layer does not degrade forecasting performance.
The model applies instance normalization to the time series, followed by patching and projection. Compared with PatchTST, PAttn has no position embedding and no feed-forward part, and the Transformer encoder is replaced with a simple single-layer attention structure. The resulting time series embedding is projected to the forecast with a single linear layer.
The paper reports that PAttn performs better than most other encoding methods on small datasets and is comparable to LLM methods there. In its results table, the LLM-based models combined appear 33 times as best or second-best performer, and PAttn appears 34 times. The authors suggest it as a simple way to evaluate the trade-off between cost and performance for newly proposed methods. Time-Series-Library includes PAttn among its models.
Key idea. The paper found that removing or replacing the LLM in LLM-based forecasters does not degrade performance, and that PAttn, a patching-plus-attention model, performs similarly to them.
- pattn
- patch attention
- tslib pattn
- patching and attention
- time series forecasting
- simple forecasting baseline
- llm-based forecasting ablation
- are language models actually useful for time series forecasting
- time-series-library
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{tan2024languagemodelsactuallyuseful,
title={Are Language Models Actually Useful for Time Series Forecasting?},
author={Mingtian Tan and Mike A. Merrill and Vinayak Gupta and Tim Althoff and Thomas Hartvigsen},
year={2024},
eprint={2406.16964},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2406.16964},
}