Fine-Grained Hardness of Approximating Dynamic Time Warping
Jihan Wang
Key points
From the paper's conclusion- We prove conditional lower bounds for approximating dynamic time warping (DTW) over the uniform metric on three symbols.
Abstract
We prove conditional lower bounds for approximating dynamic time warping (DTW) over the uniform metric on three symbols. Let $N, M$ be the two string lengths and $n, m$ their respective numbers of runs. Under the Gap Block Disjointness (GBD) hypothesis, for every fixed $\kappa \in (0,1/6)$ and $\delta \in (0,1)$, no deterministic algorithm $N^{\kappa\delta}$-approximates DTW on two explicit strings of length $N$ in $O(N^{2-\delta})$ time. This matches the known tradeoff between approximation and running-time exponents for deterministic algorithms within any fixed factor greater than six in the approximation exponent. For run-length encoded strings, the Orthogonal Vectors Hypothesis (OVH) rules out any constant-factor approximation in $\widetilde{O}((nm)^{1-\delta})$ time for every constant $\delta>0$. More generally, for every fixed $\eta \in (0,1)$, it rules out $(N+M)^{1-\eta}$-approximation in the same running time. These bounds extend to every fixed metric with at least three points, including absolute distance on $\{0,1,2\}$. Both reductions use long runs to force equal-symbol matches in low-cost alignments. For explicit strings, we combine Boolean gadgets with deterministic gap amplification to obtain a polynomial approximation gap. For run-length encoded strings, an encoding of regular-expression membership gives accepting instances an alignment whose cost does not increase as selected runs grow. Rejecting instances have distance at least the chosen run length, while the number of runs stays fixed.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Metric Weighted Edit Distance: $(3+\varepsilon)$-Approximation in $\widetilde O_\varepsilon(N^{1.6})$ TimearXiv · 2026
- Quadratic-Time Barriers from Self-Referential SATarXiv · 2026
- Conditional Indexing Lower Bounds and Normalization Boundaries for Elastic Subsequence MatchingarXiv · 2026
- Bounded Weighted Edit Distance with Metric CostsarXiv · 2026
- Hardness Results for Approximate Distance Labeling in Sparse GraphsarXiv · 2026
- Gaussian Difference Dynamics: Breaking the $2^{n/2}$ Barrier for the Shortest Vector Problem and Discrete Gaussian SamplingarXiv · 2026