Unsupervised Multi-modal Feature Alignment for Time Series Representation Learning

Chen Liang, Donghua Yang, Zhiyu Liang, Hongzhi Wang, Zheng Liang, Xiyang Zhang, Jianfeng Huang

This paper introduces Multi-modal Feature Alignment (MMFA), a novel framework for unsupervised representation learning (URL) in multivariate time series. By leveraging spectral graph theory, the authors propose a way to "distill" the knowledge from various time-series transformations (like Fourier and Wavelet transforms) into a single, efficient encoder that only needs raw data at inference time.

TL;DR

MMFA improves time series representation learning by aligning raw data embeddings with features from multiple modalities (spectral, image, symbolic) during training. This "alignment" allows a simple raw-data encoder to capture complex patterns usually only visible through heavy feature engineering, outperforming state-of-the-art methods in classification, clustering, and anomaly detection.

What Problem Does This Paper Address?

Unsupervised representation learning aims to turn raw data into meaningful vectors (embeddings) without using labels. In time series, identifying patterns is difficult because the "raw" temporal view often obscures important information like frequency components or long-term symbolic trends.

While researchers have used feature engineering (e.g., Discrete Fourier Transforms) to help, two major challenges remain:

  1. Disjoint Properties: Different views (modalities) of the same data provide complementary but often conflicting signals. Simply fusing them can lead to the model taking "shortcuts" or learning noise.
  2. Inference Scalability: Most multi-modal methods require you to compute every transform (which can be slow) and run multiple neural network "towers" during actual use. This makes them impractical for real-time or large-scale applications.

Methods

The core idea of MMFA is to treat different transformations of a time series as different "modalities" and align their representations in a shared embedding space.

Fig. 1. An overview of the MMFA framework. A range of transforms is applied to raw time series to produce informative features across multiple modalities. These features are subsequently processed by neural feature extractors to identify different patterns. Following this, the representations are mapped to an embedding space and aligned via the regularization method.

1. Multi-modal Transforms

The authors use a suite of "teacher" transforms to expose different data facets:

  • Spectral: Discrete Fourier Transform (DFT).
  • Wavelet: Continuous Wavelet Transform (CWT).
  • Image-like: Recurrence Plots (RP) and Gramian Angular Fields (GAF).
  • Symbolic: Symbolic Fourier Approximation (SFA).

2. The Alignment Mechanism

Instead of fusing these features into one giant vector, MMFA uses a regularization-based alignment. During training, the model minimizes a loss function with three components:

  • Invariance ($L_{inv}$): Forces the embedding of the raw data to be close to the embeddings of its transformed versions.
  • Variance ($L_{var}$) & Covariance ($L_{cov}$): These terms, inspired by methods like VICReg, ensure the learned embeddings don't collapse into a single point and that different dimensions of the embedding vector carry non-redundant information.

3. Inference Efficiency

The "aha" moment is that only the raw temporal encoder is kept for inference. Because it was forced to align with the spectral and wavelet encoders during training, it effectively "memorizes" how to extract those complex features directly from the raw signal.

Datasets

The authors conducted an extensive evaluation using:

  • 30 UEA Multivariate Time Series datasets: Used for classification and clustering. These vary wildly in length, dimensionality, and sample size.
  • UCR Anomaly Detection dataset: Comprising 250 different entities to test the model's ability to find outliers.
  • 21 Baselines: Including SOTA URL methods (like TS2Vec and T-Loss) and tailored supervised models.

Key Insights and Ideas

  • Transforms as Inductive Bias: Different transforms make specific patterns "salient." For example, "Frequency Mixing" is nearly impossible to distinguish in a raw time series plot but is trivial to see in an FFT plot. MMFA uses these transforms to inject this "algorithmic knowledge" into the neural network.
Fig. 2. Two types of patterns of interest with three multi-modal feature views. (raw time series, CWT, and FFT of time series) With a green dash circle indicating patterns that are hard to distinguish and, a red dash circle indicating patterns that are easy to identify. The feature encoders take these multi-modal features as input. Difficulties for them to capture certain patterns vary with different transforms, causing different probabilities for them in determining two sample points to be identical.
  • Theoretical Grounding: The authors provide a rigorous proof showing that their alignment objective is a generalized form of classic manifold learning. Specifically, they show that under linear constraints, MMFA recovers Kernel Principal Component Analysis (KPCA) and Kernel Canonical Correlation Analysis (KCCA).
  • Few-Shot Excellence: The framework is particularly effective on small datasets. The alignment acts as a powerful regularizer that prevents overfitting when data is scarce.

Key Results

MMFA consistently outperformed both unsupervised and many fully supervised "tailored" competitors:

  • Classification: Achieved the highest accuracy on 21 out of 30 UEA datasets. It reached an average ranking of 2.63, significantly better than the next best URL method (4.40).
  • Clustering: Showed superior performance on Rand Index (RI) and Normalized Mutual Information (NMI) across almost all tested subsets.
  • Anomaly Detection: Outperformed competitors by large margins, suggesting that the aligned representations create much tighter and more accurate boundaries for "normal" data.
Correlation plots showing MMFA's performance relative to dataset characteristics like training size and length.

Limitations and Future Work

  • Sequence Length: The model struggles with extremely short time series (e.g., length < 10). The authors note that many transforms (like CWT or FFT) require a certain minimum length to produce meaningful features.
  • Transform Selection: Currently, the choice of transforms is manual. Future work could involve automatically selecting the most relevant transforms for a specific domain.
  • External Knowledge: The authors suggest integrating even broader external knowledge or domain-specific "priors" into the alignment framework to further accelerate learning.

Summary updated

BibTeX
@misc{liang2023unsupervised,
  author = {Chen Liang and Donghua Yang and Zhiyu Liang and Hongzhi Wang and Zheng Liang and Xiyang Zhang and Jianfeng Huang},
  title = {{Unsupervised Multi-modal Feature Alignment for Time Series Representation Learning}},
  year = {2023},
  eprint = {2312.05698},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.05698},
}
Figure