vix.ing · top · new · best · stats · spec

Exact, Parallelizable Dynamic Time Warping Alignment with Linear Memory

2020/08/04 by Christopher J. Tralie, Elizabeth Dempsey, Tralie, Christopher +1
Computer Science · #Audio and Speech Processing (eess.AS) #F.2.1 #FOS: Computer and information sciences #FOS: Electrical engineering #H.3.3 #H.5.5 #Information Retrieval (cs.IR) #Machine Learning (cs.LG) #Multimedia (cs.MM) #Music and Audio Processing #Sound (cs.SD) #Speech and Audio Processing #Time Series Analysis and Forecasting #electronic engineering #information engineering

paper · pdf · doi:10.48550/arxiv.2008.02734

openalex publication_date 2020/08/04 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

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.

Citations

Related