Distillation enhanced time series forecasting network with momentum contrastive learning

Haozhi Gao, Qianqian Ren, Jinbao Li · DOI

Introduction

Time series forecasting remains a cornerstone of modern data science, yet it is plagued by inherent challenges: real-world data is frequently noisy, incomplete, and subject to temporal distribution shifts. While contrastive learning has emerged as a powerful paradigm for learning robust representations by distinguishing between similar and dissimilar samples, existing approaches often fall short. Specifically, they tend to focus on local intra-temporal patterns while ignoring inter-sample correlations, struggle with false positives in overlapping sub-sequences, and suffer from training instability due to noisy backpropagation in contrastive tasks.

To address these limitations, this paper introduces DE-TSMCL (Distillation Enhanced Time Series Forecasting Network with Momentum Contrastive Learning), a framework designed to filter data noise and capture complex temporal correlations more effectively than traditional single-encoder models.

Methodology: The DE-TSMCL Framework

The core of DE-TSMCL is a dual-network "Teacher-Student" architecture that integrates momentum-based contrastive learning with knowledge distillation.

The DE-TSMCL architecture featuring the Teacher-Student framework, momentum updates, and joint optimization of supervised and self-supervised tasks.

Core Components

  • Learnable Data Augmentation: Rather than relying on stochastic masking, DE-TSMCL employs a parameterized network to adaptively learn optimal masking strategies. This ensures that the views provided to the encoders are informative and less biased.
  • Momentum-Based Teacher Update: Inspired by Momentum Contrast (MoCo), the "Teacher" network is not updated via direct backpropagation. Instead, its parameters are maintained as an Exponential Moving Average (EMA) of the "Student" network. This "slow update" mechanism provides a stable target for the student, mitigating the noise inherent in standard contrastive learning.
  • Knowledge Distillation: The teacher network generates "soft labels"—probabilistic predictions that capture richer semantic information than raw data. The student is trained to mimic these labels, effectively using the teacher as a noise filter.
  • Joint Optimization: The training objective balances a self-supervised InfoNCE loss for contrastive representation learning and a supervised cross-entropy loss to align the student’s output with the teacher’s distilled knowledge.

Encoder Backbone

The underlying architecture for both the teacher and student encoders utilizes Dilated Causal Convolutions to capture multi-scale temporal dependencies within a residual framework.

Detailed view of the encoder backbone, utilizing GELU activation and Dilated Convolution layers within a residual structure.

Key Insights

  • Stability through Centering: To prevent representation collapse—where the model outputs identical vectors for all inputs—DE-TSMCL includes a "center layer." By subtracting the mean of the representations, it ensures that no single dimension dominates the feature space.
  • Semantic Consistency across Overlaps: By employing a dual-cropping strategy on overlapping sub-series, the model learns to recognize shared semantic features even when the specific timestamps vary, directly addressing the "false positive" issue in traditional contrastive methods.

Experimental Results

The framework was rigorously evaluated on five real-world benchmarks, including the ETT (Electricity Transformer Temperature) and Electricity datasets. DE-TSMCL consistently outperformed state-of-the-art models such as TS2Vec, Informer, and Autoformer.

Key performance metrics include:

  • Significant Accuracy Gains: On the ETTm1 dataset, DE-TSMCL achieved a 24.2% reduction in Mean Squared Error (MSE) and a 14.7% reduction in Mean Absolute Error (MAE) compared to the previous benchmark, TS2Vec.
  • Scalability to Long Horizons: The performance gap between DE-TSMCL and its competitors widened as the prediction horizon increased, demonstrating its superior ability to model long-term dependencies.
  • Multivariate Success: In complex multivariate scenarios, improvements reached up to 27.3% over baseline models.

Conclusion and Future Work

DE-TSMCL represents a significant step forward in robust time series representation learning. By combining the stability of momentum updates with the noise-filtering capabilities of knowledge distillation, it sets a new standard for forecasting accuracy.

Future research will focus on improving the scalability of the dual-network architecture for extremely large-scale datasets. Additionally, the authors plan to explore alternative backbones, such as Sparse Convolutions for irregular data, and investigate the model's performance in broader domains beyond energy and finance.

Summary updated

BibTeX
@inproceedings{gao2024distillation,
  author = {Haozhi Gao and Qianqian Ren and Jinbao Li},
  title = {{Distillation enhanced time series forecasting network with momentum contrastive learning}},
  booktitle = {Information},
  year = {2024},
  doi = {10.1016/j.ins.2024.120712},
}
Figure