Coral speeds up and improves cross modal vector search at scale

CORAL: Cross-modal Vector Retrieval via Incremental Graph Construction at Scale

Databases

Summary

Cross-modal vector search helps match data from different types, like images and text, but it often struggles when the queries look very different from the stored data. The authors introduced CORAL, a new system that builds a graph-like structure to organize data vectors and uses GPUs efficiently to handle huge amounts of information. CORAL also updates this structure dynamically, so it stays accurate as new data comes in or old data is removed. Their tests show it works faster and better than previous methods, even for very large datasets.

What this means in practice

  • For search engine engineers: Build faster and more accurate search engines that handle queries with different data types and update results dynamically.
  • For database system developers: Create scalable vector databases capable of efficiently managing large multimodal data with continuous insertions and deletions.

Authors

Shixin Wan, Guoyu Hu, Yifan Wu, Ke Chen, Lidan Shou

Abstract

Cross-modal vector retrieval is widely used in multimodal systems, such as search engines and vector databases. It typically operates in out-of-distribution (OOD) settings, where query vectors follow a distribution that differs from that of the vectors stored in the database. In such cases, conventional indexes suffer significant performance degradation, and even methods specially designed for OOD remain limited by inefficient use of query modal characteristics, restricted GPU parallelism, and inadequate support for dynamic updates. We present CORAL, a novel GPU-accelerated graph-based vector index for scalable cross-modal retrieval, featuring hierarchical memory management that spans GPU, CPU, and disk. Specifically, CORAL incrementally incorporates the characteristics of query modality and terminates index construction timely. Crucially, it introduces coverage-aware adaptive pruning to address the imbalanced coverage of the query vector's neighbors. Moreover, CORAL presents a fully neighborhood-aware projection approach to efficiently utilize GPUs for highly parallel index construction, and a targeted connectivity enhancement method to refine the index structure. Besides, CORAL also supports modal-semantics-based vector insertion and topology-repairing deletion that restore node connectivity. Experimental results demonstrate that CORAL outperforms existing methods with up to 1.6 times the throughput at matched recall while reducing construction time by up to 56%. Furthermore, it exhibits remarkable resilience under dynamic updates and remains effective at the billion scale.