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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 18 code samples harvested from 1 repository linked to this paper: 12 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 18 samples from 1 repository, 12 ran (8 with no instrument failure; 4 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 3 of the 12 samples that ran have no recorded date.

yunshiwen/vqshape officialmentioned in paperpytorchSyntology: 18 samples, 12 ran (4 instrument-failed) · 6 unverified 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 (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 0 violated, 8 with no contract checked; 4 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · our draft was wrong
1ran; the contract check could not run
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

yunshiwen/vqshape official repository 18 samples, 12 ran (4 instrument-failed) · 6 unverified
onehot_straight_through vqshape/model.py ran · our draft was wrong fingerprinted MIT (permissive) · 0462bc29ff41ba2c · report fixture: signature p:Tensor/2/float · returned Tensor · level recorded, date not recorded
AttributeDecoder vqshape/model.py ran · metamorphic tier: deterministic MIT (permissive) · 07c547332969851f · report fixture: signature x:Tensor/2/float · returned tuple · level recorded 2026-09-22
AttributeEncoder vqshape/model.py ran · metamorphic tier: invariant MIT (permissive) · c4db2f888133a643 · report fixture: signature z:Tensor/2/float, t:Tensor/2/float, l:Tensor/2/float, mu:Tensor/2/float, sigma:Tensor/2/float · returned Tensor · level recorded 2026-09-22
EuclCodebook vqshape/model.py ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 5b9a3f45827f6480 · report fixture: signature z:Tensor/3/float · returned tuple · level recorded 2026-09-22
MLP in 375 papers vqshape/model.py ran · metamorphic tier: invariant MIT (permissive) · 4f99f2fed9cb5821 · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
PatchDecoder vqshape/model.py ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · c073a1bdab0b3a17 · report fixture: signature x:Tensor/3/float · returned tuple · level recorded 2026-09-22
PositionalEmbedding in 43 papers
census: 6 implementations from 6 papers, 4 distinct outputs across 3 buckets, one shared input per bucket
vqshape/model.py ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 511d90614af70052 · report fixture: signature x:Tensor/3/float · returned Tensor · level recorded 2026-09-22
ShapeDecoder in 5 papers vqshape/model.py ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 65ebfe790d7d756a · report fixture: signature x:Tensor/3/float · returned tuple · level recorded 2026-09-22
Tokenizer in 16 papers vqshape/model.py ran · metamorphic tier: invariant fingerprinted MIT (permissive) · 5b84e11d45ccaa5b · report fixture: signature x:Tensor/3/float, memory_mask:NoneType/0/? · returned Tensor · level recorded 2026-09-22
entropy in 112 papers
census: 22 implementations from 25 papers, 16 distinct outputs across 4 buckets, one shared input per bucket this sample: bucket 1 of 4, arg 1: rank 2, kind float, dtype float32
vqshape/model.py ran · our draft was wrong fingerprinted MIT (permissive) · 2a8f2551e933d3c4 · report fixture: signature prob:Tensor/2/float · returned Tensor · level recorded, date not recorded
log in 61 papers
census: 10 implementations from 16 papers, 7 distinct outputs on one shared input this sample: bucket 1 of 1, arg 1: rank 2, kind float, dtype float32
vqshape/model.py ran · our draft was wrong fingerprinted MIT (permissive) · 7d6c3243647c53d9 · report fixture: signature t:Tensor/2/float, eps:float/0/float · returned Tensor · level recorded, date not recorded
moving_average in 46 papers
census: 9 implementations from 11 papers, 6 distinct outputs across 4 buckets, one shared input per bucket this sample: bucket 4 of 4, arg 1: rank 3, kind float, dtype float32
vqshape/model.py ran; the contract check could not run (RAISES) fingerprinted MIT (permissive) · 9ba464786de3ce24 · report fixture: signature x:Tensor/3/float, window_size:int/0/int · returned Tensor · level recorded 2026-09-22
PatchEncoder in 5 papers vqshape/model.py unverified MIT (permissive) · 345197a2330f9431 · report
ResidualBlock in 100 papers vqshape/model.py unverified MIT (permissive) · 23c0d2db4c5b56e1 · report
UpSampleBlock vqshape/model.py unverified MIT (permissive) · 057e558f53ab6bba · report
VQShape vqshape/model.py unverified MIT (permissive) · 7ced24bd1f8d6650 · report
eucl_sim_loss vqshape/model.py unverified MIT (permissive) · 93736ff984d5e424 · report
extract_subsequence vqshape/model.py unverified MIT (permissive) · 2d81b1059ee3e8b9 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for VQShape (graph method: VQShape). 17 bricks; individually on a fixture: 11 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 0 violated, 8 with no contract checked; 3 where Syntology's instrument failed) · 6 unverified. The assembly has not been run end-to-end.

  1. VQShape entry · level 0 · unverified · 7ced24bd1f8d6650
  2. AttributeDecoder model · level 1 · ran · 07c547332969851f
  3. AttributeEncoder model · level 1 · ran · c4db2f888133a643
  4. EuclCodebook model · level 1 · ran · 5b9a3f45827f6480
  5. PatchDecoder model · level 1 · ran · c073a1bdab0b3a17
  6. PatchEncoder model · level 0 · unverified · 345197a2330f9431
  7. ShapeDecoder helper · level 1 · ran · 65ebfe790d7d756a
  8. Tokenizer model · level 1 · ran · 5b84e11d45ccaa5b
  9. eucl_sim_loss loss · level 0 · unverified · 93736ff984d5e424
  10. extract_subsequence helper · level 0 · unverified · 2d81b1059ee3e8b9
  11. MLP helper · level 1 · ran · 4f99f2fed9cb5821
  12. entropy helper · level 1 · ran · our draft was wrong · 2a8f2551e933d3c4
  13. PositionalEmbedding model · level 1 · ran · 511d90614af70052
  14. ResidualBlock helper · level 0 · unverified · 23c0d2db4c5b56e1
  15. UpSampleBlock helper · level 0 · unverified · 057e558f53ab6bba
  16. moving_average helper · level 1 · ran; the contract check could not run (RAISES) · 9ba464786de3ce24
  17. log helper · level 1 · ran · our draft was wrong · 7d6c3243647c53d9

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2411.01006") returns these assemblies with each brick's role and wiring (how to connect).

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