Onyx: Cost-Efficient Disk-Oblivious ANN Search
Deevashwer Rathee, Jean-Luc Watson, Zirui Neil Zhao, G. Edward Suh, Raluca Ada Popa
TLDR
Onyx introduces a cost-efficient, disk-oblivious ANN search system for TEEs, significantly reducing cost and latency by optimizing bandwidth and access patterns.
Key contributions
- Inverts ORAM-ANN design, minimizing ANN bandwidth and ORAM access count for better efficiency.
- Onyx-ANNS uses a compact intermediate representation to prune bandwidth-intensive accesses.
- Onyx-ORAM employs a locality-aware shallow tree to reduce access count in TEEs.
- Achieves 1.7-9.9x lower cost and 2.3-12.3x lower latency than state-of-the-art.
Why it matters
This paper addresses the critical challenge of secure, cost-efficient ANN search in trusted execution environments. Onyx prevents query leakage via disk access patterns, drastically reducing operational costs and latency. This makes privacy-preserving AI deployments more practical and affordable for sensitive data.
Original Abstract
Approximate nearest neighbor (ANN) search in AI systems increasingly handles sensitive data on third-party infrastructure. Trusted execution environments (TEEs) offer protection, but cost-efficient deployments must rely on external SSDs, which leaks user queries through disk access patterns to the host. Oblivious RAM (ORAM) can hide these access patterns but at a high cost; when paired with existing disk-based ANN search techniques, it makes poor use of SSD resources, yielding high latency and poor cost-efficiency. The core challenge for efficient oblivious ANN search over SSDs is balancing both bandwidth and access count. The state-of-the-art ORAM-ANN design minimizes access count at the ANN level and bandwidth at the ORAM level, each trading-off the other, leaving the combined system with both resources overutilized. We propose inverting this design, minimizing bandwidth consumption in the ANN layer and access count in the ORAM layer, since each component is better suited for its new role: ANN's inherent approximation allows for more bandwidth efficiency, while ORAM has no fundamental lower bounds on access count (as opposed to bandwidth). To this end, we propose a cost-efficient approach, Onyx, with two new co-designed components: Onyx-ANNS introduces a compact intermediate representation that proactively prunes the majority of bandwidth-intensive accesses without hurting recall, and Onyx-ORAM proposes a locality-aware shallow tree design that reduces access count while remaining compatible with bandwidth-efficient ORAM techniques. Compared to the state-of-the-art oblivious ANN search system, Onyx achieves $1.7-9.9\times$ lower cost and $2.3-12.3\times$ lower latency.
📬 Weekly AI Paper Digest
Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.