Temporal-Scale Sensitivity in Time-Series Tokenization and Scale-Robust Token Estimation by Gated Sum

Berken Utku Demirel, Christian HolzNeurIPS 2026

TL;DR

When feeding continuous time-series signals into a Transformer, chopping the signal into "patches" (tokens) isn't just mundane formatting—it forces a mathematical tug-of-war between noise sensitivity and over-compression. Pick the wrong window size, and your model's error can nearly double, even on identical tasks. The authors formalize this bottleneck and introduce a clever, lightweight fix inspired by classical signal processing: taking multiple "views" of each token across different scales and blending them with learned gates, leaving the Transformer itself completely untouched.

What Problem Does This Paper Address?

In natural language processing, nature and history already did the hard work of tokenization: text arrives neatly packaged into discrete, meaningful symbols like words and characters. Time series—like heartbeats, brainwaves, or accelerometer traces—enjoy no such luxury. They are continuous physical processes sampled discreetly in time, where a single data point is just a noisy scalar devoid of standalone meaning.

To make Transformers work on time series, standard practice is to slice the signal into local temporal windows (patches) and project each window into a vector token. Conventional wisdom treats window size as a minor hyperparameter. Yet, as the authors show in a striking motivating experiment on heart rate estimation, a window length that shines on one dataset can degrade performance by up to 95% on another—even when the sampling rate, signal duration, and target heart rates are identical!

Figure 1: Mean absolute error (MAE) as a function of window size. The best window is normalized to 0, and negative values indicate the relative increase in error compared with the best achieved performance.

Why is tokenization so brittle? The authors prove that choosing a window length ($\Delta$) induces a fundamental approximation–estimation tradeoff (akin to bias–variance):

  • Too short (High Estimation Variance): Short windows contain very few samples. Trying to estimate a local feature from noisy data with tiny sample support yields wild, high-variance guesses.
  • Too long (High Approximation Bias): Long windows stabilize noise by averaging over more samples, but they force a single fixed-size vector to summarize a complex, non-stationary stretch of signal, crushing fine-grained variation.
Figure 3: Illustration of the operator T∆and the induced approximation error. (a) A sequence with two windows w1 and w2 of durations ∆1 and ∆2, respectively. Each window is a vector wi ∈W∆, with M∆= fs∆samples. (b) Two example window-to-token maps. The map ˆϕ∆1 is averaging, which retains only the window mean. ˆϕ∆2 is represented by a richer map whose rows correspond to sinusoidal functions. This map retains more window variation. (c) The T∆is visualized in the time domain. For each window, T∆wi denotes the surrogate signal retained by one token. The first window is approximated by a constant, whereas the second retains oscillatory structure, reflecting a richer approximation class. The lower plot shows the error |T∆wi −wi|. The error is small when the chosen surrogate class matches the structure of the signal and large when the window contains variations that the token cannot represent. The figure therefore illustrates why we introduce T∆. It provides a principled abstraction of the information bottleneck induced by tokenization and clarifies how the approximation burden depends on window size and the richness of the token map.

Methods

To tame this sensitivity without bloating the Transformer backbone or inventing complex routing modules, the authors reach into the classical signal processing playbook and adapt multitaper estimation.

In traditional spectral analysis, a "multitaper" method applies several different mathematical windows (tapers) to the same data segment and averages the results to keep variance low without blurring sharp features. The authors modernize this into a Learning-based Multitaper tokenizer:

  1. Multi-Scale Views: Instead of committing to one window size, at each token location $n$, the tokenizer extracts $K$ distinct views (typically 2 or 3) using convolutional kernels of different receptive-field lengths $k_m$ (chosen from $\{5, 9, 17, 33, 65, 129\}$).
  2. Gated Summation: Rather than keeping separate multi-scale branches alive inside the Transformer (which increases compute and lets noisy scales pollute downstream layers), each view produces a candidate $d$-dimensional token vector $\mathbf{z}_n^{(m)}$. These candidates are immediately combined via learned sigmoid gates $\alpha_m = \sigma(g_m)$: $$\mathbf{z}_n = \sum_{m=1}^{K} \alpha_m \mathbf{z}_n^{(m)}$$
  3. Drop-in Simplicity: After standard normalization, this single sequence of enriched tokens feeds straight into a standard pre-norm Transformer encoder. The architecture remains completely unchanged.

Datasets

No new datasets are introduced, though the authors construct controlled synthetic tasks (frequency, phase, and waveform-family classification across varying SNRs) to validate their theory. For real-world evaluation, they test across 12 existing public datasets spanning four modalities:

  • PPG (Heart Rate Estimation): IEEE SPC, DaLiA, WildPPG, and BIDMC.
  • IMU (Activity Recognition & Step Counting): UCIHAR, HHAR, USC, and Clemson.
  • ECG (Cardiovascular Disease Classification): PhysioNet 2017, PTB-XL, and Chapman.
  • EEG (Sleep Stage Classification): Sleep-EDFx.

Key Insights and Ideas

  • Dataset Physics Dictate Window Size: Clean, steady signals (like hospital-grade BIDMC PPG, high SNR, low spectral entropy) thrive on huge windows because there's little variation to lose. Wild, motion-corrupted wearables (DaLiA, WildPPG) demand short windows because summarizing long, chaotic segments destroys the signal.
  • Reconstruction $\neq$ Representation: Codebook tokenizers trained to reconstruct exact waveforms (like VQ-VAE-based TOTEM) struggle in noisy regimes—even collapsing on several datasets—because spending capacity to memorize noise hurts downstream task features.
  • FFT-Based Patching Backfires in Noise: Architectures that dynamically pick window sizes using Fast Fourier Transforms (e.g., Peri-midFormer) falter at low SNR, where noise creates spurious frequency peaks and tricks the model into fitting its patches to the noise profile.
  • Long Windows Don't Blind Models to High Frequencies: Challenging prior claims that large patches act purely as low-pass filters, the authors show gradient descent can still extract task-relevant high frequencies from long windows—it just faces a much steeper compression bottleneck.

Key Results

Evaluated against both tokenization-only baselines (e.g., PatchTST linear patching, TOTEM) and heavy multi-scale architectures (e.g., MedFormer, PathFormer, ScaleFormer, Kairos), the lightweight Multitaper tokenizer ranks #1 on 10 out of 12 datasets (statistically significant via Friedman and Nemenyi post-hoc tests), using task-level rather than per-dataset hyperparameter tuning:

  • PPG Heart Rate: Slashes Mean Absolute Error (MAE) on IEEE SPC from 8.10 (overlapping linear) and 7.80 (MedFormer) down to 6.50, while boosting correlation ($\rho$) to 82.32%. Achieves best MAE on WildPPG (9.75), DaLiA (5.42), and BIDMC (1.58).
  • ECG & EEG: Hits 73.82% accuracy on PhysioNet 2017 (beating the next best 70.50%), 98.37% accuracy on Chapman, and 75.40 Cohen's $\kappa$ on Sleep-EDFx (vs. 73.06 for adaptive-patching Kairos).
  • Ablations: Removing multiple views drops IEEE SPC MAE from 6.50 to 13.17; forcing equal kernel lengths across views degrades it to 10.50, confirming both multi-scale support and learned gating matter.

Limitations and Future Work

  • Fixed Attention Surrogate in Theory: To keep the math tractable, the theoretical bounds model sequence aggregation using fixed weights $\omega_i$. In reality, self-attention computes weights dynamically from the noisy tokens themselves—meaning token noise can also perturb where the model attends, an interaction left for future theoretical work.
  • Small-Data Gate Tuning: On smaller datasets like UCIHAR, using uniform kernel sizes slightly beat heterogeneous sizes (93.75% vs 91.37%), suggesting that learning to reliably gate out suboptimal scales can be tricky when training data is scarce.
  • Toward Content-Aware Partitioning: Even with multi-view blending, tokens still sit on a uniform temporal grid. Because real-world signals shift dynamics on the fly, the authors argue the ultimate tokenizer should act as a dynamic information-theoretic bottleneck—stretching and shrinking windows in real time based on local noise and information density.

Summary updated

Abstract

Transformers for temporal sequences require mapping sampled signals into sequences of vectors, called tokens. This is done by partitioning the sequence into local temporal windows (patches). We show that the tokenization step induces an approximation--estimation tradeoff. Smaller windows yield higher-variance statistical estimates because each token is supported by fewer samples, while larger windows stabilize estimation but increase the amount of information that must be summarized. Motivated by this tradeoff, we propose a lightweight tokenizer that constructs multiple estimates for each token and sums them, without changing the Transformer backbone. Across 12 datasets spanning four modalities, our method improves performance and reduces sensitivity to temporal scale across tasks.
BibTeX
@inproceedings{demirel2026temporal,
  author = {Berken Utku Demirel and Christian Holz},
  title = {{Temporal-Scale Sensitivity in Time-Series Tokenization and Scale-Robust Token Estimation by Gated Sum}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=iQ0TBYaLes},
}
Figure