Selective Learning for Deep Time Series Forecasting

Yisong Fu, Zezhi Shao, Chengqing Yu, Yujie Li, Zhulin An, Cheems Wang, Yongjun Xu, Fei Wang

TL;DR

Selective Learning is a model-agnostic training strategy designed to prevent deep time series models from overfitting by identifying and masking "non-generalizable" timesteps. By utilizing a dual-mask mechanism to filter out noise and anomalies during optimization, it achieves significant performance gains across diverse real-world datasets, including a remarkable 37.4% Mean Squared Error (MSE) reduction for the Informer model.

What Problem Does This Paper Address?

Deep learning has revolutionized time series forecasting (TSF) due to its high capacity for capturing complex temporal patterns. However, these powerful models harbor a significant vulnerability: they are incredibly prone to overfitting. In many real-world domains, such as industrial sensing or stock markets, data is inherently messy, filled with random noise and one-off anomalies.

The standard deep learning training paradigm treats every single timestep as equally important, forcing the model to minimize the MSE across the entire sequence uniformly. When a model tries too hard to "learn" a random spike caused by a sensor glitch or a non-repeating market shock, it loses its ability to generalize to future data. As shown in the figure below, standard training often leads to a "U-shaped" test error curve where performance actually degrades as training continues, while Selective Learning maintains stable convergence.

Selective Learning Concept and Overfitting Mitigation

Methods

To combat this overfitting, the authors propose Selective Learning (SL), a strategy that dynamically "screens" timesteps during training. Instead of calculating the loss on the whole sequence, the model only optimizes on a subset of "generalizable" points. This is achieved through a novel dual-mask mechanism:

Selective Learning Framework and Dual-Mask Mechanism
  1. Uncertainty Mask: This targets timesteps with high predictive uncertainty (i.e., noise). By using sliding windows to sample the same timestep from different historical perspectives, the authors calculate the "residual entropy." If the model's predictions for a specific point vary wildly depending on the window, that point is deemed "uncertain" and masked out.
  2. Anomaly Mask: This targets outliers. The authors train a lightweight "helper" model to estimate a "residual lower bound"—essentially the minimum error one could reasonably expect. If the main model's current error is significantly higher than this bound, the timestep is likely an anomaly and is subsequently masked.

Crucially, this masking process is dynamic. As the model improves over epochs, it may eventually "unmask" and learn complex patterns it previously found too difficult. This prevents the bias that would arise from simply deleting "hard" data points permanently at the start of training.

Datasets

The researchers evaluated their method on eight real-world benchmarks widely used in the TSF community:

  • ETT (Electricity Transformer Temperature): Four separate datasets (ETTh1, ETTh2, ETTm1, ETTm2) tracking power grid data.
  • Electricity: Hourly consumption data for 321 clients.
  • Exchange: Daily currency exchange rates.
  • Weather: Meteorological factors recorded every 10 minutes.
  • ILI (Influenza-Like Illness): Weekly patient data from the CDC.

Key Insights and Ideas

  • Granularity Matters: Most previous work on distribution shift looks at entire datasets or long segments. Selective Learning operates at the timestep level, recognizing that a sequence can be mostly "good" but contain specific "bad" moments that ruin training.
  • The Power of Dynamic Masking: Static masking introduces permanent bias. Dynamic masking acts more like a curriculum; the model focuses on the "easy," reliable patterns first and only attempts the "harder" ones once its baseline performance is stable.
  • Backbone Agnostic: Because SL is a training strategy rather than a new architecture, it can be seamlessly "plugged into" almost any existing model, from older Transformers like Informer to state-of-the-art models like iTransformer and TimesNet.

Key Results

The results demonstrate impressive improvements across the board. Selective Learning consistently reduced MSE and Mean Absolute Error (MAE) for every model tested:

  • Massive gains for older architectures: Informer saw a staggering 37.4% average reduction in MSE.
  • Boosting the state-of-the-art: Even top-tier models like TimesNet (8.4% reduction) and iTransformer (6.5% reduction) saw significant performance boosts.
  • Zero-Shot Generalization: When models were trained on one dataset and tested on another (e.g., ETTh2 to ETTh1), Selective Learning helped them maintain much higher accuracy, proving that the models were learning robust, generalizable features rather than just memorizing local noise.

Limitations and Future Work

While highly effective for standard forecasting, the authors note a few areas for future exploration:

  • Task Expansion: The current study focuses strictly on standard forecasting. Future work could explore how selective learning applies to other time series tasks like classification or imputation.
  • Extreme Events: There is a risk that the anomaly mask might filter out rare but critical "black swan" events that are actually important to predict. Fine-tuning or online adaptation could serve as potential remedies for these specific scenarios.
  • Foundation Models: Integrating this selective logic into the pretraining phase of large-scale Time Series Foundation Models (TSFMs) remains an open and highly promising research direction.

Summary updated

BibTeX
@inproceedings{fu2025selective,
  author = {Yisong Fu and Zezhi Shao and Chengqing Yu and Yujie Li and Zhulin An and Cheems Wang and Yongjun Xu and Fei Wang},
  title = {{Selective Learning for Deep Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=kgzRy6nD6D},
}
Figure