HONEYBEE: Efficient Role-based Access Control for Vector Databases via Dynamic Partitioning

Hongbin Zhong, Matthew Lentz, Nina Narodytska, Adriana Szekeres, Kexin Rong

TL;DR

HoneyBee is a dynamic partitioning framework that brings efficient Role-Based Access Control (RBAC) to vector databases. By strategically replicating data across overlapping partitions, it achieves up to 13.5× lower query latency than standard row-level filtering with only a modest 1.24× increase in memory usage.

What Problem Does This Paper Address?

Vector databases are the backbone of modern AI applications like Retrieval-Augmented Generation (RAG), but enforcing security at scale is a major headache. Currently, developers face a "fundamental trade-off" between two extremes:

  1. Post-Filtering (Shared Index): You use one big index for everyone and filter out unauthorized results after the search. This is memory-efficient but incredibly slow if a user only has access to a tiny fraction of the data (low selectivity), as the system must over-search to find enough valid results.
  2. Dedicated Indexes (Per-User/Role): You build a separate index for every user or role. This is lightning-fast but consumes massive amounts of memory because documents accessible to multiple people are duplicated many times.

The authors identify that RBAC policies—where users are assigned to roles (like "HR" or "Engineering")—create a "thin waist" in the permission structure. HoneyBee exploits this structure to find a "middle ground" that balances speed and memory.

Methods

HoneyBee operates in two phases: an offline optimization phase and an online query phase.

  • Analytical Modeling: The authors developed mathematical models to predict how HNSW (a popular vector index) performs. They modeled query latency as a function of partition size and search depth, and modeled recall using a piecewise linear/sigmoid function based on "access selectivity" (the percentage of a partition a user can see).
  • Optimization Problem: They formulated partitioning as a Mixed-Integer Nonlinear Programming (MINLP) problem. The goal is to minimize average query latency across all users while staying under a specific memory budget and meeting a minimum recall target (e.g., 95%).
  • Greedy Split Algorithm: Since the optimization problem is NP-hard, HoneyBee uses a greedy algorithm. It starts with a single shared partition and iteratively "splits" roles into new, overlapping partitions where the latency gain per unit of memory is highest.
  • Lightweight Routing: At query time, HoneyBee uses a pre-computed routing table to direct a user’s query to the minimal set of partitions required to cover all their authorized documents.

Datasets

The researchers evaluated HoneyBee using three primary datasets:

  • Wikipedia-22-12: 1 million paragraph embeddings (300D) generated via spaCy.
  • SIFT1M & SIFT10M: Standard vector search benchmarks containing 1 million and 10 million vectors, respectively.
  • RBAC Workloads: Since real-world enterprise permission data is often proprietary, they used three generators to simulate different structures: Tree-based (hierarchical org charts), Uniform (random assignments), and ERBAC (complex enterprise roles with functional and business layers).

Key Insights and Ideas

  • Roles over Users: Partitioning by role is far more efficient than partitioning by user. Roles are fewer, more stable, and capture the natural "overlap" in data access.
  • Physical vs. Logical Partitioning: The paper argues that "physical" partitioning (actually copying the vector data) is superior to "logical" partitioning (using pointers to a shared table). While logical partitioning saves memory, it causes a ~3× slowdown due to cache misses during the pointer-heavy graph traversal of ANN indexes.
  • Index Agnosticism: HoneyBee isn't tied to a specific index. While they focused on HNSW, they demonstrated that the framework works with hybrid indexes like ACORN by simply swapping the performance model.
  • The "Aha" Moment: The researchers found that you don't need a dedicated index for every role to get "dedicated index" speeds. Strategic overlapping partitions can provide nearly the same performance with a fraction of the memory overhead.

Key Results

  • Speed vs. Standard Security: Compared to PostgreSQL’s Row-Level Security (RLS), HoneyBee achieved up to 13.5× lower query latency with only a 1.24× increase in memory.
  • Memory Efficiency: HoneyBee achieved query performance comparable to dedicated per-role indexes but with a 90.4% reduction in additional memory consumption.
  • Synergy with Hybrid Indexes: When used with ACORN (a specialized hybrid search index), HoneyBee provided an additional 3.5× speedup at just 1.2× memory compared to using a single ACORN index.
  • Robustness: The partitioning logic proved robust to slight inaccuracies in the performance models, meaning it works well even without perfect hardware-specific tuning.

Limitations and Future Work

  • Global Parameters: The current implementation uses a single global search depth (ef_search) across all partitions. The authors note that per-partition tuning could unlock even more performance.
  • Evolving Workloads: While HoneyBee handles user/document updates incrementally, massive shifts in the role structure might eventually require a full repartitioning. Developing "adaptive" repartitioning strategies is flagged for future research.
  • Memory Constraints: The framework assumes all indexes fit in RAM. Extending this to disk-based or tiered storage systems remains an open challenge.

Summary updated

BibTeX
@article{zhong2026honeybee,
  author = {Hongbin Zhong and Matthew Lentz and Nina Narodytska and Adriana Szekeres and Kexin Rong},
  title = {{HONEYBEE: Efficient Role-based Access Control for Vector Databases via Dynamic Partitioning}},
  journal = {Proc. ACM Manag. Data},
  year = {2026},
  doi = {10.1145/3786625},
}
Figure