TL;DR
This paper introduces GENIE, a novel GPU-accelerated framework for generic similarity search. It significantly simplifies GPU programming for parallel similarity search across diverse data types and similarity measures by abstracting the underlying complexities into a unified "match-count" model.
What Problem Does This Paper Address?
Similarity search, especially on large datasets, is computationally intensive and requires high throughput. While GPUs offer massive parallel processing power, programming them for complex tasks like similarity search is notoriously difficult due to their SIMD architecture, concurrent control, and memory access patterns. Existing solutions are often specialized for specific data types or similarity measures, demanding significant programming effort for each new application. This paper aims to bridge this gap by providing a generic, efficient, and easier-to-program framework for GPU-based similarity search.
Methods
GENIE is built upon a generic inverted index framework that operates on a "match-count" model. This model abstracts the core operations of similarity search, allowing GENIE to handle various data types and similarity measures by transforming them into this common model. Key novelties include:
- Count Priority Queue (c-PQ): A new GPU data structure designed to efficiently manage and select top-k candidates, overcoming bottlenecks associated with traditional sorting or priority queue methods on GPUs. It significantly reduces memory requirements and improves throughput.
- Locality Sensitive Hashing (LSH) Integration: GENIE supports similarity search using LSH by treating hash signatures as attributes in the inverted index. This enables $\tau$-ANN (Tolerance-Approximate Nearest Neighbor) search, a concept introduced to bound the approximation error.
- Shotgun and Assembly (SA) Scheme: For complex data types without LSH, GENIE supports the SA scheme, which breaks data into smaller units ("shotgun") and then assembles results.
- Load Balancing: Techniques are employed to split long postings lists, ensuring better workload distribution across GPU threads.
- Multiple Loading Strategy: To handle datasets larger than GPU memory, GENIE supports loading data in parts.
Datasets
The paper evaluates GENIE on five real-life datasets:
- OCR: Optical Character Recognition data (3.5M points, 1156 dimensions).
- SIFT: SIFT features (4.5M features, 128 dimensions).
- SIFT_LARGE: A larger version of SIFT (36M features).
- DBLP: Article titles from DBLP (5.0M sequences).
- Tweets: Short document data (6.8M tweets).
- Adult: Census information (49K rows, 14 attributes).
Key Insights and Ideas
- Abstraction is Key: The "match-count" model is a powerful abstraction that allows GENIE to be generic, reducing the burden of GPU programming for similarity search.
- c-PQ is a Game Changer: The novel c-PQ data structure is crucial for efficient top-k selection on the GPU, addressing a major bottleneck in existing systems. Its ability to keep only a few candidates in a hash table significantly reduces memory and computation.
- LSH and SA are Versatile: The framework's ability to integrate both LSH and SA schemes makes it adaptable to a wide range of data types and similarity measures, from high-dimensional points to sequences and relational data.
- GPU Parallelism is Underutilized: Many existing GPU similarity search methods don't fully exploit the GPU's parallel capabilities. GENIE's fine-grained approach aims to maximize processor utilization.
Key Results
- Performance: GENIE significantly outperforms existing GPU-based methods like GPU-SPQ and GPU-LSH, often by one to two orders of magnitude in terms of running time for multiple queries.
- Scalability: GENIE demonstrates good scalability with increasing dataset sizes and query numbers. The multiple loading strategy allows it to handle datasets larger than GPU memory.
- Memory Efficiency: The c-PQ structure drastically reduces memory consumption per query compared to methods like GEN-SPQ.
- Accuracy: For ANN search, GENIE achieves competitive approximation ratios, comparable to GPU-LSH, while being significantly faster. For sequence search, it can return correct top-1 results for a high percentage of queries even with modifications.
Limitations and Future Work
- Not All Data Types Supported: While GENIE supports many popular data types and similarity measures, it doesn't claim to support every possible combination.
- $\tau$-ANN vs. Exact kNN: For ANN search, GENIE provides $\tau$-ANN results, which are approximate. For exact kNN, a verification step or repeated searches might be necessary, increasing computation.
- Index Building Time: While query processing is fast, index building is done on the CPU and can be time-consuming, though this is an offline process.
- Future Work: The paper suggests further exploration of optimizing the match-count model and its integration with various similarity measures and data types. The authors also mention the potential for further improvements in the c-PQ structure and load balancing techniques.
Summary updated