Beyond Static Positional Encoding: Bayesian Time-aware Attention for Non-Stationary Long-term Time Series Forecasting
On the map: Mixture-of-experts → MoE for time series and graphs
Abstract (arXiv)
Transformers have demonstrated strong performance in long-term time series forecasting (LTSF), yet modeling non-stationary temporal dependencies remains challenging. In this paper, we interpret self-attention as a Bayesian posterior over attended positions, combining a content-based prior induced by scaled dot-product similarity with a temporal-evidence likelihood induced by positional encoding. This formulation provides a probabilistic interpretation of how positional encoding shapes the temporal dependencies captured by self-attention. Building on this perspective, we derive a population-level evidence lower bound (ELBO) that characterizes the role of positional encoding in forecasting weakly stationary time series. Our analysis further highlights a limitation of static positional encoding: when temporal dependence structures vary across input windows, a fixed temporal bias must accommodate heterogeneous dynamics and can therefore be suboptimal for non-stationary forecasting. Motivated by this analysis, we propose Bayesian Time-aware Attention (BTA), which employs a mixture-of-experts (MoE) router to adaptively combine temporal kernels and generate input-conditioned, head-specific positional biases. Extensive experiments on standard LTSF benchmarks demonstrate that BTA consistently improves forecasting performance across multiple Transformer backbones and achieves competitive overall performance with modest computational overhead and stable training.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in MoE for time series and graphs, one of 12 directions in Mixture-of-experts. Builds on 42 of its 52 references that are in the map. First posted on arXiv 14 Oct 2026.
Builds on
42 of 52 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,169
- 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 2,039
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2022Are Transformers Effective for Time Series Forecasting?cited by 1,424
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2022TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysiscited by 1,058
- 2023iTransformer: Inverted Transformers Are Effective for Time Series Forecastingcited by 931
- 2022Transformers in Time Series: A Surveycited by 497
30 more
- 2022Non-stationary Transformers: Exploring the Stationarity in Time Series Forecastingcited by 391
- 2024TimeMixer: Decomposable Multiscale Mixing for Time Series Forecastingcited by 346
- 2024A Survey on Mixture of Experts in Large Language Modelscited by 237
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 213
- 2021AdaRNN: Adaptive Learning and Forecasting of Time Seriescited by 121
- 2024DUET: Dual Clustering Enhanced Multivariate Time Series Forecastingcited by 107
- 2023Dish-TS: A General Paradigm for Alleviating Distribution Shift in Time Series Forecastingcited by 93
- 2024Timer-XL: Long-Context Transformers for Unified Time Series Forecastingcited by 87
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 86
- 2023OneNet: Enhancing Time Series Forecasting Models under Concept Drift by Online Ensemblingcited by 74
- 2024Frequency Adaptive Normalization For Non-stationary Time Series Forecastingcited by 47
- 2022Learning Fast and Slow for Online Time Series Forecastingcited by 45
- 2023Improving Position Encoding of Transformers for Multivariate Time Series Classificationcited by 45
- 2024TimeBridge: Non-Stationarity Matters for Long-term Time Series Forecastingcited by 40
- 2021Relative Positional Encoding for Transformers with Linear Complexitycited by 37
- 2022Koopman Neural Forecaster for Time Series with Temporal Distribution Shiftscited by 37
- 2024Learning Pattern-Specific Experts for Time Series Forecasting Under Patch-level Distribution Shiftcited by 24
- 2025Foundation Models for Time Series: A Surveycited by 23
- 2024Are Self-Attentions Effective for Time Series Forecasting?cited by 19
- 2025Positional Encoding in Transformer-Based Time Series Models: A Surveycited by 14
- 2025Towards Non-Stationary Time Series Forecasting with Temporal Stabilization and Frequency Differencingcited by 10
- 2022Combating Distribution Shift for Accurate Time Series Forecasting via Hypernetworkscited by 9
- 2023GBT: Two-stage transformer framework for non-stationary time series forecastingcited by 8
- 2024IN-Flow: Instance Normalization Flow for Non-stationary Time Series Forecastingcited by 7
- 2023Sparse Transformer with Local and Seasonal Adaptation for Multivariate Time Series Forecastingcited by 3
- 2024FredNormer: Frequency Domain Normalization for Non-stationary Time Series Forecastingcited by 3
- 2025PENGUIN: Enhancing Transformer with Periodic-Nested Group Attention for Long-term Time Series Forecastingcited by 3
- 2026PULSE: Generative Phase Evolution for Non-Stationary Time Series Forecastingcited by 2
- 2022DynaConF: Dynamic Forecasting of Non-Stationary Time Seriescited by 1
- 2025APT: Affine Prototype-Timestamp For Time Series Forecasting Under Distribution Shiftcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025A Mechanistic Analysis of Transformers for Dynamical Systems
- 2026KITE: A Knowledge-Injected Temporal Encoder for Time-Series Event Forecasting
- 2024MambaTS: Improved Selective State Space Models for Long-term Time Series Forecasting
- 2026Deep TPC: Temporal-Prior Conditioning for Time Series Forecasting
- 2025LLM-Integrated Bayesian State Space Models for Multimodal Time-Series Forecasting
- 2024A Temporal Kolmogorov-Arnold Transformer for Time Series Forecasting
- 2026Retrieval Is Not Enough: Refreshing Memory for Frozen Time-Series Forecasters
- 2025S2TX: Cross-Attention Multi-Scale State-Space Transformer for Time Series Forecasting