Skip to main content
QUICK REVIEW

[Paper Review] Understanding and Improving Proximity Graph based Maximum Inner Product Search

Jie Liu, Yan Xiao|arXiv (Cornell University)|Sep 30, 2019
Data Management and AlgorithmsComputer Science23 references5 citations
TL;DR

This paper identifies a strong norm bias in Maximum Inner Product Search (MIPS), where high-norm items dominate results, and explains that ip-NSW's superior performance stems from its graph structure amplifying this bias by prioritizing high-norm items. To improve robustness, the authors propose ip-NSW+, which first uses an angular proximity graph to find directionally similar items before searching via inner product, significantly reducing unnecessary computation and outperforming ip-NSW across diverse data distributions.

ABSTRACT

The inner-product navigable small world graph (ip-NSW) represents the state-of-the-art method for approximate maximum inner product search (MIPS) and it can achieve an order of magnitude speedup over the fastest baseline. However, to date it is still unclear where its exceptional performance comes from. In this paper, we show that there is a strong norm bias in the MIPS problem, which means that the large norm items are very likely to become the result of MIPS. Then we explain the good performance of ip-NSW as matching the norm bias of the MIPS problem - large norm items have big in-degrees in the ip-NSW proximity graph and a walk on the graph spends the majority of computation on these items, thus effectively avoids unnecessary computation on small norm items. Furthermore, we propose the ip-NSW+ algorithm, which improves ip-NSW by introducing an additional angular proximity graph. Search is first conducted on the angular graph to find the angular neighbors of a query and then the MIPS neighbors of these angular neighbors are used to initialize the candidate pool for search on the inner-product proximity graph. Experiment results show that ip-NSW+ consistently and significantly outperforms ip-NSW and provides more robust performance under different data distributions.

Motivation & Objective

  • To understand why ip-NSW achieves state-of-the-art performance in approximate MIPS despite not being a perfect Delaunay graph.
  • To investigate the underlying causes of ip-NSW's performance, particularly its interaction with data distribution and norm characteristics.
  • To address the performance degradation of ip-NSW under skewed norm distributions by designing a more robust search strategy.
  • To develop a new algorithm that reduces unnecessary computation on high-norm, low-relevance items while maintaining high recall.

Proposed method

  • The authors identify and quantify a strong norm bias in MIPS, showing that top-5% norm items account for up to 100% of top-10 results across four datasets.
  • They analyze ip-NSW's graph structure and demonstrate that high-norm items have significantly higher in-degrees, explaining why the algorithm efficiently skips low-norm candidates.
  • The proposed ip-NSW+ introduces a separate angular proximity graph to first identify items with similar direction to the query.
  • Candidate items for inner product search are initialized from the angular neighbors, reducing the number of high-norm, low-relevance items evaluated.
  • The algorithm performs a two-stage search: first on the angular graph to find promising candidates, then on the inner-product proximity graph using those candidates as a starting pool.
  • The method is robust to norm distribution shifts, as shown by consistent performance across datasets with varying tailing factors (TF).

Experimental results

Research questions

  • RQ1Why does ip-NSW achieve such high performance in approximate MIPS despite being an approximation of the ideal Delaunay graph?
  • RQ2To what extent is the performance of ip-NSW influenced by the norm distribution of the dataset?
  • RQ3Can the norm bias in ip-NSW be exploited or mitigated to improve search efficiency and robustness?
  • RQ4Does incorporating angular similarity information lead to better candidate selection and reduced computation in MIPS?

Key findings

  • The MIPS problem exhibits a strong norm bias: in four datasets, top-5% norm items accounted for 87.5% to 100% of top-10 MIPS results, even without skewed norm distributions.
  • ip-NSW’s performance is explained by its graph structure, which gives high-norm items high in-degrees, causing walks to focus computation on the most likely candidates.
  • ip-NSW+ significantly outperforms ip-NSW in terms of similarity function evaluations per recall, especially under varying norm distributions.
  • ip-NSW+ achieves consistent performance across ImageNet variants with different norm distributions (TF 2.05 to 1.37), while ip-NSW degrades as norm skewness increases.
  • The performance of ip-NSW+ is robust to parameter choices for $M$ and $l$ in the angular graph, with optimal performance at $M=10$, $l=10$.
  • The use of angular neighbors to initialize the candidate pool ensures that inner product evaluations are focused on items with high potential for good MIPS results, reducing wasted computation.

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.