NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unsupervised Scalable Representation Learning for Multivariate Time Series

Jean-Yves Franceschi, Aymeric Dieuleveut, Martin Jaggi

TL;DR

This paper introduces a fully unsupervised framework to learn universal, fixed-length embeddings for multivariate time series of any length. By combining a dilated convolutional encoder with a novel triplet loss based on temporal sub-sampling, the authors achieve performance that rivals supervised state-of-the-art methods while being significantly more scalable and efficient.

What Problem Does This Paper Address?

Time series data—found in everything from heart rate monitors to stock markets—is notoriously difficult for machine learning. Three major hurdles stand in the way:

  1. Label Scarcity: Real-world time series are rarely labeled, making supervised learning impractical for many applications.
  2. Variable Lengths: Most standard neural networks require fixed-size inputs, but time series naturally vary in duration.
  3. Scalability: Traditional sequence models like Recurrent Neural Networks (RNNs) are slow because they process data step-by-step. Meanwhile, classic algorithms like Dynamic Time Warping (DTW) have a quadratic complexity ($O(N^2)$), making them unusable for very long sequences.

The authors sought a method that is unsupervised (no labels needed), scalable (fast for long sequences), and universal (the same embeddings work for classification, regression, and clustering).

Methods

The researchers proposed a two-part solution:

1. The Encoder: Causal Dilated Convolutions

Instead of using RNNs, the authors used exponentially dilated causal convolutions (inspired by WaveNet).

  • Causal: The model only looks at past data to predict the current state, ensuring no "cheating" by looking into the future.
  • Dilated: The filters skip steps exponentially (1, 2, 4, 8...). This allows the network to have a massive "receptive field"—meaning it can see patterns across long durations—without needing a deep, computationally expensive stack of layers.
  • Global Max Pooling: To handle variable lengths, the encoder applies a max-pooling layer at the end, squashing a sequence of any length into a single fixed-size vector.

2. The Loss: Time-Based Triplet Loss

To train the model without labels, they adapted the "triplet loss" logic used in word embeddings (like word2vec):

Illustration of the time-based triplet loss sampling strategy, showing the anchor, positive, and negative segments.
  • Anchor ($x^{ref}$): A random segment of a time series.
  • Positive ($x^{pos}$): A sub-segment of the anchor. The intuition is that a part of a signal should be represented similarly to the whole signal.
  • Negative ($x^{neg}$): Random segments chosen from other time series or different time points.

The model is trained to push the anchor and positive samples closer together in the embedding space while pushing negative samples away.

Datasets

The authors validated their approach on a massive scale:

  • UCR Archive: 128 univariate datasets (the gold standard for time series benchmarks).
  • UEA Archive: 30 multivariate datasets to test the model's ability to handle multiple simultaneous signals.
  • IHEPC (Individual Household Electric Power Consumption): A real-world dataset containing over 2 million measurements. This was used to demonstrate how the model scales to extremely long sequences where traditional methods fail.

Key Insights and Ideas

  • Temporal Context is a Label: The most powerful "aha moment" here is that time itself provides enough structure for learning. You don't need a human to tell you a signal is "Class A"; you just need the model to recognize that a snippet of a signal belongs to its own context.
  • Efficiency via Parallelism: Because the model uses convolutions rather than recurrences, it can be fully parallelized on GPUs. This makes it orders of magnitude faster than LSTMs or GRUs for long-range dependencies.
  • Transferability: The authors found that an encoder trained on one dataset (e.g., FordA) could produce high-quality features for a completely different dataset. This suggests the model learns fundamental "shapes" and "patterns" of temporal change rather than just memorizing a specific dataset.

Key Results

  • Matches Supervised Performance: On the UCR benchmark, this unsupervised method performed as well as, or better than, many specialized supervised non-ensemble classifiers.
  • Robust to Sparse Labels: In a "sparse labeling" test, the authors showed that with only 1.5% of labeled data, their method achieved 81% accuracy on the TwoPatterns dataset. In contrast, a fully supervised ResNet trained on that same 1.5% of data only managed 26% accuracy.
Accuracy comparison demonstrating the model's robustness to sparse labels compared to a supervised ResNet.
  • Massive Speedups: On the long-sequence IHEPC dataset, performing regression on the learned representations was significantly faster than training on raw data. For quarterly tasks, the wall-clock time dropped from 1 hour 40 minutes (raw data) to just 9 seconds (representations), with only a negligible hit to accuracy.

Limitations and Future Work

  • The "Ensemble Gap": While the method beats most individual supervised classifiers, it still trails behind massive ensemble methods like HIVE-COTE, which combine dozens of different models.
  • Hyperparameter Sensitivity: Although the authors avoided per-task tuning to prove universality, the choice of the number of negative samples ($K$) and the embedding dimension still impacts performance.
  • Future Directions: The authors suggest exploring different pooling strategies (beyond just max pooling) and more sophisticated negative sampling techniques to further refine the quality of the embeddings.

Summary updated

BibTeX
@inproceedings{franceschi2019unsupervised,
  author = {Jean-Yves Franceschi and Aymeric Dieuleveut and Martin Jaggi},
  title = {{Unsupervised Scalable Representation Learning for Multivariate Time Series}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure