S. F. B. Morse.Types and trace of the first telegraph. 1837.
TEMPO
Time Series Understanding via Discrete Tokenization
- Authors
- Forgis
- Venue
- FMSD @ ICML
- Activity recognition
- 89%
- Sleep staging
- 85%
- Bearing-fault
- 86%
- Params trained
- <1%
Overview
Across domains, experts turn raw temporal signals into reasoned interpretations: reading temporal patterns, identifying which features matter, and producing conclusions grounded in the signal, the operating context, and accumulated domain knowledge. A classifier cannot replicate this process: it selects from a closed set and discards both the reasoning structure and the contextual information that expert judgment depends on.
LLMs are a natural fit: their output space is language and their pretraining encodes substantial domain knowledge. The difficulty is conditioning the model on raw numerical signal rather than relying on textual metadata. Prior approaches use continuous encoder embeddings as soft prompts (cross-attention gates can collapse during training) or scalar binning per timestep (discards temporal structure). Following the simplification arc in vision–language models, TEMPO extends the LLM vocabulary with discrete codes from a context-aware tokenizer. Signals are processed by standard self-attention alongside text.
Three design choices
Three choices distinguish TEMPO from prior signal–LLM integrations and together yield a parameter-efficient framework that transfers across modalities.
Signals as LLM tokens
625 quantised codes plus two delimiters are appended to the LLM vocabulary; signal and text tokens interleave in a single flat sequence and are processed by standard self-attention. No cross-attention, no gating, no architectural change to the backbone.
Transformer encoder, no codebook collapse
A 4-layer Transformer encoder applies self-attention over the full signal before quantisation, so the same local pattern maps to different codes depending on surrounding context. Finite scalar quantisation replaces VQ-VAE and eliminates collapse; the 625-code codebook reaches 100% utilization.
<1% of parameters trained
Two stages: embedding alignment for the 627 new tokens (LLM frozen), then unified multi-task fine-tuning with DoRA adapters (rank 32). Backbone weights and original text embeddings stay frozen throughout. The full pipeline costs under $100 in compute.
Headline results
Across activity recognition, sleep staging, bearing-fault diagnosis, UCR classification, and the TSAQA QA benchmark, TEMPO matches or exceeds prior fine-tuned and cross-attention baselines while producing natural-language outputs, a capability label-only classifiers cannot provide.
| Benchmark | Domain | TEMPO | Best TS-LLM | Best LLM | Best specialist |
|---|---|---|---|---|---|
| HAR | Activity recognition | 89.0 | 65.4 | 60.4 | 96.0 |
| Sleep-EDF | Sleep staging | 85.0 | 69.9 | 15.5 | 84.4 |
| CWRU | Bearing fault | 86.0 | n/a | n/a | 99.2 |
| UCR (10-subset) | Univariate classification | 74.5 | n/a | n/a | 85.8 |
| TSAQA-cls | TS QA, classification | 80.5 | n/a | 91.3 | n/a |
| TSAQA-ad | TS QA, anomaly detection | 91.3 | n/a | 91.0 | n/a |
Specialised classifiers remain superior on narrow tasks (Random Forest on HAR at 96%, WDCNN on CWRU at 99.2%), as expected for purpose-built models trained on identical features. TEMPO's advantage is not accuracy on a single benchmark but framework generality: the same tokenizer and training recipe adapt across modalities and produce reasoning rather than labels.
Context-dependent reasoning
On CWRU, the same vibration signal is interpreted differently depending on textual context. Given an "aged bearing, 18 months in service" prompt the model diagnoses outer-race fault; given a "newly installed non-OEM part, 2 days old" prompt with the identical signal tokens, it diagnoses normal break-in operation. Recommended actions also escalate with ISO vibration severity zone: zone A (good) returns "no immediate action"; zone D (danger) returns "schedule replacement immediately". These behaviours are structurally unavailable to label-only classifiers or post-hoc explanation pipelines.
Cross-domain code sharing
The 625-code codebook learns a taxonomy of temporal primitives, not domain-specific shapes. Across six held-out domains (ECG, Financial, Forecasting, Synthetic, UCR, UEA), pairwise cosine similarity of per-domain code-activation vectors reveals interpretable structure: ECG and UCR share codes via quasi-periodic transients (0.78); Financial and Forecasting cluster via shared trend primitives (0.73). All similarities exceed a permutation null by > 44σ. One tokenizer transfers without modification across accelerometer, EEG, ECG, and vibration data.
A competitive TS-LLM for under $100
Toward generative time-series reasoning
Because signal tokens share the same vocabulary and attention stream as text, the LLM can generate time-series codes as part of its output. This opens modalities beyond classification and QA: autoregressive forecasting via future code generation, counterfactual reasoning ("what if the fault worsened?") via conditional code synthesis, and imputation via masked code infilling, all within a single architecture and with no decoder head swap.
Getting started
Citation
@misc{forgis2026tempo,
title = {TEMPO: Time Series Understanding via Discrete Tokenization},
author = {Forgis},
year = {2026},
note = {ICML 2026 Workshop}
} Papers
Are you a researcher?
Publish with us.
Help build one world model for any machine and robot.
P - 6.2 bar (Pressure)
RH - 48 % (Humidity)
A - 0.32 g (Acceleration)
V - 1.8 mm/s (Vibration)
RPM - 1450 (Speed)
τ - 92 Nm (Torque)
U - 400 V (Voltage)
I - 18.6 A (Current)
Pwr - 11.2 kW (Power)
E - 7.4 kWh (Energy)
S - 72 dB (Sound)
US - 38 kHz (Ultrasound)
Prox - ON Proximity)
Dist - 42 mm Distance)
Enc - 12480 Position)
CS - 0.85 m/s Conveyor)
Part - TRUE Presence)
CT - 4.2 s Cycle)
TPH - 860 u/h Throughput)
Scr - 1.3 % Scrap)
DT - 3.6 min/h Downtime)
OEE - 78 % Efficiency)
ΔT – 5 °C/min (°C/min · termical gradient)
N – 1245 pcs (pieces unit counting)
W – 12.5 kg (kg · load)
cosφ – 0.92 (adimensional)
L – 850 lux
CO₂ – 820 ppm (ppm · gas concentration
Forgis builds the world model that brings physical intelligence into hardware.