Skip to content

Research Articles

Metadata Filtering with Vector Search: Baseline Load

Leila Oakhurst (Machine Learning Laboratory, Eastmarsh Institute for Applied Computing)

Vol. 2 No. 1 (2021) · pp. 109–120 · Published 22 September 2021

Abstract

We ask whether choosing between filter-first retrieval and graph search based on estimated selectivity performs better than running the same graph search before every filter in steady demand with isolated exceptions. The evaluation is synthetic. Each configuration is evaluated on the same 160 cases. In the 40 stress cases, a very selective predicate must occur in a large partition; difficult cases are separated by ordinary intervals rather than grouped into bursts. A case counts as a pass only if it meets this criterion: queries must meet recall and latency targets against exact filtered neighbors. The replay retains source versions and arrival order. A reference output built from the complete synthetic history is used to distinguish a fast response from one that is both current and correct. The comparator passes 123 of 160 cases and the alternative passes 131. For the 40 stress cases alone, the counts are 24 and 27, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that incorrect cardinality estimates can route requests to a poor strategy. The result describes the chosen case mix. Before applying the finding, a follow-up benchmark would need to vary the share of difficult cases without relaxing the acceptance criteria.

Keywords: vector search, approximate nearest neighbors, filtering, baseline load, synthetic evaluation

References

  1. Andoni, A., & Indyk, P. (2006). Near-optimal hashing algorithms for approximate nearest neighbor in high dimensions. Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science, 459–468.
  2. André, F., Kermarrec, A.-M., & Le Scouarnec, N. (2015). Cache locality is not enough: High-performance nearest neighbor search with product quantization fast scan. Proceedings of the VLDB Endowment, 9(4), 288–299.
  3. Aumüller, M., Bernhardsson, E., & Faithfull, A. (2017). ANN-Benchmarks: A benchmarking tool for approximate nearest neighbor algorithms. Similarity Search and Applications (SISAP 2017), Lecture Notes in Computer Science, 10609, 34–49.
  4. Chapelle, O., Vapnik, V., Bousquet, O., & Mukherjee, S. (2002). Choosing multiple parameters for support vector machines. Machine Learning, 46(1–3), 131–159.
  5. Chen, B.-J., Chang, M.-W., & Lin, C.-J. (2004). Load forecasting using support vector machines: A study on EUNITE competition 2001. IEEE Transactions on Power Systems, 19(4), 1821–1830.
  6. Conneau, A., Kruszewski, G., Lample, G., Barrault, L., & Baroni, M. (2018). What you can cram into a single \$&!#\ vector: Probing sentence embeddings for linguistic properties. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics*, 2126–2136.
  7. Fu, C., Xiang, C., Wang, C., & Cai, D. (2017). Fast approximate nearest neighbor search with the navigating spreading-out graph. arXiv:1707.00143.
  8. Ge, T., He, K., Ke, Q., & Sun, J. (2013). Optimized product quantization for approximate nearest neighbor search. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2946–2953.
  9. Indyk, P., & Motwani, R. (1998). Approximate nearest neighbors: Towards removing the curse of dimensionality. Proceedings of the 30th Annual ACM Symposium on Theory of Computing, 604–613.
  10. Jégou, H., Douze, M., & Schmid, C. (2011). Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 33(1), 117–128.
  11. Karpukhin, V., et al. (2020). Dense passage retrieval for open-domain question answering. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 6769–6781.
  12. Lee, K., Chang, M.-W., & Toutanova, K. (2019). Latent retrieval for weakly supervised open domain question answering. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 6086–6096.
  13. Liu, Z., Luo, P., Qiu, S., Wang, X., & Tang, X. (2016). DeepFashion: Powering robust clothes recognition and retrieval with rich annotations. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 1096–1104.
  14. Malkov, Y. A., & Yashunin, D. A. (2016). Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. arXiv:1603.09320. arXiv
  15. Muja, M., & Lowe, D. G. (2009). Fast approximate nearest neighbors with automatic algorithm configuration. Proceedings of the International Conference on Computer Vision Theory and Applications, 331–340.
  16. Tax, D. M. J., & Duin, R. P. W. (2004). Support vector data description. Machine Learning, 54(1), 45–66.
  17. Xiong, L., et al. (2020). Approximate nearest neighbor negative contrastive learning for dense text retrieval. arXiv:2007.00808.