SimMTM: A Simple Pre-Training Framework for Masked Time-Series Modeling

Jiaxiang Dong, Haixu Wu, Haoran Zhang, Li Zhang, Jianmin Wang, Mingsheng Long

Abstract

Masked modeling has revolutionized self-supervised learning in natural language processing and computer vision, yet its application to time series remains challenging. Traditional masking often destroys the vital temporal variations—trends, cycles, and peaks—necessary for meaningful representation learning. This paper introduces SimMTM, a novel pre-training framework that reinterprets masked modeling through the lens of manifold learning. By reconstructing original data via the weighted aggregation of multiple masked "neighbors," SimMTM effectively learns the underlying data manifold, achieving state-of-the-art performance across both forecasting and classification tasks.

Introduction

In domains like NLP (BERT) and Computer Vision (MAE), masked modeling teaches models to "fill in the blanks" by leveraging data redundancy. However, time-series data presents a unique challenge: its "meaning" is deeply embedded in temporal variations. When a significant portion of a time series is randomly masked, these vital patterns are often lost, making the reconstruction task excessively difficult and preventing the model from learning useful features.

Existing methods often specialize in either low-level tasks (like point-wise reconstruction for forecasting) or high-level tasks (like series-wise contrastive learning for classification). SimMTM bridges this gap, providing a unified framework that excels at both by treating masked versions of a series as noisy neighbors on a high-dimensional manifold.

Methodology

SimMTM approaches pre-training as a manifold learning problem. It views the original time series as a point on a structured surface (manifold) and its masked versions as noisy points located outside that manifold. The framework follows a four-step process:

  1. Multiple Masking: Instead of generating a single masked version, the model creates $M$ different randomly masked versions of each input series.
  2. Dual Representation Learning: An encoder (such as a Transformer or ResNet) is employed to extract both point-wise representations (capturing local details) and series-wise representations (capturing global context).
  3. Neighborhood Aggregation: This is the core innovation of SimMTM. Rather than attempting to reconstruct the original series from a single corrupted input, the model uses similarity-based aggregation. It calculates the similarity between different masked versions and uses these weights to "assemble" the original series from the point-wise representations of its neighbors.
  4. Dual Loss Optimization:
  5. Reconstruction Loss: Ensures that the aggregated points accurately match the original values.
  6. Constraint Loss: A series-wise loss that forces the original series and its masked versions to remain close in the representation space while pushing unrelated series apart.

Experimental Setup

The authors evaluated SimMTM on 12 real-world benchmarks covering two primary tasks:

  • Forecasting: Evaluated using ETT (h1, h2, m1, m2), Weather, Electricity, and Traffic datasets.
  • Classification: Evaluated using SleepEEG, Epilepsy (neurological), FD-B (mechanical fault), Gesture (hand movement), and EMG (muscle response) datasets.

Testing included both in-domain (pre-training and fine-tuning on the same dataset) and cross-domain (pre-training on one dataset and fine-tuning on another) scenarios to assess the model's generalization capabilities.

Key Insights and Results

SimMTM demonstrates that the difficulty of masked time-series modeling can be mitigated by leveraging complementary variations. While a single mask might obscure a critical peak, multiple masked versions together likely preserve the full temporal structure. By projecting these "noisy" neighbors back to the original "clean" point, the model implicitly learns the local structure of the data manifold.

Performance Highlights

SimMTM consistently outperformed state-of-the-art baselines such as Ti-MAE, TST, and TF-C:

  • Forecasting Accuracy: SimMTM achieved an average 8.3% reduction in Mean Squared Error (MSE) compared to Ti-MAE, the previous leading masking-based method.
  • Classification Superiority: The model showed significant gains in cross-domain scenarios. Notably, when pre-trained on SleepEEG and fine-tuned on EMG, SimMTM reached 97.56% accuracy, compared to just 81.74% for the next best method.
  • Data Efficiency: In low-data regimes (using only 10% of available labels), SimMTM reduced error by 26% compared to standard contrastive baselines, providing a significantly stronger starting point for fine-tuning.

Conclusion and Future Work

SimMTM offers a simple yet powerful shift in how we approach masked modeling for time series. By replacing direct reconstruction with neighborhood aggregation, it forces the model to learn features that are useful for both fine-grained prediction and high-level categorization.

While highly effective, the framework's performance is sensitive to hyperparameters like the masking ratio and the number of neighbors ($M$). Future research will focus on providing a more rigorous theoretical analysis of the aggregation mechanism and scaling SimMTM to larger, more diverse "foundation model" datasets for universal time-series analysis.

Summary updated

BibTeX
@inproceedings{dong2023simmtm,
  author = {Jiaxiang Dong and Haixu Wu and Haoran Zhang and Li Zhang and Jianmin Wang and Mingsheng Long},
  title = {{SimMTM: A Simple Pre-Training Framework for Masked Time-Series Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ginTcBUnL8},
}
Figure