Built independently by an author, for readers. Read the story and support ChapterPal

keyword

TS2Vec

TS2Vec is a self-supervised representation learning framework designed to generate general-purpose vector representations of time series data across arbitrary semantic levels. The framework employs hierarchical contrastive learning over augmented context views to capture multiscale temporal dynamics, producing fine-grained contextual embeddings for individual timestamps. These timestamp-level representations can be flexibly aggregated to encode sub-sequences or complete time series without requiring fixed-length inputs. Because the embeddings are learned in an unsupervised manner, they provide versatile features that can be directly applied to diverse downstream tasks, including time series classification, forecasting, and anomaly detection.

1 item

TS2Vec: Towards Universal Representation of Time Series

TS2Vec: Towards Universal Representation of Time Series

Zhihan Yue, Yujing Wang, Juanyong Duan, Tianmeng Yang, Congrui Huang, Yunhai Tong, Bixiong Xu

OrganizationsMicrosoftPeking University

Why you should read this

Proposes a universal contrastive learning framework that uses hierarchical contrasting and contextual consistency to learn multiscale time series representations, achieving state-of-the-art results across classification, forecasting, and anomaly detection benchmarks.

This paper presents TS2Vec, a universal framework for learning representations of time series in an arbitrary semantic level. Unlike existing methods, TS2Vec performs contrastive learning in a hierarchical way over augmented context views, which enables a robust contextual representation for each timestamp. Furthermore, to obtain the representation of an arbitrary sub-sequence in the time series, we can apply a simple aggregation over the representations of corresponding timestamps. We conduct extensive experiments on time series classification tasks to evaluate the quality of time series representations. As a result, TS2Vec achieves significant improvement over existing SOTAs of unsupervised time series representation on 125 UCR datasets and 29 UEA datasets. The learned timestamp-level representations also achieve superior results in time series forecasting and anomaly detection tasks. A linear regression trained on top of the learned representations outperforms previous SOTAs of time series forecasting. Furthermore, we present a simple way to apply the learned representations for unsupervised anomaly detection, which establishes SOTA results in the literature. The source code is publicly available at https://github.com/yuezhihan/ts2vec.

Added

2026-09-26