SparseTSF
Tiny long-term forecaster: a 1D convolution, a period-wise reshape and one shared linear layer.
Time series · 15 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
- 145
- Operations
- 15
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2024
- Cited by
- 10 (as of 29 October 2026)
- Authors
- Shengsheng Lin, Weiwei Lin, Wentai Wu and others
- Source
- GitHub: lss-1138/SparseTSF
- License
- Apache-2.0
- 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
- m20525
- Graph hash
- 6a6ff48c13de7fb3821deed985ee0136966abaf2eb5c64f4c2797885211ff8f9
- Skeleton hash
- 47ac977d25b27ab38648653f419650dde02b632f315682ce7583badd0dcef10b
- Architecture hash
- cb7437b9f75063e485cd566930143bf7b62f93c47a4a5a052e0abd5de32d3adc
- Diagram SHA-256
- 9b23ed09b1d79a319a4161c3b731dfc3d3aa78b720b2dce37baf9095b593bf78
- 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
SparseTSF is a very small model for long-term time series forecasting (LTSF), presented in the paper as requiring fewer than 1k parameters. It rests on what the paper calls Cross-Period Sparse Forecasting, which downsamples a series with constant periodicity into subsequences and predicts each one, so the task becomes cross-period trend prediction.
Given a known periodicity w, the input is split into w subsequences and one model with shared parameters is applied to all of them. In the graph the downsampling is only a reshape and a transpose, and the prediction is a single linear layer applied on the last dimension. Before that step a 1D convolution adds a sliding aggregation, so that each point carries information from its surrounding period and outliers weigh less. The mean of the sequence is subtracted before it enters the model and added back after the output.
Following FITS, SparseTSF defaults to a look-back length of 720. The paper names two limits: with ultra-long periods, for example periods exceeding 100, the parameter connections become overly sparse, and with several intertwined periods only one main period can be decomposed. The code repository later added a variant, SparseTSF/MLP, which replaces the fully connected linear layer with a dual-layer MLP structure.
Key idea. SparseTSF downsamples a periodic series into per-phase subsequences and forecasts them with one shared linear layer, which decouples periodicity from trend and keeps the model under 1k parameters.
- SparseTSF
- Cross-Period Sparse Forecasting
- long-term time series forecasting
- LTSF
- lightweight forecasting model
- 1k parameters
- sparse forecasting
- periodicity
- time series
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lin2024sparsetsfmodelinglongtermtime,
title={SparseTSF: Modeling Long-term Time Series Forecasting with 1k Parameters},
author={Shengsheng Lin and Weiwei Lin and Wentai Wu and Haojun Chen and Junjie Yang},
year={2024},
eprint={2405.00946},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2405.00946},
}