A Unified Shape-Aware Foundation Model for Time Series Classification

Zhen Liu, Yucheng Wang, Boyuan Li, Junhao Zheng, Emadeldeen Eldele +2 more
1/10/2026
cs.LGstat.ML

No official code found. Best implementation: ZLiu21/UniShape (28 stars, last commit 2025-12-03).

Abstract

Foundation models pre-trained on large-scale source datasets are reshaping the traditional training paradigm for time series classification. However, existing time series foundation models primarily focus on forecasting tasks and often overlook classification-specific challenges, such as modeling interpretable shapelets that capture class-discriminative temporal features. To bridge this gap, we propose UniShape, a unified shape-aware foundation model designed for time series classification. UniShape incorporates a shape-aware adapter that adaptively aggregates multiscale discriminative subsequences (shapes) into class tokens, effectively selecting the most relevant subsequence scales to enhance model interpretability. Meanwhile, a prototype-based pretraining module is introduced to jointly learn instance- and shape-level representations, enabling the capture of transferable shape patterns. Pre-trained on a large-scale multi-domain time series dataset comprising 1.89 million samples, UniShape exhibits superior generalization across diverse target domains. Experiments on 128 UCR datasets and 30 additional time series datasets demonstrate that UniShape achieves state-of-the-art classification performance, with interpretability and ablation analyses further validating its effectiveness.

View on arXivView PDF

Code Implementations(1)

ZLiu21/UniShapeCommunity67%

This is an official pytorch implementation for paper "A Unified Shape-Aware Foundation Model for Time Series Classification" (AAAI-26).

286Python, TypeScriptNov 12, 202510 months ago
fine-tuningfoundation-modelspre-trainingshapeletstime-series+4 more

Similar Papers

Cite this paper

@article{liu2026unified,
  title  = {A Unified Shape-Aware Foundation Model for Time Series Classification},
  author = {Zhen Liu and Yucheng Wang and Boyuan Li and Junhao Zheng and Emadeldeen Eldele and Min Wu and Qianli Ma},
  year   = {2026},
  eprint = {2601.06429},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.06429v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.06429.svg)](https://codeofpaper.com/paper/2601.06429)

Discussion