Integrating Inductive Biases in Transformers via Distillation for Financial Time Series Forecasting
Organizations: SinoPac Holdings, Taipei, Taiwan · National Chengchi University, Taipei, Taiwan
Abstract
Transformer-based models have been widely adopted for time-series forecasting due to their high representational capacity and architectural flexibility. However, many Transformer variants implicitly assume stationarity and stable temporal dynamics -- assumptions routinely violated in financial markets characterized by regime shifts and non-stationarity. Empirically, state-of-the-art time-series Transformers often underperform even vanilla Transformers on financial tasks, while simpler architectures with distinct inductive biases, such as CNNs and RNNs, can achieve stronger performance with substantially lower complexity. At the same time, no single inductive bias dominates across markets or regimes, suggesting that robust financial forecasting requires integrating complementary temporal priors. We propose TIPS (Transformer with Inductive Prior Synthesis), a knowledge distillation framework that synthesizes diverse inductive biases -- causality, locality, and periodicity -- within a unified Transformer. TIPS trains bias-specialized Transformer teachers via attention masking, then distills their knowledge into a single student model with regime-dependent alignment across inductive biases. Across four major equity markets, TIPS achieves state-of-the-art performance, outperforming strong ensemble baselines by 55%, 9%, and 16% in annual return, Sharpe ratio, and Calmar ratio, while requiring only 38% of the inference-time computation. Further analyses show that TIPS generates statistically significant excess returns beyond both vanilla Transformers and its teacher ensembles, and exhibits regime-dependent behavioral alignment with classical architectures during their profitable periods. These results highlight the importance of regime-dependent inductive bias utilization for robust generalization in non-stationary financial time series.
Figures & tables
| Inductive Bias | Classical Models | Transformer Design |
|---|---|---|
| Global Context | Standard Transformer | Vanilla Attention |
| Causality | RNNs, Mamba | Causal Attention Masks |
| Locality | TCN | Input Patching, Recency Decay Bias |
| Periodicity | Dilated CNN, LSTM Memory | Positional Bias (fixed/learnable) |
| Method | CSI300 | CSI500 | NI225 | SP500 | Avg. |
|---|---|---|---|---|---|
| Vanilla Transformer | 0.915 | 1.662 | 0.774 | 1.297 | 1.162 |
| Single Inductive Bias | |||||
| + Causality | 1.032 † | 1.510 | 0.841 † | 1.261 | 1.161 |
| + Locality | 0.972 † | 1.477 | 0.695 | 1.283 | 1.107 |
| + Periodicity | 1.056 † | 1.496 | 0.693 | 1.234 | 1.120 |
| Multiple Biases (Merged) | |||||
| Market | Region | # Stocks | Tr/Va/Te Split | SR | Auto Corr. |
|---|---|---|---|---|---|
| CSI300 | China | 295 | Tr: 2008-2019 Va: 2020 Te: 2021-2024 | 0.294 | 0.003 |
| CSI500 | China | 514 | 0.265 | 0.006 | |
| NI225 | Japan | 209 | 0.304 | -0.012 | |
| SP500 | US | 525 | 0.524 | -0.013 |
| Markets | CSI300 | CSI500 | NI225 | SP500 | Avg. across markets | Efficiency | ||||||||||
| Metrics | AR | SR | CR | AR | SR | CR | AR | SR | CR | AR | SR | CR | AR | SR | CR | FLOPs (G) |
| Generic Time Series SOTA | ||||||||||||||||
| DLinear | 0.071 | 0.259 | 0.173 | 0.192 | 0.604 | 0.481 | 0.134 | 0.553 | 0.472 | 0.378 | 0.914 | 1.168 | 0.194 | 0.583 | 0.574 | < 0.001 |
| TimeMixer | 0.155 | 0.642 | 0.533 | 0.170 | 0.650 | 0.412 | 0.120 | 0.538 | 0.392 | 0.203 | 0.795 | 0.732 | 0.162 | 0.656 | 0.517 | 1.123 |
| AutoFormer | 0.155 | 0.667 | 0.592 | 0.235 | 0.921 | 0.778 | 0.124 | 0.562 | 0.449 | 0.258 | 0.873 | 0.871 | 0.193 | 0.756 | 0.673 | 2.175 |
| PatchTST | 0.149 | 0.614 | 0.506 | 0.177 | 0.668 | 0.492 | 0.159 | 0.719 | 0.554 | 0.248 | 0.936 | 0.796 | 0.183 | 0.734 | 0.587 | 0.484 |
| Supervision | CSI300 | CSI500 | NI225 | SP500 | Avg. SR |
|---|---|---|---|---|---|
| 1.403 | 2.080 | 0.883 | 1.462 | 1.457 | |
| 1.307 | 2.036 | 0.985 | 1.505 | 1.458 | |
| (TIPS) | 1.343 | 2.010 | 0.958 | 1.506 | 1.454 |
| Method | CSI300 | CSI500 | NI225 | SP500 | Avg. SR | SR Gap ( ) |
|---|---|---|---|---|---|---|
| Bias Teacher Ensemble | 1.152 | 1.883 | 0.902 | 1.665 | 1.401 | 3.172 |
| TIPS | ||||||
| Vanilla Distill | 1.203 | 1.826 | 0.882 | 1.573 | 1.371 | 0.341 |
| + Low Temp. | 1.440 | 1.810 | 0.973 | 1.473 | 1.424 | 0.546 |
| + Aggressive LS | 1.324 | 2.024 | 0.905 | 1.554 | 1.452 | 0.560 |
| + SWA | 1.343 | 2.010 | 0.958 | 1.506 | 1.454 | 0.436 |
| Method | CSI300 | CSI500 | NI225 | SP500 |
|---|---|---|---|---|
| Causality | 0.257 | 0.295 | 0.240 | 0.447 |
| Locality | 0.236 | 0.241 | 0.238 | 0.369 |
| Periodicity | 0.235 | 0.244 | 0.243 | 0.373 |
| Vanilla | 0.239 | 0.250 | 0.253 | 0.413 |
| TIPS w/o LS & SWA | 0.563 | 0.655 | 0.470 | 0.641 |
| TIPS w/o SWA | 0.359 | 0.414 | 0.315 | 0.458 |
| Distill Steps | CSI300 | CSI500 | NI225 | SP500 | Average |
|---|---|---|---|---|---|
| Vanilla Distill | 0.531 0.179 | ||||
| + Low Temp. | 0.453 0.131 | ||||
| + Aggressive LS | 0.374 0.089 | ||||
| + SWA | 0.454 0.035 | 0.460 0.037 | 0.238 0.190 | 0.297 0.125 | 0.362 0.097 |
| Total Reduction | -25.2% | -30.1% | -30.6% | -42.6% | -31.8% |
| Bias Configuration | Method | CSI300 | CSI500 | NI225 | SP500 | Avg. SR |
|---|---|---|---|---|---|---|
| Causality only | Ensemble | 1.250 | 1.868 | 0.877 | 1.636 | 1.408 |
| Distill | 1.235 | 2.082 | 1.010 | 1.476 | 1.451 | |
| Locality only | Ensemble | 1.118 | 1.813 | 0.754 | 1.453 | 1.285 |
| Distill | 1.215 | 1.815 | 0.904 | 1.486 | 1.355 | |
| Periodicity only | Ensemble | 1.155 | 1.774 | 0.788 | 1.487 | 1.301 |
| Distill | 1.232 | 1.828 | 0.793 | 1.449 | 1.326 |
| vs. Vanilla Transformer | vs. Bias Teacher Ensemble | |||||||
|---|---|---|---|---|---|---|---|---|
| Market | Alpha ( ) | -stat | Beta ( ) | Alpha ( ) | -stat | Beta ( ) | ||
| CSI300 | 0.975 | 0.585 | 0.973 | 0.651 | ||||
| CSI500 | 1.207 | 0.682 | 1.156 | 0.742 | ||||
| NI225 | 1.019 | 0.703 | 1.056 | 0.988 | 0.768 | |||
| SP500 | 1.319 | 0.698 | 0.341 | 1.231 | 0.705 | |||
| Teacher Group | CSI300 | CSI500 | NI225 | SP500 |
|---|---|---|---|---|
| Causality | 0.090 | 0.258 | 0.000 | 0.001 |
| Locality | 0.319 | 0.280 | 0.323 | 0.313 |
| Periodicity | 0.409 | 0.337 | 0.373 | 0.434 |
| Vanilla | 0.166 | 0.104 | 0.238 | 0.147 |
| Average Teacher | 0.017 | 0.022 | 0.066 | 0.105 |
| Market | Baseline | SR | -stat | -value | ||
|---|---|---|---|---|---|---|
| CSI300 | Vanilla Transformer | 0.915 | 0.660 | 0.038 | 2.57 | 0.005** |
| LSTM | 0.842 | 0.649 | 0.025 | 1.18 | 0.120 | |
| GRU | 0.875 | 0.650 | 0.049 | 2.19 | 0.014* | |
| Mamba | 0.648 | 0.608 | 0.055 | 2.12 | 0.017* | |
| TCN | 1.169 | 0.599 | 0.023 | 1.47 | 0.071 | |
| CSI500 | Vanilla Transformer | 1.662 | 0.738 | -0.012 | -0.80 | 0.787 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Hidden | Layers | FFN | Heads | Dropout |
|---|---|---|---|---|---|
| GRU / LSTM | 64 | 2 | — | — | 0.0 |
| TCN † | 64 | 2 | — | — | 0.0 |
| Transformer | 64 | 2 | 256 | 4 | 0.0 |
| PatchTST ‡ | 64 | 2 | 256 | — | 0.0 |
| iTransformer | 64 | 2 | 256 | — | 0.0 |
| AutoFormer | 64 | 2 | — | — | 0.1 |
| Metrics | FLOPs(G) | Inf. Time(ms) | Memory(MB) | Params |
| Baselines | ||||
| DLinear | < 0.001 | 0.28 | 8.88 | 72 |
| TimeMixer | 1.123 | 4.79 | 77.39 | 7183 |
| AutoFormer | 2.175 | 20.00 | 46.08 | 244417 |
| PatchTST | 0.485 | 1.43 | 15.73 | 25878 |
| iTransformer | 0.611 | 1.07 | 28.41 | 101505 |
| Larger Transformer | |||||
|---|---|---|---|---|---|
| Market | TIPS | ||||
| CSI300 | 0.65 | 0.52 | 0.45 | 0.61 | 1.34 |
| CSI500 | 1.02 | 0.57 | 0.58 | 0.50 | 2.01 |
| NI225 | 0.76 | 0.68 | 0.70 | 0.70 | 0.96 |
| SP500 | 1.07 | 1.13 | 1.11 | 1.20 | 1.61 |
Time Series Forecasting
Time series forecasting predicts future values from ordered observations using statistical, neural, and probabilistic models to support decisions under uncertainty.
See all 858 papers