Soft-MSM: Differentiable Context-Aware Elastic Alignment for Time Series
Not on the map. Why?
Abstract (arXiv)
Elastic distances like dynamic time warping (DTW) are central to time series machine learning because they compare sequences under local temporal misalignment. Soft-DTW is an adaptation of DTW that can be used as a gradient-based loss by replacing the hard minimum in its dynamic-programming recursion with a smooth relaxation. However, this approach does not directly extend to elastic distances whose transition costs depend on the local alignment context. Move-Split-Merge (MSM) is one such distance: it uses context-aware split and merge penalties and has often outperformed DTW in supervised and unsupervised time series machine learning tasks such as classification and clustering. We introduce Soft-MSM, a smooth relaxation of MSM and an elastic alignment loss with context-aware transition costs. Central to the formulation is a smooth gated surrogate for MSM's piecewise split/merge cost, which enables gradients through both the dynamic-programming recursion and the local transition structure. We derive the forward recursion, backward recursion, soft alignment matrix, closed-form gradient, limiting behaviour, and divergence-corrected formulation. Experiments on 112 UCR datasets show that Soft-MSM gives lower MSM barycentre loss than existing MSM barycentre methods, and yields significantly better clustering and nearest-centroid classification performance than Soft-DTW-based alternatives. An implementation is available in the open-source textttaeon toolkit.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 42 references that are in the map. First posted on arXiv 30 Apr 2026.
Builds on
17 of 42 references.
References · 17
- 2018The UCR Time Series Archivecited by 431
- 2017Soft-DTW: a Differentiable Loss Function for Time-Seriescited by 271
- 2015Should we really use post-hoc tests based on mean-ranks?cited by 116
- 2019Shape and Time Distortion Loss for Training Deep Time Series Forecasting Modelscited by 70
- 2024aeon: a Python toolkit for learning from time seriescited by 47
- 2018A review on distance based time series classificationcited by 40
- 2016shapeDTW: shape Dynamic Time Warpingcited by 35
- 2023An Approach to Multiple Comparison Benchmark Evaluations that is Stable Under Manipulation of the Comparate Setcited by 29
- 2020Differentiable Divergences Between Time Seriescited by 28
- 2022A Review and Evaluation of Elastic Distance Functions for Time Series Clusteringcited by 14
- 2017Nonsmooth Analysis and Subgradient Methods for Averaging in Dynamic Time Warping Spacescited by 10
- 2021Elastic Similarity and Distance Measures for Multivariate Time Seriescited by 8
5 more
- 2023Series2Vec: Similarity-based Self-supervised Representation Learning for Time Series Classificationcited by 8
- 2023ShapeDBA: Generating Effective Time Series Prototypes using ShapeDTW Barycenter Averagingcited by 6
- 2023Proximity Forest 2.0: A new effective and scalable similarity-based classifier for time seriescited by 5
- 2024On time series clustering with k-meanscited by 2
- 2024Rock the KASBA: Blazingly Fast and Accurate Time Series Clusteringcited by 2
Built on by
Not cited yet.