Learning Soft Sparse Shapes for Efficient Time-Series Classification

Zhen Liu, Yicheng Luo, Boyuan Li, Emadeldeen Eldele, Min Wu +1 more
5/11/2025
cs.LG

No official code found. Best implementation: qianlima-lab/SoftShape (27 stars, last commit 2025-06-09). 1 more below.

Abstract

Shapelets are discriminative subsequences (or shapes) with high interpretability in time series classification. Due to the time-intensive nature of shapelet discovery, existing shapelet-based methods mainly focus on selecting discriminative shapes while discarding others to achieve candidate subsequence sparsification. However, this approach may exclude beneficial shapes and overlook the varying contributions of shapelets to classification performance. To this end, we propose a Soft sparse Shapes (SoftShape) model for efficient time series classification. Our approach mainly introduces soft shape sparsification and soft shape learning blocks. The former transforms shapes into soft representations based on classification contribution scores, merging lower-scored ones into a single shape to retain and differentiate all subsequence information. The latter facilitates intra- and inter-shape temporal pattern learning, improving model efficiency by using sparsified soft shapes as inputs. Specifically, we employ a learnable router to activate a subset of class-specific expert networks for intra-shape pattern learning. Meanwhile, a shared expert network learns inter-shape patterns by converting sparsified shapes into sequences. Extensive experiments show that SoftShape outperforms state-of-the-art methods and produces interpretable results.

View on arXivView PDF

Code Implementations(2)

This is an official pytorch implementation for paper "Learning Soft Sparse Shapes for Efficient Time-Series Classification" (ICML-25, Spotlight).

278Shell, PythonMay 9, 20251 years ago
ZLiu21/SoftShapeCommunity100%

This is an official pytorch implementation for paper "Learning Soft Sparse Shapes for Efficient Time-Series Classification" (ICML-25, Spotlight).

2511Shell, PythonMay 9, 20251 years ago
classificationcnn-classificationdeep-learningmixture-of-expertsneural-networks+6 more

Similar Papers

Cite this paper

@article{liu2025learning,
  title  = {Learning Soft Sparse Shapes for Efficient Time-Series Classification},
  author = {Zhen Liu and Yicheng Luo and Boyuan Li and Emadeldeen Eldele and Min Wu and Qianli Ma},
  year   = {2025},
  eprint = {2505.06892},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.06892v2},
  journal = {ICML 2025 2025}
}

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/2505.06892.svg)](https://codeofpaper.com/paper/2505.06892)

Discussion