Implementing and Evaluating E2LSH on Storage

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Nakanishi, Yu, Hiwada, Kazuhiro, Bando, Yosuke, Suzuki, Tomoya, Kajihara, Hirotsugu, Sano, Shintaro, Endo, Tatsuro, Shiozawa, Tatsuo
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914727764951040
author Nakanishi, Yu
Hiwada, Kazuhiro
Bando, Yosuke
Suzuki, Tomoya
Kajihara, Hirotsugu
Sano, Shintaro
Endo, Tatsuro
Shiozawa, Tatsuo
author_facet Nakanishi, Yu
Hiwada, Kazuhiro
Bando, Yosuke
Suzuki, Tomoya
Kajihara, Hirotsugu
Sano, Shintaro
Endo, Tatsuro
Shiozawa, Tatsuo
contents Locality sensitive hashing (LSH) is one of the widely-used approaches to approximate nearest neighbor search (ANNS) in high-dimensional spaces. The first work on LSH for the Euclidean distance, E2LSH, showed how ANNS can be solved efficiently at a sublinear query time in the database size with theoretically-guaranteed accuracy, although it required a large hash index size. Since then, several LSH variants having much smaller index sizes have been proposed. Their query time is linear or superlinear, but they have been shown to run effectively faster because they require fewer I/Os when the index is stored on hard disk drives and because they also permit in-memory execution with modern DRAM capacity. In this paper, we show that E2LSH is regaining the advantage in query speed with the advent of modern flash storage devices such as solid-state drives (SSDs). We evaluate E2LSH on a modern single-node computing environment and analyze its computational cost and I/O cost, from which we derive storage performance requirements for its external memory execution. Our analysis indicates that E2LSH on a single consumer-grade SSD can run faster than the state-of-the-art small-index methods executed in-memory. It also indicates that E2LSH with emerging high-performance storage devices and interfaces can approach in-memory E2LSH speeds. We implement a simple adaptation of E2LSH to external memory, E2LSH-on-Storage (E2LSHoS), and evaluate it for practical large datasets of up to one billion objects using different combinations of modern storage devices and interfaces. We demonstrate that our E2LSHoS implementation runs much faster than small-index methods and can approach in-memory E2LSH speeds, and also that its query time scales sublinearly with the database size beyond the index size limit of in-memory E2LSH.
format Preprint
id arxiv_https___arxiv_org_abs_2403_16404
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Implementing and Evaluating E2LSH on Storage
Nakanishi, Yu
Hiwada, Kazuhiro
Bando, Yosuke
Suzuki, Tomoya
Kajihara, Hirotsugu
Sano, Shintaro
Endo, Tatsuro
Shiozawa, Tatsuo
Performance
Databases
Locality sensitive hashing (LSH) is one of the widely-used approaches to approximate nearest neighbor search (ANNS) in high-dimensional spaces. The first work on LSH for the Euclidean distance, E2LSH, showed how ANNS can be solved efficiently at a sublinear query time in the database size with theoretically-guaranteed accuracy, although it required a large hash index size. Since then, several LSH variants having much smaller index sizes have been proposed. Their query time is linear or superlinear, but they have been shown to run effectively faster because they require fewer I/Os when the index is stored on hard disk drives and because they also permit in-memory execution with modern DRAM capacity. In this paper, we show that E2LSH is regaining the advantage in query speed with the advent of modern flash storage devices such as solid-state drives (SSDs). We evaluate E2LSH on a modern single-node computing environment and analyze its computational cost and I/O cost, from which we derive storage performance requirements for its external memory execution. Our analysis indicates that E2LSH on a single consumer-grade SSD can run faster than the state-of-the-art small-index methods executed in-memory. It also indicates that E2LSH with emerging high-performance storage devices and interfaces can approach in-memory E2LSH speeds. We implement a simple adaptation of E2LSH to external memory, E2LSH-on-Storage (E2LSHoS), and evaluate it for practical large datasets of up to one billion objects using different combinations of modern storage devices and interfaces. We demonstrate that our E2LSHoS implementation runs much faster than small-index methods and can approach in-memory E2LSH speeds, and also that its query time scales sublinearly with the database size beyond the index size limit of in-memory E2LSH.
title Implementing and Evaluating E2LSH on Storage
topic Performance
Databases
url https://arxiv.org/abs/2403.16404