Soft Contrastive Learning for Time Series
Abstract
Contrastive learning has shown to be effective to learn representations from time series in a self-supervised way. However, contrasting similar time series instances or values from adjacent timestamps within a time series leads to ignore their inherent correlations, which results in deteriorating the quality of learned representations. To address this issue, we propose SoftCLT, a simple yet effective soft contrastive learning strategy for time series. This is achieved by introducing instance-wise and temporal contrastive loss with soft assignments ranging from zero to one. Specifically, we define soft assignments for 1) instance-wise contrastive loss by the distance between time series on the data space, and 2) temporal contrastive loss by the difference of timestamps. SoftCLT is a plug-and-play method for time series contrastive learning that improves the quality of learned representations without bells and whistles. In experiments, we demonstrate that SoftCLT consistently improves the performance in various downstream tasks including classification, semi-supervised learning, transfer learning, and anomaly detection, showing stateof-the-art performance. Code is available at this repository: https://github. com/seunghan96/softclt .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Segment, Shuffle, and Stitch: A Simple Layer for Improving Time-Series Representations cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- AimTS: Augmented Series and Image Contrastive Learning for Time Series Classification cites A Simple Framework for Contrastive Learning of Visual Representations
- Generalization Analysis for Deep Contrastive Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- FreRA: A Frequency-Refined Augmentation for Contrastive Learning on Time Series Classification cites A Simple Framework for Contrastive Learning of Visual Representations
- AdaTS: Learning Adaptive Time Series Representations via Dynamic Soft Contrasts cites A Simple Framework for Contrastive Learning of Visual Representations
- AdaTS: Learning Adaptive Time Series Representations via Dynamic Soft Contrasts cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
Cited by top-tier papers13
- Segment, Shuffle, and Stitch: A Simple Layer for Improving Time-Series RepresentationsShivam Grover, Amin Jalali, Ali EtemadNeurIPS 2024 · 11 citations
- AimTS: Augmented Series and Image Contrastive Learning for Time Series ClassificationYuxuan Chen, Shanshan Huang, Yunyao Cheng, Peng Chen et al.ICDE 2025 · 5 citations
- FreRA: A Frequency-Refined Augmentation for Contrastive Learning on Time Series ClassificationTian Tian, Chunyan Miao, Hangwei QianKDD 2025 · 4 citations
- AdaTS: Learning Adaptive Time Series Representations via Dynamic Soft ContrastsDenizhan Kara, Tomoyoshi Kimura, Jinyang Li, Bowen He et al.NeurIPS 2025 · 3 citations
- Generalization Analysis for Deep Contrastive Representation LearningNong Minh Hieu, Antoine Ledent, Yunwen Lei, Cheng Yeaw KuAAAI 2025 · 1 citation
Builds on22
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and ConfidenceKihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang et al.NeurIPS 2020 · 5,129 citations
Related papers
- TimesURL: Self-Supervised Contrastive Learning for Universal Time Series Representation LearningJiexi Liu, Songcan ChenAAAI 2024 · 128 citations
- MF-CLR: Multi-Frequency Contrastive Learning Representation for Time SeriesJufang Duan, Wei Zheng, Yangzhou Du, Wenfa Wu et al.ICML 2024 · 14 citations
- Utilizing Expert Features for Contrastive Learning of Time-Series RepresentationsManuel T. Nonnenmacher, Lukas Oldenburg, Ingo Steinwart, David ReebICML 2022 · 27 citations
- Parametric Augmentation for Time Series Contrastive LearningXu Zheng, Tianchun Wang, Wei Cheng, Aitian Ma et al.ICLR 2024 · 29 citations
- TS2Vec: Towards Universal Representation of Time SeriesZhihan Yue, Yujing Wang, Juanyong Duan, Tianmeng Yang et al.AAAI 2022 · 938 citations
