Abstract
Similarity search is a critical operation for analyzing massive data series in fields ranging from finance to medicine. However, research has been fragmented between the data series and general multidimensional vector communities. This paper presents the first comprehensive experimental evaluation of approximate similarity search methods across both domains. We introduce a unified taxonomy, extend existing data series indexes to support theoretical error guarantees, and demonstrate that these specialized methods often outperform state-of-the-art vector techniques, particularly for massive, disk-resident datasets.
Introduction
In the era of IoT and big data, we are increasingly reliant on data series—sequences of ordered real values. Finding similar patterns in these datasets is a computational bottleneck. While exact similarity search is often too slow for massive scales, approximate search offers a trade-off between accuracy and speed. Historically, different research communities have developed disparate techniques and terminologies. The paper "Return of the Lernaean Hydra" reconciles these approaches, providing a unified framework for evaluating approximate similarity search.
A Unified Taxonomy of Similarity Search
To address the fragmentation in the field, the authors propose a taxonomy based on the mathematical guarantees provided by each method. This classification helps practitioners choose the right algorithm based on their specific accuracy requirements.
The study also introduces algorithmic extensions to established "exact" data series indexing techniques—specifically DSTree, iSAX2+, and VA+file. These extensions enable these methods to support $\epsilon$ and $\delta$-\epsilon$ approximate queries with theoretical guarantees, allowing for a direct comparison with general-purpose vector methods like HNSW, NSG, and IMI.
Experimental Evaluation
The authors conducted an extensive evaluation using a unified C/C++ framework to eliminate implementation bias. They compared data series-specific methods against seven top-tier multidimensional vector methods using massive synthetic and real-world datasets up to 250GB, including random-walk data, deep learning vectors (Deep1B), and seismic recordings.
Key Results
The experimental results highlight the strengths and weaknesses of different approaches across various environments:
- Indexing Performance: iSAX2+ emerged as the fastest method for index construction, both in-memory and on-disk. While graph-based methods like HNSW offer fast queries, their astronomical indexing time can be a significant drawback for smaller query workloads.
- Memory Efficiency: DSTree proved to be the most memory-efficient index, requiring significantly less RAM than graph-based or quantization-based alternatives.
- Disk-Resident Data: For datasets that exceed available RAM, data series methods like iSAX2+ and DSTree are the clear winners, outperforming general vector methods in both accuracy and efficiency.
Conclusion
The "Return of the Lernaean Hydra" demonstrates that data series-specific indexing techniques are highly effective for approximate similarity search. By providing theoretical guarantees and superior performance on massive, disk-resident datasets, these methods remain essential tools for modern data analysis. Future research will focus on improving distance distribution models and exploring progressive query answering techniques.
Summary updated