Papers › LaT-PFN: A Joint Embedding Predictive Architecture for In-context Time-series Forecasting

LaT-PFN: A Joint Embedding Predictive Architecture for In-context Time-series Forecasting

16 May 2024arXiv:2405.10093archive 2025-07-28

Stijn Verdenius, Andrea Zerio, Roy L. M. Wang

We introduce LatentTimePFN (LaT-PFN), a foundational Time Series model with a strong embedding space that enables zero-shot forecasting. To achieve this, we perform in-context learning in latent space utilizing a novel integration of the Prior-data Fitted Networks (PFN) and Joint Embedding Predictive Architecture (JEPA) frameworks. We leverage the JEPA framework to create a prediction-optimized latent representation of the underlying stochastic process that generates time series and combines it with contextual learning, using a PFN. Furthermore, we improve on preceding works by utilizing related time series as a context and introducing a normalized abstract time axis. This reduces training time and increases the versatility of the model by allowing any time granularity and forecast horizon. We show that this results in superior zero-shot predictions compared to established baselines. We also demonstrate our latent space produces informative embeddings of both individual time steps and fixed-length summaries of entire series. Finally, we observe the emergence of multi-step patch embeddings without explicit training, suggesting the model actively learns discrete tokens that encode local structures in the data, analogous to vision transformers.

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

Code

Syntology Ran 10 of 12 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

stijnverdenius/lat-pfn officialmentioned in papermentioned on GitHubpytorchCC-BY-4.0 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

12 samples harvested; 10 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.

10ran
2unverified

Licence: 12 of the 12 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 stijnverdenius/lat-pfn. “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.

V_denormalize stijnverdenius/lat-pfn/util/config_util.py official repository ran fingerprinted CC-BY-4.0 · pointer only · bb43c29130d4c0c8 · report
V_normalize stijnverdenius/lat-pfn/util/config_util.py official repository ran CC-BY-4.0 · pointer only · 49789c26ba814b17 · report
add_attention_hook stijnverdenius/lat-pfn/util/metrics.py official repository ran CC-BY-4.0 · pointer only · a5be36f76effc4c7 · report
causal_expanded_mask stijnverdenius/lat-pfn/model/base_pfn.py official repository ran fingerprinted CC-BY-4.0 · pointer only · eb1d613c4a721aab · report
diagonal_mask stijnverdenius/lat-pfn/model/base_pfn.py official repository ran fingerprinted CC-BY-4.0 · pointer only · 019d7b7f3ec8da25 · report
expand_diagonal stijnverdenius/lat-pfn/model/base_pfn.py official repository ran fingerprinted CC-BY-4.0 · pointer only · f3d2c5acfad15121 · report
fig2img stijnverdenius/lat-pfn/util/metrics.py official repository ran CC-BY-4.0 · pointer only · 0c10ac60c21bd3ce · report
init_method_normal stijnverdenius/lat-pfn/model/mup_imp/mup_custom.py official repository ran CC-BY-4.0 · pointer only · bc31f24735c30432 · report
initialize_loader stijnverdenius/lat-pfn/evaluation/real_eval.py official repository ran CC-BY-4.0 · pointer only · 55930a3f1525056f · report
mup_multi_head_attention_forward stijnverdenius/lat-pfn/model/mup_imp/mup_custom.py official repository ran CC-BY-4.0 · pointer only · 0f7ead92423c5cbc · report
dictify stijnverdenius/lat-pfn/util/config_util.py official repository unverified CC-BY-4.0 · pointer only · 17d9f42249274807 · report
plot stijnverdenius/lat-pfn/util/metrics.py official repository unverified CC-BY-4.0 · pointer only · 8ea068c039e9397f · report

Tasks

In-Context LearningTime SeriesTime Series Forecasting

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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