Soft Contrastive Learning for Time Series
Seunghan Lee, Taeyoung Park, Kibok Lee
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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 817ea57f-d4c7-4c08-a7b0-d020291c7598Cited 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
