Lune

ICLR2023Top-tier venue

Deep Declarative Dynamic Time Warping for End-to-End Learning of Alignment Paths

Ming Xu, Sourav Garg, Michael Milford, Stephen Gould

Abstract

This paper addresses learning end-to-end models for time series data that include a temporal alignment step via dynamic time warping (DTW). Existing approaches to differentiable DTW either differentiate through a fixed warping path or apply a differentiable relaxation to the min operator found in the recursive steps used to solve the DTW problem. We instead propose a DTW layer based around bi-level optimisation and deep declarative networks, which we name DecDTW. By formulating DTW as a continuous, inequality constrained optimisation problem, we can compute gradients for the solution of the optimal alignment (with respect to the underlying time series) using implicit differentiation. An interesting byproduct of this formulation is that DecDTW outputs the optimal warping path between two time series as opposed to a soft approximation, recoverable from Soft-DTW. We show that this property is particularly useful for applications where downstream loss functions are defined on the optimal alignment path itself. This naturally occurs, for instance, when learning to improve the accuracy of predicted alignments against ground truth alignments. We evaluate DecDTW on two such applications, namely the audio-to-score alignment task in music information retrieval and the visual place recognition task in robotics, demonstrating state-of-the-art results in both.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Drop-DTW: Aligning Common Signal Between Sequences While Dropping Outliers cites Learning Discriminative Prototypes With Dynamic Time Warping
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Revisiting Implicit Differentiation for Learning Problems in Optimal ControlMing Xu, Timothy L. Molloy, Stephen GouldNeurIPS 2023 · 16 citations
  2. LPGD: A General Framework for Backpropagation through Embedded Optimization LayersAnselm Paulus, Georg Martius, Vít MusilICML 2024 · 5 citations
  3. TimePoint: Accelerated Time Series Alignment via Self-Supervised Keypoint and Descriptor LearningRon Shapira Weber, Shahar Ben Ishay, Andrey Lavrinenko, Shahaf E. Finder et al.ICML 2025

Builds on7

  1. Deep Visual Geo-localization BenchmarkGabriele Moreno Berton, Riccardo Mereu, Gabriele Trivigno, Carlo Masone et al.CVPR 2022 · 80 citations
  2. Drop-DTW: Aligning Common Signal Between Sequences While Dropping OutliersNikita Dvornik, Isma Hadji, Konstantinos G. Derpanis, Animesh Garg et al.NeurIPS 2021 · 78 citations
  3. Soft Contrastive Learning for Visual LocalizationJanine Thoma, Danda Pani Paudel, Luc Van GoolNeurIPS 2020 · 41 citations
  4. Learning Discriminative Prototypes With Dynamic Time WarpingXiaobin Chang, Frederick Tung, Greg MoriCVPR 2021
  5. End-to-End Learnable Geometric Vision by Backpropagating PnP OptimizationBo Chen, Álvaro Parra, Jiewei Cao, Nan Li et al.CVPR 2020

Related papers

  1. Closed-Form Diffeomorphic Transformations for Time Series AlignmentIñigo Martinez, Elisabeth Viles, Igor G. OlaizolaICML 2022 · 11 citations
  2. Don't Pour Cereal into Coffee: Differentiable Temporal Logic for Temporal Action SegmentationZiwei Xu, Yogesh S. Rawat, Yongkang Wong, Mohan S. Kankanhalli et al.NeurIPS 2022 · 18 citations
  3. Representation Learning via Global Temporal Alignment and Cycle-ConsistencyIsma Hadji, Konstantinos G. Derpanis, Allan D. JepsonCVPR 2021
  4. BPQP: A Differentiable Convex Optimization Framework for Efficient End-to-End LearningJianming Pan, Zeqi Ye, Xiao Yang, Xu Yang et al.NeurIPS 2024 · 18 citations
  5. DiffTORI: Differentiable Trajectory Optimization for Deep Reinforcement and Imitation LearningWeikang Wan, Ziyu Wang, Yufei Wang, Zackory Erickson et al.NeurIPS 2024
Dusk over the sea between two cliffs drawn in fine vertical lines