Tokenization and Architecture Jointly Allocate Component Roles in Time Series Transformers

Mingyu Kim, Doguk Kim

TL;DR

In time series transformers, there is no fixed rule for whether the attention layer or the feed-forward network (FFN) does the heavy lifting of building features—instead, how you chop up the data into tokens decides who gets the job. By looking inside frozen models, the authors resolve a years-long muddle over why attention sometimes seems completely dispensable in forecasting, and other times indispensable.

What Problem Does This Paper Address?

If you have casually followed time series forecasting over the last few years, the literature reads like a series of plot twists. Early transformers fed individual time-steps as tokens, only to be embarrassed by a single-layer linear model (DLinear). Transformers fought back by grouping consecutive time steps into "patches" (PatchTST) or turning entire variables into single tokens (iTransformer). Soon after, researchers noticed you could rip self-attention out of patch-based models entirely (leaving just MLPs, like TSMixer) with barely a scratch on performance—yet in other setups, cross-attention alone carries the whole forecast.

Why does "attention" seem essential in one paper and dead weight in the next? Comparing final forecasting errors can't tell us what happens under the hood. The authors step in to map the internal division of labor between attention and FFNs across different tokenization schemes.

Methods

Borrowing a classic tool from NLP interpretability, the authors introduce a temporal probing framework. They freeze trained time series transformers and attach simple linear classifiers ("probes") after the initial token embedding, after the attention sub-layer, and after the FFN sub-layer.

Figure 1: Probing protocol with delta-based component attribution. Linear probes on the frozen sub-layer outputs (embed, 1a_attn, 1b_ffn) predict 15 token-level temporal properties (§3.2); per-component deltas (∆) attribute accuracy gains to sub-layers.

Because these forecasters ultimately read out predictions using a linear head, a feature is considered constructed at a specific sub-layer if a linear probe can suddenly decode it there (measured as accuracy gain, $\Delta$, over the previous point).

What is novel here is their suite of 15 token-level diagnostic tasks. Crucially, they separate innate properties (like simple trend direction, which is already linearly readable right at the affine patch embedding) from constructed properties—nonlinear, second-order statistics like volatility (variance), diff energy (roughness), and spectral entropy (noise vs. clean oscillation) that require nonlinear computation to surface.

Because linear probing only reveals what is readable rather than what the model actually uses to forecast, they pair probing with three causal interventions:

  1. Activation patching: Restoring clean sub-layer outputs into a corrupted run.
  2. Component knockout: Zeroing out attention or FFNs at inference time.
  3. Retraining without attention: Training PatchTST from scratch with self-attention disabled.

Datasets

Models are trained and evaluated on 8 standard long-term forecasting benchmarks: ETTm1, ETTm2, ETTh1, ETTh2, Weather, Electricity, Exchange, and Traffic (Solar-Energy was excluded due to data quality issues). No new external datasets are introduced, though the 15 diagnostic task labels are newly generated directly from the test splits of these series.

Key Insights and Ideas

  • Tokenization assigns the builder role: An FFN processes one token at a time. Give it a 16-point patch, and its nonlinearities easily compute within-patch variance or roughness—leaving self-attention with little to build. Shrink that token down to a single scalar ($P=1$), and a single point has no variance; attention must gather neighboring points first, shifting the feature-building role onto attention.
  • Just two points flip the switch: In PatchTST, going from single-point tokens ($P=1$) to just two points per token ($P=2$) immediately restores the FFN's dominance in feature construction.
  • "Attention" is three different jobs wearing one trench coat: Under patch tokens, self-attention is a replaceable token-mixer. Under whole-variate tokens (iTransformer), self-attention mixes across variables and becomes the primary feature constructor. In cross-attention architectures with learnable queries (CATS), attention is literally the only path for input data to enter the network.
  • Reliance $\neq$ Sufficiency: Knocking out attention in a frozen PatchTST hurts accuracy because downstream layers expect its outputs (distribution shift). Retrain from scratch without attention, however, and the FFN seamlessly absorbs the job with almost zero forecasting loss.

Key Results

Component dominance varies with tokenization and architecture.

Figure 3: Component dominance varies with tokenization and architecture. Layer-1 constructed- task deltas (volatility, diff energy, spectral entropy; 8-dataset means, 9 runs) for 4 settings, tagged by tokenization. ∗CATS cross-attention is reported as absolute accuracy, not as a delta, because the learnable queries start without per-instance input information; its bar is thus not on the delta scale. Its labels are those of the future patches the queries forecast.
  • Innate vs. Constructed split: At PatchTST's embedding layer, probes decode innate trend direction at 94.9–99.9% accuracy, while constructed tasks hover near 27.7–54.9% (4-class chance is 25%).
  • FFN dominates under patching: Across 8 datasets in PatchTST ($P=16$), Layer-1 FFN probing gain averages +20.4 percentage points (pp) vs. +6.4 pp for attention—a 3.2$\times$ advantage.
  • FFNs don't need attention: Training PatchTST from scratch without attention yields +28.8 pp total Layer-1 probing gain (vs. +26.7 pp with attention) and degrades mean forecasting MSE by just +2.0% (0.2352 vs. 0.2305). Conversely, zeroing attention in an already-trained model spikes MSE by +14.4%.
  • Role reversal across tokenizations: Shrinking PatchTST to $P=1$ slashes the FFN delta by 89% (down to +2.3 pp, while attention rises to +10.9 pp). In iTransformer (variate tokens), attention dominates the FFN by 2.5$\times$ (+13.8 pp vs. +5.5 pp). Component knockout MSE penalties rank architectures in the exact same order.

Limitations and Future Work

  • Correlation vs. causal feature usage: While interventions prove component-level reliance and sufficiency, they do not prove the forecaster causally uses the exact volatility or entropy features measured by the probes (attempts to erase individual concepts via nullspace projection removed up to 94% of dimensions and proved inconclusive).
  • Architectural scope: The framework requires models with linear input embeddings and linear forecasting heads. Lookback lengths, network depths, and alternative token mixers were not systematically varied.
  • Empirical, not theoretical: The authors provide intuitive arguments for why roles shift between $P=1$, patches, and variates, leaving a formal mathematical proof—as well as extending this lens to pretrained time series foundation models—for future work.

Summary updated

BibTeX
@inproceedings{kim2026tokenization,
  author = {Mingyu Kim and Doguk Kim},
  title = {{Tokenization and Architecture Jointly Allocate Component Roles in Time Series Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DF6i5h0EXW},
}
Figure