arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.20401cs.CRcs.AI
收藏

Onyx: 低成本的磁盘无关ANN搜索

Onyx: Cost-Efficient Disk-Oblivious ANN Search

UC Berkeley, NVIDIA(伯克利大学,NVIDIA);NVIDIA;UT Austin, NVIDIA(奥斯汀大学,NVIDIA)

Deevashwer Rathee, Jean-Luc Watson, Zirui Neil Zhao, G. Edward Suh, Raluca Ada Popa

AI总结:

Onyx通过优化ANN和ORAM层的资源利用,降低ANN搜索成本和延迟,采用紧凑中间表示和局部意识浅树设计提高效率。

摘要:

近邻搜索在AI系统中越来越多地处理第三方基础设施上的敏感数据。可信执行环境(TEEs)提供保护,但成本高效的部署必须依赖外部SSD,这会通过磁盘访问模式泄露用户查询。Oblivious RAM(ORAM)可以隐藏这些访问模式,但代价高昂;当与现有的基于磁盘的ANN搜索技术结合时,它无法有效利用SSD资源,导致高延迟和低效率。高效地在SSD上进行无意识ANN搜索的核心挑战是平衡带宽和访问次数。最先进的ORAM-ANN设计在ANN层面最小化访问次数,在ORAM层面最小化带宽,但两者相互妥协,导致系统资源过度利用。我们提出翻转这种设计,最小化ANN层的带宽消耗和ORAM层的访问次数,因为每个组件更适合其新角色:ANN的固有近似允许更高的带宽效率,而ORAM没有根本的访问次数下限(与带宽不同)。为此,我们提出了一种成本高效的方案Onyx,包含两个新设计的组件:Onyx-ANNS引入了一个紧凑的中间表示,主动修剪大部分带宽密集的访问,而不影响召回率;Onyx-ORAM提出了一种局部意识浅树设计,减少访问次数,同时保持与带宽高效的ORAM技术兼容。与最先进的无意识ANN搜索系统相比,Onyx实现了1.7-9.9倍更低的成本和2.3-12.3倍更低的延迟。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑