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

Artyom Stitsyuk, Jaesik Choi

Introduction

Long-Term Time Series Forecasting (LTSF) has recently been dominated by Transformer-based architectures. While powerful, these models often struggle with the inherent sequential nature of time series due to their permutation-invariant self-attention mechanisms. Furthermore, the common practice of using Simple Moving Averages (SMA) for seasonal-trend decomposition introduces biases through necessary edge-padding. xPatch addresses these challenges by revisiting classical statistical techniques and combining them with a specialized dual-stream neural network architecture.

The xPatch Architecture

The core of xPatch lies in its departure from standard decomposition and attention-heavy designs. It introduces three primary innovations:

  1. Exponential Seasonal-Trend Decomposition: Unlike SMA, xPatch utilizes Exponential Moving Average (EMA). This approach weights recent observations more heavily and eliminates the need for edge-padding, resulting in a more adaptive and less distorted signal.
  2. Dual-Stream Processing: The model bifurcates the forecasting task into two specialized paths:
  3. Linear Stream (MLP): Handles the trend component using a simple Multi-Layer Perceptron without activation functions, focusing on linear, non-stationary progression.
  4. Non-linear Stream (CNN): Processes the seasonal component. It employs patching and channel-independence to capture complex, repetitive local patterns.
  5. Advanced Training Heuristics: A novel Arctangent Loss function is used to manage prediction variance over long horizons, complemented by a Sigmoid Learning Rate adjustment for stable convergence.
The xPatch architecture featuring EMA decomposition and dual-stream processing.

Experimental Results

The model was rigorously evaluated against nine real-world multivariate benchmarks, including the ETT datasets, Weather, Traffic, and Electricity consumption.

Accuracy and Robustness

In head-to-head comparisons, xPatch demonstrated a significant performance leap over existing state-of-the-art models like PatchTST. On average, it achieved a 4.76% reduction in Mean Squared Error (MSE) and a 6.20% reduction in Mean Absolute Error (MAE). The model proved exceptionally robust, securing the top performance spot on 90% of the datasets when measured by MAE.

Performance comparison of xPatch against state-of-the-art models across multiple benchmarks.

Computational Efficiency

Beyond accuracy, xPatch offers substantial gains in speed. Its inference time is approximately 1.3ms, making it more than twice as fast as PatchTST (2.9ms) and significantly more efficient than the CARD model (7.1ms). This efficiency stems from avoiding the quadratic complexity associated with standard Transformer attention mechanisms.

Conclusion

xPatch demonstrates that "classic" statistical tools like EMA, when integrated into modern deep learning frameworks, can outperform complex Transformer models. By specializing the architecture to handle trend and seasonality separately, xPatch achieves a new state-of-the-art in LTSF while remaining computationally lightweight. Future work will explore cross-channel dependencies to further enhance the model's ability to capture inter-variable correlations.

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