Skip to main content
QUICK REVIEW

[Paper Review] FLASH: Randomized Algorithms Accelerated over CPU-GPU for Ultra-High Dimensional Similarity Search

Yiqiu Wang, Anshumali Shrivastava|arXiv (Cornell University)|Sep 4, 2017
Advanced Image and Video Retrieval TechniquesComputer Science25 references9 citations
TL;DR

FLASH accelerates ultra-high-dimensional similarity search on CPU-GPU systems using randomized LSH with reservoir sampling, one-pass minwise hashing, and count-based estimation, achieving sub-10-second k-NN graph construction on the 1.3B-nonzero webspam dataset—outperforming brute-force by over 20 teraflops and state-of-the-art tools like FAISS and HNSW in speed and scalability on high-dimensional sparse data.

ABSTRACT

We present FLASH ( extbf{F}ast extbf{L}SH extbf{A}lgorithm for extbf{S}imilarity search accelerated with extbf{H}PC), a similarity search system for ultra-high dimensional datasets on a single machine, that does not require similarity computations and is tailored for high-performance computing platforms. By leveraging a LSH style randomized indexing procedure and combining it with several principled techniques, such as reservoir sampling, recent advances in one-pass minwise hashing, and count based estimations, we reduce the computational and parallelization costs of similarity search, while retaining sound theoretical guarantees. We evaluate FLASH on several real, high-dimensional datasets from different domains, including text, malicious URL, click-through prediction, social networks, etc. Our experiments shed new light on the difficulties associated with datasets having several million dimensions. Current state-of-the-art implementations either fail on the presented scale or are orders of magnitude slower than FLASH. FLASH is capable of computing an approximate k-NN graph, from scratch, over the full webspam dataset (1.3 billion nonzeros) in less than 10 seconds. Computing a full k-NN graph in less than 10 seconds on the webspam dataset, using brute-force ($n^2D$), will require at least 20 teraflops. We provide CPU and GPU implementations of FLASH for replicability of our results.

Motivation & Objective

  • To address the computational infeasibility of exact k-NN search on ultra-high-dimensional, sparse datasets with millions of dimensions.
  • To overcome the limitations of existing approximate methods like LSH (skewed buckets, memory bloat) and product quantization (poor scaling with dimensionality).
  • To design a system that achieves high performance and strong theoretical guarantees on single-machine CPU-GPU platforms.
  • To enable fast, scalable, and replicable similarity search for real-world applications such as recommendation systems, click-through prediction, and social network mining.

Proposed method

  • Leverages locality-sensitive hashing (LSH) with signed random projections to map high-dimensional sparse vectors into compact hash codes.
  • Employs one-pass minwise hashing and DOPH (Distributed One-Pass Hashing) to efficiently estimate Jaccard similarity with low memory and high parallelism.
  • Uses reservoir sampling to balance bucket sizes and avoid performance degradation from heavy buckets caused by frequent tokens.
  • Applies count-based estimation to accelerate similarity ranking without explicit distance computation.
  • Combines these techniques within a CPU-GPU hybrid architecture to exploit data parallelism and reduce indexing and querying latency.
  • Integrates optimized GPU kernels to ensure hashing time is faster than data loading time, enabling end-to-end k-NN graph construction in under 10 seconds.

Experimental results

Research questions

  • RQ1Can a randomized LSH-based system achieve sub-10-second k-NN graph construction on a 1.3-billion-nonzero, ultra-high-dimensional dataset like webspam?
  • RQ2How does FLASH compare to state-of-the-art systems like FAISS and HNSW in terms of speed and accuracy on high-dimensional sparse data?
  • RQ3Can reservoir sampling effectively mitigate the bucket skew problem in LSH without sacrificing theoretical guarantees?
  • RQ4To what extent can one-pass minwise hashing and count-based estimation reduce computational cost in similarity search?
  • RQ5Can GPU acceleration be effectively combined with LSH and reservoir sampling to achieve near-constant-time indexing for massive datasets?

Key findings

  • FLASH constructs a complete k-NN graph on the webspam dataset (1.3 billion nonzeros) in less than 10 seconds, a task requiring at least 20 teraflops with brute-force exact search.
  • On the RCV1 dataset, FLASH achieves over 80% recall for high-similarity neighbors (similarity ≥0.85), outperforming FAISS in both speed and recall at high dimensions.
  • The system reduces indexing time to less than the data loading time by optimizing GPU kernels, making hashing faster than I/O.
  • Reservoir sampling effectively mitigates bucket skew, improving load balancing and enabling efficient parallelization across CPU and GPU.
  • FLASH achieves a 10x speedup over FAISS and a 30x speedup over HNSW on high-dimensional sparse datasets, with competitive or better accuracy.
  • The integration of DOPH with reservoir sampling enables strong theoretical guarantees while maintaining practical efficiency, outperforming standard LSH and projection-based methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.