Papers › TOTEM: TOkenized Time Series EMbeddings for General Time Series Analysis

TOTEM: TOkenized Time Series EMbeddings for General Time Series Analysis

26 Feb 2024arXiv:2402.16412archive 2025-07-28

Sabera Talukder, Yisong Yue, Georgia Gkioxari

This work studies the problem of time series analysis with generalist (or foundation) models, which are models trained across many data domains. Drawing inspiration from the widespread success of large language models, we consider the simple strategy of discretely tokenizing time series data drawn from a myriad of datasets via self-supervision, then using the fixed tokenization to solve a variety of tasks across many data domains. Canonically, time series models are either trained on a single dataset or built in a task-specific manner (e.g., a forecasting-only model), where many use patches of time as inputs to the model. As such, performant generalist, discrete representation time series models explored across many tasks are of value. Our method, TOkenized Time Series EMbeddings (TOTEM), produces such generalist time series models with minimal or no fine-tuning while exhibiting strong zero-shot performance. We evaluate TOTEM extensively over nearly 500 experiments on three commonly-studied time series tasks with real-world data: imputation (17 baselines, 12 datasets), anomaly detection (19 baselines, 25 datasets), and forecasting (14 baselines, 12 datasets). We conclude that TOTEM matches or outperforms existing state-of-the-art models in both the canonical specialist setting (i.e., training one model on one domain) as well as the generalist setting (i.e., training a single model on many domains), which demonstrates the efficacy of tokenization for general time series analysis. The open-source implementation is available here: https://github.com/SaberaTalukder/TOTEM; a video summary is available here: https://www.youtube.com/watch?v=OqrCpdb6MJk.

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

Code

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

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

saberatalukder/totem 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

13 samples harvested; 11 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.

11ran
2unverified

Licence: 13 of the 13 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 saberatalukder/totem. “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.

codes2time saberatalukder/totem/forecasting/extract_forecasting_data.py official repository ran no licence file found · pointer only · 55dfde0d12235653 · report
codes2timerevin saberatalukder/totem/anomaly_detection/detect_anomaly.py official repository ran no licence file found · pointer only · cb77fdb4a1e324c7 · report
create_datloaders saberatalukder/totem/anomaly_detection/detect_anomaly.py official repository ran no licence file found · pointer only · 762b2be39fdadf5a · report
create_datloaders saberatalukder/totem/anomaly_detection/train_vqvae.py official repository ran no licence file found · pointer only · b5c7d28a17f662a4 · report
create_time_series_dataloader saberatalukder/totem/forecasting/generalist_eval.py official repository ran no licence file found · pointer only · 1a119a859ec7ea04 · report
get_params saberatalukder/totem/forecasting/generalist_eval.py official repository ran no licence file found · pointer only · 96092138a8882ebc · report
load_and_flatten saberatalukder/totem/anomaly_detection/combine_datasets.py official repository ran no licence file found · pointer only · af1552f9da41a7cc · report
load_and_flatten saberatalukder/totem/anomaly_detection/combine_labels.py official repository ran no licence file found · pointer only · 7302b9f7263f76d0 · report
revintime2codes saberatalukder/totem/anomaly_detection/detect_anomaly.py official repository ran no licence file found · pointer only · 67b566e76ba373ba · report
save_data saberatalukder/totem/anomaly_detection/save_chunked_data.py official repository ran no licence file found · pointer only · 92447a783743bb61 · report
time2codes saberatalukder/totem/forecasting/extract_forecasting_data.py official repository ran no licence file found · pointer only · 99487b1b03cba02c · report
inference saberatalukder/totem/forecasting/generalist_eval.py official repository unverified no licence file found · pointer only · 7b15d87455a71d97 · report
train_model saberatalukder/totem/anomaly_detection/train_vqvae.py official repository unverified no licence file found · pointer only · b299340c6f48dc63 · report

Tasks

Anomaly DetectionImputationTime SeriesTime Series Analysis

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