Papers › One Fits All:Power General Time Series Analysis by Pretrained LM

One Fits All:Power General Time Series Analysis by Pretrained LM

23 Feb 2023arXiv:2302.11939archive 2025-07-28

Tian Zhou, Peisong Niu, Xue Wang, Liang Sun, Rong Jin

Although we have witnessed great success of pre-trained models in natural language processing (NLP) and computer vision (CV), limited progress has been made for general time series analysis. Unlike NLP and CV where a unified model can be used to perform different tasks, specially designed approach still dominates in each time series analysis task such as classification, anomaly detection, forecasting, and few-shot learning. The main challenge that blocks the development of pre-trained model for time series analysis is the lack of a large amount of data for training. In this work, we address this challenge by leveraging language or CV models, pre-trained from billions of tokens, for time series analysis. Specifically, we refrain from altering the self-attention and feedforward layers of the residual blocks in the pre-trained language or image model. This model, known as the Frozen Pretrained Transformer (FPT), is evaluated through fine-tuning on all major types of tasks involving time series. Our results demonstrate that pre-trained models on natural language or images can lead to a comparable or state-of-the-art performance in all main time series analysis tasks, as illustrated in Figure 1. We also found both theoretically and empirically that the self-attention module behaviors similarly to principle component analysis (PCA), an observation that helps explains how transformer bridges the domain gap and a crucial step towards understanding the universality of a pre-trained transformer.The code is publicly available at https://github.com/DAMO-DI-ML/One_Fits_All.

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="2302.11939")

Code

Syntology Ran 6 of 8 code samples harvested from 3 repositories linked to this paper; 2 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 7 samples from 2 repositories, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

damo-di-ml/one_fits_all officialmentioned in papermentioned on GitHubpytorch report
damo-di-ml/neurips2023-one-fits-all 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

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

6ran
2unverified

Licence: 8 of the 8 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 3 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.

GPT4TS damo-di-ml/one_fits_all/Long-term_Forecasting/models/GPT4TS.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · f7b3ba88e01c955b · report
Block liaoyuhua/GPT-TS/src/model.py community (archive-listed) ran no licence file found · pointer only · 283abdbdd3b3be9d · report
CausalSelfAttention liaoyuhua/GPT-TS/src/model.py community (archive-listed) ran no licence file found · pointer only · ad66bcf4514af931 · report
FlattenHead liaoyuhua/GPT-TS/src/model.py community (archive-listed) ran no licence file found · pointer only · 22bc376d349bfa99 · report
PoolingHead liaoyuhua/GPT-TS/src/model.py community (archive-listed) ran no licence file found · pointer only · 8218db7b8802c1ec · report
RevIN liaoyuhua/GPT-TS/src/model.py community (archive-listed) ran no licence file found · pointer only · 15bf8037c337e5d3 · report
GPT2TS liaoyuhua/GPT-TS/src/model.py community (archive-listed) unverified no licence file found · pointer only · f5ab1a373dfe173b · report
gpt4ts damo-di-ml/neurips2023-one-fits-all/Classification/src/models/gpt4ts.py community (archive-listed) unverified no licence file found · pointer only · 784ad185e9363327 · report

Tasks

Anomaly DetectionFew-Shot LearningTime SeriesTime Series AnalysisTime Series Forecasting

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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