PHAT: Modeling Period Heterogeneity for Multivariate Time Series Forecasting
Jiaming Ma, Guanjun Wang, Qihe Huang, Sheng Huang, Haofeng Ma, Zhengyang Zhou, Pengkun Wang, Binwu Wang, Yang Wang
TL;DR
This work addresses the challenge of period heterogeneity in multivariate time series forecasting by introducing PHAT, a Period Heterogeneity-Aware Transformer. PHAT detects dominant periods via FFT, organizes variates into period buckets, and folds sequences into a 3D periodic representation to learn bucket-specific dynamics. A novel Positive-Negative Attention (PNA) with an X-shaped receptive field models both phase-aligned and offset periodic dependencies, including a periodic modulation term that biases attention according to autocorrelation structure. Empirical results across 14 real-world datasets against 18 baselines demonstrate state-of-the-art performance on the majority of metrics, alongside substantial efficiency gains and interpretable visualizations of learned periodic components.
Abstract
While existing multivariate time series forecasting models have advanced significantly in modeling periodicity, they largely neglect the periodic heterogeneity common in real-world data, where variates exhibit distinct and dynamically changing periods. To effectively capture this periodic heterogeneity, we propose PHAT (Period Heterogeneity-Aware Transformer). Specifically, PHAT arranges multivariate inputs into a three-dimensional "periodic bucket" tensor, where the dimensions correspond to variate group characteristics with similar periodicity, time steps aligned by phase, and offsets within the period. By restricting interactions within buckets and masking cross-bucket connections, PHAT effectively avoids interference from inconsistent periods. We also propose a positive-negative attention mechanism, which captures periodic dependencies from two perspectives: periodic alignment and periodic deviation. Additionally, the periodic alignment attention scores are decomposed into positive and negative components, with a modulation term encoding periodic priors. This modulation constrains the attention mechanism to more faithfully reflect the underlying periodic trends. A mathematical explanation is provided to support this property. We evaluate PHAT comprehensively on 14 real-world datasets against 18 baselines, and the results show that it significantly outperforms existing methods, achieving highly competitive forecasting performance. Our sources is available at GitHub.
