Differentiable Divergences Between Time Series

Mathieu Blondel, Arthur Mensch, Jean-Philippe Vert
10/16/2020
cs.LGstat.ML

Official code: google-research/soft-dtw-divergences (134 stars, Python, Apache-2.0, last commit 2021-10-14).

Abstract

Computing the discrepancy between time series of variable sizes is notoriously challenging. While dynamic time warping (DTW) is popularly used for this purpose, it is not differentiable everywhere and is known to lead to bad local optima when used as a "loss".

Show full abstract

Soft-DTW addresses these issues, but it is not a positive definite divergence: due to the bias introduced by entropic regularization, it can be negative and it is not minimized when the time series are equal. We propose in this paper a new divergence, dubbed soft-DTW divergence, which aims to correct these issues. We study its properties; in particular, under conditions on the ground cost, we show that it is a valid divergence: it is non-negative and minimized if and only if the two time series are equal. We also propose a new "sharp" variant by further removing entropic bias. We showcase our divergences on time series averaging and demonstrate significant accuracy improvements compared to both DTW and soft-DTW on 84 time series classification datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

An implementation of soft-DTW divergences.

13415PythonNov 18, 20205 years agoApache-2.0
dtwdynamic-time-warpingsoft-dtwtime-series

Similar Papers

Cite this paper

@article{blondel2020differentiable,
  title  = {Differentiable Divergences Between Time Series},
  author = {Mathieu Blondel and Arthur Mensch and Jean-Philippe Vert},
  year   = {2020},
  eprint = {2010.08354},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.08354}
}

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

Discussion