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:
- Patch tokenization: Slicing the timeline into contiguous, local windows.
- 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.
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:
- 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$.
- 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.
- 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.
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
ReshapeandZeroPadbetween 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
Reshapetrick 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