Papers › FiLM: Frequency improved Legendre Memory Model for Long-term Time Series Forecasting

FiLM: Frequency improved Legendre Memory Model for Long-term Time Series Forecasting

18 May 2022arXiv:2205.08897archive 2025-07-28

Tian Zhou, Ziqing Ma, Xue Wang, Qingsong Wen, Liang Sun, Tao Yao, Wotao Yin, Rong Jin

Recent studies have shown that deep learning models such as RNNs and Transformers have brought significant performance gains for long-term forecasting of time series because they effectively utilize historical information. We found, however, that there is still great room for improvement in how to preserve historical information in neural networks while avoiding overfitting to noise presented in the history. Addressing this allows better utilization of the capabilities of deep learning models. To this end, we design a \textbf{F}requency \textbf{i}mproved \textbf{L}egendre \textbf{M}emory model, or {\bf FiLM}: it applies Legendre Polynomials projections to approximate historical information, uses Fourier projection to remove noise, and adds a low-rank approximation to speed up computation. Our empirical studies show that the proposed FiLM significantly improves the accuracy of state-of-the-art models in multivariate and univariate long-term forecasting by (\textbf{20.3\%}, \textbf{22.6\%}), respectively. We also demonstrate that the representation module developed in this work can be used as a general plug-in to improve the long-term prediction performance of other deep learning modules. Code is available at https://github.com/tianzhou2011/FiLM/

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.08897")

Code

Syntology Ran 17 of 18 code samples harvested from 2 repositories linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · violated contract; 8 ran · our draft was wrong; 2 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: named in the paper: 14 samples from 1 repository, 14 ran; community (archive-listed): 4 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

WenjieDu/PyPOTS officialpytorch report
tianzhou2011/FiLM mentioned in papermentioned on GitHubpytorchMIT report
damo-di-ml/neurips2022-film mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 17 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
8ran · our draft was wrong
2ran · fixture could not drive it
6ran
1unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Activation tianzhou2011/FiLM/layers/S4.py named in the paper ran · our draft was wrong MIT (permissive) · 89b10a8b26bbb7ed · report
batched_index_select tianzhou2011/FiLM/layers/LSHAttention_reformer.py named in the paper ran · our draft was wrong MIT (permissive) · 8429e6520e353d4d · report
compl_mul1d tianzhou2011/FiLM/layers/mwt.py named in the paper ran · our draft was wrong MIT (permissive) · 0a550f84606d37a9 · report
decor_time tianzhou2011/FiLM/layers/AutoCorrelation.py named in the paper ran MIT (permissive) · c4d0804ed8acef6e · report
exists tianzhou2011/FiLM/layers/LSHAttention_reformer.py named in the paper ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
get_dynamic_modes tianzhou2011/FiLM/layers/FourierCorrelation.py named in the paper ran fingerprinted MIT (permissive) · 304bff6fb6e3e2cd · report
get_initializer tianzhou2011/FiLM/layers/S4.py named in the paper ran · our draft was wrong MIT (permissive) · f3449af8fae1d130 · report
get_initializer tianzhou2011/FiLM/layers/mwt.py named in the paper ran MIT (permissive) · c12f08051ec5fa06 · report
get_logger tianzhou2011/FiLM/layers/S4.py named in the paper ran · our draft was wrong MIT (permissive) · 61139ec62260b411 · report
get_phi_psi tianzhou2011/FiLM/layers/utils.py named in the paper ran · our draft was wrong MIT (permissive) · f32036738135c8a8 · report
legendreDer tianzhou2011/FiLM/layers/utils.py named in the paper ran · fixture could not drive it fingerprinted MIT (permissive) · 4ef26472da51e3aa · report
phi_ tianzhou2011/FiLM/layers/utils.py named in the paper ran · fixture could not drive it fingerprinted MIT (permissive) · a54c8c5c47c6a8b8 · report
softmax_complex tianzhou2011/FiLM/layers/mwt.py named in the paper ran MIT (permissive) · 117b5aefd4b1b065 · report
sort_key_val tianzhou2011/FiLM/layers/LSHAttention_reformer.py named in the paper ran · our draft was wrong fingerprinted MIT (permissive) · 8b42f84b228597d9 · report
HiPPO_LegT damo-di-ml/neurips2022-film/models/FiLM.py community (archive-listed) ran fingerprinted MIT (permissive) · d22c957702db6906 · report
SpectralConv1d damo-di-ml/neurips2022-film/models/FiLM.py community (archive-listed) ran MIT (permissive) · 84a100173d52d8f1 · report
transition damo-di-ml/neurips2022-film/models/FiLM.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 82ea253c64044e55 · report
Model damo-di-ml/neurips2022-film/models/FiLM.py community (archive-listed) unverified MIT (permissive) · ec0ad07ef03f10ee · report

Tasks

Deep LearningDimensionality ReductionTime SeriesTime Series AnalysisTime Series Forecasting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Time Series Forecasting ETTh1 (192) Multivariate FiLM MAE 0.423 #15 of 17 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Multivariate FiLM MSE 0.414 #15 of 17 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Univariate FiLM MAE 0.207 #4 of 5 Archive leaderboard report
Time Series Forecasting ETTh1 (192) Univariate FiLM MSE 0.072 #4 of 5 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate FiLM MAE 0.445 #37 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate FiLM MSE 0.442 #37 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Univariate FiLM MAE 0.229 #5 of 10 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Univariate FiLM MSE 0.083 #5 of 10 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Multivariate FiLM MAE 0.472 #13 of 22 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Multivariate FiLM MSE 0.465 #13 of 22 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Univariate FiLM MAE 0.24 #5 of 12 Archive leaderboard report
Time Series Forecasting ETTh1 (720) Univariate FiLM MSE 0.09 #5 of 12 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Multivariate FiLM MAE 0.394 #11 of 15 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Multivariate FiLM MSE 0.371 #11 of 15 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Univariate FiLM MAE 0.178 #4 of 6 Archive leaderboard report
Time Series Forecasting ETTh1 (96) Univariate FiLM MSE 0.055 #4 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Multivariate FiLM MAE 0.4 #13 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Multivariate FiLM MSE 0.357 #13 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Univariate FiLM MAE 0.335 #6 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (192) Univariate FiLM MSE 0.182 #6 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Multivariate FiLM MAE 0.417 #14 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Multivariate FiLM MSE 0.377 #14 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Univariate FiLM MAE 0.367 #7 of 10 Archive leaderboard report
Time Series Forecasting ETTh2 (336) Univariate FiLM MSE 0.204 #7 of 10 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Multivariate FiLM MAE 0.456 #14 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Multivariate FiLM MSE 0.439 #14 of 20 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Univariate FiLM MAE 0.396 #7 of 11 Archive leaderboard report
Time Series Forecasting ETTh2 (720) Univariate FiLM MSE 0.241 #7 of 11 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Multivariate FiLM MAE 0.348 #13 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Multivariate FiLM MSE 0.284 #13 of 16 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Univariate FiLM MAE 0.272 #3 of 6 Archive leaderboard report
Time Series Forecasting ETTh2 (96) Univariate FiLM MSE 0.127 #3 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

SPEED

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections