Pathformer: Multi-scale Transformers with Adaptive Pathways for Time Series Forecasting
Peng Chen, Yingying Zhang, Yunyao Cheng, Yang Shu, Yihang Wang, Qingsong Wen, Bin Yang, Chenjuan Guo
TL;DR
Pathformer tackles time series forecasting across multiple temporal scales by introducing a multi-scale Transformer that jointly models temporal resolution and temporal distance via patch division and dual attention. It adds adaptive pathways through a router-aggregator architecture with seasonality and trend decomposition to select and fuse scale-specific features, enabling data-driven, efficient multi-scale modeling. Extensive experiments on nine real-world datasets, plus large Wind Power and PEMS07 benchmarks, demonstrate state-of-the-art accuracy and strong transfer learning generalization, with lightweight part-tuning offering practical efficiency. This work advances adaptive multi-scale modeling in Transformers for time series and shows notable gains over contemporary baselines across domains.
Abstract
Transformers for time series forecasting mainly model time series from limited or fixed scales, making it challenging to capture different characteristics spanning various scales. We propose Pathformer, a multi-scale Transformer with adaptive pathways. It integrates both temporal resolution and temporal distance for multi-scale modeling. Multi-scale division divides the time series into different temporal resolutions using patches of various sizes. Based on the division of each scale, dual attention is performed over these patches to capture global correlations and local details as temporal dependencies. We further enrich the multi-scale Transformer with adaptive pathways, which adaptively adjust the multi-scale modeling process based on the varying temporal dynamics of the input, improving the accuracy and generalization of Pathformer. Extensive experiments on eleven real-world datasets demonstrate that Pathformer not only achieves state-of-the-art performance by surpassing all current models but also exhibits stronger generalization abilities under various transfer scenarios. The code is made available at https://github.com/decisionintelligence/pathformer.
