Curator: Efficient Indexing for Multi-Tenant Vector Databases

Yicheng Jin, Yongji Wu, Wenjun Hu, Bruce M. Maggs, Xiao Zhang, Danyang ZhuoarXiv 2024 · DOI

Executive Summary

Curator is a novel in-memory indexing system designed specifically for multi-tenant vector databases. It breaks the traditional trade-off between memory efficiency and search speed by using a shared global clustering tree with compact, tenant-specific sub-trees. This architecture delivers the performance of dedicated per-tenant indexes with the memory footprint of a single shared index.

The Multi-Tenancy Challenge in Vector Databases

As vector databases become foundational for AI applications like Retrieval-Augmented Generation (RAG) and recommendation systems, multi-tenancy—where many users share the same infrastructure—is a critical requirement. Currently, developers face a difficult trade-off:

  1. Per-tenant indexing: Building a separate index for every user is fast because the index is tailored to specific data distributions, but it consumes massive amounts of memory due to index overhead and data duplication.
  2. Metadata filtering: Building one shared index with "access lists" for every vector is memory-efficient but slow. The system must perform expensive permission checks for every vector encountered during a search, and the shared structure is rarely optimized for any single tenant's unique data.

Curator aims to provide the high performance of per-tenant indexing with the low memory overhead of metadata filtering.

Methods: Tiered Indexing Architecture

Curator introduces a tiered indexing architecture based on hierarchical k-means clustering:

  • Global Clustering Tree (GCT): A shared "master" tree representing the distribution of all vectors in the database.
  • Tenant Clustering Trees (TCTs): Each tenant’s view is a sub-tree of the GCT. These TCTs are adaptive, growing deeper in areas where a tenant has high data density and staying shallow in sparse areas.
  • Bloom Filters for Pruning: To minimize memory, Curator attaches a Bloom filter to each GCT node. During a search, the algorithm checks the filter to see if the tenant has data in that branch; if not, it prunes the branch instantly.
  • Shortlists: Curator pre-computes "shortlists" of accessible vectors at the leaf nodes of the TCT, moving filtering logic into the index structure itself for faster scans.
The Global Clustering Tree (GCT) and its derived Tenant Clustering Trees (TCTs) for individual tenants.

Evaluation and Datasets

The authors evaluated Curator using two large-scale, real-world datasets:

  • YFCC100M: 1 million images embedded using CLIP, with tenants simulated by common tags (e.g., "landscape").
  • arXiv: 2.3 million paper abstracts embedded using MiniLM, with tenants defined by paper categories (e.g., "cs.DB").

The evaluation modeled realistic "sharing degrees," where vectors are accessible to multiple tenants, reflecting actual enterprise data usage.

Key Results

Curator demonstrates significant improvements over existing baselines:

  • Massive Speedups: On YFCC100M, Curator was 32.9x faster than standard metadata filtering on an IVF index and 7.7x faster than metadata filtering on an HNSW index.
  • Memory Efficiency: Curator used 7.9x to 8.7x less memory than the per-tenant HNSW approach, maintaining a footprint nearly as low as the metadata filtering approach.
  • Performance Isolation: Query latency remained stable as total database size grew, suggesting excellent scalability without cross-tenant interference.
Curator achieves a superior balance between query latency and memory consumption compared to traditional approaches.

Key Insights

  • Structural Alignment: A shared index is often inefficient because its structure doesn't "fit" a specific tenant's data. Adaptive TCT depth ensures search queries focus on the most relevant neighborhoods.
  • Index-Integrated Permissions: By using shortlists and Bloom filters, Curator treats access control as a structural property of the index rather than a costly post-processing step.

Limitations and Future Work

While highly effective, Curator has areas for improvement:

  • Static Global Structure: The GCT is currently fixed after training. If data distributions shift radically, the GCT may need re-training; incremental k-means is a potential future solution.
  • The HNSW Performance Gap: Curator is still 3x to 4x slower than pure per-tenant HNSW (the fastest but most memory-intensive baseline).
  • Beyond In-Memory: Extending these hierarchical pruning techniques to disk-based or distributed systems is a logical next step for the research.

Summary updated

BibTeX
@misc{jin2024curator,
  author = {Yicheng Jin and Yongji Wu and Wenjun Hu and Bruce M. Maggs and Xiao Zhang and Danyang Zhuo},
  title = {{Curator: Efficient Indexing for Multi-Tenant Vector Databases}},
  year = {2024},
  eprint = {2401.07119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.07119},
}
Figure