Adapting Graph Construction with Learned Matrices for Cross-Modal Vector Search
Zekai Wu, Rong-Hua Li, Junjie Yao, Qiangqiang Dai, Guoren Wang, Xiaowei Zhu, Kai Zeng
Abstract
Recent advances in multimodal retrieval-augmented generation (RAG) have increased the demand for efficient out-of-distribution (OOD) vector search, in which query and base vectors follow different distributions. Mainstream graph-based indexes perform well for in-distribution (ID) queries but often require substantially more distance computations for OOD queries to achieve the same recall. Despite using historical queries to improve graph construction, existing OOD indexes still lead to inefficient search paths. In this paper, we propose Matrix, a graph-based index that calibrates construction distances by matching the second moments of distance differences induced by base vectors and OOD queries. We derive a unique symmetric positive definite solution and prove that paired transformations preserve the original distances between queries and base vectors. To efficiently reach scattered nearest neighbors, we learn a binary tree from historical OOD queries and their nearest neighbors to quickly select suitable entry vertices. Extensive experiments on four real-world OOD datasets show that, at matched Recall@100, Matrix achieves up to 2.97x the throughput of the fastest state-of-the-art OOD index and up to 43% fewer distance computations than the baseline with the lowest count, while maintaining a modest index cost. With only 1/40 as many historical queries, Matrix outperforms all evaluated baselines on LAION.
Create a lesson
Metadata
- Categories
- cs.DB, cs.AI, cs.IR
- Comments
- 12 pages
Related papers
Pelorus: Warped-Product Graph Indexing for Hyperbolic Vector Search
Shared title terminologycs.DBWenxuan Xiao, Xu Cao
YiGraph: Enabling Autonomous Graph Data Analysis with Algorithm-centric Agentic Workflow Construction
Shared title terminologycs.DBChaoyi Chen, Qiange Wang, Zihan Wang et al.
Look Before You Leap: Re-Architecting Disk-Resident Vector Search with TriVS
Shared title terminologycs.DBYizou Chen, Baotong Lu, Peiqi Yin et al.
SJG: A Skyline Joint Graph for Multi-Component Approximate Nearest Neighbor Search
Shared title terminologycs.DBLinyun Ma, Rui Mao
Errpedia: Is Your Exact k-NN Vector Search Really Exact?
Shared title terminologycs.DBYinuo Deng, Ying Zhang, Hanchen Wang et al.
Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL
Shared title terminologycs.DBFabio Picariello, Salvatore Cipolla, Susanna Bonura et al.