Parametric Augmentation for Time Series Contrastive Learning

Xu Zheng, Tianchun Wang, Wei Cheng, Aitian Ma, Haifeng Chen, Mo Sha, Dongsheng Luo

Introduction

Contrastive learning (CL) has emerged as a powerful paradigm for representation learning, relying on the model's ability to recognize "positive pairs"—different augmented views of the same data—while distinguishing them from "negative pairs." While augmentations in domains like computer vision (e.g., flipping, cropping) are intuitive and generally preserve semantics, time series data presents a unique challenge. Human visual inspection of time series is difficult, and common augmentations like jittering or scaling are often applied as "rule-of-thumb" heuristics that may not be optimal across diverse datasets.

To bridge this gap, AutoTCL introduces a parametric approach to time series augmentation. Instead of manual preprocessing, it employs an adaptive framework that automatically factorizes time series into informative and task-irrelevant components using information-theoretic principles.

Methodology

The core of AutoTCL is a learnable augmentation process that moves beyond fixed transformations. The framework consists of several key components designed to generate high-quality, label-preserving views.

Architecture of AutoTCL showing the parametric augmentation network and contrastive learning framework.
  1. Input Factorization: A parametric neural network learns a mask ($h$) to partition the input time series into an informative part ($x^*$) and a task-irrelevant part ($\Delta x$).
  2. Lossless Transformation: The informative component undergoes an invertible transformation ($g$). The invertibility ensures that the underlying semantics are preserved, satisfying the fundamental requirement of contrastive learning.
  3. Principle of Relevant Information (PRI): The augmentation network is trained without human labels by minimizing the entropy of the augmented view while maximizing its mutual information with the original data.
  4. Temporal Consistency Regularization: A triplet loss encourages the learned masks to be continuous over time, ensuring that informative signals are identified in meaningful, contiguous blocks.

This "plug-and-play" design is encoder-agnostic, allowing it to be integrated with various backbones such as Dilated CNNs or Transformers.

Experimental Evaluation

AutoTCL was evaluated across a comprehensive suite of benchmarks, including univariate and multivariate forecasting (ETTh, ETTm, Electricity, Weather), a new real-world wireless signal dataset (Lora), and 30 multivariate classification datasets from the UEA archive.

Key Results

The framework consistently outperformed state-of-the-art methods across all tasks:

  • Univariate Forecasting: AutoTCL achieved an average reduction of 6.5% in Mean Squared Error (MSE) and 4.8% in Mean Absolute Error (MAE) compared to baselines like CoST and TS2Vec.
  • Multivariate Forecasting: The model showed a 2.9% reduction in MSE and a 1.2% reduction in MAE.
  • Classification: On the UEA datasets, AutoTCL improved average accuracy by 1.2% and achieved top results in 16 out of 30 categories.
Performance comparison of AutoTCL against state-of-the-art methods in univariate forecasting tasks.

Ablation studies further confirmed that both the learned factorization mask and the transformation head are critical for performance. Removing either component led to significant degradation in results.

Discussion and Future Work

AutoTCL demonstrates that moving beyond human intuition toward automated, parametric augmentation can significantly enhance time series representation learning. By framing augmentation as an information-bottleneck problem, the model adaptively discovers relevant signals at the instance level.

However, the authors note that training an auxiliary augmentation network introduces some computational overhead compared to static methods. Future research could explore extending this parametric approach to the frequency domain or integrating it with more recent contrastive frameworks like BTSF or TF-C to further push the boundaries of time series analysis.

Summary updated

BibTeX
@inproceedings{zheng2024parametric,
  author = {Xu Zheng and Tianchun Wang and Wei Cheng and Aitian Ma and Haifeng Chen and Mo Sha and Dongsheng Luo},
  title = {{Parametric Augmentation for Time Series Contrastive Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=EIPLdFy3vp},
}
Figure