Papers › TEMPO: Prompt-based Generative Pre-trained Transformer for Time Series Forecasting

TEMPO: Prompt-based Generative Pre-trained Transformer for Time Series Forecasting

8 Oct 2023arXiv:2310.04948archive 2025-07-28

Defu Cao, Furong Jia, Sercan O Arik, Tomas Pfister, Yixiang Zheng, Wen Ye, Yan Liu

The past decade has witnessed significant advances in time series modeling with deep learning. While achieving state-of-the-art results, the best-performing architectures vary highly across applications and domains. Meanwhile, for natural language processing, the Generative Pre-trained Transformer (GPT) has demonstrated impressive performance via training one general-purpose model across various textual datasets. It is intriguing to explore whether GPT-type architectures can be effective for time series, capturing the intrinsic dynamic attributes and leading to significant accuracy improvements. In this paper, we propose a novel framework, TEMPO, that can effectively learn time series representations. We focus on utilizing two essential inductive biases of the time series task for pre-trained models: (i) decomposition of the complex interaction between trend, seasonal and residual components; and (ii) introducing the design of prompts to facilitate distribution adaptation in different types of time series. TEMPO expands the capability for dynamically modeling real-world temporal phenomena from data within diverse domains. Our experiments demonstrate the superior performance of TEMPO over state-of-the-art methods on zero shot setting for a number of time series benchmark datasets. This performance gain is observed not only in scenarios involving previously unseen datasets but also in scenarios with multi-modal inputs. This compelling finding highlights TEMPO's potential to constitute a foundational model-building framework.

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

Code

Syntology Ran 6 of 14 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 5 ran with no contract checked.

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

dc-research/tempo officialmentioned in papermentioned 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

14 samples harvested; 6 ran; 0 honoured the contract we drafted; 8 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.

1ran · fixture could not drive it
5ran
8unverified

Licence: 0 of the 14 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.

MultiFourier dc-research/tempo/tempo/models/TEMPO.py official repository ran fingerprinted MIT (permissive) · 493fa780d9805e42 · report
RevIn dc-research/tempo/tempo/models/TEMPO.py official repository ran · metamorphic tier: invariant MIT (permissive) · 151e67c803ffaf6b · report
TEMPO dc-research/tempo/tempo/models/TEMPO.py official repository unverified MIT (permissive) · 6bd1e2f7a0f4b1b7 · report
print_trainable_parameters dc-research/tempo/tempo/models/TEMPO.py official repository unverified MIT (permissive) · dde2d9d566d3b650 · report
MergedLinear liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) ran MIT (permissive) · 24e4db9409133442 · report
RevIN liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · 824bb7a2b3d84a75 · report
get_prompt_param_cls liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) ran MIT (permissive) · e6da3917b55558e3 · report
get_prompt_value liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 7c974bf3bf70147c · report
Block liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) unverified MIT (permissive) · becc71810b11d8de · report
CausalSelfAttention liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) unverified MIT (permissive) · 78c68ccc3b7915e0 · report
LoRALayer liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) unverified MIT (permissive) · e51e1d4c223af3ce · report
Prompt liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) unverified MIT (permissive) · c48e3d0e9e8f2f56 · report
TEMPO liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) unverified MIT (permissive) · 29d73946e8df2a48 · report
TEMPOConfig liaoyuhua/tempo-pytorch/src/model.py community (archive-listed) unverified MIT (permissive) · bbf888eb7c291ff7 · report

Tasks

Time SeriesTime Series Forecasting

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Time Series Forecasting ETTh1 (336) Multivariate TEMPO MAE 0.425 #12 of 72 Archive leaderboard report
Time Series Forecasting ETTh1 (336) Multivariate TEMPO MSE 0.408 #12 of 72 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

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFocusLabel 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