NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-task self-supervised time-series representation learning

Heejeong Choi, Pilsung KangInformation Sciences 2023

TL;DR

This paper introduces a novel multi-task self-supervised learning framework for time-series data that combines three distinct consistency objectives: contextual, temporal, and transformation. By jointly learning these, the model achieves superior performance on downstream tasks like classification, forecasting, and anomaly detection, demonstrating its ability to extract rich, generalizable representations from unlabeled time-series data.

What Problem Does This Paper Address?

Time-series data is ubiquitous and crucial for decision-making across various domains. However, obtaining labeled time-series data is often expensive and requires domain expertise, creating a bottleneck for deep learning approaches that typically rely on large labeled datasets. While self-supervised learning (SSL) has emerged as a powerful solution to leverage abundant unlabeled data, existing SSL methods for time-series often focus on a single type of consistency (e.g., temporal or contextual), limiting the richness and generalizability of the learned representations. This paper aims to bridge this gap by proposing a unified framework that integrates multiple consistency objectives to learn more comprehensive and robust time-series representations.

Methods

The core of this work is a multi-task self-supervised learning framework that integrates three contrastive learning objectives:

  • Contextual Consistency: Inspired by TS2Vec, this objective encourages representations of overlapping timestamps in different "context views" (segments of the time-series) to be similar. This helps capture information at multiple resolutions.
  • Temporal Consistency: Based on TNC, this method leverages the local smoothness of time-series data. It aims to distinguish between segments within a temporal neighborhood (assumed to be similar) and those outside (assumed to be different).
  • Transformation Consistency: Following TS-TCC, this objective learns representations that are invariant to various data augmentations. It maximizes the agreement between representations of weakly and strongly augmented versions of the same time-series segment.

A key innovation is the use of an uncertainty weighting approach to jointly optimize these multiple contrastive losses. This method dynamically weighs each task's contribution based on its homoscedastic uncertainty, allowing for more effective multi-task learning without manual tuning of weights. The framework uses a shared encoder architecture, similar to TS2Vec, which includes an input projection layer, timestamp masking, and dilated convolutional layers.

Datasets

The proposed method was evaluated on a variety of datasets across three downstream tasks:

  • Time-Series Classification:
    • UEA archive (30 multivariate time-series classification datasets)
    • Human Activity Recognition (HAR) dataset
    • Fault diagnosis dataset (four sub-datasets)
  • Time-Series Forecasting:
    • Electricity Transformer Temperature (ETT) datasets (ETTh1, ETTh2, ETTm1)
  • Time-Series Anomaly Detection:
    • Yahoo dataset
    • KPI dataset

Key Insights and Ideas

  • Synergy of Multiple Consistencies: The paper strongly suggests that combining contextual, temporal, and transformation consistency leads to more effective time-series representations than relying on any single consistency alone. This is evidenced by improved performance across all downstream tasks.
  • Uncertainty Weighting for Multi-Task Learning: The uncertainty weighting approach proves effective in balancing the contributions of different self-supervised tasks, leading to more stable and improved overall performance. This is a crucial component for successful multi-task SSL.
  • Generalizability: The learned representations demonstrate strong generalizability, performing well across diverse downstream tasks and even across different domains in transfer learning experiments.
  • Richness of Representations: Qualitative evaluations (t-SNE visualizations) show that the proposed method produces more discriminative and well-clustered representations compared to single-consistency methods and even the original data.

Key Results

  • Time-Series Classification: The proposed model achieved the best average accuracy and rank on the UEA archive datasets, outperforming benchmark models like DTW, T-Loss, TNC, TS-TCC, TST, and TS2Vec. It achieved the highest accuracy in 14 out of 29 datasets.
  • Time-Series Forecasting: The model demonstrated the lowest average MAE and rank on all ETT datasets, showing robust performance for long-sequence forecasting.
  • Time-Series Anomaly Detection: The proposed model achieved the highest F1 score on both the Yahoo and KPI datasets, indicating its effectiveness in anomaly detection.
  • Model Component Analysis: Experiments showed that adding each self-supervised task (Temp, Cont, Trans) and the uncertainty weighting (UW) sequentially led to significant performance improvements, with UW providing stability.
  • Transfer Learning: The model learned general representations that were useful for diverse domains, achieving satisfactory performance in cross-domain transfer learning experiments.

Limitations and Future Work

  • Limitations: While the paper demonstrates strong performance, the specific hyperparameters for each self-supervised task were searched individually. The paper does not explicitly discuss the computational cost of training such a multi-task model compared to single-task models, though it implies efficiency through joint optimization.
  • Future Work: The paper suggests that the proposed multi-task framework can be extended to other time-series tasks and potentially adapted for other data modalities. Further exploration of different combinations of self-supervised tasks and more advanced uncertainty weighting strategies could also be promising.

Summary updated

BibTeX
@article{choi2023multi,
  author = {Heejeong Choi and Pilsung Kang},
  title = {{Multi-task self-supervised time-series representation learning}},
  journal = {Information Sciences},
  year = {2023},
}
Figure