11 11 11 Learning to Route in Similarity Graphs Dmitry Baranchuk - - PowerPoint PPT Presentation

11 11 11 learning to route in similarity graphs
SMART_READER_LITE
LIVE PREVIEW

11 11 11 Learning to Route in Similarity Graphs Dmitry Baranchuk - - PowerPoint PPT Presentation

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation 11 11 11 Learning to Route in Similarity Graphs Dmitry Baranchuk joint work with Dmitry Persiyanov, Anton Sinitsin and Artem


slide-1
SLIDE 1

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

11 11 11 Learning to Route in Similarity Graphs

Dmitry Baranchuk

joint work with Dmitry Persiyanov, Anton Sinitsin and Artem Babenko

1 / 8

slide-2
SLIDE 2

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

Overview

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

2 / 8

slide-3
SLIDE 3

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

The Budgeted Nearest Neighbor Search Problem

  • {x1, ..., xN} ⊂ RD — search database
  • q ∈ RD — query
  • DCS — maximal number of distance computations
  • Recall@1 — a rate of queries for which the actual nearest

neighbor is successfully found

3 / 8

slide-4
SLIDE 4

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

Similarity Graphs

  • Vertices correspond to the database items
  • Edges connect (mostly) nearest neighbors

q gt start

  • Several state-of-the-art methods exist e.g. HNSW1, NSG2

1Malkov, Y., Yashunin, D. Efficient and robust approximate nearest neighbor

search using hierarchical navigable small world graphs. TPAMI 2018

2Cong Fu, Chao Xiang, Changxu Wang, and Deng Cai. Fast approximate nearest

neighbor search with the navigating spreading-out graph. PVLDB 2019

4 / 8

slide-5
SLIDE 5

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

Routing Algorithms

  • Greedy routing: Pick the best neighbor of the current vertex
  • Beam search: Expand the most promising vertex in the

candidate pool

  • Our method: Learn a routing algorithm directly from data

5 / 8

slide-6
SLIDE 6

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

Learning to Route in Similarity Graphs

  • 1. Imitation Learning: Train the

agent to imitate expert decisions

  • 2. Agent is a beam search based
  • n learned vertex representations
  • 3. Expert encourages the agent to

follow a shortest path to the actual nearest neighbor v∗

Ross, S., Gordon, G. J., and Bagnell, D. A reduction of imitation learning and structured prediction to no-regret online learning. AISTATS 2011

6 / 8

slide-7
SLIDE 7

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

Model Architecture

Graph Convolutional Network learns representations for vertices that account for the underlying structure of the similarity graph +

Convolution Layer Normalization ELU Linear Add

Graph Convolutional Block

vi Conv Block Conv Block Conv Block FFN graph

f θ(vi)

query

gθ(q)

Kipf, T. N. and Welling, M. Semi-supervised classification with graph convolutional networks. ICLR 2017

7 / 8

slide-8
SLIDE 8

The Budgeted Nearest Neighbor Search Problem Similarity Graphs Learning to Route in Similarity Graphs Evaluation

Evaluation

  • Datasets with 105 points
  • No additional cost in run-time
  • PyTorch implementation3

DCS Vertex SIFT100K DEEP100K GloVe100K budget Representations Recall@1 Recall@1 Recall@1 Original 0.239 0.386 0.198 128 Learned 0.371 0.474 0.305 Original 0.672 0.795 0.400 256 Learned 0.799 0.811 0.526 Original 0.936 0.940 0.582 512 Learned 0.949 0.945 0.676 Search performance Recall@1 for distance computation (DCS) budgets

3https://github.com/dbaranchuk/learning-to-route 8 / 8