[Paper Review] Learning to Embed Time Series Patches Independently
This paper proposes Patch Independence for Time Series (PITS), a self-supervised method that improves time series representation learning by training models to reconstruct unmasked patches independently using a simple MLP, rather than predicting masked patches via attention mechanisms. PITS achieves state-of-the-art performance in forecasting and classification while being significantly more parameter-efficient and faster than existing Transformer-based models.
Masked time series modeling has recently gained much attention as a self-supervised representation learning strategy for time series. Inspired by masked image modeling in computer vision, recent works first patchify and partially mask out time series, and then train Transformers to capture the dependencies between patches by predicting masked patches from unmasked patches. However, we argue that capturing such patch dependencies might not be an optimal strategy for time series representation learning; rather, learning to embed patches independently results in better time series representations. Specifically, we propose to use 1) the simple patch reconstruction task, which autoencode each patch without looking at other patches, and 2) the simple patch-wise MLP that embeds each patch independently. In addition, we introduce complementary contrastive learning to hierarchically capture adjacent time series information efficiently. Our proposed method improves time series forecasting and classification performance compared to state-of-the-art Transformer-based models, while it is more efficient in terms of the number of parameters and training/inference time. Code is available at this repository: https://github.com/seunghan96/pits.
Motivation & Objective
- To challenge the assumption that modeling dependencies between time series patches is essential for effective representation learning.
- To improve efficiency and robustness in time series representation learning by decoupling patch processing from inter-patch attention mechanisms.
- To develop a self-supervised pretraining strategy that is more robust to distribution shifts and patch size variations.
- To introduce a lightweight, interpretable architecture based on independent patch embedding and complementary contrastive learning.
Proposed method
- Proposes a patch-independent (PI) pretraining task that reconstructs unmasked patches instead of predicting masked ones, avoiding reliance on inter-patch dependencies.
- Employs a simple MLP-based encoder that processes each patch in isolation, eliminating attention mechanisms to enforce patch independence.
- Introduces complementary contrastive learning (CL) by creating positive pairs through complementary random masking of the same time series sample.
- Uses hierarchical contrastive learning to capture adjacent temporal patterns efficiently without requiring attention-based modeling.
- Combines unmasked patch reconstruction with contrastive learning to jointly optimize local representation quality and global structure.
- Trains the model end-to-end using a multi-task objective: reconstruction loss for the PI task and contrastive loss for the CL objective.
Experimental results
Research questions
- RQ1Does learning to reconstruct unmasked patches independently lead to better time series representations than predicting masked patches?
- RQ2Can a simple MLP-based architecture outperform attention-based Transformers in time series representation learning?
- RQ3How does patch independence affect robustness to distribution shifts and varying patch sizes?
- RQ4Can complementary contrastive learning efficiently capture local temporal dependencies without attention mechanisms?
- RQ5Is the proposed method more parameter- and computation-efficient than state-of-the-art self-supervised time series models?
Key findings
- PITS achieves state-of-the-art performance in both time series forecasting and classification tasks, outperforming SOTA methods including PatchTST, TimeMAE, and FEDFormer.
- On the ETTm2 dataset, PITS reduces inference time by 56% (3.3s vs. 7.5s) and parameter count by 99.9% (5,772 vs. 406,028) compared to PatchTST.
- The PI task shows superior robustness to distribution shifts, with the model maintaining performance under test data distribution shifts where PD-based models fail.
- The MLP-based PI architecture produces more interpretable representations: t-SNE visualizations show clearer class separation, and attention maps reveal seasonal patterns.
- Complementary contrastive learning improves performance over baseline CL, with hierarchical CL further boosting results.
- The PI architecture is more robust to patch size variations, maintaining consistent performance across different patch lengths.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.