journal article·2018-09-16Open access

Associative Memories to Accelerate Approximate Nearest Neighbor Search

Vincent Gripon, Matthias Löwe, Franck Vermet

Applied Sciences· Volume 8· Issue 9

Abstract

Nearest neighbor search is a very active field in machine learning. It appears in many application cases, including classification and object retrieval. In its naive implementation, the complexity of the search is linear in the product of the dimension and the cardinality of the collection of vectors into which the search is performed. Recently, many works have focused on reducing the dimension of vectors using quantization techniques or hashing, while providing an approximate result. In this paper, we focus instead on tackling the cardinality of the collection of vectors. Namely, we introduce a technique that partitions the collection of vectors and stores each part in its own associative memory. When a query vector is given to the system, associative memories are polled to identify which one contains the closest match. Then, an exhaustive search is conducted only on the part of vectors stored in the selected associative memory. We study the effectiveness of the system when messages to store are generated from i.i.d. uniform ±1 random variables or 0–1 sparse i.i.d. random variables. We also conduct experiments on both synthetic data and real data and show that it is possible to achieve interesting trade-offs between complexity and accuracy.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Image and Video Retrieval Techniques · Image Retrieval and Classification Techniques · Remote-Sensing Image Classification

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Electronics Department, IMT Atlantique, 29200 Brest, France

Fachbereich Mathematik und Informatik, University of Münster, Einsteinstraße 62, 48149 Münster, Germany

Laboratoire de Mathématiques, Université de Bretagne Occidentale, UMR CNRS 6205, 29200 Brest, France

References (29)

Show source-provided references
1. Scalable Nearest Neighbor Algorithms for High Dimensional Data10.1109/TPAMI.2014.2321376 ↗
2. Muja, M., and Lowe, D.G. (2009, January 5–8). Fast Approximate Nearest Neighbors with Automatic Algorithm Configuration. Proceedings of the Fourth International Conference on Computer Vision Theory and Applications (VISAPP 2009), Lisboa, Portugal.
3. Gong, Y., and Lazebnik, S. (2011, January 20–25). Iterative quantization: A procrustean approach to learning binary codes. Proceedings of the 2011 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Colorado Springs, CO, USA.10.1109/CVPR.2011.5995432 ↗
4. Product quantization for nearest neighbor search10.1109/TPAMI.2010.57 ↗
5. Datar, M., Immorlica, N., Indyk, P., and Mirrokni, V.S. (2004, January 8–11). Locality-sensitive hashing scheme based on p-stable distributions. Proceedings of the Twentieth Annual Symposium on Computational Geometry, Brooklyn, NY, USA.10.1145/997817.997857 ↗
6. Memory vectors for similarity search in high-dimensional spaces10.1109/TBDATA.2017.2677964 ↗
7. Yu, C., Gripon, V., Jiang, X., and Jégou, H. (2015, January 22–27). Neural Associative Memories as Accelerators for Binary Vector Search. Proceedings of the COGNITIVE 2015: 7th International Conference on Advanced Cognitive Technologies and Applications, Nice, France.
8. Neural networks and physical systems with emergent collective computational abilities10.1073/pnas.79.8.2554 ↗
9. The capacity of the Hopfield associative memory10.1109/TIT.1987.1057328 ↗
10. The storage capacity of the Hopfield model and moderate deviations10.1016/j.spl.2005.06.001 ↗
11. The capacity of q-state Potts neural networks with parallel retrieval dynamics10.1016/j.spl.2007.03.030 ↗
12. A comparative study of sparse associative memories10.1007/s10955-016-1530-z ↗
13. On the storage capacity of the Hopfield model with biased patterns10.1109/18.746829 ↗
14. Memory capacity in neural network models: Rigorous lower bounds10.1016/0893-6080(88)90028-7 ↗
15. The Hopfield model on a sparse Erdos-Renyi graph10.1007/s10955-011-0167-1 ↗
16. An optimal algorithm for approximate nearest neighbor searching fixed dimensions10.1145/293347.293348 ↗
17. Tagami, Y. (2017, January 13–17). AnnexML: Approximate nearest neighbor search for extreme multi-label classification. Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD ’17), Halifax, NS, Canada.10.1145/3097983.3097987 ↗
18. He, K., Wen, F., and Sun, J. (2013, January 23–28). K-means hashing: An affinity-preserving quantization method for learning binary compact codes. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Portland, OR, USA.10.1109/CVPR.2013.378 ↗
19. Weiss, Y., Torralba, A., Fergus, R., Weiss, Y., Torralba, A., and Fergus, R. (2018, September 15). Spectral Hashing. Available online: http://papers.nips.cc/paper/3383-spectral-hashing.pdf.
20. Ge, T., He, K., Ke, Q., and Sun, J. (2013, January 23–28). Optimized product quantization for approximate nearest neighbor search. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Portland, OR, USA.10.1109/CVPR.2013.379 ↗
21. Norouzi, M., and Fleet, D.J. (2013, January 23–28). Cartesian k-means. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Portland, OR, USA.10.1109/CVPR.2013.388 ↗
22. Andoni, A., and Indyk, P. (2006, January 21–24). Near-optimal hashing algorithms for approximate nearest neighbor in high dimensions. Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS’06), Berkeley, CA, USA.10.1109/FOCS.2006.49 ↗
23. Norouzi, M., Punjani, A., and Fleet, D.J. (2012, January 16–21). Fast search in hamming space with multi-index hashing. Proceedings of the 2012 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Providence, RI, USA.10.1109/CVPR.2012.6248043 ↗
24. SK-LSH: An efficient index structure for approximate nearest neighbor search10.14778/2732939.2732947 ↗
25. Kraska, T., Beutel, A., Chi, E.H., Dean, J., and Polyzotis, N. (2018, January 10–15). The case for learned index structures. Proceedings of the 2018 International Conference on Management of Data, Houston, TX, USA.10.1145/3183713.3196909 ↗
26. Über das Exponentialgesetz in der Wahrscheinlichkeitsrechnung
27. 90 Jahre Lindeberg-Methode10.1007/s00591-013-0118-9 ↗
28. Eichelsbacher, P., and Löwe, M. (arXiv, 2017). Lindeberg’s method for moderate deviations and random summation, arXiv.
29. On a model of associative memory with huge storage capacity10.1007/s10955-017-1806-y ↗