RoarGraph: A Projected Bipartite Graph for Efficient Cross-Modal Approximate Nearest Neighbor Search
Not on the map. Why?
Abstract (arXiv)
Approximate Nearest Neighbor Search (ANNS) is a fundamental and critical component in many applications, including recommendation systems and large language model-based applications. With the advancement of multimodal neural models, which transform data from different modalities into a shared high-dimensional space as feature vectors, cross-modal ANNS aims to use the data vector from one modality (e.g., texts) as the query to retrieve the most similar items from another (e.g., images or videos). However, there is an inherent distribution gap between embeddings from different modalities, and cross-modal queries become Out-of-Distribution (OOD) to the base data. Consequently, state-of-the-art ANNS approaches suffer poor performance for OOD workloads. In this paper, we quantitatively analyze the properties of the OOD workloads to gain an understanding of their ANNS efficiency. Unlike single-modal workloads, we reveal OOD queries spatially deviate from base data, and the k-nearest neighbors of an OOD query are distant from each other in the embedding space. The property breaks the assumptions of existing ANNS approaches and mismatches their design for efficient search. With insights from the OOD workloads, we propose pRojected bipartite Graph (RoarGraph), an efficient ANNS graph index built under the guidance of query distribution. Extensive experiments show that RoarGraph significantly outperforms state-of-the-art approaches on modern cross-modal datasets, achieving up to 3.56x faster search speed at a 90% recall rate for OOD queries.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 35 of its 85 references that are in the map. First posted on arXiv 16 Aug 2024.
Builds on
35 of 85 references.
References · 35
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2021Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrievalcited by 1,175
- 2019HowTo100M: Learning a Text-Video Embedding by Watching Hundred Million Narrated Video Clipscited by 946
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2022Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learningcited by 553
- 2021Less is More: ClipBERT for Video-and-Language Learning via Sparse Samplingcited by 484
- 2021PAQ: 65 Million Probably-Asked Questions and What You Can Do With Themcited by 198
- 2022KNN-Diffusion: Image Generation via Large-Scale Retrievalcited by 135
- 2022Retrieval Augmented Classification for Long-Tail Visual Recognitioncited by 106
23 more
- 2017Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graphcited by 103
- 2021A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Searchcited by 82
- 2020PinnerSage: Multi-Modal User Embedding Framework for Recommendations at Pinterestcited by 75
- 2019Real-Time Open-Domain Question Answering with Dense-Sparse Phrase Indexcited by 64
- 2016A Comprehensive Survey on Cross-modal Retrievalcited by 62
- 2021A Survey of Machine Learning for Computer Architecture and Systemscited by 53
- 2021Graph Trend Filtering Networks for Recommendationscited by 53
- 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
- 2019Semantic Product Searchcited by 51
- 2016Approximate Nearest Neighbor Search on High Dimensional Data --- Experiments, Analyses, and Improvement (v1.0)cited by 44
- 2023High-Dimensional Approximate Nearest Neighbor Search: with Reliable and Efficient Distance Comparison Operationscited by 25
- 2019Graph-based Nearest Neighbor Search: From Practice to Theorycited by 19
- 2022OOD-DiskANN: Efficient and Scalable Graph ANNS for Out-of-Distribution Queriescited by 14
- 2020Deep Retrieval: Learning A Retrievable Structure for Large-Scale Recommendationscited by 11
- 2023A Theoretical Analysis Of Nearest Neighbor Search On Approximate Near Neighbor Graphcited by 10
- 2015Ball*-tree: Efficient spatial indexing for constrained nearest-neighbor search in metric spacescited by 9
- 2017Accelerated Nearest Neighbor Search with Quick ADCcited by 9
- 2019Learning to Route in Similarity Graphscited by 9
- 2022MultiBiSage: A Web-Scale Recommendation System Using Multiple Bipartite Graphs at Pinterestcited by 6
- 2022Reinforcement Routing on Proximity Graph for Efficient Recommendationcited by 5
- 2021Graph Reordering for Cache-Efficient Near Neighbor Searchcited by 4
- 2023PEFA: Parameter-Free Adapters for Large-scale Embedding-based Retrieval Modelscited by 4
- 2021PM-LSH: a fast and accurate in-memory framework for high-dimensional approximate NN and closest pair searchcited by 1
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 2.
12 papers.
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2024Results of the Big ANN: NeurIPS'23 competitioncited by 21
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inferencecited by 13
- 2025Inference-time sparse attention with asymmetric indexingcited by 11
- 2025VIBE: Vector Index Benchmark for Embeddingscited by 6
- 2024CARROT: A Learned Cost-Constrained Retrieval Optimization System for RAGcited by 5
- 2025AlayaDB: The Data Foundation for Efficient and Effective Long-context LLM Inferencecited by 2
- 2025Lossless Compression of Vector IDs for Approximate Nearest Neighbor Searchcited by 1
- 2025Machine learning and high dimensional vector searchcited by 1
- 2026Amortized Maximum Inner Product Search with Learned Support Functionscited by 1
- 2025Scalable k-Means Clustering for Large k via Seeded Approximate Nearest-Neighbor Searchcited by 0
- 2026Cluster with Auctions for Vector Searchcited by 0
- 2026Cluster with Auctions for Vector Search15 Jul 2026
- 2026Amortized Maximum Inner Product Search with Learned Support Functions9 Mar 2026
- 2025VIBE: Vector Index Benchmark for Embeddings23 May 2025
- 2025RetroInfer: A Vector Storage Engine for Scalable Long-Context LLM Inference5 May 2025
- 2025AlayaDB: The Data Foundation for Efficient and Effective Long-context LLM Inference14 Apr 2025
- 2025Machine learning and high dimensional vector search24 Feb 2025
- 2025Inference-time sparse attention with asymmetric indexing12 Feb 2025
- 2025Scalable k-Means Clustering for Large k via Seeded Approximate Nearest-Neighbor Search10 Feb 2025
- 2025Lossless Compression of Vector IDs for Approximate Nearest Neighbor Search16 Jan 2025
- 2024CARROT: A Learned Cost-Constrained Retrieval Optimization System for RAG1 Nov 2024
- 2024Results of the Big ANN: NeurIPS'23 competition25 Sep 2024
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrieval16 Sep 2024