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

O2N2:高效双遗忘近似最近邻搜索

O2N2: Efficient Doubly Oblivious Approximate Nearest Neighbor Search

Peking University(北京大学);The Hong Kong University of Science and Technology(香港科技大学)

Zhechen Li, Zimai Guo, Mingxun Zhou, Chang Shi, Cheng Hong

AI总结:

O2N2是一种双遗忘近似最近邻搜索框架,采用随机旋转k维树森林单路径搜索与Circuit ORAM,在1亿向量规模下较同类基线实现9.8-125.9倍加速。

摘要:

隐私保护近似最近邻(ANN)搜索允许客户端在不向不可信服务器泄露敏感查询的情况下进行搜索,适用于医疗诊断、信用评分等场景。在各类隐私保护原语中,可信执行环境(TEE)的开销远低于重型密码原语,但会泄露内存访问模式,使攻击者可推断查询内容。遗忘随机存取存储器(ORAM)可用于以O(log N)的渐近成本隐藏这些访问模式,但现有高性能ANN搜索算法(如IVF或HNSW)具有复杂的、依赖数据的访问模式,不利于ORAM使用。此外,标准ORAM构造通常假设存在少量可信存储,这削弱了安全保障且并非总能实现。消除此类可信存储的方案(称为双遗忘性)通常会将性能进一步降至O(log² N)。我们提出O2N2,这是一个围绕随机旋转k维树森林中单路径搜索构建的双遗忘ANN框架。基于指针的Circuit ORAM存储搜索结构,紧凑内部节点与承载向量的叶子节点分开存储。每个访问的叶子节点由一个遗忘选择网络处理,固定调度的重复项移除与选择将局部结果组合为最终的top-k结果。我们在真实世界数据集上评估O2N2,并在1亿个向量上测试其可扩展性。对于指定高召回率目标下的10近邻和100近邻搜索,它比最快的双遗忘基线实现了9.8至125.9倍的加速。

英文摘要:

Privacy-preserving approximate nearest neighbor (ANN) search allows clients to search from an untrusted server without revealing sensitive queries, and is useful in scenarios like medical diagnostics and credit scoring. Among the various privacy-preserving primitives, trusted execution environments (TEEs) have much lower overhead than heavy cryptographic ones, yet they leak memory access patterns, enabling adversaries to infer query contents. Oblivious RAM (ORAM) can be used to hide those access patterns at $\mathrm{O}(\log N)$ asymptotic cost, but existing high-performance ANN search algorithms (e.g., IVF or HNSW) exhibit complex, data-dependent access patterns that are unfriendly for ORAM. Furthermore, standard ORAM constructions typically assume there exists a small amount of trusted storage, which weakens the security guarantees and is not always feasible. Solutions that eliminate such trusted storage (known as {\em double obliviousness}) typically degrade performance further to $\mathrm{O}(\log^2 N)$. We introduce O2N2, a doubly oblivious ANN framework built around single-path search in randomly rotated $k$-d tree forests. A pointer-based Circuit ORAM stores the search structure, with separate storage for compact internal nodes and vector-bearing leaves. Each visited leaf is processed by an oblivious selection network, and fixed-schedule duplicate removal and selection combine the local results into the final top-$k$. We evaluate O2N2 on real-world datasets and further test its scalability on 100 million vectors. For 10-NN and 100-NN search at the specified high-recall targets, it achieves a $9.8$--$125.9\times$ speedup over the fastest doubly oblivious baselines. It also achieves comparable efficiency against existing singly oblivious systems such as Compass (OSDI~'25) and BiSON (EuroS\&P~'26), while providing stronger privacy guarantees.

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

↑