Not All Data are Good Labels: On the Self-supervised Labeling for Time Series Forecasting

Yuxuan Yang, Dalin Zhang, Yuxuan Liang, Hua Lu, Gang Chen, Huan Li

Introduction

In the field of Time Series Forecasting (TSF), the prevailing paradigm assumes that raw historical data serves as an absolute "ground truth." Models are typically trained to minimize the discrepancy between their predictions and these raw observations. However, real-world time series data—collected from sensors, traffic monitors, or power grids—is frequently contaminated with noise, irregular spikes, and anomalies. This paper argues that blindly trusting raw data leads to suboptimal performance. By treating every data point as a "perfect" label, deep learning models often overfit to high-frequency noise rather than learning the underlying structural patterns.

To address this, the authors introduce SCAM (Self-Correction with Adaptive Mask), a self-supervised labeling framework designed to identify low-quality labels and replace them with refined "pseudo-labels." This approach shifts the focus from simple pattern matching to a more robust signal reconstruction, enhancing the generalization capabilities of various forecasting architectures.

The Challenge of Noisy Labels

Standard TSF involves mapping a historical window ($x$) to a future window ($y$). When $y$ contains sensor noise or transient anomalies, a model attempting to minimize Mean Squared Error (MSE) will naturally try to memorize these irregularities. This "memorization" results in a sharp loss landscape where the model performs exceptionally well on training data but fails to generalize to unseen test data. The core thesis of this research is that not all data are good labels. The challenge lies in distinguishing between the true signal and the noise without access to a "clean" version of the dataset.

The SCAM Framework

The proposed SCAM framework operates as a training-time "scaffold" that improves the quality of the training signal. It consists of three primary components:

  1. Reconstruction Network ($g$): A lightweight auxiliary network, typically composed of convolutional layers and a feed-forward network, is tasked with reconstructing the target series. This network explores "candidate datasets" that are smoother and potentially more representative of the underlying signal than the raw, noisy data.
  2. Self-Correction with Adaptive Mask (SCAM): This is the central innovation. During the training process, an adaptive mask partitions the data. It identifies segments where the predictor is likely overfitting to noise. In these instances, the raw labels are replaced with "pseudo-labels" generated by the reconstruction network. This dynamic correction prevents the model from being led astray by high-frequency "junk."
  3. Spectral Norm Regularization (SNR): To further stabilize training, particularly for complex Transformer-based models, the authors apply SNR to the linear layers. This smooths the loss landscape, preventing the model from converging into the narrow, sharp minima associated with noise memorization.

One of the most significant advantages of SCAM is its efficiency at deployment. The reconstruction network and masking logic are only utilized during the training phase. During inference, the predictor model operates independently, resulting in zero additional computational overhead for real-time applications.

Experimental Evaluation

The researchers conducted an extensive evaluation of SCAM across 11 real-world datasets, including the Electricity Transformer Temperature (ETT) subsets (ETTh1, ETTh2, ETTm1, ETTm2), as well as standard benchmarks like Electricity, Traffic, Weather, and the PeMS (03, 04, 07, 08) traffic network data.

To demonstrate the framework's versatility, SCAM was integrated into four distinct backbone architectures:

  • MLP: A standard Multi-Layer Perceptron.
  • CycleNet: A state-of-the-art MLP-based model.
  • PatchTST: A channel-independent Transformer.
  • iTransformer: A channel-dependent Transformer.

Results and Insights

The experimental results consistently favored the SCAM framework across all backbones and datasets. Key findings include:

  • Performance Gains: SCAM led to a universal reduction in forecasting error. For instance, on the notoriously noisy ETTh1 dataset, PatchTST’s MSE improved from 0.469 to 0.427, representing a significant leap in accuracy.
  • Robustness to Noise: The framework showed its greatest strengths on datasets known for high noise levels, such as the ETT series. By filtering out "bad" labels, SCAM allowed models to focus on the essential structural features of the data.
  • Feature Amplification: The reconstruction network acts as a "feature amplifier," emphasizing structural patterns while suppressing high-frequency noise that typically triggers overfitting.
  • Empowering Transformers: Complex models like Transformers often struggle on smaller, noisier datasets compared to simpler MLP models. SCAM bridges this gap, enabling Transformers to remain competitive even when high-quality data is scarce.

Limitations and Future Work

While SCAM offers a robust solution for noisy labels, it is not without limitations. The primary drawback is the increased training time, which can range from 2x to 5x the standard duration due to the auxiliary reconstruction task. Additionally, the current study focused on MLP and Transformer architectures; the effectiveness of SCAM on massive, LLM-scale time series models remains to be explored.

Future research directions include moving from a binary masking strategy to "soft-masking" to allow for more nuanced label correction. Furthermore, the authors suggest that the logic of SCAM could be extended to tasks such as automated outlier detection and error correction in real-time data streams.

Conclusion

By acknowledging that raw data is not always a perfect label, the SCAM framework provides a powerful tool for improving the robustness and generalization of time series forecasting models. Its ability to refine training signals without impacting inference speed makes it a practical addition to the TSF toolkit, particularly in domains where data quality is a persistent challenge.

Summary updated

BibTeX
@inproceedings{yang2025not,
  author = {Yuxuan Yang and Dalin Zhang and Yuxuan Liang and Hua Lu and Gang Chen and Huan Li},
  title = {{Not All Data are Good Labels: On the Self-supervised Labeling for Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=kQokjfoGjk},
}
Figure