Skip to main content
QUICK REVIEW

[Paper Review] Optimal Warping Paths are unique for almost every Pair of Time Series

Brijnesh J. Jain, David Schultz|arXiv (Cornell University)|May 16, 2017
Time Series Analysis and ForecastingComputer Science17 references5 citations
TL;DR

This paper proves that, under squared error local costs, optimal warping paths in dynamic time warping (DTW) are unique almost everywhere in the space of time series pairs. Using measure-theoretic analysis, it shows that non-uniqueness occurs only on a set of measure zero—implying that for almost all time series pairs, a unique optimal path exists, enabling robust learning and optimization in DTW-based methods.

ABSTRACT

Update rules for learning in dynamic time warping spaces are based on optimal warping paths between parameter and input time series. In general, optimal warping paths are not unique resulting in adverse effects in theory and practice. Under the assumption of squared error local costs, we show that no two warping paths have identical costs almost everywhere in a measure-theoretic sense. Two direct consequences of this result are: (i) optimal warping paths are unique almost everywhere, and (ii) the set of all pairs of time series with multiple equal-cost warping paths coincides with the union of exponentially many zero sets of quadratic forms. One implication of the proposed results is that typical distance-based cost functions such as the k-means objective are differentiable almost everywhere and can be minimized by subgradient methods.

Motivation & Objective

  • To resolve the theoretical and practical challenges caused by non-unique optimal warping paths in dynamic time warping (DTW) spaces.
  • To investigate the prevalence of non-uniqueness in optimal warping paths across pairs of time series.
  • To establish conditions under which optimal warping paths are guaranteed to be unique, particularly in the context of learning algorithms.
  • To provide a theoretical foundation for differentiability and subgradient optimization in DTW-based learning methods like k-means and learning vector quantization.
  • To generalize the uniqueness result to multivariate time series using componentwise analysis and product space measures.

Proposed method

  • Uses measure-theoretic analysis to define 'almost everywhere' as a set of measure zero, where non-uniqueness occurs.
  • Models the cost difference between two warping paths as a quadratic form $ C_i(x,y) - C_j(x,y) = z^T A^{(ij)} z $, where $ z = (x,y) $, and shows this difference is zero only on a set of measure zero.
  • Proves that the set of time series pairs with multiple equal-cost warping paths is the union of exponentially many zero sets of quadratic forms, each of measure zero.
  • Applies results from piecewise smooth functions to show that the minimum cost function $ \delta_x(y) = \min_p C_p(x,y) $ is piecewise smooth and differentiable almost everywhere.
  • Extends the univariate result to multivariate time series by decomposing each multivariate series into component univariate series and applying the same cost formulation componentwise.
  • Uses linear embeddings $ \Phi_d $ and $ \Psi_d $ to represent warped time series, showing that the DTW cost equals the squared Euclidean norm of the embedded series: $ C_p(x,y) = \| \Phi_d(x) - \Psi_d(y) \|^2 $.

Experimental results

Research questions

  • RQ1Under what conditions are optimal warping paths in DTW unique?
  • RQ2How prevalent is non-uniqueness of optimal warping paths across the space of time series pairs?
  • RQ3Can the set of time series pairs with multiple equal-cost warping paths be characterized in terms of measure theory?
  • RQ4Does the uniqueness of optimal warping paths hold almost everywhere when using squared error local costs?
  • RQ5How does the multivariate extension of DTW preserve the uniqueness property of optimal warping paths?

Key findings

  • Optimal warping paths are unique almost everywhere in the space of time series pairs when using squared error local costs.
  • The set of time series pairs with non-unique optimal warping paths has measure zero and coincides with the union of exponentially many zero sets of quadratic forms.
  • The minimum cost function $ \delta_x(y) = \min_p C_p(x,y) $ is piecewise smooth and differentiable almost everywhere, enabling subgradient-based optimization.
  • Distance-based learning objectives such as k-means and learning vector quantization are differentiable almost everywhere in DTW spaces, supporting robust optimization.
  • The multivariate extension of DTW preserves the uniqueness property, as the result generalizes componentwise using product space measures.
  • The theoretical foundation supports the use of gradient-based methods in DTW-based learning, as non-differentiable points are negligible in measure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.