Exact, Parallelizable Dynamic Time Warping Alignment with Linear Memory
Not on the map. Why?
Abstract (arXiv)
Audio alignment is a fundamental preprocessing step in many MIR pipelines. For two audio clips with M and N frames, respectively, the most popular approach, dynamic time warping (DTW), has O(MN) requirements in both memory and computation, which is prohibitive for frame-level alignments at reasonable rates. To address this, a variety of memory efficient algorithms exist to approximate the optimal alignment under the DTW cost. To our knowledge, however, no exact algorithms exist that are guaranteed to break the quadratic memory barrier. In this work, we present a divide and conquer algorithm that computes the exact globally optimal DTW alignment using O(M+N) memory. Its runtime is still O(MN), trading off memory for a 2x increase in computation. However, the algorithm can be parallelized up to a factor of min(M, N) with the same memory constraints, so it can still run more efficiently than the textbook version with an adequate GPU. We use our algorithm to compute exact alignments on a collection of orchestral music, which we use as ground truth to benchmark the alignment accuracy of several popular approximate alignment schemes at scales that were not previously possible.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 0; 2025: 1.
3 papers.
- 2023Online Symbolic Music Alignment with Offline Reinforcement Learningcited by 5
- 2023Latent Optimal Paths by Gumbel Propagation for Variational Bayesian Dynamic Programmingcited by 0
- 2025Intelligently Augmented Contrastive Tensor Factorization: Empowering Multi-dimensional Time Series Classification in Low-Data Environmentscited by 0
- 2025Intelligently Augmented Contrastive Tensor Factorization: Empowering Multi-dimensional Time Series Classification in Low-Data Environments3 May 2025
- 2023Online Symbolic Music Alignment with Offline Reinforcement Learning31 Dec 2023
- 2023Latent Optimal Paths by Gumbel Propagation for Variational Bayesian Dynamic Programming5 Jun 2023