arXiv:cs.LG· Xinjie Lan, Yunbo Mei, Leheng Zhou, Hao Qi·· 4 小时前
超越静态位置编码:面向非平稳长期时间序列预测的贝叶斯时间感知注意力
Beyond Static Positional Encoding: Bayesian Time-aware Attention for Non-Stationary Long-term Time Series Forecasting
AI 导读
研究者提出 Bayesian Time-aware Attention(BTA),用混合专家(MoE)路由器自适应组合时间核,生成以输入为条件、分头特定的位置偏置。该设计源于将自注意力解释为贝叶斯后验的分析:静态位置编码在时间依赖结构随输入窗口变化时难以适配异质动态。在标准 LTSF 基准上,BTA 在多个 Transformer 骨干上持续提升预测性能,计算开销适中且训练稳定。
正文
Abstract: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.
| Comments: | 44 pages, 12 figures, including appendices |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.19603 [cs.LG] |
| (or arXiv:2610.19603v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.19603 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Hao Qi [view email]
[v1]
Wed, 14 Oct 2026 05:23:29 UTC (1,101 KB)
来源:arXiv:cs.LG · arxiv.org