Deep Declarative Dynamic Time Warping for End-to-End Learning of Alignment Paths
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 36 of its 68 references that are in the map. First posted on arXiv 19 Mar 2023.
Builds on
36 of 68 references.
References · 36
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2015NetVLAD: CNN architecture for weakly supervised place recognitioncited by 935
- 2017OptNet: Differentiable Optimization as a Layer in Neural Networkscited by 588
- 2019Meta-Learning with Differentiable Convex Optimizationcited by 461
- 2019Differentiable Convex Optimization Layerscited by 458
- 2017Soft-DTW: a Differentiable Loss Function for Time-Seriescited by 265
- 2018Enabling Factorized Piano Music Modeling and Generation with the MAESTRO Datasetcited by 215
- 2018Differentiable MPC for End-to-end Planning and Controlcited by 178
- 2019Few-Shot Video Classification via Temporal Alignmentcited by 124
- 2020VPR-Bench: An Open-Source Visual Place Recognition Evaluation Framework with Quantifiable Viewpoint and Appearance Changecited by 101
24 more
- 2019D3TW: Discriminative Differentiable Dynamic Time Warping for Weakly Supervised Action Alignment and Segmentationcited by 83
- 2022Deep Visual Geo-localization Benchmarkcited by 83
- 2021Where is your place, Visual Place Recognition?cited by 82
- 2019Deep Declarative Networks: A New Hopecited by 77
- 2019Differentiating Through a Cone Programcited by 72
- 2019Shape and Time Distortion Loss for Training Deep Time Series Forecasting Modelscited by 66
- 2019End-to-End Learnable Geometric Vision by Backpropagating PnP Optimizationcited by 65
- 2021SeqNet: Learning Descriptors for Sequence-based Hierarchical Place Recognitioncited by 56
- 2021Learning by Aligning Videos in Timecited by 47
- 2021Drop-DTW: Aligning Common Signal Between Sequences While Dropping Outlierscited by 39
- 2020Solving the Blind Perspective-n-Point Problem End-To-End With Robust Differentiable Geometric Optimizationcited by 38
- 2020Real-time Kinematic Ground Truth for the Oxford RobotCar Datasetcited by 28
- 2020Differentiable Divergences Between Time Seriescited by 26
- 2021Learning Discriminative Prototypes with Dynamic Time Warpingcited by 23
- 2019Temporal Transformer Networks: Joint Learning of Invariant and Discriminative Time Warpingcited by 21
- 2021Probabilistic Visual Place Recognition for Hierarchical Localizationcited by 20
- 2018Autowarp: Learning a Warping Distance from Unlabeled Time Series Using Sequence Autoencoderscited by 14
- 2018NeuralWarp: Time-Series Similarity with Warping Networkscited by 13
- 2017Generalized Rank Pooling for Activity Recognitioncited by 10
- 2018Gaussian Process Latent Variable Alignment Learningcited by 5
- 2019A General Optimization Framework for Dynamic Time Warpingcited by 5
- 2014Metric Learning for Temporal Sequence Alignmentcited by 4
- 2017Discriminatively Learned Hierarchical Rank Pooling Networkscited by 2
- 2020Rethinking Evaluation Methodology for Audio-to-Score Alignmentcited by 2
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 1; 2026: 1.
5 papers.
- 2023Applications of Spiking Neural Networks in Visual Place Recognitioncited by 9
- 2023Revisiting Implicit Differentiation for Learning Problems in Optimal Controlcited by 8
- 2024LPGD: A General Framework for Backpropagation through Embedded Optimization Layerscited by 6
- 2025TimePoint: Accelerated Time Series Alignment via Self-Supervised Keypoint and Descriptor Learningcited by 2
- 2026Geometry-Conditioned Fixed-Scaffold Encoders for Time-Warp Robust Sequence Retrievalcited by 0
- 2026Geometry-Conditioned Fixed-Scaffold Encoders for Time-Warp Robust Sequence Retrieval29 Sep 2026
- 2025TimePoint: Accelerated Time Series Alignment via Self-Supervised Keypoint and Descriptor Learning29 May 2025
- 2024LPGD: A General Framework for Backpropagation through Embedded Optimization Layers8 Jul 2024
- 2023Applications of Spiking Neural Networks in Visual Place Recognition22 Nov 2023
- 2023Revisiting Implicit Differentiation for Learning Problems in Optimal Control23 Oct 2023