atlas

Research map / Time series / Foundation models for time series

Soft Contrastive Learning for Time Series

ICLR 2024 · Time series › Foundation models for time series · approach: Time series representation learning · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SoftCLT, a plug-and-play soft contrastive learning strategy for time series that assigns soft (0-1) weights to instance-wise (DTW-based) and temporal (timestamp-distance-based) negative pairs, improving TS2Vec, TS-TCC and CA-TCC across classification, semi-supervised, transfer and anomaly detection tasks.

Problem

Standard hard contrastive learning for time series treats all other instances and all other timestamps as equally negative, ignoring inherent similarities among similar series and nearby timestamps, which degrades learned representations.

Approach

Replace hard positive/negative assignments with soft assignments in InfoNCE: instance-wise weights from a sigmoid of min-max normalized DTW distance on the raw data space, and temporal weights from a sigmoid of timestamp difference, combined with hierarchical contrasting whose sharpness scales with pooling depth.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add SoftCLT to CA-TCCCA-TCC · FD transfer learning, 12 scenariosaverage accuracy: 69.66 -> 80.34 (+10.68%)Helped
Add SoftCLT to TS-TCCTS-TCC · FD transfer learning, 12 scenariosaverage accuracy: 67.82 -> 75.03 (+7.21%)Helped
Add SoftCLT temporal contrastive loss to TS2VecTS2Vec · Yahoo and KPI, normal and cold-start anomaly detectionF1: Yahoo normal: 72.3 -> 74.2; KPI normal: 67.6 -> 70.1; Yahoo cold-start: 74.0 -> 76.2; KPI cold-start: 68.9 -> 70.7Helped
Use instance-wise and temporal soft assignments (ablation)TS2Vec · UCR datasetsaverage accuracy: 82.3 -> 85.0 (+2.7)Helped
Use instance-wise and temporal soft assignments (ablation)TS2Vec · UEA datasetsaverage accuracy: 70.5 -> 74.2 (+3.7)Helped
Use instance-wise soft assignments only (ablation)TS2Vec · UCR and UEA datasetsaverage accuracy: UCR: 82.3 -> 83.9 (+1.6); UEA: 70.5 -> 73.0 (+2.5)Helped
Use temporal soft assignments only (ablation)TS2Vec · UCR and UEA datasetsaverage accuracy: UCR: 82.3 -> 83.7 (+1.4); UEA: 70.5 -> 73.8 (+3.3)Helped
Replace sigmoid temporal assignment with neighbor assignment (ablation)Temporal CL · UCR datasetsaverage accuracy: 83.7 -> 76.1Hurt
Replace sigmoid temporal assignment with linear assignment (ablation)Temporal CL · UCR datasetsaverage accuracy: 83.7 -> 77.2Hurt
Replace sigmoid temporal assignment with Gaussian assignment (ablation)Temporal CL · UCR datasetsaverage accuracy: 83.7 -> 83.5Hurt
Set the instance-wise assignment upper bound to 0.50 (ablation)Instance-wise CL · UCR datasetsaverage accuracy: 83.0 (0.25), 83.9 (0.50), 83.4 (0.75), 83.1 (1.00)Helped
Remove instance-wise contrastive loss (ablation)TS2Vec + SoftCLT · Yahoo and KPI anomaly detection, normal and cold-startF1: Normal Yahoo: 71.2 -> 74.2; normal KPI: 66.4 -> 70.1; cold-start Yahoo: 74.6 -> 76.2; cold-start KPI: 69.0 -> 69.7Mixed

Surprising findings

Limitations

Experimental setup

Datasets: UCR archive UEA archive SleepEEG Epilepsy FD-B Gesture EMG FD HAR Wafer FordA FordB

Benchmarks: UCR archive UEA archive HAR Epilepsy Wafer FordA FordB POC StarLightCurves ElectricDevices FD transfer Yahoo

Metrics: accuracy rank macro F1 precision recall F1

Baselines: DTW-D TNC TST TS-TCC T-Loss TS2Vec TS-SD Mixing-Up CLOCS CoST LaST TF-C

Builds on: TS2Vec InfoNCE TS-TCC CA-TCC

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy