Reconfigurable Inverted Index

Yusuke Matsui, Ryota Hinami, Shin'ichi Satoh
8/12/2018
cs.CVcs.IRcs.MM

Official code: matsui528/rii (154 stars, C++, MIT, last commit 2025-07-01).

Abstract

Existing approximate nearest neighbor search systems suffer from two fundamental problems that are of practical importance but have not received sufficient attention from the research community. First, although existing systems perform well for the whole database, it is difficult to run a search over a subset of the database.

Show full abstract

Second, there has been no discussion concerning the performance decrement after many items have been newly added to a system. We develop a reconfigurable inverted index (Rii) to resolve these two issues. Based on the standard IVFADC system, we design a data layout such that items are stored linearly. This enables us to efficiently run a subset search by switching the search method to a linear PQ scan if the size of a subset is small. Owing to the linear layout, the data structure can be dynamically adjusted after new items are added, maintaining the fast speed of the system. Extensive comparisons show that Rii achieves a comparable performance with state-of-the art systems such as Faiss.

View on arXivView PDF

Code Implementations(1)

matsui528/riiOfficial100%
MIT

Fast and memory-efficient ANN with a subset-search functionality

15420C++, PythonJul 24, 20181 years agoMIT
approximate-nearest-neighbor-searchdata-compressionnearest-neighbor-searchproduct-quantizationpybind11

Similar Papers

Cite this paper

@article{matsui2018reconfigurable,
  title  = {Reconfigurable Inverted Index},
  author = {Yusuke Matsui and Ryota Hinami and Shin'ichi Satoh},
  year   = {2018},
  eprint = {1808.03969},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.03969}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1808.03969.svg)](https://codeofpaper.com/paper/1808.03969)

Discussion