Tokenization and Architecture Jointly Allocate Component Roles in Time Series Transformers
Organizations: Department of Artificial Intelligence Inha University Incheon, Republic of Korea
Abstract
Time series transformers have achieved strong forecasting performance, yet it remains unclear which of their components, attention or the feed-forward network (FFN), constructs temporal features, and how tokenization such as patching changes this. We propose a temporal probing framework that uses 15 token-level diagnostic tasks to measure feature construction as the gain in linear decodability of temporal properties from one sub-layer to the next (a matched MLP probe already saturates at the embedding). It targets models whose probed representations are read by a linear forecasting head. Applied to 5 supervised models trained on 8 long-term forecasting benchmarks, it finds that the constructing component is not fixed but allocated by the interaction of tokenization and architecture. Under patch tokenization (PatchTST), the FFN's gain exceeds attention's in probing on all 8 datasets, and its 8-dataset mean is 3.2x attention's. Without attention, the FFN alone reaches nearly the same total gain, both when attention is removed from a trained model and when PatchTST is trained without it, and the retrained model forecasts within a few percent of the full model. In probing, attention dominates under variate tokenization (iTransformer); in CATS, cross-attention is the only input path. In a controlled manipulation of PatchTST, single-scalar tokens (P=1) nearly eliminate the FFN's construction, while one more point per token (P=2) restores it. Our forecasting-side interventions (activation patching, knockout, and training without attention) establish component-level reliance and sufficiency. These results offer a representational reading of prior findings on the gains from patching, the competitiveness of self-attention-free models (TSMixer, PatchMLP), and the distinct role of cross-attention in CATS.
Figures & tables
| Task | Cl. | Dom. | Computation | Task | Cl. | Dom. | Computation |
|---|---|---|---|---|---|---|---|
| volatility C | 4 | stat | quartile | adjacent_similarity | 2 | stat | |
| diff_energy C | 4 | diff | quartile | relative_magnitude | 2 | stat | |
| spectral_entropy C | 4 | freq | quartile | position_quarter | 4 | time | token-index quarter |
| trend_direction I | 2 | time | trend_consistency | 2 | time | 3-token trend alignment | |
| slope_magnitude B | 4 | time | quartile | reg_variance C | stat | continuous | |
| change_point B | 2 | time | top 30% | reg_slope I | time | continuous |
| ETTm1 | ETTm2 | ETTh1 | ETTh2 | Weather | Electricity | Exchange | Traffic | Mean | |
|---|---|---|---|---|---|---|---|---|---|
| Attn | 1.6 | 0.5 | 0.4 | 0.9 | 0.7 | 0.5 | 0.6 | 0.4 | 0.7 |
| FFN | 1.7 | 0.7 | 1.8 | 2.2 | 1.8 | 0.8 | 2.4 | 0.6 | 1.5 |
| Ratio | 1.9 | alone | alone | alone | 1.3 | 2.1 | alone | 2.2 | 3.2 |
| Model | Attn | FFN | Total | MSE | MSE change |
|---|---|---|---|---|---|
| PatchTST | |||||
| NoAttn, ablated | |||||
| NoAttn, from scratch |
Appendix figures & tables39 assets
Supplementary material from the paper’s appendix.
Appendix
| Self-Attention | Cross-Attention | No Attention | |
|---|---|---|---|
| Point ( ) | PatchTST ( ) | — | — |
| Time step (aux.) | Informer | — | — |
| Patch | PatchTST ( ) | CATS | PatchTST-NoAttn ( ) |
| Variate (whole series) | iTransformer | — | — |
| Model | Tokenization | patch_len | stride | |
|---|---|---|---|---|
| PatchTST ( ) | Patch | 3 | 16 | 8 |
| PatchTST ( ) | Point | 3 | 1 | 1 |
| PatchTST-NoAttn | Patch (attn output ) | 3 | 16 | 8 |
| iTransformer | Variate (whole series) | varies (2–4) | — | — |
| CATS | Patch (cross-attn only) | 0 enc / 3 dec | 24 or 48 | 24 or 48 |
| Informer | Time step (conv ; ProbSparse) | 2 enc / 1 dec | — | — |
| Datasets | |||
|---|---|---|---|
| ETTh1, ETTh2, Exchange | 16 | 128 | 4 |
| ETTm1, ETTm2, Weather, Electricity, Solar, Traffic | 128 | 256 | 16 |
| Datasets | |||
|---|---|---|---|
| ETTh1 | 256 | 2 | 256 |
| ETTh2, ETTm1, ETTm2, Exchange | 128 | 2 | 128 |
| Solar | 512 | 2 | 512 |
| Weather, Electricity | 512 | 3 | 512 |
| Traffic | 512 | 4 | 512 |
| Dataset | Variables | Train/Val/Test | Frequency | Domain |
|---|---|---|---|---|
| ETTm1 | 7 | (34465, 11521, 11521) | 15 min | Electricity |
| ETTm2 | 7 | (34465, 11521, 11521) | 15 min | Electricity |
| ETTh1 | 7 | (8545, 2881, 2881) | 1 hour | Electricity |
| ETTh2 | 7 | (8545, 2881, 2881) | 1 hour | Electricity |
| Weather | 21 | (36792, 5271, 10540) | 10 min | Weather |
| Electricity | 321 | (18317, 2633, 5261) | 1 hour | Electricity |
| dom_p | ||||||
|---|---|---|---|---|---|---|
| Dataset | trend | probe | majority | Vol | DE | SE |
| ETTm1 | 99.6 | 96.2 | 96.25 | 38.9 | 42.1 | 30.2 |
| ETTm2 | 99.3 | 90.0 | 89.88 | 36.9 | 34.8 | 40.9 |
| ETTh1 | 97.9 | 92.3 | 92.36 | 37.6 | 38.7 | 35.8 |
| ETTh2 | 95.3 | 84.9 | 84.93 | 33.7 | 27.7 | 30.7 |
| Weather | 98.5 | 97.8 | 97.82 | 33.6 | 33.8 | 36.2 |
| Dataset | Vol Attn | Vol FFN | DE Attn | DE FFN | SE Attn | SE FFN |
|---|---|---|---|---|---|---|
| ETTm1 | 2.1 | 2.3 | 1.6 | 1.9 | 1.2 | 0.9 |
| ETTm2 | 0.4 | 0.6 | 0.4 | 0.6 | 0.8 | 0.8 |
| ETTh1 | 0.4 | 1.6 | 0.3 | 1.9 | 0.4 | 1.9 |
| ETTh2 | 1.1 | 3.3 | 1.1 | 1.3 | 0.6 | 1.9 |
| Weather | 0.4 | 1.8 | 0.6 | 1.5 | 1.0 | 2.1 |
| Electricity | 0.4 | 0.5 | 0.5 | 1.2 | 0.5 | 0.6 |
| Task | embed | 1a_attn | 1b_ffn | 2a_attn | 2b_ffn | 3a_attn | 3b_ffn |
|---|---|---|---|---|---|---|---|
| Innate and degenerate (classification) | |||||||
| trend_direction | 0.0 | 0.0 | 0.1 | 0.2 | 0.2 | 0.1 | 0.1 |
| dominant_period | 0.1 | 0.1 | 0.2 | 0.1 | 0.1 | 0.1 | 0.1 |
| Constructed (classification) | |||||||
| volatility q4 | 0.4 | 2.1 | 1.0 | 1.4 | 0.8 | 1.2 | 0.9 |
| diff_energy q4 | 0.4 | 1.5 | 1.1 | 0.6 | 0.8 | 0.7 | 1.0 |
| Dataset | embed | 1b_ffn | 1b_ffn embed | reg_slope (embed) |
|---|---|---|---|---|
| ETTm1 | 0.000 | 0.005 | +0.952 | 1.000 |
| ETTm2 | 0.003 | 0.013 | +0.884 | 1.000 |
| ETTh1 | 0.002 | 0.072 | +0.132 | 0.996 |
| ETTh2 | 0.001 | 0.067 | +0.308 | 0.993 |
| Weather | 0.002 | 0.005 | +0.900 | 1.000 |
| Electricity | 0.003 | 0.003 | +0.780 | 1.000 |
| Dataset | Vol Attn | Vol FFN | DE Attn | DE FFN | SE Attn | SE FFN | Avg Attn | Avg FFN |
|---|---|---|---|---|---|---|---|---|
| ETTm1 | 1.5 | 2.1 | 0.8 | 0.9 | 1.0 | 1.9 | 1.1 | 1.6 |
| ETTm2 | 0.7 | 0.6 | 2.6 | 0.9 | 2.9 | 1.7 | 2.1 | 1.0 |
| ETTh1 | 1.5 | 1.5 | 0.9 | 1.4 | 1.0 | 0.9 | 1.1 | 1.3 |
| ETTh2 | 1.4 | 1.1 | 0.8 | 0.9 | 1.1 | 1.1 | 1.1 | 1.0 |
| Weather | 0.7 | 0.7 | 1.7 | 0.8 | 0.4 | 0.4 | 0.9 | 0.7 |
| Electricity | 0.4 | 0.4 | 0.6 | 0.5 | 0.5 | 0.4 | 0.5 | 0.4 |
| Dataset | Vol 1a_cross | Vol FFN | DE 1a_cross | DE FFN | SE 1a_cross | SE FFN |
|---|---|---|---|---|---|---|
| ETTm1 | 1.0 | 1.1 | 0.5 | 0.7 | 0.3 | 0.4 |
| ETTm2 | 0.3 | 0.5 | 0.3 | 0.7 | 0.1 | 0.5 |
| ETTh1 | 0.6 | 0.7 | 0.4 | 0.5 | 0.3 | 0.9 |
| ETTh2 | 0.4 | 0.6 | 0.7 | 1.1 | 0.4 | 1.0 |
| Weather | 0.3 | 0.4 | 0.2 | 0.3 | 0.1 | 0.2 |
| Electricity | 0.2 | 0.2 | 0.2 | 0.3 | 0.4 | 0.4 |
| PatchTST | NoAttn, ablated | NoAttn, from scratch | ||||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Attn | FFN | FFN | FFN change | Total change | FFN | FFN change | Total change |
| ETTm1 | 1.6 | 1.7 | 1.2 | 2.4 | ||||
| ETTm2 | 0.5 | 0.7 | 0.5 | 0.6 | ||||
| ETTh1 | 0.4 | 1.8 | 1.9 | 1.7 | ||||
| ETTh2 | 0.9 | 2.2 | 2.8 | 3.9 | ||||
| Weather | 0.7 | 1.8 | 2.5 | 0.9 | ||||
| Dataset | Vol Attn | Vol FFN | DE Attn | DE FFN | SE Attn | SE FFN |
|---|---|---|---|---|---|---|
| Ablated | ||||||
| ETTm1 | 0.6 | 1.0 | 0.7 | 0.9 | 1.8 | 1.7 |
| ETTm2 | 0.4 | 0.6 | 0.2 | 0.4 | 0.4 | 0.5 |
| ETTh1 | 0.3 | 1.2 | 0.3 | 1.9 | 0.3 | 2.6 |
| ETTh2 | 1.2 | 4.2 | 1.0 | 1.7 | 0.6 | 2.5 |
| Weather | 0.3 | 2.7 | 0.6 | 1.9 | 0.7 | 2.9 |
| Dataset | Vol Attn | Vol FFN | DE Attn | DE FFN | SE Attn | SE FFN | Avg Attn | Avg FFN |
|---|---|---|---|---|---|---|---|---|
| ETTm1 | 1.7 | 3.4 | 2.5 | 3.6 | 2.4 | 3.1 | 2.2 | 3.4 |
| ETTm2 | 0.7 | 0.9 | 1.1 | 1.7 | 1.0 | 1.3 | 1.0 | 1.3 |
| ETTh1 | 3.3 | 3.5 | 2.3 | 2.4 | 1.9 | 2.1 | 2.5 | 2.7 |
| ETTh2 | 1.0 | 1.8 | 1.3 | 1.9 | 4.7 | 5.7 | 2.3 | 3.1 |
| Weather | 0.8 | 1.0 | 1.3 | 1.3 | 0.6 | 0.5 | 0.9 | 0.9 |
| Electricity | 1.3 | 1.9 | 1.2 | 1.8 | 0.7 | 1.3 | 1.1 | 1.7 |
| Dataset | L1 FFN | FFN | Attn | L1 FFN | FFN | Max deeper FFN |
|---|---|---|---|---|---|---|
| ETTm1 | ||||||
| ETTm2 | ||||||
| ETTh1 | ||||||
| ETTh2 | ||||||
| Weather | ||||||
| Dataset | embed | 1a_attn | 1b_ffn | 2a_attn | 2b_ffn | 3a_attn | 3b_ffn |
|---|---|---|---|---|---|---|---|
| ETTm1 | 0.2 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.0 |
| ETTm2 | 0.1 | 0.1 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 |
| ETTh1 | 0.2 | 0.2 | 0.1 | 0.2 | 0.1 | 0.2 | 0.1 |
| ETTh2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.3 |
| Weather | 0.1 | 0.2 | 0.1 | 0.2 | 0.1 | 0.1 | 0.1 |
| Electricity | 0.1 | 0.2 | 0.1 | 0.2 | 0.2 | 0.2 | 0.2 |
| Dataset | Attn | FFN |
|---|---|---|
| ETTm1 | ||
| ETTh1 | ||
| Weather | ||
| Electricity | ||
| Mean |
| Model | Task | Attn | FFN |
|---|---|---|---|
| PatchTST | adjacent_similarity | ||
| relative_magnitude | |||
| position_quarter | |||
| trend_consistency | |||
| iTransformer | adjacent_similarity | ||
| relative_magnitude |
| Seasonal conc. | Multi-scale ratio | Long-range cons. | Control | |||||
|---|---|---|---|---|---|---|---|---|
| Dataset | Attn | FFN | Attn | FFN | Attn | FFN | Attn | FFN |
| ETTm1 | 0.3 | 0.5 | 0.9 | 0.9 | 0.2 | 0.4 | 0.3 | 0.3 |
| ETTm2 | 0.6 | 0.8 | 0.4 | 1.8 | 0.3 | 0.4 | 0.3 | 0.3 |
| ETTh1 | 0.4 | 1.2 | 0.5 | 1.4 | 0.4 | 0.6 | 0.1 | 0.1 |
| ETTh2 | 1.1 | 1.2 | 0.8 | 1.2 | 0.4 | 0.4 | 0.3 | 0.3 |
| Weather | 0.8 | 1.1 | 0.7 | 1.1 | 0.8 | 0.8 | 0.2 | 0.3 |
| ETTh1 | ETTm1 | Weather | Electricity | |||||
|---|---|---|---|---|---|---|---|---|
| (stride) | Attn | FFN | Attn | FFN | Attn | FFN | Attn | FFN |
| 1 (1) | 2.5 | 2.7 | 2.2 | 3.4 | 0.9 | 0.9 | 1.1 | 1.7 |
| 2 (1) | 0.8 | 3.3 | 0.7 | 4.2 | 2.4 | 3.2 | 4.7 | 4.8 |
| 4 (2) | 0.8 | 2.9 | 1.6 | 4.3 | 1.2 | 1.6 | 0.8 | 2.9 |
| 8 (4) | 0.7 | 2.6 | 1.5 | 3.1 | 1.0 | 1.5 | 0.6 | 1.1 |
| 16 (8) | 0.4 | 1.8 | 1.6 | 1.7 | 0.7 | 1.8 | 0.5 | 0.8 |
| Dataset | pred_len | Attn | FFN | Ratio |
|---|---|---|---|---|
| ETTm1 | 96 | 1.9 | ||
| ETTm1 | 192 | 1.6 | ||
| ETTm1 | 336 | 1.8 | ||
| ETTm1 | 720 | 2.0 | ||
| ETTh1 | 96 | — | ||
| ETTh1 | 192 | — |
| Dataset | Q1 | Q2 | Q3 | zero% | Status |
|---|---|---|---|---|---|
| ETTm1 | 0.064 | 0.198 | 0.399 | 0.3% | ✓normal |
| ETTm2 | 0.092 | 0.348 | 0.668 | 12.9% | ✓normal |
| ETTh1 | 0.327 | 0.646 | 1.041 | 1.3% | ✓normal |
| ETTh2 | 0.244 | 0.582 | 0.951 | 11.4% | ✓normal |
| Weather | 0.003 | 0.020 | 0.109 | 14.7% | ✓normal |
| Electricity | 0.483 | 0.810 | 1.099 | 0.4% | ✓normal |
| Dataset | #Variables | Mean correlation | 0.5 ratio | Status |
|---|---|---|---|---|
| ETTm1 | 7 | 0.062 | 9.5% | ✓low |
| ETTm2 | 7 | 0.241 | 19.0% | ✓low |
| ETTh1 | 7 | 0.113 | 14.3% | ✓low |
| ETTh2 | 7 | 0.276 | 28.6% | ✓low |
| Weather | 21 | 0.033 | 22.4% | ✓low |
| Electricity | 321 | 0.491 | 55.6% | moderate |
| Metric | 8 datasets (main) | 8 datasets + Solar | Diff |
|---|---|---|---|
| PatchTST Attn | |||
| PatchTST FFN | |||
| iTransformer Attn | |||
| iTransformer FFN | |||
| CATS cross-attn accuracy | |||
| CATS FFN |
| Task | embed | 1a_attn | 1b_ffn | 2a_attn | 2b_ffn | 3a_attn | 3b_ffn |
|---|---|---|---|---|---|---|---|
| Innate and degenerate (classification) | |||||||
| trend_direction | 0.0 | 0.0 | 0.0 | 0.1 | 0.0 | 0.1 | 0.2 |
| dominant_period | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| Constructed (classification) | |||||||
| volatility q4 | 0.1 | 0.5 | 0.2 | 0.2 | 0.1 | 0.2 | 0.3 |
| diff_energy q4 | 0.1 | 0.4 | 0.4 | 0.2 | 0.3 | 0.1 | 0.1 |
| Task | Total DWConv | Total ConvFFN1 | Total ConvFFN2 | Total ConvFFN |
|---|---|---|---|---|
| volatility | ||||
| diff_energy | ||||
| spectral_entropy | ||||
| Constructed avg |
| Layer | Task | 1k | 5k | 10k | 20k | 30k | 50k | 80k |
|---|---|---|---|---|---|---|---|---|
| embed | volatility | 38.6 | 38.7 | 38.7 | 38.7 | 38.7 | 38.7 | 38.7 |
| 1a_attn | volatility | 43.9 | 46.8 | 47.9 | 48.7 | 49.2 | 49.7 | 50.2 |
| 1b_ffn | volatility | 70.2 | 79.7 | 81.6 | 83.0 | 83.8 | 84.6 | 85.4 |
| embed | diff_energy | 41.4 | 41.5 | 41.5 | 41.5 | 41.5 | 41.5 | 41.5 |
| 1a_attn | diff_energy | 49.6 | 52.8 | 54.1 | 55.1 | 55.7 | 56.5 | 57.1 |
| 1b_ffn | diff_energy | 54.6 | 61.2 | 63.5 | 65.3 | 66.2 | 67.2 | 68.0 |
| ETTm1 | ETTh1 | Weather | Electricity | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Task | Probe | embed | FFN | embed | FFN | embed | FFN | embed | FFN |
| volatility | Linear | 38.9 | 37.6 | 33.6 | 41.6 | ||||
| MLP | 99.0 | 95.5 | 99.1 | 97.5 | |||||
| diff_energy | Linear | 42.1 | 38.7 | 33.8 | 38.4 | ||||
| MLP | 98.6 | 92.9 | 97.5 | 96.4 | |||||
| spectral_entropy | Linear | 30.2 | 35.8 | 36.2 | 41.6 | ||||
| Task | embed | 1a_attn | 1b_ffn | Total | Cohen’s | |
|---|---|---|---|---|---|---|
| Constructed | ||||||
| volatility q4 | ||||||
| diff_energy q4 | ||||||
| spectral_entropy q4 | ||||||
| Constructed avg | ||||||
| Innate and degenerate | ||||||
| Architecture | First sub-layer | (sel) | (sel) | (raw) | (raw) |
|---|---|---|---|---|---|
| PatchTST | attn | ||||
| PatchTST-NoAttn | attn (ablated) | ||||
| iTransformer | attn | ||||
| CATS † | cross |
| Q-side layer | Selectivity | Sub-layer |
|---|---|---|
| 1a_cross | — (start; cross-attention output) | |
| 1b_ffn | ||
| 2a_cross | ||
| 2b_ffn | ||
| 3a_cross | ||
| 3b_ffn |
| Dataset | Damage | L1_attn | L1_ffn | (FFN attn) | Cohen’s |
|---|---|---|---|---|---|
| ETTm1 | |||||
| ETTm2 | |||||
| ETTh1 | |||||
| ETTh2 | |||||
| Weather | |||||
| Electricity |
| Component | ETTm1 | ETTm2 | ETTh1 | ETTh2 | Weather | Electricity | Exchange | Traffic |
|---|---|---|---|---|---|---|---|---|
| L1_attn | ||||||||
| L1_ffn | ||||||||
| L2_attn | ||||||||
| L2_ffn | ||||||||
| L3_attn | ||||||||
| L3_ffn |
| Dataset | L1_attn | L1_ffn | L1_attn | L1_ffn | |
|---|---|---|---|---|---|
| ETTh1 | |||||
| ETTm1 | |||||
| Corruption | Dataset | L1_attn | L1_ffn | |
|---|---|---|---|---|
| Temporal | ETTh1 | |||
| Temporal | Electricity | |||
| Cross-variate | ETTh1 | |||
| Cross-variate | Electricity | |||
| Cross-variate | Traffic |
| Dataset | PatchTST | Ablated | Change (%) | From scratch | Change (%) |
|---|---|---|---|---|---|
| ETTm1 | 0.002 | 0.007 | 1.7 | 0.001 | |
| ETTm2 | 0.001 | 0.001 | 0.8 | 0.001 | |
| ETTh1 | 0.001 | 0.001 | 0.2 | 0.001 | |
| ETTh2 | 0.000 | 0.001 | 0.5 | 0.000 | |
| Weather | 0.000 | 0.002 | 1.4 | 0.000 | |
| Electricity | 0.001 | 0.004 | 4.0 | 0.000 |
| PatchTST | iTransformer | CATS | ||||
| Dataset | Attn | FFN | Attn | FFN | Attn | FFN |
| ETTm1 | 1.7 | 8.5 | 1.5 | 2.2 | 4.2 | 0.5 |
| ETTm2 | 0.8 | 2.0 | 1.2 | 0.3 | 1.2 | 0.5 |
| ETTh1 | 0.2 | 2.0 | 1.1 | 0.7 | 0.9 | 0.3 |
| ETTh2 | 0.5 | 0.2 | 0.5 | 0.1 | 0.2 | 0.6 |
| Weather | 1.4 | 1.7 | 3.0 | 0.6 | 0.5 | 1.6 |
| ETTh1 | ETTm1 | Weather | Exchange | |||||
|---|---|---|---|---|---|---|---|---|
| Attn | FFN | Attn | FFN | Attn | FFN | Attn | FFN | |
| 1 | 1.0 | 0.8 | 8.2 | 9.1 | 8.4 | 4.8 | 11.2 | 1.9 |
| 16 | 0.2 | 2.0 | 1.7 | 8.5 | 1.4 | 1.7 | 4.6 | 5.6 |
| Dataset ( ) | Task | Removed (%) | Probe (%) | Energy (%) | Cost difference |
|---|---|---|---|---|---|
| ETTm1 (128) | volatility | / | 0.07 | ||
| ETTm1 (128) | diff_energy | / | 0.16 | ||
| ETTm1 (128) | spectral_entropy | / | 0.26 | ||
| Weather (128) | volatility | / | 0.09 | ||
| Weather (128) | diff_energy | / | 0.17 | ||
| Weather (128) | spectral_entropy | / | 0.09 |
Time Series Transformers
Time Series Transformers use attention-based sequence models to forecast, classify, and detect patterns in temporal data.
See all 154 papers