“…Depending on the feature space and distance function chosen or learned by the practitioner, different fast approximate nearest neighbor search algorithms are available. These search algorithms, both for general high-dimensional feature spaces (e.g., Gionis et al 1999;Datar et al 2004;Bawa et al 2005;Andoni and Indyk 2008;Ailon and Chazelle 2009;Muja and Lowe 2009;Boytsov and Naidan 2013;Dasgupta and Sinha 2015;Mathy et al 2015;Andoni et al 2017) and specialized to image patches (e.g., Barnes et al 2009;Ta et al 2014), can rapidly determine which data points are close to each other while parallelizing across search queries. These methods often use locality-sensitive hashing (Indyk and Motwani, 1998), which comes with a theoretical guarantee on approximation accuracy, or randomized trees (e.g., Bawa et al 2005;Muja and Lowe 2009;Dasgupta and Sinha 2015;Mathy et al 2015), which quickly prune search spaces when the trees are sufficiently balanced.…”