Reproduce “Faster Retrieval with a Two-Pass Dynamic-Time-Warping Lower Bound” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Daniel Lemire

LB Improved accelerates exact nearest-neighbor search under Dynamic Time Warping by adding a second, selectively computed envelope-based lower bound to LB Keogh. The method preserves exact retrieval while pruning roughly two to four times as many candidates as LB Keogh on tested datasets, delivering speedups of up to about sixfold and around twofold on shape collections, although gains vary with data characteristics and the warping window.

Key insights

  • A second lower-bound pass can recover information discarded by the first envelope comparison, while remaining exact rather than approximate.
  • The extra computation is worthwhile when the initial filter leaves many plausible candidates that the tighter bound can eliminate; benefits are therefore strongly dependent on dataset structure and the locality window.
  • Wider DTW windows produce broader envelopes and weaker pruning, whereas narrower windows improve filtering but define a more constrained alignment problem.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.