SEER: Transformer-based Robust Time Series Forecasting via Automated Patch Enhancement and Replacement

Xiangfei Qiu, Xvyuan Liu, Tianen Shen, Xingjian Wu, Hanyin Cheng, Bin Yang, Jilin Hu

Introduction

Time series forecasting is critical for decision-making across various domains. Recently, "patching"—the process of breaking a long sequence into smaller, semantically meaningful chunks—has become the gold standard for Transformer-based forecasting models. However, real-world data is rarely pristine. Missing values, distribution shifts, anomalies, and white noise frequently plague data collection.

Existing patch-based methods often treat every patch equally, leading to a "garbage in, garbage out" scenario where low-quality patches corrupt the entire prediction. To address this vulnerability, researchers have introduced SEER, a novel Transformer-based framework designed to dynamically identify and replace unreliable data patches, achieving state-of-the-art robustness and accuracy.

The SEER Architecture

SEER tackles data quality issues through two primary architectural innovations designed to filter noise and enhance signal representation:

1. Augmented Embedding Module

Instead of relying on standard linear projections, SEER employs a Mixture-of-Experts (MoE) architecture for patch-wise representations. This enriches the "vocabulary" of the patches by mapping different temporal patterns into specialized representation spaces. Simultaneously, the module generates a "global prototype" (a series-wise token) using a channel-adaptive perception mechanism. This token captures the overarching trend of the entire sequence, providing a stable reference point for the model.

2. Learnable Patch Replacement Module

This module acts as an automated quality control system through a two-stage process:

  • Automated Token Filter: A learnable gate assigns a quality score to every patch. If a patch's score falls below a specific threshold—indicating it is likely noise or an anomaly—it is flagged for replacement.
  • Replaced Causal Self-Attention: Rather than deleting "bad" patches (which would disrupt the temporal sequence), SEER substitutes them with the global series-wise token. A Causal Self-Attention mechanism then refines these replacements. Because the attention is causal, the substituted tokens gain unique context based on their exact position in the timeline, ensuring the model maintains strict temporal continuity.

Finally, the refined tokens pass through a standard Multi-Head Self-Attention layer and a linear predictor that utilizes dimensionality reduction to distill the most essential forecasting features.

Key Insights

  • MoE as a Semantic Enhancer: While MoE is often used simply to scale model size, SEER utilizes it for "heterogeneous representation." It helps the model distinguish between diverse signals (e.g., a seasonal trend versus a sudden spike) right at the embedding stage.
  • The "Substitute" Strategy: Swapping noisy patches for a "global average" provides a safe fallback, preventing the Transformer from overfitting to outliers.
  • Contextualizing the Generic: By using causal attention on the replaced tokens, the model ensures that even if multiple noisy patches are replaced by the identical global token, they each end up with a unique, position-aware representation.

Experimental Results

SEER was rigorously evaluated across a massive range of scenarios, including standard multivariate benchmarks (ETT, Weather, Electricity, Solar, Traffic), 8,068 univariate short-term series from the TFB benchmark, and robustness-specific datasets (ILI, NASDAQ, FRED-MD, etc.).

  • Superior Accuracy: SEER achieved a 7.3% reduction in Mean Squared Error (MSE) and a 4.9% reduction in Mean Absolute Error (MAE) compared to the previous best-performing baseline (xPatch).
  • Unrivaled Robustness: In stress tests where noise or anomalies were artificially increased (from 1% to 15%), SEER’s performance remained remarkably stable. In contrast, traditional models like DLinear and iTransformer saw their error rates climb sharply.
  • Efficiency: Feature compression (dimensionality reduction) in the final tokens actually improved performance, proving that filtering out noise is highly effective for future-value prediction.

Limitations and Future Directions

While highly effective, the authors note a few critical areas for future improvement:

  • Signal vs. Noise: In domains like finance or medicine, a sudden anomaly (e.g., a market crash) is a critical signal, not noise. SEER risks mistakenly filtering out these vital events if they closely resemble outliers.
  • Hyperparameter Sensitivity: The filtering threshold ($\tau$) requires careful tuning. If set too high, the model discards useful data; if too low, noise slips through. Automating this threshold is a logical next step.
  • Extreme Shifts: Under severe global distribution shifts, the "global prototype" itself might become unrepresentative, potentially leading to biased forecasts.

Summary updated

BibTeX
@inproceedings{qiu2026seer,
  author = {Xiangfei Qiu and Xvyuan Liu and Tianen Shen and Xingjian Wu and Hanyin Cheng and Bin Yang and Jilin Hu},
  title = {{SEER: Transformer-based Robust Time Series Forecasting via Automated Patch Enhancement and Replacement}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=nqnlfxuN8x},
}
Figure