Query Workloads for Data Series Indexes

Kostas Zoumpatianos, Yin Lou, Themis Palpanas, Johannes Gehrke

Abstract

Standard benchmarks for data series indexes often rely on random queries that are too easy to solve, failing to distinguish between different indexing technologies. This paper introduces a formal measure of query hardness and a workload generator that uses "Equi-densification" to create challenging datasets, revealing performance gaps that traditional benchmarks miss.

Introduction: The "Easy Query" Bias

As data collections—ranging from heart rate monitors to genomic sequences—grow into the billions, specialized indexes and summarization techniques (e.g., SAX, PAA, DFT) are essential for efficient similarity searches. However, a major flaw exists in current benchmarking: researchers typically use random samples from the dataset as queries.

Distribution of query hardness across RandWalk, EEG, and DNA datasets for various sequence lengths. Most queries fall into the low-hardness (easy) category.

The authors demonstrate that these random workloads are overwhelmingly "easy." In an easy query, the index can quickly prune almost the entire dataset, leaving only a few candidates to check. Because nearly every index handles easy queries well, these benchmarks fail to differentiate between competing technologies. To truly understand index performance, we need "hard" queries—cases where many data points are tantalizingly close to the true answer, forcing the index to perform significant work.

Defining and Measuring Hardness

The paper contributes a framework for measuring and generating controlled query workloads. They define query hardness ($\alpha^\epsilon$) as the fraction of the dataset that falls within a specific "$\epsilon$-area" around the query's nearest neighbor. A harder query has more "distractor" points near the actual answer, reducing the effectiveness of pruning.

Visualizing query hardness: query $q_2$ is harder than $q_1$ because it has significantly more points (18 vs 6) within the same $\epsilon$-area.

Methods: Equi-densification

To create workloads with specific hardness levels, the authors propose Equi-densification. This technique adds new data points distributed across the entire spectrum of the index's "lower-bounding" function. Unlike adding random noise, Equi-densification ensures the workload specifically tests the pruning power of different summarization techniques (like SAX vs. DFT) by filling the search space in a controlled manner.

The generation process involves identifying non-intersecting queries and performing targeted point insertion. By solving a linear system, the authors can add exactly the right number of points to hit a target hardness value (e.g., 0.1, 0.3, or 0.5) with high precision.

Key Results and Insights

The authors evaluated their generator using three diverse datasets: synthetic RandWalk, real-world EEG (brain waves), and DNA sequences.

  • Revealing Performance Gaps: Standard random workloads showed two popular indexes (iSAX 2.0 and R-Trees) having nearly identical performance. However, the EDQ (Equi-Densified Query) workload revealed that iSAX was much more robust as hardness increased, exposing a performance gap hidden by easy queries.
  • Pruning Sensitivity: Experiments showed that "crude" summarizations (using fewer bytes) see their computational effort increase much faster than "fine" summarizations as hardness increases. This validates the generator's ability to stress-test the resolution of different data representations.

Conclusion and Future Work

This research highlights that benchmarks have historically ignored 90% of the difficulty spectrum. While the current study focuses on 1-Nearest Neighbor (1-NN) queries, the methodology provides a rigorous path forward for benchmarking high-dimensional indexes. Future work includes extending the framework to $k$-NN queries and evaluating modern graph-based indexes like HNSW.

Summary updated

BibTeX
@inproceedings{zoumpatianos2015query,
  author = {Kostas Zoumpatianos and Yin Lou and Themis Palpanas and Johannes Gehrke},
  title = {{Query Workloads for Data Series Indexes}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2015},
  doi = {10.1145/2783258.2783382},
}
Figure