Papers › Abstracted Shapes as Tokens -- A Generalizable and Interpretable Model for Time-series...

Abstracted Shapes as Tokens -- A Generalizable and Interpretable Model for Time-series Classification

1 Nov 2024arXiv:2411.01006archive 2025-07-28

Yunshi Wen, Tengfei Ma, Tsui-Wei Weng, Lam M. Nguyen, Anak Agung Julius

In time-series analysis, many recent works seek to provide a unified view and representation for time-series across multiple domains, leading to the development of foundation models for time-series data. Despite diverse modeling techniques, existing models are black boxes and fail to provide insights and explanations about their representations. In this paper, we present VQShape, a pre-trained, generalizable, and interpretable model for time-series representation learning and classification. By introducing a novel representation for time-series data, we forge a connection between the latent space of VQShape and shape-level features. Using vector quantization, we show that time-series from different domains can be described using a unified set of low-dimensional codes, where each code can be represented as an abstracted shape in the time domain. On classification tasks, we show that the representations of VQShape can be utilized to build interpretable classifiers, achieving comparable performance to specialist models. Additionally, in zero-shot learning, VQShape and its codebook can generalize to previously unseen datasets and domains that are not included in the pre-training process. The code and pre-trained weights are available at https://github.com/YunshiWen/VQShape.

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

Code

Syntology Ran 12 of 18 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

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

yunshiwen/vqshape 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

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

3ran · our draft was wrong
1ran · fixture could not drive it
8ran
6unverified

Licence: 0 of the 18 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 yunshiwen/vqshape. “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.

onehot_straight_through yunshiwen/vqshape/vqshape/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0462bc29ff41ba2c · report
AttributeDecoder yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 07c547332969851f · report
AttributeEncoder yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: invariant MIT (permissive) · c4db2f888133a643 · report
EuclCodebook yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 5b9a3f45827f6480 · report
MLP yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: invariant MIT (permissive) · 4f99f2fed9cb5821 · report
PatchDecoder yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · c073a1bdab0b3a17 · report
PositionalEmbedding yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 511d90614af70052 · report
ShapeDecoder yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 65ebfe790d7d756a · report
Tokenizer yunshiwen/vqshape/vqshape/model.py official repository ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 5b84e11d45ccaa5b · report
entropy yunshiwen/vqshape/vqshape/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 2a8f2551e933d3c4 · report
log yunshiwen/vqshape/vqshape/model.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 7d6c3243647c53d9 · report
moving_average yunshiwen/vqshape/vqshape/model.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 9ba464786de3ce24 · report
PatchEncoder yunshiwen/vqshape/vqshape/model.py official repository unverified MIT (permissive) · 345197a2330f9431 · report
ResidualBlock yunshiwen/vqshape/vqshape/model.py official repository unverified MIT (permissive) · 23c0d2db4c5b56e1 · report
UpSampleBlock yunshiwen/vqshape/vqshape/model.py official repository unverified MIT (permissive) · 057e558f53ab6bba · report
VQShape yunshiwen/vqshape/vqshape/model.py official repository unverified MIT (permissive) · 7ced24bd1f8d6650 · report
eucl_sim_loss yunshiwen/vqshape/vqshape/model.py official repository unverified MIT (permissive) · 93736ff984d5e424 · report
extract_subsequence yunshiwen/vqshape/vqshape/model.py official repository unverified MIT (permissive) · 2d81b1059ee3e8b9 · report

Tasks

QuantizationRepresentation LearningTime SeriesTime Series AnalysisTime Series ClassificationZero-Shot Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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