KALFormer: Knowledge-augmented attention learning for long-term time series forecasting with transformer
Time series forecasting remains a fundamental yet challenging task due to its inherent non-linear dynamics, inter-variable dependencies, and long-term temporal correlations. Existing approaches often struggle to jointly capture local temporal continuity and global contextual relationships, particularly under complex external influences. To overcome these limitations, we propose KALFormer, a knowledge-augmented attention learning transformer framework that integrates sequential modeling with external information fusion. KALFormer enhances spatiotemporal representation and contextual reasoning by integrating Long Short-Term Memory (LSTM) encoders, Transformer-based self-attention mechanisms, and knowledge-aware modules. Extensive experiments on six public benchmark datasets demonstrate that KALFormer achieves an average improvement of 8.4% in MSE and MAE compared with representative baseline models, highlighting its robustness, interpretability, and reliability for long-term time series forecasting. The source code is available at https://github.com/dxpython/KALFormer.
Authors
- Dong Xing (ORCID: https://orcid.org/0000-0003-3578-3343)
- Qianwei Yang
- Wenbo Cheng
- Yun Zhang
Institutions
- Guizhou University (CN)
- Shenzhen University (CN)
Publication Details
- Journal
- PLoS ONE
- Published
- 2026-01-05
- DOI
- https://doi.org/10.1371/journal.pone.0338052
- Primary Topic
- Traffic Prediction and Management Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Guizhou University