Skip to content

Research Articles

Metadata Filtering with Vector Search: Cold Versus Warm Runs

Yara Alderfen (Data Engineering Group, Valehart Institute of Computational Science), Tomas Northmere (Machine Learning Laboratory, Valehart Institute of Computational Science), Kenji Viremont (Autonomous Systems Laboratory, Thornmere Polytechnic), Noor Iverford (Distributed Systems Group, Glenwick University), Kian Dovemere (Data Engineering Group, Glenwick University), Nerea Belmere (Autonomous Systems Laboratory, Valehart Institute of Computational Science)

Vol. 1 No. 1 (2020) · pp. 133–143 · Published 29 September 2020

Abstract

The comparison uses a mix of fresh-start and steady-state trials to evaluate two choices: choosing between filter-first retrieval and graph search based on estimated selectivity and running the same graph search before every filter. All outcomes are synthetic. Each configuration is evaluated on the same 256 cases. In the 64 stress cases, a very selective predicate must occur in a large partition; initialization cost is kept in the comparison instead of discarding the first completed trial. 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. Across the full set, 181 cases meet the criterion with the first configuration and 174 with the second. The stress cases account for 45 and 36 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that incorrect cardinality estimates can route requests to a poor strategy. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.

Keywords: vector search, approximate nearest neighbors, filtering, cold versus warm runs, synthetic evaluation

References

  1. Akgül, C. B., et al. (2011). Content-based image retrieval in radiology: Current status and future directions. Journal of Digital Imaging, 24(2), 208–222.
  2. 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.
  3. 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.
  4. 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.
  5. Chapelle, O., Vapnik, V., Bousquet, O., & Mukherjee, S. (2002). Choosing multiple parameters for support vector machines. Machine Learning, 46(1–3), 131–159.
  6. Fu, C., Xiang, C., Wang, C., & Cai, D. (2017). Fast approximate nearest neighbor search with the navigating spreading-out graph. arXiv:1707.00143.
  7. 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.
  8. Guo, J., Fan, Y., Ai, Q., & Croft, W. B. (2016). A deep relevance matching model for ad-hoc retrieval. Proceedings of the 25th ACM International Conference on Information and Knowledge Management, 55–64.
  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. 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.
  12. 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.
  13. Malkov, Y. A., & Yashunin, D. A. (2016). Efficient and robust approximate nearest neighbor search using hierarchical navigable small world graphs. arXiv:1603.09320. arXiv
  14. 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.
  15. Simonyan, K., Parkhi, O. M., Vedaldi, A., & Zisserman, A. (2013). Fisher vector faces in the wild. Proceedings of the British Machine Vision Conference, 8.1–8.11.