[Paper Review] Differentiable Divergences Between Time Series
This paper proposes soft-DTW divergence, a differentiable, non-negative divergence between time series that is minimized if and only if the series are equal—solving key limitations of soft-DTW, which can be negative and fails to minimize when series are identical. The method uses entropic regularization with a correction term to ensure validity as a divergence, and experiments show significant accuracy gains in time series classification and averaging over DTW and soft-DTW across 84 datasets.
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". 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.
Motivation & Objective
- To address the limitations of soft-DTW, which can be negative and is not minimized when two time series are equal due to entropic bias.
- To propose a new divergence, soft-DTW divergence, that is non-negative and strictly minimized when time series are identical.
- To develop a 'sharp' variant that further reduces entropic bias for improved alignment fidelity.
- To demonstrate superior performance in time series classification, averaging, and interpolation compared to DTW and soft-DTW.
Proposed method
- Proposes soft-DTW divergence as a corrected version of soft-DTW, incorporating a bias correction term to ensure non-negativity and exact minimization at equality.
- Uses entropic regularization to replace the min operation in DTW with a soft minimum, enabling differentiability while preserving dynamic programming efficiency.
- Derives the divergence as a modified soft-minimum over all alignments, with a correction term that removes the entropic bias present in standard soft-DTW.
- Introduces a 'sharp' variant by further minimizing the regularization parameter to reduce bias while maintaining differentiability.
- Employs dynamic programming to compute the divergence in O(mn) time, matching the complexity of DTW and soft-DTW.
- Applies the divergence in end-to-end learning pipelines for time series classification, averaging, and interpolation.
Experimental results
Research questions
- RQ1Can a differentiable divergence be constructed that is non-negative and minimized if and only if two time series are equal, overcoming soft-DTW's limitations?
- RQ2How does entropic regularization in soft-DTW introduce a bias that prevents minimization at equality, and can this be corrected?
- RQ3Does the proposed soft-DTW divergence outperform DTW and soft-DTW in time series classification and averaging tasks?
- RQ4Can a 'sharp' variant of the divergence further reduce entropic bias while maintaining differentiability and computational efficiency?
Key findings
- The soft-DTW divergence is non-negative and minimized if and only if the two time series are equal, under mild conditions on the ground cost.
- The 'sharp' variant of the divergence further reduces entropic bias, improving alignment fidelity.
- On 84 time series classification datasets, the proposed divergences achieve significantly higher accuracy than both DTW and soft-DTW.
- Time series averaging using soft-DTW divergence yields better results than with DTW or soft-DTW, demonstrating improved clustering and representation learning.
- The method maintains O(mn) computational complexity, enabling efficient use in deep learning pipelines.
- Empirical results show consistent improvements across diverse datasets, including UWaveGestureLibrary, HandOutlines, and SyntheticControl.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.