Tight Bounds for Approximate Near Neighbor Searching for Time Series under the Fréchet Distance

Karl Bringmann, Anne Driemel, André Nusser, Ioannis Psarros

This paper, a collaboration between researchers at Saarland University, the University of Bonn, and the Athena Research Center, provides a definitive look at the computational limits of finding "near neighbors" for time series data. By combining clever new algorithms with "fine-grained" complexity proofs, the authors establish tight bounds on how fast we can search for similar curves under the continuous Fréchet distance.

TL;DR

The authors provide the first comprehensive set of "tight" upper and lower bounds for the approximate near neighbor (ANN) problem for 1D curves under the continuous Fréchet distance. They introduce a new linear-space data structure for $(2+\epsilon)$-approximation and prove that their algorithms are essentially optimal unless the Orthogonal Vectors Hypothesis is false.

What Problem Does This Paper Address?

Imagine you have a massive database of GPS trajectories or stock market trends (time series). You want to find any curve in your database that is "close" to a new query curve. The standard way to measure "closeness" for curves is the Fréchet distance, often described by the "dog-walker" analogy: it’s the minimum length of a leash needed for a human and a dog to traverse their respective paths from start to finish without ever moving backward.

While the discrete version of this problem (treating curves as sequences of points) is well-understood, the continuous version (treating curves as continuous segments) is notoriously difficult. Previous algorithms were either too slow, used too much memory, or provided poor approximation factors. The authors set out to determine exactly how much "work" (time and space) is required to solve this for one-dimensional curves.

Methods

The authors employ a two-pronged approach:

  1. Upper Bounds (New Algorithms): They use a "candidate enumeration" strategy. During preprocessing, they generate a strategic subset of possible query curves, round them to a grid, and store them in a dictionary.
  2. Straightenings: They introduce "straightenings," a more refined way to simplify curves than previous "signatures." This allows them to achieve a $(1+\epsilon)$ approximation factor in the same time it previously took to get a $(2+\epsilon)$ factor.
  3. Dualization: To achieve linear space (proportional to the input size), they "dualize" the process, shifting the heavy lifting of generating candidate curves from the preprocessing phase to the query phase.
  4. Lower Bounds (Hardness Proofs): To prove their algorithms are the best possible, they use Fine-Grained Complexity. They show that if anyone found a significantly faster algorithm, it would also solve the "Orthogonal Vectors" problem faster than currently thought possible, which would upend a major hypothesis in computer science (OVH). They even introduce a new variant called OneSidedSparseOV to make these proofs work for very short query curves.

Datasets

As this is a theoretical paper focused on computational geometry and complexity theory, it does not use empirical datasets for training or benchmarking. Instead, the "evaluation" consists of rigorous mathematical proofs that apply to any set of $n$ polygonal curves with $m$ vertices.

Key Insights and Ideas

  • The "3-Factor" Barrier: The authors highlight a fundamental limitation in metric geometry: proving hardness for approximation factors greater than 3 is extremely difficult. Consequently, their tight results focus on the $1 < \alpha < 3$ range.
  • Work-Shifting: The realization that candidate generation can be moved to the query phase is a major "aha" moment. It allows for a data structure that uses only $O(nm)$ space—essentially just storing the raw data—while still providing fast query times.
  • Sparsity Matters: By proving that the Orthogonal Vectors problem remains hard even when one set of vectors is "sparse" (mostly zeros), they were able to prove lower bounds that hold even for very simple query curves (small $k$).

Key Results

The paper establishes a new "menu" of tradeoffs for researchers (where $n$ is the number of curves, $m$ is input complexity, $k$ is query complexity, and $\epsilon$ is the error tolerance):

  • For $(1+\epsilon)$-ANN: They achieved a query time of $O(1)^k$ with preprocessing time/space of $n \cdot O(m/k\epsilon)^k$.
  • For $(2+\epsilon)$-ANN: They achieved linear preprocessing time and space $O(nm)$ with a query time of $O(1/\epsilon)^{k+2}$. This is a massive improvement over previous results that required exponential space.
  • Matching Hardness: They proved that for any approximation factor $c < 2$, you cannot avoid the exponential dependency on $k$ in the query time (assuming OVH).

Limitations and Future Work

The primary limitation is dimensionality. This paper focuses almost entirely on one-dimensional curves (time series). While the authors do provide one lower bound for 2D curves, the "straightening" and "signature" techniques used for the algorithms don't translate easily to higher dimensions because the "doubling dimension" of continuous curves in 2D can be infinite.

The authors suggest that the next frontier is developing similar tight bounds for curves in 2D and 3D, which would have significant implications for robotics and geographic information systems (GIS).

Summary updated

BibTeX
@inproceedings{bringmann2022tight,
  author = {Karl Bringmann and Anne Driemel and André Nusser and Ioannis Psarros},
  title = {{Tight Bounds for Approximate Near Neighbor Searching for Time Series under the Fréchet Distance}},
  booktitle = {SODA},
  year = {2022},
  doi = {10.1137/1.9781611977073.25},
}
Figure