Introduction
Contrastive learning (CL) has emerged as a powerful paradigm for representation learning, relying on the model's ability to distinguish between "positive" pairs (different views of the same data) and "negative" pairs. The efficacy of CL is fundamentally tied to the quality of data augmentations used to generate these views. While intuitive priors guide augmentation selection in domains like computer vision—where a flipped image of a cat remains a cat—time series data presents a unique challenge. The underlying patterns in time series, such as those found in electricity grids or physiological signals, are often non-intuitive. Consequently, a "one-size-fits-all" augmentation strategy frequently fails, and researchers are often forced into a cycle of manual trial-and-error to identify optimal transformations.
The InfoTS Framework
To address the "black art" of augmentation selection, this paper introduces InfoTS (Information-aware Time Series contrastive learning). InfoTS is an adaptive framework designed to automate the selection of augmentations by leveraging information-theoretic principles. The framework ensures that selected augmentations maximize both the preservation of essential signals and the diversity of the generated views.
Information-Aware Criteria
InfoTS operates on two primary mathematical objectives:
- High Fidelity: This criterion ensures that the augmented version of a signal ($v$) retains high mutual information with its original identity ($y$). In unsupervised contexts, where labels are absent, the framework employs "pseudo-labels" by treating each instance as its own unique class. This prevents augmentations from collapsing different samples into identical representations.
- High Variety: To ensure the model learns robust, non-trivial features, the augmentations must be sufficiently diverse. This is achieved by maximizing the entropy of the augmented data, preventing the encoder from "cheating" by focusing on simple noise.
Meta-Learning and Differentiable Selection
The selection process is managed by a meta-learner, a small neural network that assigns weights to a pool of candidate transformations, such as jittering, scaling, or time-warping. To facilitate end-to-end training via backpropagation, InfoTS utilizes a Binary Concrete distribution. This reparameterization trick allows for "soft" differentiable choices during training, which eventually converge to optimal augmentation policies.
The core architecture employs a dilated CNN encoder and optimizes a dual contrastive loss: a global-wise loss for instance-level features and a local-wise loss for subsequence-level patterns. This dual approach ensures the model captures both long-term trends and short-term fluctuations.
Experimental Evaluation
The authors evaluated InfoTS across a comprehensive suite of benchmarks covering diverse domains such as energy, finance, and medicine:
- Forecasting: Tested on the Electricity Transformer Temperature (ETTh1, ETTh2, ETTm1) and Electricity datasets.
- Classification: Evaluated using the UCR Archive (128 univariate datasets) and the UEA Archive (30 multivariate datasets).
Key Results
InfoTS consistently outperformed established baselines, including TS2Vec, Informer, and TCN:
- Forecasting Accuracy: The framework achieved up to a 12.0% reduction in Mean Squared Error (MSE) compared to previous state-of-the-art methods.
- Classification Performance: InfoTS showed a 3.7% relative improvement in accuracy on the multivariate UEA datasets.
- Robustness: Sensitivity analyses indicated that InfoTS remains stable across various hyperparameter configurations, offering a more reliable alternative to brittle, manually-tuned pipelines.
Insights and Discussion
The success of InfoTS highlights the critical Fidelity-Variety Trade-off. If an augmentation is too aggressive (high variety), it destroys the signal (low fidelity); if it is too subtle, the contrastive task becomes trivial, and the model fails to learn meaningful representations. InfoTS effectively identifies the "Goldilocks zone" for any given dataset. Furthermore, the meta-learner's ability to adapt its preferences—such as favoring subsequence augmentations for electricity data—confirms that optimal augmentation is highly data-dependent.
Limitations and Future Directions
While InfoTS automates selection, it remains constrained by the initial pool of candidate transformations; it cannot currently generate entirely novel types of augmentations. Future research may explore the integration of generative models, such as GANs or Diffusion models, to provide an infinite space of synthetic views for the meta-learner to explore. Additionally, while the meta-learner introduces some computational overhead, the efficiency gained by eliminating manual tuning represents a significant net benefit for practical applications.
Summary updated