Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curves

Amer Krivosija, Alexander Munteanu, André Nusser, Chris Schwiegelshohn
2/14/2026

No official code found. Best implementation: akrivosija/kDTW (0 stars, last commit 2025-12-04).

Abstract

This paper introduces $k$-Dynamic Time Warping ($k$-DTW), a novel dissimilarity measure for polygonal curves. $k$-DTW has stronger metric properties than Dynamic Time Warping (DTW) and is more robust to outliers than the Fr\'{e}chet distance, which are the two gold standards of dissimilarity measures for polygonal curves. We show interesting properties of $k$-DTW and give an exact algorithm as well as a $(1+\varepsilon)$-approximation algorithm for $k$-DTW by a parametric search for the $k$-th largest matched distance. We prove the first dimension-free learning bounds for curves and further learning theoretic results. $k$-DTW not only admits smaller sample size than DTW for the problem of learning the median of curves, where some factors depending on the curves' complexity $m$ are replaced by $k$, but we also show a surprising separation on the associated Rademacher and Gaussian complexities: $k$-DTW admits strictly smaller bounds than DTW, by a factor $\tilde\Omega(\sqrt{m})$ when $k\ll m$. We complement our theoretical findings with an experimental illustration of the benefits of using $k$-DTW for clustering and nearest neighbor classification.

View on arXivView PDF

Code Implementations(1)

akrivosija/kDTWCommunity61%

This is the accompanying code repository for the ICML 2025 publication "Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curves" by Amer Krivošija, Alexander Munteanu, André Nusser and Chris Schwiegelshohn. Implementation and experiments supported by Felix Krall and Tim Novak.

02HTML, PrologJul 3, 202410 months ago

Similar Papers

Cite this paper

@article{krivosija2026improved,
  title  = {Improved Learning via k-DTW: A Novel Dissimilarity Measure for Curves},
  author = {Amer Krivosija and Alexander Munteanu and André Nusser and Chris Schwiegelshohn},
  year   = {2026},
  eprint = {2505.23431},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.23431},
  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.23431.svg)](https://codeofpaper.com/paper/2505.23431)

Discussion