Rethinking Time Series Tokenization from a Frequency Perspective

Zelong Tian, Ming Jin, Bo Du, Shirui PanNeurIPS 2026

TL;DR

Modern deep learning models treat time series data like text by chopping continuous signals into discrete "tokens," but doing so in the time domain quietly corrupts the signal's underlying frequencies, creating phantom trends and obscuring real seasonality. The authors apply classic signal processing theory to introduce TimeFT, a parameter-free, plug-and-play tokenizer that slices and shifts signals in the frequency domain before sampling. Swapping in TimeFT eliminates over 80% of tokenization distortion and boosts downstream model performance by up to 10% for virtually zero extra compute.

What Problem Does This Paper Address?

To feed time series data (like weather sensors, electricity grids, or heartbeats) into modern architectures like Transformers, we first have to break the continuous sequence into manageable chunks—a process called tokenization. Currently, two paradigms dominate:

  1. Patch tokenization: Slicing the timeline into contiguous, local windows.
  2. Phase tokenization: Downsampling the timeline by taking every $S$-th data point across the whole sequence.

While intuitive in the time domain, both approaches wreak havoc in the frequency domain. Chopping a signal into patches acts like a rectangular window, causing spectral leakage (energy smearing across frequencies) and blurring close frequencies together, while blinding each token to anything outside its narrow window. Conversely, phase tokenization's naive downsampling violates the Nyquist sampling theorem—which states you must sample at least twice as fast as the highest frequency present. High-frequency variations fold back into lower frequencies (spectral aliasing), masquerading as fake, slow-moving trends. Models end up learning from distorted, erroneous patterns before training even begins.

Figure 2: The comparison of tokenization methods across the time domain, frequency domain and reconstruction versus origin. (a) Patch tokens lead to a completely different frequency spectrum and cause the loss of all information outside the rectangular window. (b) Phase tokens cause frequency components above the Nyquist frequency to completely alias into the low frequencies, thereby exhibiting erroneous patterns. (c) Our TimeFT effectively solves the above issues and achieves almost distortion-free tokenization. The further explanation of Figure 2 and the details of reconstruction methods are provided in the Appendix C.

Methods

To tokenize without destroying information, the authors borrow a page from radio communications and digital signal processing. Instead of fighting the Nyquist limit in the time domain, TimeFT respects it by moving into the frequency domain in three stages:

  1. Frequency-Domain Decomposition: Using a Real-valued Fast Fourier Transform (RFFT), the raw time series is converted into its frequency spectrum (separately for each variable). Based on the desired sampling stride $S$, the authors calculate the exact maximum safe frequency threshold ($B_N$) that can be downsampled without aliasing, and slice the spectrum into $K$ contiguous blocks of width $B_N$.
  2. Spectral Shifting: High-frequency blocks still cannot be downsampled directly without aliasing. So, just like a radio receiver shifts a high-frequency broadcast down to an audible baseband, TimeFT shifts every frequency block down to start at zero frequency. Crucially, the authors show this mathematically simplifies to a fast reshape and zero-padding operation.
  3. Information-Preserving Token Extraction: Each shifted, safe-bandwidth block is converted back to the time domain via an Inverse RFFT. Now that every block is guaranteed to obey the Nyquist limit, TimeFT applies dense sampling (strided downsampling across all starting offsets) to extract clean, distortion-free tokens, reshaping them to feed directly into any standard neural network.
Figure 3: The pipeline of TimeFT is implemented by (1) frequency domain decomposition, (2) spectral shifting and (3) information-preserving token extraction. Different colors and markers are used to denote the processes of operations. Based on the frequency threshold BN derived from downsampling without information loss, TimeFT shifts all spectra of bandwidth BN to the baseband, and then obtains almost distortion-free tokens by Nyquist sampling.

Notably, TimeFT introduces zero learnable parameters and acts as a drop-in replacement for standard tokenizers.

Datasets

The authors evaluate TimeFT exclusively on established, publicly available benchmarks across three core tasks (no new datasets are introduced):

  • Long-term Forecasting (7 datasets): ETTh1, ETTh2, ETTm1, ETTm2, Weather, Electricity, and Traffic.
  • Classification (10 UEA datasets): EthanolConcentration, FaceDetection, Handwriting, Heartbeat, JapaneseVowels, PEMS-SF, SelfRegulationSCP1, SelfRegulationSCP2, SpokenArabicDigits, and UWaveGestureLibrary.
  • Anomaly Detection (5 benchmarks): SMD, MSL, SMAP, SWaT, and PSM.

Key Insights and Ideas

  • Patches don't just lose high frequencies—they smear everything: A common folk intuition in time series ML is that short patches only struggle with high-frequency noise. By viewing patching as convolving with a Dirichlet kernel in the frequency domain, the authors show it actually smears spectral energy globally and imposes a hard ceiling on frequency resolution.
  • Radio engineering fixes ML tokenization: You don't have to choose between local detail (patches) and global context (phases). By splitting a signal into sub-bands and shifting high frequencies down to baseband, you can downsample aggressively without losing high-frequency fidelity.
  • Heavy math, trivial compute: Because phase alignment factors can be ignored when temporal dimensions aren't compressed, the entire frequency-splitting and shifting math collapses into a simple tensor Reshape and ZeroPad between an RFFT and IRFFT. Plus, because TimeFT is deterministic and parameter-free, tokens only need to be computed once before training, not repeated every epoch.

Key Results

Using PatchTST as the default backbone, TimeFT achieves state-of-the-art results across the board:

  • Signal Reconstruction: When reconstructing original signals from tokens, TimeFT cuts Mean Absolute Error (MAE) by 71.8% to 85.1% across forecasting datasets compared to patch and phase tokenizers, proving it is nearly lossless.
  • Plug-in Gains: Dropping TimeFT into existing architectures yields immediate boosts. At horizon $H=96$, it improves PatchTST's MSE by up to 10.5% (on ETTm2) and PhaseFormer's MSE by up to 7.5%.
  • Task Benchmarks: TimeFT secures the best or second-best forecasting error on almost all datasets, achieves the highest average classification accuracy (71.31% across UEA datasets), and reaches the top average F1-score (86.12%) in anomaly detection.
  • Efficiency: Tokenization overhead is tiny—consistently accounting for 0.28% to 1.38% of a single training epoch's runtime.

Limitations and Future Work

  • Minor DC loss: The simplified Reshape trick for spectral shifting slightly discards the imaginary component at zero frequency, making the method nearly—rather than strictly—lossless (though empirically negligible).
  • Untested on Foundation Models: Due to prohibitive pre-training compute costs, the authors did not evaluate TimeFT inside large Time Series Foundation Models (like Chronos-2 or TimeFM), which currently rely heavily on standard patch tokenization.
  • Hyperparameter Synergy: Sensitivity analysis shows that the optimal sampling stride $S$ shifts depending on input sequence length $N$, meaning practitioners still need to tune the stride to balance token length against the number of tokens.

Summary updated

Abstract

Tokenization that partitions time series into subsequences has become a foundational paradigm in modern time series modeling. However, we find that current tokenization strategies inherently introduce spectral distortions, forcing the learned representations to diverge from the true underlying patterns such as trend, periodicity, and seasonality, thereby impairing model performance. Through theoretical analysis from a frequency perspective, we derive the boundary conditions under which such distortions occur. To overcome this distortion, we propose **TimeFT**, a nearly distortion-free frequency-based tokenizer for time series data. TimeFT obtains tokens through frequency-domain partitioning, frequency shifting, and Nyquist sampling. The method does not have additional learnable parameters, incurs negligible computational complexity, and can serve as a drop-in replacement for existing tokenizers. Our extensive experiments on diverse tasks such as forecasting, classification, and anomaly detection demonstrate that TimeFT consistently and significantly improves performance.
BibTeX
@inproceedings{tian2026rethinking,
  author = {Zelong Tian and Ming Jin and Bo Du and Shirui Pan},
  title = {{Rethinking Time Series Tokenization from a Frequency Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pexLx2W7yd},
}
Figure