TSLib FiLM
A long-term time series forecaster built on Legendre polynomial memory and Fourier-domain noise filtering.
Time series · 3,851 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
- 12.6M
- Operations
- 3,851
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NeurIPS 2022
- Cited by
- 228 (as of 23 October 2026)
- Authors
- Tian Zhou, Ziqing Ma, Xue Wang 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
- m3028
- Graph hash
- 31d5abf9e858adfe91d26a2b871b6871d2cf6a87f0bdea63edae740e2aae39cc
- Skeleton hash
- bd4c87c7a72f5e7c5f687bba67d3a2caf27a65d52dc120dd8372eca5589f5d2a
- Architecture hash
- b18aac69d8a2060e6e23f84651b4a77ec2f3637136b030bccc788764567dcc96
- Diagram SHA-256
- 6f803456b24c1240f5fc2b8517539f15bd18590119165f90ad54aa0b07cb5b85
- 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
FiLM, the Frequency improved Legendre Memory model, is a forecaster for long-term time series. The paper argues that accurate forecasting depends on two things: capturing the critical historical information as completely as possible and removing the noise effectively. That leads the authors to treat long-term forecasting as a problem of long-term sequence compression.
The model maps an input sequence to an output sequence mainly through two sub-layers, the Legendre Projection Unit (LPU) and the Fourier Enhanced Layer (FEL). The LPU projects the signal onto Legendre polynomials to form a memory, using two prefixed matrices that are not trained. The FEL selects a subset of frequency modes after a Fourier transform to reduce noise, by default the lowest ones. A low-rank approximation is added to speed up computation. A mixture of experts applies the model to input windows of several lengths and merges the experts' predictions with a linear layer. The paper describes FiLM as a simple model with only one layer of LPU and one layer of FEL.
In the paper's multivariate experiments on six benchmark datasets, FiLM is reported to give an overall 20.3% relative MSE reduction compared with FEDformer. Reversible instance normalization (RevIN) is an optional add-on, and the authors note that it slows down training by 2-5 times without consistent improvement on all datasets.
Key idea. FiLM applies Legendre polynomial projections to approximate historical information, uses Fourier projection to remove noise, and adds a low-rank approximation to speed up computation.
- film
- frequency improved legendre memory model
- legendre memory
- long-term time series forecasting
- time series forecasting
- legendre projection unit
- frequency enhanced layer
- multivariate 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{zhou2022filmfrequencyimprovedlegendre,
title={FiLM: Frequency improved Legendre Memory Model for Long-term Time Series Forecasting},
author={Tian Zhou and Ziqing Ma and Xue wang and Qingsong Wen and Liang Sun and Tao Yao and Wotao Yin and Rong Jin},
year={2022},
eprint={2205.08897},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2205.08897},
}