PatchMixer: A Patch-Mixing Architecture for Long-Term Time Series Forecasting

1 Oct 2023  ·  Zeying Gong, Yujin Tang, Junwei Liang ·

Although the Transformer has been the dominant architecture for time series forecasting tasks in recent years, a fundamental challenge remains: the permutation-invariant self-attention mechanism within Transformers leads to a loss of temporal information. To tackle these challenges, we propose PatchMixer, a novel CNN-based model. It introduces a permutation-variant convolutional structure to preserve temporal information. Diverging from conventional CNNs in this field, which often employ multiple scales or numerous branches, our method relies exclusively on depthwise separable convolutions. This allows us to extract both local features and global correlations using a single-scale architecture. Furthermore, we employ dual forecasting heads that encompass both linear and nonlinear components to better model future curve trends and details. Our experimental results on seven time-series forecasting benchmarks indicate that compared with the state-of-the-art method and the best-performing CNN, PatchMixer yields $3.9\%$ and $21.2\%$ relative improvements, respectively, while being 2-3x faster than the most advanced method. We will release our code and model.

PDF Abstract

Datasets


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Time Series Forecasting ETTh1 (192) Multivariate PatchMixer MSE 0.373 # 1
MAE 0.394 # 8
Time Series Forecasting ETTh1 (192) Univariate PatchMixer MSE 0.066 # 1
MAE 0.198 # 5
Time Series Forecasting ETTh1 (336) Multivariate PatchMixer MSE 0.392 # 1
MAE 0.414 # 11
Time Series Forecasting ETTh1 (336) Univariate PatchMixer MSE 0.078 # 3
MAE 0.220 # 8
Time Series Forecasting ETTh1 (720) Multivariate PatchMixer MSE 0.445 # 3
MAE 0.463 # 9
Time Series Forecasting ETTh1 (720) Univariate PatchMixer MSE 0.093 # 6
MAE 0.243 # 7
Time Series Forecasting ETTh1 (96) Multivariate PatchMixer MSE 0.353 # 2
MAE 0.381 # 4
Time Series Forecasting ETTh1 (96) Univariate PatchMixer MSE 0.054 # 3
MAE 0.179 # 4
Time Series Forecasting ETTh2 (192) Multivariate PatchMixer MSE 0.274 # 1
MAE 0.334 # 7
Time Series Forecasting ETTh2 (192) Univariate PatchMixer MSE 0.147 # 1
MAE 0.305 # 6
Time Series Forecasting ETTh2 (336) Multivariate PatchMixer MSE 0.317 # 1
MAE 0.368 # 11
Time Series Forecasting ETTh2 (336) Univariate PatchMixer MSE 0.166 # 1
MAE 0.332 # 8
Time Series Forecasting ETTh2 (720) Multivariate PatchMixer MSE 0.393 # 2
MAE 0.426 # 9
Time Series Forecasting ETTh2 (720) Univariate PatchMixer MSE 0.217 # 4
MAE 0.374 # 4
Time Series Forecasting ETTh2 (96) Multivariate PatchMixer MSE 0.225 # 1
MAE 0.3 # 7
Time Series Forecasting ETTh2 (96) Univariate PatchMixer MSE 0.119 # 1
MAE 0.268 # 6

Methods