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

Tian Zhou, Peisong Niu, Xue Wang, Liang Sun, Rong Jin
2/12/2026

No official code found. Best implementation: DAMO-DI-ML/NeurIPS2023-One-Fits-All (672 stars, last commit 2024-01-08). 2 more below.

Abstract

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.

View on arXivView PDF

Code Implementations(3)

liaoyuhua/GPT-TSCommunity71%

Reproduction of the paper "One Fits All: Power General Time Series Analysis by Pretrained LM"

382Python, Jupyter NotebookJul 26, 20232 years ago

The official code for "One Fits All: Power General Time Series Analysis by Pretrained LM (NeurIPS 2023 Spotlight)"

67290Shell, PythonSep 22, 20232 years ago

The official code for "One Fits All: Power General Time Series Analysis by Pretrained LM (NeurIPS 2023 Spotlight)"

60Shell, PythonSep 22, 20233 years ago

Similar Papers

Cite this paper

@article{zhou2026fits,
  title  = {One Fits All: Power General Time Series Analysis by Pretrained LM},
  author = {Tian Zhou and Peisong Niu and Xue Wang and Liang Sun and Rong Jin},
  year   = {2026},
  eprint = {2302.11939},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2302.11939},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.11939.svg)](https://codeofpaper.com/paper/2302.11939)

Discussion