xPatch: Dual-Stream Time Series Forecasting with Exponential Seasonal-Trend Decomposition

Artyom Stitsyuk, Jaesik Choi · DOI

Introduction

Long-term time series forecasting (LTSF) is a critical task in various domains, yet it remains challenging due to the non-stationary nature of real-world data. While Transformer-based architectures have dominated deep learning, their application to LTSF has faced scrutiny. The permutation-invariant nature of self-attention often neglects the inherent sequential order of time series data. Furthermore, traditional seasonal-trend decomposition methods, such as Simple Moving Average (SMA), introduce biases through necessary padding. This paper introduces xPatch, a non-transformer architecture designed to address these limitations through Exponential Moving Average (EMA) decomposition and a specialized dual-stream network.

Methodology

The xPatch architecture is built upon three core technical innovations designed to improve forecasting accuracy and computational efficiency.

Exponential Seasonal-Trend Decomposition

Unlike traditional models that rely on SMA for decomposition, xPatch utilizes Exponential Moving Average (EMA). EMA assigns higher weights to more recent observations, allowing the model to adapt more quickly to shifting trends. Crucially, EMA eliminates the need for sequence padding, thereby avoiding the "tail-end bias" that can distort signals in SMA-based methods.

Dual-Stream Architecture

The model processes the decomposed components through two specialized paths:

  1. Linear Stream (MLP-based): This stream handles the Trend component, utilizing a Multi-Layer Perceptron to capture long-term progression.
  2. Non-linear Stream (CNN-based): The Seasonal component is processed via a Convolutional Neural Network. This stream incorporates patching—segmenting the series into sub-windows—and channel-independence to effectively model complex, repetitive patterns.
The xPatch architecture featuring EMA decomposition and dual-stream processing.

Optimization Enhancements

To further refine performance, xPatch introduces an Arctangent Loss function, which provides greater resilience to outliers by scaling errors for distant predictions more gracefully. Additionally, a Sigmoid Learning Rate Adjustment scheduler is employed to ensure stable training through a non-linear warm-up phase.

Experiments and Results

The performance of xPatch was evaluated across nine benchmark multivariate time series datasets, including ETT, Weather, Traffic, Electricity, Exchange-rate, ILI, and Solar-energy.

Comparative Performance

In comprehensive benchmarking against state-of-the-art (SOTA) models, xPatch demonstrated superior accuracy. It achieved the best results on 60% of datasets for Mean Squared Error (MSE) and 70% for Mean Absolute Error (MAE).

Comparison of xPatch against SOTA models across various benchmarks.

Quantitatively, xPatch outperformed the previous SOTA (CARD) by approximately 2.46% in MSE and 2.34% in MAE. When compared to the widely used PatchTST, xPatch showed a 4.76% improvement in MSE.

Computational Efficiency

Beyond accuracy, xPatch offers significant gains in speed. Its dual-stream design remains highly efficient, with inference times approximately 5.5x faster than CARD and 2.2x faster than PatchTST.

Conclusion and Future Work

xPatch demonstrates that specialized architectural biases, such as convolutions and linear mappings, can outperform general-purpose Transformers for continuous numerical time series data. By leveraging EMA for decomposition and a dual-stream approach, the model achieves SOTA performance with reduced computational overhead. Future research directions include developing adaptive smoothing factors for EMA and exploring efficient methods to capture cross-channel correlations in multivariate data.

Summary updated

BibTeX
@inproceedings{stitsyuk2025xpatch,
  author = {Artyom Stitsyuk and Jaesik Choi},
  title = {{xPatch: Dual-Stream Time Series Forecasting with Exponential Seasonal-Trend Decomposition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i19.34270},
}
Figure