Proceedings

App2Exa: Accelerating Exact kNN Search via Dynamic Cache-Guided Approximation

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 3045-3053.

https://doi.org/10.24963/ijcai.2025/339

Abstract

The k-nearest neighbor (kNN) query is a cornerstone of similarity-based applications across various domains. While prior work has enhanced kNN search efficiency, it typically focuses on approximate methods for high-dimensional data or exact methods for low-dimensional data, often assuming static query and data distributions. This creates a significant gap in accelerating exact kNN search for low-to-medium dimensional data with dynamic query distributions. To fill this gap, we propose App2Exa, a cache-guided framework that integrates approximate and exact kNN search. App2Exa utilizes a dynamically maintained cache graph index to retrieve approximate results, which subsequently guide exact search using a VP-Tree with a best-first strategy. A benefit-driven caching mechanism further optimizes performance by prioritizing vectors based on frequency, recency, and computational cost. Experimental results demonstrate that App2Exa significantly boosts efficiency, providing a robust and scalable solution for evolving query patterns and enabling exact kNN search to support higher dimensionality more effectively.

  1. [Babenko and Lempitsky, 2016] Artem Babenko and Vic- tor S. Lempitsky. Efficient indexing of billion-scale datasets of deep descriptors. In CVPR, pages 2055-2063. IEEE Computer Society, 2016.
  2. [Bae et al., 2009] Wan D. Bae, Shayma Alkobaisi, Seon Ho Kim, Sada Narayanappa, and Cyrus Shahabi. Web data re- trieval: solving spatial range queries using k-nearest neigh- bor searches. GeoInformatica, 13(4):483-514, 2009.
  3. [Baeza-Yates et al., 2007] Ricardo A. Baeza-Yates, Aris- tides Gionis, Flavio Junqueira, Vanessa Murdock, Vassilis Plachouras, and Fabrizio Silvestri. The impact of caching on search engines. In SIGIR, pages 183-190. ACM, 2007.
  4. [Bentley, 1975] Jon Louis Bentley. Multidimensional bi- nary search trees used for associative searching. Commun. ACM, 18(9):509-517, 1975.
  5. [Beyer et al., 1999] Kevin S. Beyer, Jonathan Goldstein, Raghu Ramakrishnan, and Uri Shaft. When is "nearest neighbor" meaningful? In Database Theory -ICDT, vol- ume 1540 of Lecture Notes in Computer Science, pages 217-235. Springer, 1999.
  6. [Bozkaya and Özsoyoglu, 1999] Tolga Bozkaya and Z. Meral Özsoyoglu. Indexing large metric spaces for similarity search queries. ACM Trans. Database Syst., 24(3):361-404, 1999.
  7. [Cambazoglu et al., 2010] Berkant Barla Cambazoglu, Flavio Paiva Junqueira, Vassilis Plachouras, Scott A. Banachowski, Baoqiu Cui, Swee Lim, and Bill Bridge. A refreshing perspective of search engine caching. In WWW, pages 181-190. ACM, 2010.
  8. [Dong et al., 2011] Wei Dong, Moses Charikar, and Kai Li. Efficient k-nearest neighbor graph construction for generic similarity measures. In WWW, pages 577-586. ACM, 2011.
  9. [Frieder et al., 2024] Ophir Frieder, Ida Mele, Cristina Ioana Muntean, Franco Maria Nardini, Raffaele Perego, and Nicola Tonellotto. Caching historical embeddings in con- versational search. ACM Trans. Web, 18(4):42:1-42:19, 2024.
  10. [Fu et al., 2019] Cong Fu, Chao Xiang, Changxu Wang, and Deng Cai. Fast approximate nearest neighbor search with the navigating spreading-out graph. Proc. VLDB Endow., 12(5):461-474, 2019.
  11. [Gan and Suel, 2009] Qingqing Gan and Torsten Suel. Im- proved techniques for result caching in web search en- gines. In WWW, pages 431-440. ACM, 2009.
  12. [Guttman, 1984] Antonin Guttman. R-trees: A dynamic in- dex structure for spatial searching. In SIGMOD, pages 47- 57. ACM Press, 1984.
  13. [Halder et al., 2024] Rajib Kumar Halder, Mohammed Nasir Uddin, Ashraf Uddin, Sunil Aryal, and Ansam Khraisat. Enhancing k-nearest neighbor algorithm: a comprehensive review and performance analysis of modifications. J. Big Data, 11(1):113, 2024.
  14. [Jelenkovic and Radovanovic, 2004] Predrag R. Jelenkovic and Ana Radovanovic. Least-recently-used caching with dependent requests. Theor. Comput. Sci., 326(1-3):293- 327, 2004.
  15. [Kanungo et al., 2002] Tapas Kanungo, David M. Mount, Nathan S. Netanyahu, Christine D. Piatko, Ruth Silver- man, and Angela Y. Wu. An efficient k-means cluster- ing algorithm: Analysis and implementation. IEEE Trans. Pattern Anal. Mach. Intell., 24(7):881-892, 2002.
  16. [Kumar et al., 2008] Neeraj Kumar, Li Zhang, and Shree K. Nayar. What is a good nearest neighbors algorithm for finding similar patches in images? In ECCV, volume 5303 of Lecture Notes in Computer Science, pages 364- 378. Springer, 2008.
  17. [Lampropoulos et al., 2023] Konstantinos Lampropoulos, Fatemeh Zardbani, Nikos Mamoulis, and Panagiotis Karras. Adaptive indexing in high-dimensional metric spaces. Proc. VLDB Endow., 16(10):2525-2537, 2023.
  18. [Lee et al., 2001] Donghee Lee, Jongmoo Choi, Jong-Hun Kim, Sam H. Noh, Sang Lyul Min, Yookun Cho, and Chong-Sang Kim. LRFU: A spectrum of policies that sub- sumes the least recently used and least frequently used policies. IEEE Trans. Computers, 50(12):1352-1361, 2001.
  19. [Li et al., 2022] Ke Li, Lisi Chen, Shuo Shang, Haiyan Wang, Yang Liu, Panos Kalnis, and Bin Yao. Towards controlling the transmission of diseases: Continuous ex- posure discovery over massive-scale moving objects. In Luc De Raedt, editor, IJCAI, pages 3891-3897. ijcai.org, 2022. IJCAI
  20. [Li et al., 2023] Ke Li, Hongyu Wang, Ziwen Chen, and Lisi Chen. Relaxed group pattern detection over massive-scale trajectories. Future Gener. Comput. Syst., 144:131-139, 2023.
  21. [Liu et al., 2021] Wanqi Liu, Hanchen Wang, Ying Zhang, Wei Wang, Lu Qin, and Xuemin Lin. EI-LSH: an early- termination driven I/O efficient incremental c-approximate nearest neighbor search. VLDB J., 30(2):215-235, 2021.
  22. [Long and Suel, 2006] Xiaohui Long and Torsten Suel. Three-level caching for efficient query processing in large web search engines. World Wide Web, 9(4):369-395, 2006.
  23. [Malkov and Yashunin, 2020] Yury A. Malkov and Dmitry A. Yashunin. Efficient and robust approxi- mate nearest neighbor search using hierarchical navigable small world graphs. IEEE Trans. Pattern Anal. Mach. Intell., 42(4):824-836, 2020.
  24. [Markatos, 2001] Evangelos P. Markatos. On caching search engine query results. Comput. Commun., 24(2):137-143, 2001.
  25. [Ozcan et al., 2012] Rifat Ozcan, Ismail Sengör Altingövde, Berkant Barla Cambazoglu, Flavio Paiva Junqueira, and Özgür Ulusoy. A five-level static cache architecture for web search engines. Inf. Process. Manag., 48(5):828-840, 2012.
  26. [Pass et al., 2006] Greg Pass, Abdur Chowdhury, and Cayley Torgeson. A picture of search. In Proceedings of the 1st In- ternational Conference on Scalable Information Systems, volume 152 of ACM International Conference Proceeding Series, page 1. ACM, 2006.
  27. [Peng et al., 2022] Yun Peng, Byron Choi, Tsz Nam Chan, and Jianliang Xu. LAN: learning-based approximate k- nearest neighbor search in graph databases. In ICDE, pages 2508-2521. IEEE, 2022.
  28. [Rakotondrasoa et al., 2023] Hanitriniala Malalatiana Rako- tondrasoa, Martin Bucher, and Ilya Sinayskiy. Quantitative comparison of nearest neighbor search algorithms. CoRR, abs/2307.05235, 2023.
  29. [Ram and Sinha, 2019] Parikshit Ram and Kaushik Sinha. Revisiting kd-tree for nearest neighbor search. In SIGKDD, pages 1378-1388. ACM, 2019.
  30. [Řehůřek and Sojka, 2010] Radim Řehůřek and Petr Sojka. Software framework for topic modelling with large cor- pora. In Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks, pages 45-50. ELRA, 2010.
  31. [Yianilos, 1993] Peter N. Yianilos. Data structures and algorithms for nearest neighbor search in general met- ric spaces. In ACM/SIGACT-SIAM, pages 311-321. ACM/SIAM, 1993.
  32. [Zhao et al., 2023] Xi Zhao, Yao Tian, Kai Huang, Bolong Zheng, and Xiaofang Zhou. Towards efficient index con- struction and approximate nearest neighbor search in high- dimensional spaces. Proc. VLDB Endow., 16(8):1979- 1991, 2023.
  33. [Zheng et al., 2022] Bolong Zheng, Xi Zhao, Lianggui Weng, Quoc Viet Hung Nguyen, Hang Liu, and Chris- tian S. Jensen. PM-LSH: a fast and accurate in-memory framework for high-dimensional approximate NN and closest pair search. VLDB J., 31(6):1339-1363, 2022.
  34. [Zulfa et al., 2020] Mulki Indana Zulfa, Rudy Hartanto, and Adhistya Erna Permanasari. Caching strategy for web ap- plication -a systematic literature review. Int. J. Web Inf. Syst., 16(5):545-569, 2020.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards