Papers › TEST: Text Prototype Aligned Embedding to Activate LLM's Ability for Time Series

TEST: Text Prototype Aligned Embedding to Activate LLM's Ability for Time Series

16 Aug 2023arXiv:2308.08241archive 2025-07-28

Chenxi Sun, Hongyan Li, Yaliang Li, Shenda Hong

This work summarizes two ways to accomplish Time-Series (TS) tasks in today's Large Language Model (LLM) context: LLM-for-TS (model-centric) designs and trains a fundamental large model, or fine-tunes a pre-trained LLM for TS data; TS-for-LLM (data-centric) converts TS into a model-friendly representation to enable the pre-trained LLM to handle TS data. Given the lack of data, limited resources, semantic context requirements, and so on, this work focuses on TS-for-LLM, where we aim to activate LLM's ability for TS data by designing a TS embedding method suitable for LLM. The proposed method is named TEST. It first tokenizes TS, builds an encoder to embed TS via instance-wise, feature-wise, and text-prototype-aligned contrast, where the TS embedding space is aligned to LLM embedding layer space, then creates soft prompts to make LLM more open to that embeddings, and finally implements TS tasks using the frozen LLM. We also demonstrate the feasibility of TS-for-LLM through theory and experiments. Experiments are carried out on TS classification, forecasting, and representation tasks using eight frozen LLMs with various structures and sizes. The results show that the pre-trained LLM with TEST strategy can achieve better or comparable performance than today's SOTA TS models and offer benefits for few-shot and generalization. By treating LLM as the pattern machine, TEST can endow LLM's ability to process TS data without compromising language ability. We hope that this study will serve as a foundation for future work to support TS+LLM progress.

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

Code

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

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

scxsunchenxi/test officialmentioned in paperpytorch 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

11 samples harvested; 7 ran; 0 honoured the contract we drafted; 4 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.

7ran
4unverified

Licence: 11 of the 11 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 scxsunchenxi/test. “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.

CORR scxsunchenxi/test/losses/metrics.py official repository ran fingerprinted no licence file found · pointer only · 03d63d172032b256 · report
get_loss_module scxsunchenxi/test/models/loss.py official repository ran no licence file found · pointer only · 5346622dac785f32 · report
interpolate_missing scxsunchenxi/test/datasets_classification/data.py official repository ran no licence file found · pointer only · c43495731acfe20c · report
l2_reg_loss scxsunchenxi/test/models/loss.py official repository ran no licence file found · pointer only · 96c6fa7dd49845b2 · report
select_prototype scxsunchenxi/test/losses/text_prototype.py official repository ran no licence file found · pointer only · 5e6baee53c4a2249 · report
select_representative scxsunchenxi/test/losses/text_prototype.py official repository ran fingerprinted no licence file found · pointer only · c1b94131b3d433b1 · report
subsample scxsunchenxi/test/datasets_classification/data.py official repository ran no licence file found · pointer only · 99cb2d7796fc399b · report
MAE scxsunchenxi/test/losses/metrics.py official repository unverified no licence file found · pointer only · 75f44993b096bf76 · report
RSE scxsunchenxi/test/losses/metrics.py official repository unverified no licence file found · pointer only · b40a11875ebd0cd2 · report
convert_metrics_per_batch_to_per_sample scxsunchenxi/test/running.py official repository unverified no licence file found · pointer only · f79cf1a40c083fee · report
get_optimizer scxsunchenxi/test/optimizers.py official repository unverified no licence file found · pointer only · b8f656bc0425d825 · report

Tasks

Language ModellingLarge Language ModelTime Series

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

TS

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