betaFeedback

WorksComputer Science

Amora: Communication-Efficient Private Approximate Nearest Neighbors Search

Abstract

Approximate nearest neighbors search (ANNS) over cloud-hosted vector databases raises a critical privacy concern: the query vector, which often encodes sensitive user intent, is exposed to the server. Private ANNS (PANNS) allows a client to retrieve nearest neighbors without revealing its query. The state-of-the-art single-server scheme, Pacmann (ICLR'25), achieves high accuracy via graph-based search with private information retrieval (PIR), but incurs substantial communication overhead because each PIR query retrieves only a single vertex. We present Amora, a communication-efficient PANNS system that applies SimplePIR to a partitioned graph index so that one PIR query is amortized over many vertices. To retrieve as much of the distance and neighbor information the search needs under a limited communication budget, Amora adopts a dual-PIR split layout with two heterogeneous PIR matrices that stay balanced in dimension: VecPIR retrieves inner products for an entire partition of vertices as their distance at once, while NbrPIR retrieves necessary neighbor lists at subgroup granularity for graph traversal. This layout shifts the cost model of PIR query from per-vertex to per-partition, which significantly reduces the communication overhead. To further improve efficiency by reducing the number of scans and query rounds in the PIR database, Amora introduces batch PIR to pack multiple queries into one matrix multiplication, centroid-based pruning to filter unpromising partitions, and TopCand exploration that seeds jump-style graph navigation with the closest vertices from each retrieved partition. We evaluate Amora on five datasets spanning 96 to 1024 dimensions and up to 10 million vectors. Compared to Pacmann, Amora reduces online communication by 93–99% while achieving higher search accuracy.

CCS Concepts

• Security and privacy → Privacy-preserving protocols; • Information systems → Nearest-neighbor search; Information retrieval query processing.

Introduction

Vector similarity search has become a foundational operation in modern intelligent systems, underpinning recommendation engines [13, 19], semantic search [40, 43], and retrieval-augmented generation (RAG) [28, 33] for large language models. At its core lies the kk-nearest neighbor search (kk-NNS) problem: given a high-dimensional database and a query, find the kk vectors in the database closest to the query. Exact kk-NNS is prohibitively expensive at scale, so practical systems rely on approximate nearest neighbors search (ANNS), which trades a small loss in accuracy for speedups via graph-based indices [15, 25, 37, 38, 51], hash-based [17, 24], or cluster-based partitioning [7, 26]. As these ANNS systems increasingly migrate to cloud-hosted vector databases [27, 52], a critical privacy concern arises: the search query, which often encodes sensitive user intent such as medical symptoms, legal questions, or personal preferences, is transmitted to the server, exposing what the client is searching for. Private ANNS (PANNS) addresses this by allowing a client to retrieve the kk nearest neighbors of a query vector without revealing the query to the server.

One line of work builds PANNS under a multi-server setting [46, 49], where the database is replicated across servers assumed not to collude. However, since the non-collusion assumption is difficult to enforce in practice, clients may trust such schemes less than single-server ones. Recent single-server schemes avoid this assumption and fall into two families: cluster-based and graph-based schemes. Cluster-based schemes SANNS [6], Panther [35], and Tiptoe [22] group similar vectors into clusters and use oblivious RAM (ORAM) [18, 50] or private information retrieval (PIR) [12, 34, 54] to privately search the clusters whose centroids are closest to the query. However, a centroid summarizes an entire cluster, and thus can only coarsely guide nearest neighbor searches. A plaintext ANNS system compensates by searching more clusters at little extra cost, but in the private setting each additional cluster costs one expensive PIR query. As a result, coarse guidance and a limited communication budget together leave some true neighbors in unvisited clusters, fundamentally capping accuracy.

Graph-based schemes Pacmann [56] and Compass [57] instead organize the vectors into a proximity graph such as HNSW [38], in which each vertex stores one vector and its neighbor list. The search maintains a candidate set and expands the closest candidate with PIR or ORAM at each hop to protect the query privacy. The edges provide finer and more precise guidance than centroid distances, so reaching the same accuracy requires visiting far fewer vertices. Pacmann is the state of the art for query privacy over a public database and achieves high accuracy, but it incurs substantial communication overhead in both search and preprocessing, making it impractical for bandwidth-constrained clients. This stems from Pacmann’s underlying PIR scheme, Piano [55], whose preprocessing requires downloading the entire database. More critically, Pacmann exhibits low information density in its online search: each PIR query incurs O(N)O(\sqrt{N}) communication yet retrieves only a single vertex’s vector and neighbor list. We refer to this as the per-vertex cost model, and it is the fundamental source of Pacmann’s inefficiency.

We observe that SimplePIR [23] offers an inherent information-density advantage. It organizes the database as a matrix in which one query retrieves an entire column, and attains the optimal communication on a balanced matrix. Thus, one target vertex costs the same O(N)O(\sqrt{N}) communication, and every other vertex in that column comes for free. A direct application of SimplePIR partitions the graph and stores each partition’s vertices in one column, so a single PIR query returns a group of closely connected vertices. However, this naive method fails to realize the advantage. Since each vertex carries its neighbor list together with its vector for graph navigation, the two payloads make a vertex heavy and fill many entries of a single column. Such heavy payloads create a dilemma in designing the PIR matrix layout. One option is to adopt a balanced PIR matrix for the optimal communication cost. However, the heavy payloads then allow only a small number of vertices per column, so each query returns little information, and the search needs far more queries and rounds to reach high accuracy. The other option stores more vertices per column to raise the information per PIR query, but the matrix then becomes unbalanced, and every query costs more. The first challenge is therefore: C1. how to organize the PIR database so that a single PIR query carries as much useful vertex information as possible for the nearest neighbor search while keeping the optimal communication cost. Moreover, graph-based ANNS requires multi-hop traversal, and each hop invokes PIR to protect query privacy. Although SimplePIR is built on lightweight Learning with Errors (LWE) [44], each query must scan the entire database, so it incurs O(N)O(N) computation and makes memory bandwidth a bottleneck. The second challenge is therefore: C2. how to reduce the number of scans and query rounds in the PIR database to improve search efficiency.

To address both challenges, we build Amora, a communication-efficient PANNS scheme with high accuracy. For C1, our insight is that a vertex’s two payloads serve the search differently: its distance can improve the candidate set, whereas its neighbor list matters only if the search expands it. Amora therefore adopts a dual-PIR split layout that organizes the two types of payloads into two separate PIR databases with vertices grouped by graph partition: (1) VecPIR spreads each vertex’s vector horizontally across columns, so that each partition holds far more vectors and one PIR query computes inner products with an entire partition to return its distance to every vertex in it; (2) NbrPIR stacks neighbor lists vertically and cuts each partition into subgroups to return the neighbor lists of only the candidates that the search expands. As a result, both PIR matrices stay balanced, and the search alternates between them. A round of PIR queries now amortizes its communication over a whole partition, which shifts the cost model from per-vertex to per-partition. As for C2, we introduce three optimization techniques that reduce the PIR queries needed to reach a target accuracy: (1) Batch PIR merges concurrent PIR queries into a single matrix multiplication, reducing several communication rounds to one and amortizing SimplePIR’s linear database scan across queries; (2) Centroid-based pruning ranks pending partitions by the plaintext distance from the query to their centroids and processes only the most promising ones, avoiding PIR queries to distant regions; (3) TopCand exploration extracts the closest vertices (top candidates) from each retrieved partition as seeds in the candidate set, enabling jump-style navigation into distant regions rather than strictly following edges.

In general, our contributions are as follows:

  • We design a dual-PIR split layout that combines SimplePIR with graph partitioning, storing vectors horizontally and neighbor lists in subgroup columns. Both PIR matrices stay balanced, so every PIR query keeps SimplePIR’s optimal communication, while a round of PIR queries amortizes its cost over a whole partition, shifting the cost model from per-vertex to per-partition.

  • We propose three optimization techniques to reduce rounds and database scans: batch PIR merges concurrent queries into a single matrix multiplication, centroid-based pruning ignores partitions with distant centroids, and TopCand exploration extracts seeds from each retrieved partition for jump-style graph navigation.

  • We open-source Amora2, prove query privacy, analyze communication and computation complexity, and evaluate it on five datasets spanning 96–1024 dimensions and up to 10M vectors. Compared to Pacmann, Amora reduces online communication by 93–99% while achieving higher search accuracy.

Related Work

Approximate Nearest Neighbors Search

Approximate nearest neighbors search (ANNS) algorithms can be broadly divided into cluster-based, hash-based and graph-based categories. Cluster-based methods such as IVF [26], ScaNN [21], and SPANN [7] partition the vector space and restrict the search to the most promising partitions. Their fixed access pattern is easier to protect with PIR, but restricting search to a few clusters limits accuracy when the true neighbors span multiple partitions. Hash-based methods [17, 24] such as Locality Sensitive Hashing (LSH) [11] map vectors into hash buckets so that nearby vectors are likely to collide, offering sublinear query time with theoretical guarantees but requiring many hash tables to achieve high recall in practice. Graph-based methods build a navigable proximity graph and answer queries via greedy traversal, exploiting the small-world property to reach nearest neighbors in logarithmic hops; representative schemes include NSW [37], HNSW [38], NGT [25], NSG [15], and DiskANN [51]. Graph-based methods currently achieve the best accuracy–throughput trade-off on most benchmarks, but their iterative, data-dependent traversal pattern makes privacy protection challenging, as each hop reveals which vertex is being accessed.

Some PANNS works adopt a multi-server setting. Servan-Schreiber et al. [46] combine LSH with distributed point functions [4] across two non-colluding servers, and Song et al. [49] further reduce the required subsets. However, the non-collusion assumption is difficult to enforce in practice, motivating single-server approaches.

Among single-server schemes, cluster-based methods appear first. SANNS [6] combines ORAM [18] and garbled circuits [53] but incurs several gigabytes of communication per query. Panther [35] replaces ORAM with a co-design of batch PIR [1], secret sharing [47], and homomorphic encryption [16], reducing communication while protecting both query and database privacy. Tiptoe [22] focuses on query privacy only and uses somewhat homomorphic encryption [5] to privately compute distances within kk-means clusters in a single round. Wally [2] improves Tiptoe by batching anonymous queries and relaxing privacy to differential privacy [14]. However, all cluster-based schemes restrict the search to a small number of partitions and lack iterative refinement, fundamentally limiting their accuracy.

To overcome this accuracy barrier, graph-based schemes leverage multi-hop traversal. Pacmann [56] runs graph-based search using Piano PIR [55] to privately retrieve per-vertex information at each hop, achieving significantly higher accuracy than cluster-based methods. Compass [57] combines HNSW with Ring ORAM [45, 50] under a setting where the client owns the encrypted database, matching plaintext accuracy. However, both of them require significant client-side storage and communication overhead. PrivANN [8] uses a combination of ORAM and a Trusted Execution Environment (TEE) [10] to provide high-accuracy and low communication PANNS, but its security assumptions rely on a TEE, which introduces additional side-channel attacks [30, 32, 41].

Background

Approximate Nearest Neighbors Search

Given a dd-dimensional metric space with a distance function fΔ(⋅,⋅)f_{\Delta}(\cdot,\cdot) and a database DB={v⃗1,v⃗2,…,v⃗N}⊂Rd\mathrm{DB} = \{\vec{v}_1,\vec{v}_2,\ldots,\vec{v}_N\} \subset\mathbb{R}^d containing NN vectors, the ANNS problem is: given a query vector v⃗q∈Rd\vec{v}_q \in\mathbb{R}^d, find an index set I={i1,…,ik}I = \{i_1,\ldots,i_k\} such that the corresponding vectors {v⃗i1,…,v⃗ik}\{\vec{v}_{i_1},\ldots,\vec{v}_{i_k}\} approximate the true kk nearest neighbors of v⃗q\vec{v}_q in DB under fΔf_{\Delta}. The quality of the approximation is measured by Recall (the fraction of true nearest neighbors returned) or mean reciprocal rank (MRR).

Graph-Based ANNS

Graph-based ANNS builds a proximity graph G=(V,E)G=(V,E) over the database, where each vertex v∈Vv \in V corresponds to a database vector and each directed edge (v,u)∈E(v,u) \in E connects vv to one of its approximate nearest neighbors. Every vertex maintains a neighbor list of at most M0M_0 outgoing edges. Given a query q⃗\vec{q} (ANNS for vector v⃗q\vec{v}_q), search proceeds by greedy traversal: starting from an entry vertex, the algorithm maintains a candidate heap WW (a min-heap ordered by distance to v⃗q\vec{v}_q) and a result set RR (max-heap of capacity ef≥kef \geq k). At each step, the closest unvisited vertex is popped from WW, its neighbors are retrieved, their distances to v⃗q\vec{v}_q are computed, and those closer than the current worst result in RR are inserted into both WW and RR. The search terminates when WW is empty, and the top-kk entries of RR are returned.

Single-Server PANNS

In many applications the query vector encodes sensitive user intent and should not be revealed to the server hosting the database. The privacy requirement for a PANNS protocol focused on in this paper is query privacy only, the server learns negligible information about the query q⃗\vec{q}, and the database is public and does not require protection. Following prior work [22, 56], we consider the single-server preprocessing model, in which the private protocol proceeds in two phases:

  1. Preprocessing. The server holds the public database DB∈Rd×N\mathrm{DB} \in\mathbb{R}^{d \times N}. The client and server interact to generate a compact hint that the client stores locally for use during subsequent queries.

  2. Query. The client issues a query q⃗\vec{q}. The client and server engage in one or more rounds of communication, after which the client outputs the index set II of kk-approximate nearest neighbors.

Private Information Retrieval

LWE and Regev Encryption

SimplePIR’s security relies on the Learning with Errors (LWE) assumption [44]. Parameterized by a secret dimension nn, a modulus q≥2q \geq2, and an error distribution χ\chi over Z\mathbb{Z}, LWE asserts that for a random matrix A←$Zqm×nA \xleftarrow{\$} \mathbb{Z}_q^{m \times n}, a secret s←$Zqns \xleftarrow{\$} \mathbb{Z}_q^n, and an error vector e←$χme \xleftarrow{\$} \chi^m, the pair (A,As+e)(A, As + e) is computationally indistinguishable from (A,r)(A,r) where r←$Zqmr \xleftarrow{\$} \mathbb{Z}_q^m. Based on LWE, Regev [44] constructs a secret-key encryption scheme with an additional plaintext modulus pp. The secret key is s←$Zqns \xleftarrow{\$} \mathbb{Z}_q^n, and the encryption of a message μ∈Zp\mu\in\mathbb{Z}_p is: (a,c)=(a,aTs+e+⌊q/p⌋⋅μ)∈Zqn×Zq(a,c) = (a, a^{T}s + e + \lfloor q/p \rfloor\cdot\mu) \in\mathbb{Z}_q^n \times\mathbb{Z}_q, where a←$Zqna \xleftarrow{\$} \mathbb{Z}_q^n and e←$χe \xleftarrow{\$} \chi. Decryption computes c−aTs mod qc-a^{T}s \bmod q and rounds to the nearest multiple of ⌊q/p⌋\lfloor q/p \rfloor. A key property is additive homomorphism: the component-wise sum of two ciphertexts decrypts to the sum of the plaintexts, provided the accumulated error remains small.

SimplePIR

Private information retrieval (PIR) [9, 12, 23, 31, 34, 39, 48] allows a client to fetch record ii from a server’s database of NN records without revealing ii to the server. SimplePIR [23] is a single-server PIR scheme that achieves high throughput by leveraging Regev encryption and server-side preprocessing. SimplePIR organizes the NN-element database as a N×N\sqrt{N} \times\sqrt{N} balanced matrix db∈ZqN×N\mathrm{db} \in\mathbb{Z}_q^{\sqrt{N}\times\sqrt{N}}, and defines the scalar Δ:=⌊q/p⌋\Delta:= \lfloor q/p \rfloor. Its protocol consists of four interfaces:

  • hintc←Setup⁡(db)\mathrm{hint}_c \leftarrow\operatorname{Setup}(\mathrm{db}): The server computes hintc←db⋅A\mathrm{hint}_c \leftarrow\mathrm{db} \cdot A where A∈ZqN×nA \in\mathbb{Z}_q^{\sqrt{N}\times n} is a shared LWE matrix. This is a one-time offline phase; hintc\mathrm{hint}_c is sent to the client and reused across all queries.

  • (st,qu)←Query⁡(i)(\mathrm{st},\mathrm{qu}) \leftarrow\operatorname{Query}(i): The client first decomposes index ii into (irow,icol)(i_{\mathrm{row}},i_{\mathrm{col}}), samples s←$Zqns \xleftarrow{\$} \mathbb{Z}_q^n and e←$χNe \xleftarrow{\$} \chi^{\sqrt{N}}, and computes qu←As+e+Δ⋅uicol∈ZqN\mathrm{qu} \leftarrow As + e + \Delta\cdot u_{i_{\mathrm{col}}} \in\mathbb{Z}_q^{\sqrt{N}}, where uicolu_{i_{\mathrm{col}}} is the unit vector with a “1” at index icoli_{\mathrm{col}}. The client stores st=(irow,s)\mathrm{st}=(i_{\mathrm{row}},s) and sends qu\mathrm{qu} to the server.

  • ans←Answer⁡(db,qu)\mathrm{ans} \leftarrow\operatorname{Answer}(\mathrm{db},\mathrm{qu}): The server computes ans←db⋅qu∈ZqN\mathrm{ans} \leftarrow\mathrm{db} \cdot\mathrm{qu} \in\mathbb{Z}_q^{\sqrt{N}} and returns it to the client.

  • d←Recover⁡(st,hintc,ans)d \leftarrow\operatorname{Recover}(\mathrm{st},\mathrm{hint}_{c},\mathrm{ans}): The client first computes d^←ans[irow]−hintc[irow,:]⋅s∈Zq\hat{d} \leftarrow\mathrm{ans}[i_{\mathrm{row}}]-\mathrm{hint}_{c}[i_{\mathrm{row}},:] \cdot s \in\mathbb{Z}_{q}, and it recovers the plaintext d=Round⁡Δ(d^)/Δ∈Zpd=\operatorname{Round}_{\Delta}(\hat{d})/\Delta\in\mathbb{Z}_{p}. By the additive homomorphism of Regev encryption, ans\mathrm{ans} is an element-wise encryption of the icoli_{\mathrm{col}}-th column of db\mathrm{db}. Therefore, the client can run Recover for every row index to reconstruct the entire column from a single query.

Threat Model

Amora targets the same setting as Pacmann [56]: a single server SS holds a public vector database DB∈Rd×N\mathrm{DB} \in\mathbb{R}^{d \times N} of NN vectors each with dd dimensions, and a stateful client CC wishes to perform ANNS without revealing the query vector to the server. The database is public and does not require protection, i.e., we focus exclusively on query privacy. We assume the adversary is semi-honest (honest-but-curious). That is, the adversary follows the protocol specification but may attempt to learn additional information about the query from leakages. The privacy of the protocol requires that the server learns negligible information about the query q⃗\vec{q}. Formally, we use a simulation-based definition for the privacy of the protocol:

Definition 1 (Query Privacy). An ANNS protocol is private if there exists a simulator Sim\mathrm{Sim} such that for any probabilistic polynomial-time (PPT) adversary A\mathcal{A} acting as the server, the views of A\mathcal{A} in the following two experiments are computationally indistinguishable w.r.t. the security parameter λ2\lambda^{2}.

  • Real: The client interacts with A(1λ,DB)\mathcal{A}(1^{\lambda},\mathrm{DB}) who acts as the server. The client may issue multiple ANNS queries sequentially and each ANNS query q⃗\vec{q} takes a series of PIR searches as input and involves multiple rounds of communication between the client and the server. After observing the transcript of previous queries, A\mathcal{A} may adaptively choose the next query q⃗\vec{q} for the client.

  • Ideal: The simulated client Sim(1λ,N)\mathrm{Sim}(1^{\lambda},N) interacts with A(1λ,DB)\mathcal{A}(1^{\lambda},\mathrm{DB}). A\mathcal{A} still may adaptively choose the next query q⃗\vec{q}. However, the simulator is invoked with only the knowledge of the database size NN, and without the information of the chosen query q⃗\vec{q}.

We note that client-side timing side channels are out of scope: a server can observe how long the client takes to respond between rounds. If needed, they can be removed by padding the client’s per-round work to a fixed budget.3

Design Overview

Amora follows the graph-based paradigm: the client keeps a candidate heap and, at each of a fixed number of hops, picks the vertex closest to the query and retrieves its neighbor list from the server via PIR. Each vertex therefore carries two payloads: its vector for distance computation and its neighbor list for traversal. To amortize one PIR query over many vertices, the direct design applies SimplePIR to a graph partitioned by METIS [29] into CC partitions of at most KK vertices each, and stores each partition’s vertices in a single column of the PIR matrix, forming the combined layout in Figure 1(a). Partitioning co-locates closely connected vertices, so one PIR query serves an entire partition. Moreover, it is only a logical assignment of vertices and removes no edge, so each vertex keeps its full neighbor list and the search can still reach other partitions. Since a vertex carries both payloads, it fills many entries of a column, which creates a dilemma: (1) Keeping the PIR matrix balanced for the optimal communication cost limits each column to a few vertices, so one PIR query amortizes its cost over too few of them; (2) Packing more vertices per column instead makes the matrix unbalanced, raising the communication of every PIR query.

Figure 1. Combined layout vs. dual-PIR split layout (d=3d=3 dimensions, M0=2M_0=2 neighbors). v⃗i,j\vec{v}_{i,j} and ui,ju_{i,j} are the jj-th dimension and jj-th neighbor of vertex ii.

The first challenge C1 is therefore: how to organize the PIR database so that a single PIR query carries as much useful vertex information as possible for the nearest neighbor search while keeping the optimal communication cost. Our key insight is that the search needs the two payloads in different amounts: every retrieved vertex contributes its distance, whereas only the few vertices that the search expands need their neighbor lists. The combined layout ignores this asymmetry by coupling one neighbor list to every vector, so each PIR query spends part of its communication budget on unnecessary neighbor lists. The two payloads therefore call for different arrangements, each retrieved at the granularity the search actually needs. Amora addresses C1 by splitting the two payloads into a dual-PIR split layout, as Figure 1(b) shows. The VecPIR matrix stores only vector information: each partition occupies a block of dd consecutive columns, and within that block every vertex takes one row, with its dd-dimensional vector spread horizontally across the dd columns. Each column then stores only one dimension per vertex, so a balanced matrix holds far more vectors per partition. One query computes inner products with all KK vertices at once, giving their distances to the query. The client then selects candidates from these distances and uses NbrPIR to retrieve only the neighbor lists it needs to expand the candidates. Storing an entire partition’s neighbor lists in one column, that is, KK vertices with M0M_0 neighbors each, would both exceed this need and make the NbrPIR matrix highly unbalanced. We therefore organize the NbrPIR matrix into fine-grained subgroups of SS vertices within each partition, so that each subgroup occupies one column, keeping the matrix balanced.

The dual-PIR layout improves the information density of PIR queries. The remaining cost is the number of scans and query rounds in the PIR database that the traversal needs, and how to reduce them is the second challenge C2. Amora introduces three optimization techniques: (1) Batch PIR packs multiple independent PIR queries into a single matrix multiplication, reducing multiple communication rounds to one and alleviating SimplePIR’s memory-bandwidth bottleneck; (2) Centroid-based pruning ranks pending partitions by the plaintext distance from the query to their centroids and discards the distant ones, which incurs zero privacy cost since centroids are public metadata; (3) TopCand exploration extracts the tct_c closest vertices from each retrieved partition and injects them as seeds into the candidate heap, enabling jump-style graph navigation that leaps into distant regions rather than strictly following edges.

The system operates in two phases. In the offline phase (executed once), the server constructs the graph index, applies graph partitioning, decomposes each partition into subgroups, and builds the VecPIR and NbrPIR databases. The server also computes the partition centroids which will be sent to the client. The server then runs Setup for each PIR module, computing hint matrices that the client downloads and stores locally. In the online phase (per query), the client first performs centroid entry: it computes v⃗q\vec{v}_q’s distance to all CC partition centroids locally and selects the KeK_e nearest partitions as entry points, requiring zero communication. The search then proceeds for TT iterations, each consisting of a batched NbrPIR query followed by a batched VecPIR query. Because the number of iterations and the batch sizes are determined by public system parameters, the communication pattern is identical for every query and leaks no information about the query content. Figure 2 illustrates this two-phase workflow.

Figure 2. High-level overview of Amora. ① The server builds a graph index and partitions it. ② Offline: the server sends PIR hints and centroids to the client. ③ Online: the client issues VecPIR queries for partition-level vectors and NbrPIR queries for subgroup-level neighbor lists.

System Design

In this section, we elaborate on the detailed system design of Amora, and summarize the notation used throughout the paper in Table 1.

NotationMeaning
NNthe number of database vectors
ddthe vector dimension
M0M_0the maximum number of neighbors per vertex
CCthe number of partitions
K,SK, Sthe maximum sizes of a partition and a subgroup
gmax⁡g_{\max}the maximum number of subgroups per partition
ttthe number of parts in split encoding
nnthe LWE dimension
log⁡q\log qthe LWE modulus
λ\lambdathe LWE security level (≈ 128-bit)
kkthe number of returned nearest neighbors
efefthe result-heap capacity (≥k\ge k)
Bv,BnB_v, B_nthe VecPIR and NbrPIR batch sizes (the numbers of partitions and subgroups queried per iteration)
TTthe number of search iterations (each issues one batched NbrPIR and one batched VecPIR query)
KeK_ethe number of entry partitions
tct_cthe number of TopCand seeds taken from each partition
α\alphathe pruning ratio

Table 1. Notation summary.

VecPIR: Distance Computation

In SimplePIR, querying column ii returns all elements in that column. If each vertex’s vector is stored as a single column element, one query would retrieve only a few vertices’ vectors. The key design of VecPIR is horizontal arrangement (Figure 3 (a)): each vertex’s dd-dimensional quantized vector is spread across dd consecutive columns, with vertices in the same partition stacked as rows. Concretely, the VecPIR database dbvec\mathrm{db}_{\mathrm{vec}} is a K×(C⋅d)K \times(C \cdot d) matrix: partition cc occupies column block [c⋅d, (c+1)⋅d)[c \cdot d,\ (c+1) \cdot d), and entry (x, c⋅d+j)(x,\ c \cdot d+j) stores the jj-th dimension of the xx-th vertex’s quantized vector in partition cc. This layout transforms a column retrieval into an inner-product computation. Let v⃗q∈Zqd\vec{v}_q \in\mathbb{Z}_q^d be the quantized query vector, A∈ZqM×nA \in\mathbb{Z}_q^{M \times n} the shared random matrix with M=C⋅dM = C \cdot d, s∈Zqns \in\mathbb{Z}_q^n a fresh secret, and e∈ZMe \in\mathbb{Z}^M a noise vector. To query partition cc, the client constructs:

Figure 3. Dual-PIR split layout. (a): VecPIR arranges each vertex’s dd-dimensional vector horizontally across dd columns within a partition block, querying partition cc returns inner products with all KK vertices. (b): NbrPIR organizes each partition into gmax⁡g_{\max} subgroup columns, each subgroup stores SS vertices’ M0M_0 neighbors using split encoding with tt parts.

qu=As+e+Δ⋅qc∈ZqM(1)qu = As + e + \Delta\cdot q_c \in\mathbb{Z}_q^M \tag*{(1)}

where qc∈ZMq_c \in\mathbb{Z}^M places v⃗q\vec{v}_q at positions [c⋅d, (c+1)⋅d)[c \cdot d,\ (c+1) \cdot d) and is zero elsewhere, and Δ=⌊q/p⌋\Delta= \lfloor q/p \rfloor is the scaling factor. The server computes ans =dbvec⋅qu∈ZqK= \mathrm{db}_{\mathrm{vec}} \cdot qu \in\mathbb{Z}_q^K and returns it to the client.

For row ii, the answer contains ⟨v⃗q, dbvec[i, c⋅d:(c+1)⋅d]⟩+\langle\vec{v}_q,\ \mathrm{db}_{\mathrm{vec}}[i,\ c \cdot d:(c+1) \cdot d] \rangle+ noise, the noisy inner product between the query and the ii-th vertex. The client recovers the inner product:

d^i=⌊ans[i]−hintv[i]⋅sΔ⌋(2)\hat{d}_i = \left\lfloor\frac{\mathrm{ans}[i] - \mathrm{hint}_v[i] \cdot s}{\Delta} \right\rfloor \tag*{(2)}

where hintv=dbvec⋅A\mathrm{hint}_v = \mathrm{db}_{\mathrm{vec}} \cdot A is the precomputed hint matrix, and ⌊⋅⌋\lfloor\cdot\rfloor denotes rounding to the nearest integer. A single query thus yields inner products with all KK vertices in the target partition. The plaintext modulus pp is chosen to retain sufficient precision for ranking.

NbrPIR: Neighbor Retrieval

Split encoding

Each neighbor is identified by its partition index c∈{0,…,C−1}c \in\{0,\ldots,C-1\} and its local index ℓ∈{0,…,K−1}\ell\in\{0,\ldots,K-1\} within that partition. Let bc=⌈log⁡2K⌉b_c = \lceil\log_2 K \rceil and bℓ=⌈log⁡2C⌉b_\ell= \lceil\log_2 C \rceil denote the number of bits required for each field. The two indices are combined into a single non-negative integer id=c⋅2bℓ+ℓ\mathit{id} = c \cdot2^{b_\ell} + \ell, which occupies bc+bℓb_c+b_\ell bits in total. Because a single SimplePIR entry can hold at most bb bits (the per-entry bit width), the integer id\mathit{id} is split into t=⌈(bc+bℓ)/b⌉t = \lceil(b_c+b_\ell)/b \rceil parts: denoting the ii-th part (i=0,…,t−1i=0,\ldots,t-1) as idi_d, each part is stored in a separate matrix row and recovered independently. The plaintext modulus for NbrPIR is pn=2bp_n = 2^b, far smaller than VecPIR’s, so its scaling factor is correspondingly larger and NbrPIR has ample noise margin.

Subgroup organization

Each vertex has at most M0M_0 neighbors. If an entire partition’s neighbor lists are stored in one column, the column height would be K⋅M0⋅tK \cdot M_0 \cdot t while the number of columns would be only CC, producing an extremely unbalanced matrix that prevents SimplePIR from balancing upload and download costs. We resolve this by subdividing each partition into subgroups of at most SS vertices (Figure 3 (b)). Each subgroup occupies one column, yielding at most gmax⁡=⌈K/S⌉g_{\max} = \lceil K/S \rceil subgroup columns per partition. In this case, the NbrPIR database dbnbr\mathrm{db}_{\mathrm{nbr}} has S⋅M0⋅tS \cdot M_0 \cdot t rows and C⋅gmax⁡C \cdot g_{\max} columns, a much more balanced shape. Vertices with fewer than M0M_0 neighbors and subgroups with fewer than SS vertices are padded to maximums so that every column has exactly S⋅M0⋅tS \cdot M_0 \cdot t entries.

Vertex-to-subgroup mapping

When VecPIR returns distances for partition cc, the client selects promising candidates by ranking the KK returned inner products. For a candidate at row ℓ\ell (i.e., local index ℓ\ell within partition cc), its neighbor list resides in NbrPIR subgroup column c⋅gmax⁡+⌊ℓ/S⌋c \cdot g_{\max} + \lfloor\ell/S \rfloor, and its entries start at offset (ℓ mod S)⋅M0⋅t(\ell\bmod S) \cdot M_0 \cdot t within that column. The client issues a SimplePIR column query for this subgroup and extracts the target vertex’s M0⋅tM_0 \cdot t rows to recover its full neighbor list.

Efficient Private Search

The dual-PIR split layout amortizes the communication of a private search: each VecPIR query returns distances to all KK vertices in a partition, and each NbrPIR query retrieves neighbor lists for all SS vertices in a subgroup, so one round trip yields far more information than in per-vertex PIR systems. The search proceeds iteratively: pop the closest candidate from the heap, issue one NbrPIR query for its subgroup to decode its neighbors, then issue one VecPIR query for each neighbor’s uncached partition to obtain distances. We further improve this basic search with the following techniques.

Batch PIR

The PIR database matrices dbvec\mathrm{db}_{\mathrm{vec}} and dbnbr\mathrm{db}_{\mathrm{nbr}} can occupy multiple gigabytes of server memory, and each PIR query requires a full matrix-vector multiplication that scans the entire database. When BB PIR queries are issued independently, the server must scan the database BB times, making memory bandwidth the dominant performance bottleneck. Batch PIR addresses this by packing multiple queries into a single matrix multiplication. For VecPIR, to query BvB_v partitions {c1,…,cBv}\{c_1, \ldots, c_{B_v}\} simultaneously, the client constructs a (C⋅d)×Bv(C \cdot d) \times B_v query matrix QQ where each column is one partition’s query vector as in Eq. (1). The server computes ans=dbvec⋅Q∈ZqK×Bv\mathrm{ans} = \mathrm{db}_{\mathrm{vec}} \cdot Q \in\mathbb{Z}_q^{K \times B_v} with a single database scan, amortizing the memory-bandwidth cost across all BvB_v queries while merging BvB_v round trips into one and resolving distances to K⋅BvK \cdot B_v vertices. The same batching applies to NbrPIR: a (C⋅gmax⁡)×Bn(C \cdot g_{\max}) \times B_n query matrix yields an (S⋅M0⋅t)×Bn(S \cdot M_0 \cdot t) \times B_n answer matrix containing BnB_n subgroups’ neighbor encodings in one round trip.

TopCand exploration

Standard graph search navigates solely by following edges, visiting one vertex at a time. In Amora, to protect the query privacy, each VecPIR query privately selects one partition, and the server computes the distances to all vertices inside it within a single encrypted operation. The distances to all KK vertices in the partition are thus a byproduct of one privacy-preserving query, providing a complete view of that partition without any additional queries. We call the tct_c closest vertices per partition the TopCand (top candidates). These vertices are added to the candidate heap W\mathcal{W} (min-heap) as additional navigation seeds, enabling jump-style exploration: the search can leap directly to promising regions of a partition without following graph edges step by step, effectively supplementing neighbor-based navigation with partition-level shortcuts. The remaining K−tcK - t_c vertices are not promoted to W\mathcal{W} (which would overwhelm subsequent NbrPIR rounds), but their distances, obtained for free from the amortized VecPIR query, are still valuable. Like standard graph search, Amora maintains W\mathcal{W} for exploration and a result heap R\mathcal{R} (max-heap, capacity efef) for the answer set. The graph neighbors decoded from NbrPIR and the tct_c TopCand vertices enter both W\mathcal{W} and R\mathcal{R}, while the top-kk vertices in the partition enter R\mathcal{R}. These distances tighten the admission threshold of R\mathcal{R} faster, so that fewer candidates qualify in subsequent rounds and fewer PIR queries are wasted.

Centroid-based pruning

During neighbor processing, discovered neighbors may point to many uncached partitions. Without prioritization, all would compete for the limited VecPIR batch budget BvB_v, and distant or irrelevant partitions waste valuable slots. The saved partition centroids can naturally serve as directional indicators. We maintain the pending set P\mathcal{P} as an ordered set sorted by ascending centroid distance −⟨qˉ,μc⟩-\langle\bar{q}, \mu_c \rangle, where μc\mu_c is the centroid of partition cc. Since centroids are public metadata, this sorting is performed entirely on the client without online communication. When selecting partitions for the next VecPIR batch, the sorted order ensures that the top-BvB_v entries are always the closest partitions to the query, directing the communication budget toward the most promising regions. Before selection, the client prunes P\mathcal{P} by removing all partitions whose centroid distance exceeds α⋅dbest∗\alpha\cdot d^*_{\mathrm{best}}, where dbest∗d^*_{\mathrm{best}} is the closest distance seen so far, initialized from the entry partition and updated whenever a closer centroid appears. The pruning ratio α\alpha is a fixed per-dataset parameter, set once and not updated during the search. A larger α\alpha prunes more strictly, which suits datasets whose centroids lie close together, since it still keeps the useful partitions. When the centroids are spread out, a smaller α\alpha retains the potential partitions that may hold true neighbors. Together, sorting and pruning direct the limited VecPIR budget toward the most relevant partitions.

Selective decryption and caching

Each NbrPIR query retrieves an entire subgroup column containing SS vertices’ neighbor data, but the search typically visits only a few vertices per subgroup. Decrypting all S⋅M0⋅tS \cdot M_0 \cdot t entries would waste computation. Instead, the client caches the raw ciphertext and performs selective decryption: only the rows of actually visited vertices are decrypted on demand. When later candidates fall into the same subgroup, the cached ciphertext is reused without additional communication.

Compressed storage

Server-side answer computation requires multiplying the (potentially multi-GB) PIR database by each query, making memory bandwidth the dominant cost. Since actual database values have small ranges (VecPIR stores uint8-quantized vectors in [0,28−1][0, 2^8 - 1] and NbrPIR stores bb-bit parts in [0,2b−1][0, 2^b - 1]), we keep the databases in a compact format and zero-extend each element to the LWE word size at query time.

Algorithm 1: Offline Preprocessing

Input: NN vectors of dimension dd, graph degree M0M_0, number of partitions CC, subgroup size SS, part width bb

Output: PIR databases dbvec\mathrm{db}_{\mathrm{vec}}, dbnbr\mathrm{db}_{\mathrm{nbr}}; hint matrices HvH_v, HnH_n; centroids {μc}\{\mu_c\}

/* Index construction */

  1. Build proximity graph GG with M0M_0 neighbors per vertex;

  2. Partition GG into CC balanced partitions via graph partitioning;

  3. foreach partition cc do Divide into subgroups of at most SS vertices;

  4. Quantize all vectors to uint8;

  5. Compute partition centroids {μ1,…,μC}\{\mu_1,\ldots,\mu_C\};

/* PIR database construction */

  1. Build dbvec\mathrm{db}_{\mathrm{vec}}: horizontal layout, K×(C⋅d)K \times(C \cdot d) (§ 5.1);

  2. Split-encode all neighbors idid into tt parts of bb bits (§ 5.2);

  3. Build dbnbr\mathrm{db}_{\mathrm{nbr}}: subgroup-column layout, (S⋅M0⋅t)×(C⋅gmax⁡)(S \cdot M_0 \cdot t) \times(C \cdot g_{\max});

/* PIR setup (one-time distribution to client) */

  1. Generate shared random matrices Av,AnA_v,A_n;

  2. Compute hint matrices: Hv←dbvec⋅AvH_v \leftarrow\mathrm{db}_{\mathrm{vec}} \cdot A_v, Hn←dbnbr⋅AnH_n \leftarrow\mathrm{db}_{\mathrm{nbr}} \cdot A_n;

  3. Send (Av,Hv,An,Hn,{μc}c=1C)(A_v,H_v,A_n,H_n,\{\mu_c\}_{c=1}^{C}) to C;

Amora Protocols

We now describe the Amora protocols: (1) Offline preprocessing (Algorithm 1) builds the PIR databases; (2) Online search (Algorithm 2) answers each query with a fixed communication pattern.

Offline preprocessing

Algorithm 1 summarizes server-side preprocessing, executed once before any queries. Lines 1–5 construct the search index. The server first builds a proximity graph GG (e.g., HNSW) where each vertex has M0M_0 neighbors (Line 1), then partitions GG into CC balanced partitions using graph partitioning (Line 2). Within each partition, vertices are divided into subgroups of at most SS vertices (Lines 3–4). All vectors are quantized to uint8 for compact storage (Line 5), and partition centroids are computed as public metadata for centroid-based entry and pruning (Line 6). Then, the server builds the two PIR databases following the layouts described in Figure 3: dbvec\mathrm{db}_{\mathrm{vec}} stores quantized vectors in horizontal layout, and dbnbr\mathrm{db}_{\mathrm{nbr}} stores split-encoded neighbor lists in subgroup columns (Lines 7–9). After that, the server performs the one-time SimplePIR setup. The server generates shared random matrices Av,AnA_v,A_n and computes hint matrices Hv,HnH_v,H_n by multiplying each database with its corresponding random matrix. These matrices, together with partition centroids, are sent to the client. This offline distribution is amortized over all subsequent queries; the client uses AA and HH to construct PIR queries and recover answers without additional server interaction (Lines 10–12).

5.4.2 Online PANNS. Algorithm 2 describes the online search executed by the client for a query vector v⃗q\vec{v}_q. The parameters are: the number of results kk, result heap capacity of e≥ke \ge k, number of entry partitions KeK_e, batch sizes BnB_n and BvB_v for NbrPIR and VecPIR, iteration count TT, and TopCand count per partition tct_c.

Stage 1: Centroid entry (Lines 1–5). The client computes inner products between query vector v⃗q\vec{v}_q and all CC partition centroids locally, requiring zero online communication since centroids are distributed during offline setup (Line 1). The KeK_e partitions with the smallest distance are selected as entry points (Line 2), and a single BatchVecPIR query retrieves distances to all vertices in these KeK_e partitions (Line 3). The candidate heap WW and result heap RR are then initialized (Lines 4–5): the top-tct_c closest vertices per entry partition are inserted into WW as initial navigation seeds, and the top-kk are inserted into RR (Line 5).

Stage 2: Fixed-iteration search loop (Lines 6–26). Each of the TT iterations consists of three phases:

Phase A: Neighbor retrieval (Lines 7–9). The client pops candidates from WW in distance order, collecting up to BnB_n distinct uncached subgroups that these candidates belong to (Line 7). Candidates whose subgroup is already cached are also popped since their neighbors can be decoded immediately. If fewer than BnB_n uncached subgroups are needed, the remaining slots are padded with random uncached subgroups to maintain a fixed batch size (Line 8). A single BatchNbrPIR query retrieves all BnB_n subgroup columns, and the returned ciphertexts are cached for future reuse (Line 9).

Phase B: Neighbor processing (Lines 10–17). For each popped candidate vv, the client selectively decrypts only vv’s M0M_0 neighbor entries from the cached subgroup ciphertext (Line 11). For each

Algorithm 2: Online PANNS
Input: query vector $\vec{v}_q$, result size $k$, heap capacity $ef$, entry partitions $K_e$, NbrPIR batch size $B_n$, VecPIR batch size $B_v$, iteration count $T$, TopCand count $t_c$
Output: top-$k$ nearest neighbors
/* Stage 1: Centroid entry */
1 Compute $\langle \vec{v}_q,\mu_c\rangle$ for all $c \in [C]$ locally;
2 Select top-$K_e$ partitions as entry points;
3 BatchVecPir($K_e$);
4 Initialize candidate min-heap $\mathcal{W}$, result max-heap $\mathcal{R}$ (size of $ef$), pending sorted set $\mathcal{P}$;
5 Insert top-$t_c$ per entry partition into $\mathcal{W}$, insert top-$k$ into $\mathcal{R}$;
/* Stage 2: Fixed-iteration search loop */
6 for iter = 1 to $T$ do
/* Phase A: Neighbor retrieval */
7 Pop candidates from $\mathcal{W}$ until $B_n$ uncached subgroups collected;
8 Pad to $B_n$ with random uncached subgroups; ⊲ dummy
9 BatchNbrPIR($B_n$) and cache ciphertexts;
/* Phase B: Neighbor processing */
10 foreach popped candidate $v$ do
11 Selectively decrypt $v$’s $M_0$ neighbors from cached ciphertext;
12 foreach neighbor $u$ of $v$ do
13 if $u$’s partition is cached then
14 Read $\operatorname{dist}(u,\vec{v}_q)$ from cache;
15 Update $\mathcal{W}$ and $\mathcal{R}$ if $\operatorname{dist}(u,\vec{v}_q) < \mathcal{R}.\operatorname{top}()$;
16 else
17 Insert $u$’s partition into $\mathcal{P}$;
/* Phase C: Distance computation */
18 Prune $\mathcal{P}$ by centroid-based partition scheduling (§5.3);
19 Pop first $B_v$ entries from $\mathcal{P}$, pad to $B_v$; ⊲ dummy
20 BatchVecPir($B_v$);
21 foreach newly queried partition $c'$ do
22 Insert top-$t_c$ vertices into $\mathcal{W}$ (TopCand);
23 Insert top-$k$ vertices into $\mathcal{R}$;
24 foreach neighbor $u$ in $\mathcal{P}$ with $u \in c'$ do
25 Read $\operatorname{dist}(u,\vec{v}_q)$ from cache;
26 Insert $u$ into $\mathcal{W}$ and $\mathcal{R}$ if $\operatorname{dist}(u,\vec{v}_q) < \mathcal{R}.\operatorname{top}()$;
27 return top-$k$ from $\mathcal{R}$;

decoded neighbor uu: if uu’s partition has been previously queried via VecPIR, its distance dist⁡(u,v⃗q)\operatorname{dist}(u,\vec{v}_q) is already available in the distance cache, and uu is inserted into W\mathcal{W} and R\mathcal{R} if competitive (Lines 13–15); otherwise, uu’s partition is added to P\mathcal{P}, a cross-iteration priority queue sorted by centroid distance (Line 17).

Phase C: Distance computation (Lines 18–26). The client first prunes P\mathcal{P} using centroid-based filtering (§5.3), removing partitions whose centroid distance exceeds the pruning threshold (Line 18). The top-BvB_v closest partitions are selected for querying, padded if fewer than BvB_v are available (Line 19). A BatchVecPir query retrieves distances to all vertices in these BvB_v partitions (Line 20). For each newly queried partition, the top-tct_c vertices are inserted into W\mathcal{W} as TopCand navigation seeds, and the top-kk are inserted into R\mathcal{R} (Lines 22–23). Additionally, any neighbors from Phase B that are deferred because their partition was uncached can now be resolved from the distance cache (Lines 24–26).

After TT iterations, the client returns the top-kk entries from R\mathcal{R} (Line 27). Every ANNS executes exactly 1+T1+T VecPIR rounds and TT NbrPIR rounds, with fixed batch sizes BvB_v and BnB_n per round. The dummy padding in Lines 8 and 19 ensures that the server observes an identical communication pattern regardless of query content. Besides, the LWE-encrypted query vectors are computationally indistinguishable from real queries, so the server cannot determine which slots carry real data and which are padding.

Theoretical Analysis

Communication Cost

Online communication

We analyze the per-query online communication cost. As described in §5.4, each ANNS executes 1+T1+T VecPIR rounds with batch size BvB_v, and TT NbrPIR rounds with batch size BnB_n. We denote the element size as w=⌈log⁡q/8⌉w=\lceil\log q/8\rceil bytes.

Total online communication. Each VecPIR round involves an upload of the query matrix and a download of the answer matrix. The dbvec\mathrm{db}_{\mathrm{vec}} has KK rows and C⋅dC \cdot d columns, so each round uploads a (C⋅d)×Bv(C \cdot d) \times B_v query matrix and downloads a K×BvK \times B_v answer matrix:

Commvec=(1+T)⋅Bv⋅(C⋅d+KC)⋅w(3)\mathrm{Comm}_{\mathrm{vec}}=(1+T)\cdot B_v\cdot\left(C\cdot d+\frac{K}{C}\right)\cdot w \tag*{(3)}

The dbnbr\mathrm{db}_{\mathrm{nbr}} has S⋅M0⋅tS\cdot M_0\cdot t rows and C⋅gmax⁡C\cdot g_{\max} columns, where gmax⁡=⌈K/S⌉g_{\max}=\lceil K/S\rceil. Each round uploads a (C⋅gmax⁡)×Bn(C\cdot g_{\max})\times B_n query matrix and downloads an (S⋅M0⋅t)×Bn(S\cdot M_0\cdot t)\times B_n answer matrix:

Commnbr=T⋅Bn⋅(C⋅⌈K/S⌉+S⋅M0⋅t)⋅w(4)\mathrm{Comm}_{\mathrm{nbr}}=T\cdot B_n\cdot\left(C\cdot\lceil K/S\rceil+S\cdot M_0\cdot t\right)\cdot w \tag*{(4)}

The total per-query online communication is Commonline=Commvec+Commnbr\mathrm{Comm}_{\mathrm{online}}=\mathrm{Comm}_{\mathrm{vec}}+\mathrm{Comm}_{\mathrm{nbr}}.

Optimal parameter selection. The total communication depends on the number of partitions CC and the subgroup size SS, which can be chosen to minimize communication. For VecPIR, the upload cost is proportional to C⋅dC\cdot d and the download cost is proportional to K≈N/CK\approx N/C. Setting the derivative of C⋅d+N/CC\cdot d+N/C with respect to CC to zero yields the optimal number of partitions:

C∗=N/d(5)C^*=\sqrt{N/d} \tag*{(5)}

For NbrPIR, the upload cost is proportional to C⋅⌈K/S⌉≈N/SC\cdot\lceil K/S\rceil\approx N/S and the download cost is proportional to S⋅M0⋅tS\cdot M_0\cdot t. Setting the derivative of N/S+S⋅M0⋅tN/S+S\cdot M_0\cdot t with respect to SS to zero yields the optimal subgroup size:

S∗=N/(M0⋅t)(6)S^*=\sqrt{N/(M_0\cdot t)} \tag*{(6)}

Amortization benefit. PIR schemes such as SimplePIR and Piano achieve per-query communication O(N)O(\sqrt{N}) for a database of NN entries. The critical difference between Amora and vertex-PIR systems lies in the number of queries. Pacmann issues one PIR query per accessed vertex, so visiting nan_a vertices incurs total communication O(naN)O(n_a\sqrt{N}). In Amora, each VecPIR query retrieves distances to all KK vertices in a partition at once, so visiting vertices spread across cc distinct partitions requires only cc queries with total communication O(cN)O(c\sqrt{N}). Since a typical search accesses multiple vertices within the same partition, c≪nac\ll n_a, yielding a proportional reduction in communication. The benefit grows with the dimensionality dd. A per-vertex cost model scheme downloads the full dd-dimensional vector of every accessed vertex, so it pays O(d)O(d) communication per compared vertex. In Amora, the optimal C∗=N/dC^* = \sqrt{N/d} (Eq. 5) makes both the upload C⋅dC \cdot d and the download KK in Eq. (3) approximately equal to N⋅d\sqrt{N \cdot d}, so one VecPIR query spends about 2N⋅d2\sqrt{N \cdot d} values on the distances to about N⋅d\sqrt{N \cdot d} vertices, and the amortized cost per compared vertex is a constant independent of dd.

Offline communication

Before any queries, the client downloads hint matrices and shared random matrices from the server. For VecPIR, the hint matrix Hv=dbvec⋅Av∈ZqK×nH_v = \mathrm{db}_{\mathrm{vec}} \cdot A_v \in\mathbb{Z}_q^{K \times n} and the shared random matrix Av∈Zq(C⋅d)×nA_v \in\mathbb{Z}_q^{(C \cdot d) \times n}. For NbrPIR, the hint matrix Hn=dbnbr⋅An∈Zq(S⋅M0⋅t)×nH_n = \mathrm{db}_{\mathrm{nbr}} \cdot A_n \in\mathbb{Z}_q^{(S \cdot M_0 \cdot t) \times n} and the shared random matrix An∈Zq(C⋅gmax⁡)×nA_n \in\mathbb{Z}_q^{(C \cdot g_{\max}) \times n}. The client also receives the CC partition centroids. The total offline communication is:

Comm⁡offline=(K+C⋅d+S⋅M0⋅t+C⋅gmax⁡)⋅n⋅w+C⋅d⋅wc(7)\operatorname{Comm}_{\mathrm{offline}} = \left(K + C \cdot d + S \cdot M_0 \cdot t + C \cdot g_{\max}\right) \cdot n \cdot w + C \cdot d \cdot w_c \tag*{(7)}

where nn is the LWE dimension and wcw_c is the per-element size of centroids. This one-time cost is amortized over all subsequent queries and also serves as the client-side storage requirement.

Computation Cost

The dominant server-side cost is the matrix multiplication required to answer each PIR query. For VecPIR, the server computes dbvec⋅Q∈ZqK×Bv\mathrm{db}_{\mathrm{vec}} \cdot Q \in\mathbb{Z}_q^{K \times B_v}, which requires K⋅(C⋅d)⋅BvK \cdot(C \cdot d) \cdot B_v multiplications per round. For NbrPIR, the server computes dbnbr⋅Q∈Zq(S⋅M0⋅t)×Bn\mathrm{db}_{\mathrm{nbr}} \cdot Q \in\mathbb{Z}_q^{(S \cdot M_0 \cdot t) \times B_n}, requiring (S⋅M0⋅t)⋅(C⋅gmax⁡)⋅Bn(S \cdot M_0 \cdot t) \cdot(C \cdot g_{\max}) \cdot B_n multiplications per round. The total server-side computation per query is:

Comp⁡svr=(1+T)⋅K⋅C⋅d⋅Bv+T⋅S⋅M0⋅t⋅C⋅gmax⁡⋅Bn(8)\operatorname{Comp}_{\mathrm{svr}} = (1 + T) \cdot K \cdot C \cdot d \cdot B_v + T \cdot S \cdot M_0 \cdot t \cdot C \cdot g_{\max} \cdot B_n \tag*{(8)}

The client-side cost is: generating a query vector requires O(n)O(n) operations per column, and recovering the answer requires O(n)O(n) operations per row via the precomputed hint.

Comparison with per-vertex cost model. Let zz denote the total size of a vertex’s vector and neighbor list. Amora multiplies each query against the entire database, so one round costs O(N⋅z)O(N \cdot z) and returns information for O(N)O(\sqrt{N}) vertices. The Piano [55] PIR used by Pacmann instead aggregates the records of O(N)O(\sqrt{N}) vertices, so a query costs O(N⋅z)O(\sqrt{N} \cdot z) but returns information for only one vertex. Pacmann is therefore faster per round, and the gap grows with N⋅zN \cdot z, but it needs more rounds. The amortized per-vertex computation of the two schemes is comparable. On high-dimensional data, the vector dominates zz, so the gap is governed by N⋅dN \cdot d. Amora’s workload is moreover a dense matrix multiplication that maps directly to GPU and SIMD (AVX-512) acceleration [20] for great improvement.

Security Analysis

We prove that Amora satisfies the query privacy definition given in Definition 1 under the LWE assumption.

Theorem 1. Assuming the hardness of LWEn,q,χ_{n,q,\chi}, Amora satisfies query privacy (Definition 1) in the semi-honest model.

Proof. We construct a simulator Sim that, given only the database size NN and the public system parameters (C,S,T,Bv,Bn,Kϵ)(C, S, T, B_v, B_n, K_\epsilon), produces a transcript indistinguishable from a real execution.

Offline phase. The shared random matrices Av,AnA_v, A_n are public and independent of the query. The hint matrices Hv=dbvec⋅AvH_v = \mathrm{db}_{\mathrm{vec}} \cdot A_v and Hn=dbnbr⋅AnH_n = \mathrm{db}_{\mathrm{nbr}} \cdot A_n are deterministic functions of the public database and the public random matrices, so the simulator outputs them identically to the real protocol.

Online phase. In each round, the client sends a query matrix QQ whose columns are of the form qui=A⋅sj+ej+Δ⋅ui,jq_{u_i} = A \cdot s_j + e_j + \Delta\cdot u_{i,j}, where sjs_j is a fresh secret, eje_j is drawn from the error distribution χ\chi, and ui,ju_{i,j} is a unit vector selecting the target column. By the LWE assumption, (A,A⋅sj+ej)(A, A \cdot s_j + e_j) is computationally indistinguishable from (A,rj)(A, r_j) where rj←ZqC⋅gmax⁡r_j \leftarrow\mathbb{Z}_q^{C \cdot g_{\max}} (or ZqC⋅d\mathbb{Z}_q^{C \cdot d} for VecPIR). Adding the scaled unit vector Δ⋅ui,j\Delta\cdot u_{i,j} does not help the adversary distinguish, because Δ⋅ui,j\Delta\cdot u_{i,j} is masked by the LWE noise. Therefore, the simulator can replace each query column with a uniformly random vector rj←ZqC⋅gmax⁡r_j \leftarrow\mathbb{Z}_q^{C \cdot g_{\max}} (or ZqC⋅d\mathbb{Z}_q^{C \cdot d} for VecPIR), producing a query matrix indistinguishable from the real one. Since a fresh secret sjs_j is sampled for each query column, different columns (and different rounds) are independently distributed. Thus, each of the (1+T)⋅Bv(1 + T) \cdot B_v VecPIR query columns and T⋅BnT \cdot B_n NbrPIR query columns can be simulated independently. The server’s response is ans=db⋅Q\mathrm{ans} = \mathrm{db} \cdot Q and is a deterministic function of the public database and the query matrix. Since the simulator can produce an indistinguishable query matrix, the resulting answer is also indistinguishable.

Fixed communication pattern. Every query executes exactly 1+T1 + T VecPIR rounds and TT NbrPIR rounds, with fixed batch sizes BvB_v and BnB_n per round (Algorithm 2). When fewer than BnB_n real subgroups are needed, the client pads with random unchanged subgroups. Similarly, when fewer than BvB_v real partitions are pending, it pads with already-cached partition IDs. Since all query columns are LWE samples indistinguishable from uniform, the server cannot distinguish real query columns from dummy padding columns. The server therefore observes the same number of rounds, the same matrix dimensions, and identically distributed query matrices for every query, regardless of the query content.

Combining the above, the simulated transcript is computationally indistinguishable from the real transcript under the LWE assumption. The server learns only the timing of each communication round. It does not learn which partitions or subgroups are queried (protected by LWE), the query vector, or individual distances. The centroid entry computation is performed entirely on the client side using locally stored centroids and produces no communication. □

Experimental Evaluation

Setup

Datasets

We use five datasets which are chosen to cover diverse scales, dimensionalities, and data distributions. SIFT1M and SIFT10M contain 128-dimensional SIFT [36] descriptors extracted from natural images, sharing the same feature space but differing by 10× in scale, which isolates the effect of dataset size on performance. Deep1M contains 96-dimensional CNN features from the Yandex Deep-1B benchmark [3], representing a different feature distribution at the 1M scale. MSMARCO [42] contains 8.8M full 768-dimensional passage vectors from a real-world information retrieval benchmark, representing the setting with high dimensionality and semantic text features. AGNEWS4 contains 769K 1024-dimensional text embeddings from the recent VIBE vector-search benchmark, representing higher-dimensional modern text-embedding models. Accuracy is measured by Recall@10 on SIFT1M, SIFT10M, Deep1M, and AGNEWS, and by MRR@10 on MSMARCO.

7.1.2 Baselines. We compare Amora against two single-server graph-based PANNS systems that follow the per-vertex cost model, Pacmann [56] and Compass [57]. Pacmann is the state-of-the-art single-server PIR-based PANNS scheme, which uses Piano PIR [55] and issues one PIR query per visited vertex during graph traversal. Compass protects the query with ORAM instead of PIR. We also compare against Tiptoe [22], a cluster-based scheme that achieves single-round search via somewhat homomorphic encryption. We further compare against Panther [35], the most recent cluster-based scheme, which co-designs a batched PIR over the clusters with homomorphic distance evaluation and a garbled-circuit top-kk. Amora, Pacmann, and Compass accumulate communication over rounds, whereas Tiptoe and Panther are single-round. We vary Panther’s budget by the number of clusters it accesses. Pacmann’s communication and computation include the amortized cost of each PIR query, because without amortization it would have to rebuild the hint by downloading the entire database. Pacmann’s amortization computation is excluded from latency, since it runs after the result is returned. For Panther we count only the communication that protects query privacy and omit the part that protects database privacy. We report latency only for Amora and Pacmann. The server index of Compass and Panther grows to ≥200\ge200 GB on several datasets and must be held on disk, which severely degrades their performance.

7.1.3 Implementation and environment. Amora is implemented in C++ with OpenMP parallelism. All experiments are conducted on a single machine equipped with an Intel Core i7-10700 CPU @ 2.60 GHz (8 cores / 16 threads) and 64 GB RAM, running Ubuntu 20.04 Server. For PIR operations, we use 32-bit LWE ciphertexts with n=1024n = 1024 and log⁡q=32\log q = 32, which attains λ≈128\lambda\approx128-bit security, following SimplePIR’s parameterization [23]. We build the proximity graph using HNSW [38] with degree M0=32M_0 = 32 and construction parameter efConstruction =200= 200, retaining only the level-0 graph. All vectors are scalar-quantized to 8 bits for compact PIR storage. Graph partitioning is performed using METIS [29] with C=⌊N/d⌋C = \lfloor\sqrt{N/d} \rfloor partitions. For NbrPIR, each neighbor ID is split-encoded with b=7b = 7 bits per part and t=⌈(⌈log⁡2C⌉+⌈log⁡2K⌉)/b⌉t = \lceil(\lceil\log_2 C \rceil+ \lceil\log_2 K \rceil)/b \rceil parts, yielding t=3t = 3 for 1M-scale datasets and t=4t = 4 for 10M-scale datasets. The subgroup size S=⌊N/(M0t)⌋S = \lfloor\sqrt{N/(M_0t)} \rfloor. The default search configuration uses k=10k = 10, ef=50ef = 50, and T=1T = 1. The per-dataset search parameters (Bv,Bn,α,tc)(B_v, B_n, \alpha, t_c) are set to (2, 2, 0.82, 1) for SIFT1M, (2, 2, 0.78, 1) for SIFT10M, (3, 2, 0.50, 1) for Deep1M, (4, 3, 0.65, 1) for MSMARCO, and (2, 3, 0.50, 2) for AGNEWS. We choose the minimum (Bv,Bn)(B_v, B_n) beyond which the accuracy gain is negligible, and the maximum α\alpha whose accuracy loss is negligible. A search issues one VecPIR query for the entry partitions and then TT iterations, each with one NbrPIR and one VecPIR query, so it takes 1+2T1 + 2T communication rounds. Increasing TT accumulates communication in fixed increments and raises accuracy until it flattens. Latency is defined as computation time plus communication delay, where each communication round incurs a 50 ms round-trip time (RTT). All results are reported as the averages (mean±std) over 10 repeated executions.

Overall Comparison

Table 2 presents the overall comparison between Amora and Pacmann. For a fair comparison, we configure Amora and Pacmann with the minimum number of communication rounds that reaches Recall@10 = 0.9 and MRR@10 = 0.24

DatasetSchemeAcc.Preprocessing: GraphPreprocessing: PIRPreprocessing: Comm.Online (per query): Comm.Online (per query): RoundsOnline (per query): Comp.Online (per query): LatencyStorage
SIFT1MAmora0.921±0.005111.8 s6.45 s92.79 MB0.75 MB538.5±1.0 ms0.289±0.001 s92.79 MB
SIFT1MPacmann0.901±0.00678.19 s2.65 s610.35 MB22.89 MB16139.5±18.2 ms0.855±0.005 s212.43 MB
SIFT10MAmora0.920±0.00232.4 min174.95 s285.27 MB3.62 MB7474.0±11.2 ms0.824±0.011 s285.27 MB
SIFT10MPacmann0.903±0.00738.09 min29.01 s5.96 GB87.42 MB24680.9±33.4 ms1.489±0.023 s776.94 MB
Deep1MAmora0.922±0.00386.30 s5.57 s85.80 MB1.24 MB755.4±1.4 ms0.405±0.001 s85.80 MB
Deep1MPacmann0.902±0.00385.39 s1.84 s488.28 MB18.46 MB16116.2±4.5 ms0.849±0.006 s170.55 MB
AGNEWSAmora0.936±0.001549.5 s45.48 s167.23 MB0.89 MB390.7±5.2 ms0.241±0.005 s167.23 MB
AGNEWSPacmann0.911±0.011681 s7.05 s3.03 GB82.88 MB10222.8±11.4 ms0.544±0.002 s1.10 GB
MSMARCOAmora0.253±0.007104.88 min724.03 s476.04 MB7.45 MB51520.8±15.9 ms1.771±0.016 s476.04 MB
MSMARCOPacmann0.240±0.008193.91 min83.48 s26.35 GB404.78 MB241534.9±21.1 ms1.557±0.012 s3.60 GB

Table 2. Overall comparison between Amora and Pacmann. Bold indicates the better result; Acc. denotes accuracy; Comp. and Comm. denote per-query computation and communication.

7.2.1 Online communication. Amora achieves a 93–99% reduction in per-query online communication across all datasets: 93% on Deep1M (1.24 MB vs. 18.46 MB), 96% on SIFT1M (0.75 MB vs. 17.17 MB) and SIFT10M (3.62 MB vs. 87.42 MB), 98% on MSMARCO (7.45 MB vs. 404.78 MB), and 99% on AGNEWS (0.89 MB vs. 82.88 MB). This improvement stems from the amortization effect: each VecPIR query returns distances to all KK vertices in a partition simultaneously, so Amora retrieves thousands of distances per round while Pacmann retrieves information for only one vertex per PIR query. The reduction is more pronounced on datasets with higher dimensionality, which matches the amortization analysis in § 7.1.

7.2.2 Accuracy. Despite using far less communication, Amora exceeds Pacmann’s accuracy on all datasets: Recall@10 rises by 0.017–0.025 on the four recall datasets (e.g., 0.936 ± 0.001 vs. 0.911 ± 0.011 on AGNEWS), and MRR@10 from 0.240 ± 0.008 to 0.253 ± 0.007 on MSMARCO (Table 2). The advantage arises because each amortized VecPIR query returns distances to all vertices in a partition, providing a far richer per-round view than Pacmann’s per-vertex retrieval. This richer view enables jump-style navigation such as TopCandTopCand exploration (§ 6) and thus higher accuracy in fewer rounds.

7.2.3 Preprocessing and storage. Amora’s offline communication (hint matrices + shared random matrices) is 82–98% smaller than Pacmann’s, since Pacmann requires downloading the entire database for Piano’s offline phase. Client-side storage exhibits the same advantage, as Amora stores only the hint and the centroids of all partitions rather than a database replica.

7.2.4 Computation and latency. Amora achieves 45–66% lower latency at matched accuracy on SIFT1M (0.289 ± 0.001 s vs. 0.855 ± 0.005 s), Deep1M (0.405±0.001 s vs. 0.849±0.006 s), SIFT10M (0.824± 0.011 s vs. 1.489 ± 0.023 s), and AGNEWS (0.241 ± 0.005 s vs. 0.544 ± 0.002 s), because the reduction in communication rounds more than compensates for the SimplePIR computation overhead. On MSMARCO, however, Amora’s latency (1.771 s) slightly exceeds Pacmann’s (1.557 s). As §6.2 shows, the computation gap grows with N⋅dN \cdot d, so the crossover between the two schemes is governed by this product. MSMARCO has the largest N⋅dN \cdot d among the five datasets (≈ 6.8×1096.8 \times10^9), while Amora remains faster on AGNEWS (N⋅d≈7.9×108N \cdot d \approx7.9 \times10^8) and SIFT10M (N⋅d≈1.3×109N \cdot d \approx1.3 \times10^9), so the crossover lies between 1.3×1091.3 \times10^9 and 6.8×1096.8 \times10^9. The small latency gap on MSMARCO further suggests that the crossover is close to 6.8×1096.8 \times10^9. The crossover also depends on the network delay. Because Amora saves 19 rounds per query on MSMARCO against a latency gap of 0.21 s, it becomes faster again once the RTT exceeds about 61 ms.

Scalability discussion. Table 2 also reveals how the costs scale. First, they grow sublinearly with NN: from SIFT1M to SIFT10M (10× vectors), per-query communication at the same 7 rounds grows from 1.09 MB to 3.62 MB (3.3×), and hint storage from 92.79 MB to 285.27 MB (3.1×), matching the O(N⋅d)O(\sqrt{N \cdot d}) per-round cost in §6.1.

Second, dimensionality shifts the cost composition without weakening the advantage: at the 1M scale, communication is dominated by the dd-independent NrPIR, so SIFT1M and Deep1M cost almost the same (1.09 MB vs. 1.24 MB at 7 rounds); on MSMARCO (d=768d = 768) and AGNEWS (d=1024d = 1024), the wide dbvecd_{\mathrm{bvec}} columns become dominant (7.45 MB and 0.89 MB per query), yet the reductions over Pacmann are the largest of the five datasets (98% and 99%).

Accuracy vs. Online Communication

Figure 4 shows how accuracy improves as the number of communication rounds increases (top row) and as online communication accumulates (middle row).

Figure 4. Accuracy vs. communication rounds (top), online communication (middle), and latency (bottom) per query.

Amora surpasses both graph-based baselines with far less communication.

Amora surpasses Pacmann’s 24-round accuracy within 7 rounds on SIFT1M (0.956±0.001 vs. 0.947±0.002), SIFT10M (0.920±0.002 vs. 0.903±0.007), and MSMARCO (0.263±0.009 vs. 0.240±0.008), and within 11 rounds on Deep1M (0.946±0.003 vs. 0.935±0.002). On AGNEWS, 3 rounds already match Pacmann’s 16-round result (0.936±0.001 vs. 0.935±0.014). Amora reaches these points with 93%–99% less online communication, for example 1.09 MB vs. 34.34 MB on SIFT1M and 0.89 MB vs. 132.61 MB on AGNEWS. The gap is not tied to one operating point. In the middle row of Figure 4, Amora’s most expensive setting still costs less than Pacmann’s cheapest one on every dataset, 2.08 MB vs. 5.72 MB on SIFT1M and 4.20 MB vs. 49.73 MB on AGNEWS. This gap stems from the amortization effect: each VecPIR query returns distances to all KK vertices in a partition simultaneously, providing a much denser view of the search space per round than Pacmann’s per-vertex retrieval. At matched accuracy, Amora saves 77%–98% of Compass’s online communication, for example 3.62 MB vs. 15.92 MB on SIFT10M and 0.89 MB vs. 44.90 MB on AGNEWS. Compass also follows the per-vertex cost model, and Ring ORAM pads every bucket it touches with dummy blocks, so much of each transfer carries no useful data. Because each block holds a full vector, the saving grows with the dimension at a comparable scale, from 86% on Deep1M (d=96d=96) to 93% on SIFT1M (d=128d=128) and 98% on AGNEWS (d=1024d=1024), while the two larger datasets fall to SIFT10M’s 77% and MSMARCO’s 86%.

Convergence speed is related to scale and dimensionality. SIFT1M (d=128d = 128) reaches 0.921 ± 0.005 at 5 rounds and 0.967 ± 0.002 at 11 rounds, while Deep1M (d=96d = 96) starts slower (0.871 ± 0.003 at 5 rounds) and reaches 0.946 ± 0.003 at 11 rounds. Scaling from SIFT1M to SIFT10M (10× more vectors, same d=128d = 128) slows convergence to 0.871 ± 0.004 at 5 rounds, as the larger graph requires more partitions to be explored. In fact, scale and dimensionality act through the partition count C∗=N/dC^* = \sqrt{N/d} (Eq. (5)): each VecPIR query reveals one partition, so a smaller NN or a larger dd means fewer partitions and faster convergence. AGNEWS converges fastest (C∗=27C^* = 27, 0.936 ± 0.001 at 3 rounds), while Deep1M (C∗=102C^* = 102) and SIFT10M (C∗=279C^* = 279) are the slowest (0.733 ± 0.001 and 0.744 ± 0.004 at the same budget). MSMARCO (C∗=107C^* = 107) also gains little after 7 rounds (0.263 ± 0.009 at 7 rounds vs. 0.264 ± 0.006 at 11).

Iterative graph traversal outperforms single-round retrieval. Tiptoe’s single-round cluster-based approach achieves substantially lower accuracy on all five datasets: 0.39 on SIFT1M, 0.48 on Deep1M, 0.40 on SIFT10M, 0.67 on AGNEWS, and 0.17 on MSMARCO, all below Amora at only 3 rounds. We enlarge Panther’s communication budget by accessing more clusters to achieve a higher accuracy. On the four recall datasets, Amora saves 97%–99% of the communication and improves accuracy, e.g., 0.75 MB vs. 26.2 MB at 0.921 ± 0.005 vs. 0.907 on SIFT1M, and 0.89 MB vs. 120.5 MB at 0.936 ± 0.001 vs. 0.910 on AGNEWS. On MSMARCO, Amora saves 97% of the communication (7.45 MB vs. 253.3 MB) and improves MRR@10 by 0.006 (0.253 ± 0.007 vs. 0.247). The reason is that cluster-based retrieval scans only a small number of nearby clusters without iterative refinement across partition boundaries, so nearest neighbors residing in other partitions are ignored.

Accuracy vs. Latency

The bottom row of Figure 4 compares the accuracy-latency tradeoff by varying the number of rounds.

Fewer rounds translate into lower latency. Figure 4 shows that Amora’s accuracy results flatten early: by 0.41 s on SIFT1M, 0.52 s on Deep1M, 1.06 s on SIFT10M, and 0.72 s on AGNEWS, the remaining accuracy gain is within about 0.02. At 0.85, 0.84, 1.01, and 0.54 s, Pacmann has reached only 0.899 ± 0.006, 0.899 ± 0.004, 0.857 ± 0.007, and 0.911 ± 0.009, versus Amora’s 0.956 ± 0.001, 0.939 ± 0.003, 0.942 ± 0.002, and 0.977 ± 0.001 at the latencies above. The latency standard deviation stays below 0.05 s at all these points. On these datasets, computation accounts for 13%, 14%, 58%, and 38% of Amora’s per-query latency, and for merely 6%, 6%, 19%, and 8% of Pacmann’s; the remainder is network round-trip delay. Latency is therefore governed by the round count, even on SIFT10M where computation takes over half of Amora’s latency, and Amora’s fewer rounds translate directly into the 45–66% latency reductions.

Computation dominates latency on MSMARCO. MSMARCO’s product of scale and dimensionality is the largest among the five datasets (N⋅d≈6.8×109N \cdot d \approx6.8 \times10^9), making each matrix multiplication expensive: server computation reaches 1.521 ± 0.016 s at 5 rounds, accounting for 86% of total latency, so each additional iteration costs Amora 0.62–0.75 s of computation, while Pacmann spends only about 0.06 s per round, mostly on the RTT. Even so, Amora matches Pacmann at the low-latency end (≈ 1.05 s) and reaches higher accuracy (0.253 ± 0.007 vs. 0.240 ± 0.008).

Ablation Study

Optimization techniques. We ablate three key optimization techniques described in §5.3 to quantify their individual contributions. For each ablation, we disable one technique (denoted "w/o") while keeping all others enabled. Figure 5 reports accuracy against latency as the iteration count TT grows.

Optimization techniques ablation study

Figure 5. Optimization techniques ablation study.

Batch PIR reduces latency. Without batching, each PIR query occupies its own communication round, so one search iteration costs Bv+BnB_v + B_n rounds instead of two. At the operating points in Table 2, the unbatched search needs 9 rounds on SIFT1M, 13 on SIFT10M, 16 on Deep1M, 6 on AGNEWS, and 15 on MSMARCO, adding proportionally more RTT delays. Each unbatched round also requires an independent full database scan, whereas batching amortizes the scan across multiple queries in a single wider matrix multiplication and consumes less memory bandwidth. Across all datasets and round counts, disabling batching raises the computation by 1.4–2.0×, and at the operating points it grows from 0.039 s to 0.059 s on SIFT1M and from 1.588 s to 3.022 s on MSMARCO. Figure 5 shows that the "w/o batch" results track Amora in accuracy but are shifted right along the latency axis. At matched accuracy, the latency rises by 1.6–2.3×, for example from 0.29 s to 0.51 s on SIFT1M and from 1.84 s to 3.77 s on MSMARCO. All standard deviations of computation and latency here are below 0.02 s.

TopCand exploration improves accuracy under a tight budget. Disabling TopCand exploration forces the search to follow graph edges only. At the operating points in Table 2, Recall@10 drops by 0.034 ± 0.004 on Deep1M, 0.018 ± 0.004 on SIFT10M, and 0.016 ± 0.001 on AGNEWS, and MRR@10 drops by 0.016 ± 0.007 on MSMARCO, while on SIFT1M the gap stays within 0.007 at every round count. TopCand exploration seeds the candidate heap with each partition’s closest vertices, so the search reaches promising regions that the candidates’ edges cannot within the round budget.

Centroid-based pruning improves accuracy under a tight budget. Disabling centroid-based pruning reverts to a first-come-first-served ordering with no pruning. At the operating points in Table 2, accuracy falls on all five datasets: Recall@10 by 0.118 ± 0.006 on AGNEWS, 0.088 ± 0.002 on SIFT10M, 0.048 ± 0.002 on SIFT1M, and 0.036 ± 0.004 on Deep1M, and MRR@10 by 0.014 ± 0.011 on MSMARCO. Each round admits only BvB_v partitions, and centroid-based pruning directs this limited budget toward the closest partitions rather than toward whichever ones are discovered first. The gain is therefore largest under Amora’s tight round budgets.

Dual-PIR split layout. We validate the necessity of the dual-PIR split against a combined layout that stores the vector and the neighbor list of each vertex in the same column (Figure 1). We build the combined database with its own optimal column capacity Sc=N/(d+M0t)S_c = \sqrt{N/(d + M_0t)}, and we drive it with the same centroid entry and graph navigation as Amora. We compare the two layouts under two conditions. First, we give the combined layout the same online communication budget that the split layout spends at its operating point in Table 2. Within this budget, the accuracy of the combined layout collapses to 0.004 on SIFT1M, 0.044 on SIFT10M, 0.027 on Deep1M, and 0 on MSMARCO, and one combined query on AGNEWS already exceeds the whole budget. Second, we measure the cost for the combined layout to reach the same accuracy as the split layout, and Figure 6 reports the results. The combined layout pays 25× to 161× more online communication and 58× to 286× more computation. The gap comes from the heavy per-vertex payload. A combined column carries d+M0td + M_0t values per vertex, so one query returns only a few vertices and the search issues far more queries. The dual-PIR split is therefore a necessary design.

Figure 6. Combined layout vs. dual-PIR split layout.

Parameter Sensitivity Study

Result-heap capacity efef

Figure 7 sweeps efef from k=10k = 10 to 300 on all five datasets at their operating points in Table 2. In Figure 7(a), accuracy rises slightly from ef=kef = k and then stays flat. The largest gain is on SIFT10M, where Recall@10 grows from 0.895±0.002 at ef=10ef = 10 to 0.920±0.002 at ef=50ef = 50. Over the same range, the gain is 0.012±0.006 on MSMARCO, 0.009±0.005 on Deep1M, 0.004±0.001 on SIFT1M, and below 0.001 on AGNEWS. Beyond ef=50ef = 50 and up to ef=300ef = 300, no dataset moves by more than 0.007, which is at the level of the standard deviation across the five repeated runs (0.001–0.008). In Figure 7(b), the communication is exactly constant on each dataset (0.76, 3.62, 1.24, 0.89, and 7.45 MB) and the latency stays flat, because the number of PIR queries is fixed by TT, BvB_v, and BnB_n. The accuracy trend follows from the role of efef as the admission threshold of the result heap. When efef is close to kk, the tight threshold rejects some promising candidates, and the NbrPIR batch is padded with random subgroups, so part of the budget is wasted and accuracy drops slightly. Once efef is large enough for the closest candidates to fill BnB_n in every round, a larger efef only admits distant vertices that the search never pops, so the explored candidates and the accuracy stay the same. The number of popped and expanded candidate vertices confirms this. From ef=10ef = 10 to 30 the count rises from 122 to 131 on SIFT1M, 180 to 201 on SIFT10M, 179 to 203 on Deep1M, and 199 to 268 on MSMARCO, and then changes by less than 4% up to ef=300ef = 300. On AGNEWS it stays at 62 throughout, so the accuracy does not move. We therefore set ef=50ef = 50, safely inside the flat range.

Sensitivity of the result-heap capacity $ef$

Figure 7. Sensitivity of the result-heap capacity efef.

TopCandTopCand count tct_c

Figure 8 sweeps tc∈{1,2,4,8}t_c \in\{1, 2, 4, 8\} on all five datasets at their operating points in Table 2, with all other parameters fixed. The communication is identical across the sweep, because the number of PIR queries is fixed by TT, BvB_v, and BnB_n. Therefore, tct_c affects only the accuracy. On SIFT1M, SIFT10M, and Deep1M, the accuracy declines as tct_c grows, with Recall@10 on SIFT1M dropping from 0.921±0.005 at tc=1t_c = 1 to 0.866±0.001 at tc=8t_c = 8. On AGNEWS, tc=2t_c = 2 performs best (0.936±0.001 vs. 0.919±0.001 at tc=1t_c = 1), and on MSMARCO tct_c has little effect on the MRR@10, which stays between 0.239 and 0.247. Competition inside the candidate heap explains why a large tct_c degrades the accuracy. The TopCandTopCand seeds and the graph neighbors share the heap, and each iteration pops only BnB_n candidates for the NbrPIR batch. Seeds from the same partition lie close to one another and bring little new information, so a large tct_c fills the limited slots with redundant seeds and displaces the edge expansion around the best candidates. On AGNEWS, the single-iteration budget (T=1T = 1) limits how far the edge expansion can proceed, so a second seed broadens the exploration. We therefore set tc=2t_c = 2 on AGNEWS and tc=1t_c = 1 on the other four datasets.

Sensitivity of the $TopCand$ count $t_c$

Figure 8. Sensitivity of the TopCandTopCand count tct_c.

Partition count CC

Figure 9 sweeps the partition count over {C∗/4,C∗/2,C∗,2C∗,4C∗}\{C^{*}/4, C^{*}/2, C^{*}, 2C^{*}, 4C^{*}\} on all five datasets, where C∗=⌊N/d⌋C^{*} = \lfloor\sqrt{N/d}\rfloor is the default from Eq. (5). Each level uses a rebuilt index and a unified search protocol (T=3T = 3, tc=1t_c = 1). Figure 9(a) shows that the communication reaches its minimum at C∗C^{*} on every dataset, and both C∗/4C^{*}/4 and 4C∗4C^{*} pay 1.6× to 1.9× the communication of C∗C^{*}. Figure 9(b) shows that increasing CC beyond C∗C^{*} lowers the accuracy on every dataset, from C∗C^{*} to 4C∗4C^{*} by 0.120 on Deep1M, 0.103 on SIFT10M, 0.067 on SIFT1M, and 0.022 on both AGNEWS and MSMARCO, because smaller partitions let one VecPIR query return fewer distances. Decreasing CC below C∗C^{*} helps only on some datasets: at C∗/4C^{*}/4 the accuracy rises on SIFT10M (+0.054), MSMARCO (+0.009), and SIFT1M (+0.002), but falls on Deep1M (−0.009) and AGNEWS (−0.005). We therefore use C∗C^{*} on all datasets, since it minimizes the communication and achieves a high level of accuracy.

Sensitivity of the partition count $C$

Figure 9. Sensitivity of the partition count CC.

Conclusion

We presented Amora, a communication-efficient PANNS system with high accuracy. The core is a dual-PIR split layout built on SimplePIR and graph partitioning: VecPIR retrieves distances to all vertices in a partition at once, and NbrPIR retrieves neighbor lists at subgroup granularity, maximizing the information retrieved per PIR query. Based on the dual-PIR, batch PIR merges concurrent queries to reduce communication rounds and the number of database scans, centroid-based pruning directs the limited PIR budget toward the most promising regions, and TopCand exploration seeds jump-style graph navigation from each retrieved partition. Experiments on five datasets of different scales and dimensionalities show that Amora reduces online communication by 93–99% over the competitors while achieving higher search accuracy.

References

References

  1. [1]Sebastian Angel, Hao Chen, Kim Laine, and Srinath T. V. Setty. 2018. PIR with Compressed Queries and Mortarized Query Processing. In IEEE Symposium on Security and Privacy. IEEE Computer Society, 962–979.DOI
  2. [2]Hilal Asi, Fabian Boemer, Nicholas Genise, Muhammad Haris Mughees, Tabitha Ogilvie, Rehan Rishi, Guy N. Rothblum, Kunal Talwar, Karl Tarre, Ruiyu Zhu, and Marco Zuliani. 2024. Scalable Private Search with Wally. CoRR abs/2406.06761 (2024).
  3. [3]Artem Babenko and Victor S. Lempitsky. 2016. Efficient Indexing of Billion-Scale Datasets of Deep Descriptors. In CVPR. IEEE Computer Society, 2055–2063.
  4. [4]Elette Boyle, Niv Gilboa, and Yuval Ishai. 2016. Function Secret Sharing: Improvements and Extensions. In CCS. ACM, 1292–1303.
  5. [5]Zvika Brakerski, Craig Gentry, and Vinod Vaikuntanathan. 2014. (Leveled) Fully Homomorphic Encryption without Bootstrapping. ACM Trans. Comput. Theory 6, 3 (2014), 13:1–13:36.
  6. [6]Hao Chen, Ilaria Chillotti, Yihe Dong, Oxana Poburinnaya, Ilya P. Razenshteyn, and M. Sadegh Riazi. 2020. SANNS: Scaling Up Secure Approximate k-Nearest Neighbors Search. In USENIX Security Symposium. USENIX Association, 2111–2128.arxiv.org/abs/1904.02033
  7. [7]Qi Chen, Bing Zhao, Haidong Wang, Mingqin Li, Chuanjie Liu, Zengzhong Li, Mao Yang, and Jingdong Wang. 2021. SPANN: Highly-efficient Billion-scale Approximate Nearest Neighborhood Search. In NeurIPS. 5199–5212.DOI
  8. [8]Xuan Chen, Shuai Cui, Joseph K. Liu, Shifeng Sun, and Shangqi Lai. 2025. Pri-vANN: Practical and Efficient Private Approximate Nearest Neighbor Search. In TrustCom. IEEE, 1218–1226.
  9. [9]Benny Chor, Eyal Kushilevitz, Oded Goldreich, and Madhu Sudan. 1998. Private Information Retrieval. J. ACM 45, 6 (1998), 965–981.
  10. [10]Victor Costan and Srinivas Devadas. 2016. Intel SGX Explained. IACR Cryptol. ePrint Arch. 2016 (2016), 86.
  11. [11]Mayur Datar, Nicole Immorlica, Piotr Indyk, and Vahab S. Mirrokni. 2004. Locality-sensitive hashing scheme based on p-stable distributions. In SCG. ACM, 253–262.DOI
  12. [12]Fangming Dong, Pinghui Wang, Yuance Wang, Chen Zhang, and Lizhen Cui. 2025. Fast Private Retrieval on Key-Value Store with Multiple Values per Key. In ICDE. IEEE, 2698–2711.
  13. [13]Matthijs Douze, Alexandr Guzhva, Chengqi Deng, Jeff Johnson, Gergely Szilvasy, Pierre-Emmanuel Mazare, Maria Lomeli, Lucas Hosseini, and Hervé Jégou. 2026. The Faiss Library. IEEE Trans. Big Data 12, 2 (2026), 346–361.
  14. [14]Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam D. Smith. 2006. Calibrating Noise to Sensitivity in Private Data Analysis. In TCC. Springer, 265–284.
  15. [15]Cong Fu, Chao Xiang, Changxu Wang, and Deng Cai. 2019. Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graph. Proc. VLDB Endow. 12, 5 (2019), 461–474.arxiv.org/abs/1707.00143
  16. [16]Craig Gentry. 2009. Fully homomorphic encryption using ideal lattices. In STOC. ACM, 169–178.DOI
  17. [17]Aristides Gionis, Piotr Indyk, and Rajeev Motwani. 1999. Similarity Search in High Dimensions via Hashing. In VLDB. Morgan Kaufmann, 518–529.
  18. [18]Oded Goldreich and Rafail Ostrovsky. 1996. Software Protection and Simulation on Oblivious RAMs. J. ACM 43, 3 (1996), 431–473.
  19. [19]Mihajlo Grover and Haibin Cheng. 2018. Real-time Personalization using Embeddings for Search Ranking at Airbnb. In KDD. ACM, 311–320.
  20. [20]Daniel Günther, Maurice Heymann, Benny Pinkas, and Thomas Schneider. 2022. GPU-accelerated PIR with Client-Independent Preprocessing for Large-Scale Applications. In USENIX Security Symposium. USENIX Association, 1759–1776.
  21. [21]Ruiqi Guo, Philip Sun, Erik Lindgren, Quan Geng, David Simcha, Felix Chern, and Sanjiv Kumar. 2020. Accelerating Large-Scale Inference with Anisotropic Vector Quantization. In ICML (Proceedings of Machine Learning Research). PMLR, 3887–3896.
  22. [22]Alexandra Henzinger, Emma Dauterman, Henry Corrigan-Gibbs, and Nickolai Zeldovich. 2023. Private Web Search with Tiptoe. In SOSP. ACM, 396–416.DOI
  23. [23]Alexandra Henzinger, Matthew M. Hong, Henry Corrigan-Gibbs, Sarah Meiklejohn, and Vinod Vaikuntanathan. 2023. One Server for the Price of Two: Simple and Fast Single-Server Private Information Retrieval. In USENIX Security Symposium. USENIX Association, 3889–3905.
  24. [24]Piotr Indyk and Rajeev Motwani. 1998. Approximate Nearest Neighbors: Towards Removing the Curse of Dimensionality. In STOC. ACM, 604–613.
  25. [25]Masajiro Iwasaki and Daisuke Miyazaki. 2018. Optimization of Indexing Based on k-Nearest Neighbor Graph for Proximity Search in High-dimensional Data. CoRR abs/1810.07355 (2018).arxiv.org/abs/1810.07355
  26. [26]Hervé Jégou, Matthijs Douze, and Cordelia Schmid. 2011. Product Quantization for Nearest Neighbor Search. IEEE Trans. Pattern Anal. Mach. Intell. 33, 1 (2011), 117–128.DOI
  27. [27]Jeff Johnson, Matthijs Douze, and Hervé Jégou. 2021. Billion-Scale Similarity Search with GPUs. IEEE Trans. Big Data 7, 3 (2021), 535–547.
  28. [28]Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense Passage Retrieval for Open-Domain Question Answering. In EMNLP. Association for Computational Linguistics, 6769–6781.arxiv.org/abs/2004.04906
  29. [29]George Karypis and Vipin Kumar. 1998. A Fast and High Quality Multilevel Scheme for Partitioning Irregular Graphs. SIAM J. Sci. Comput. 20, 1 (1998), 359–392.DOI
  30. [30]Zili Kou, Sharad Sinha, Wenjian He, and Wei Zhang. 2023. Cache Side-channel Attacks and Defenses of the Sliding Window Algorithm in TEEs. In DATE. IEEE, 1–6.
  31. [31]Eyal Kushilevitz and Rafail Ostrovsky. 1997. Replication is NOT Needed: SING- GLE Database, Computationally-Private Information Retrieval. In FOCS. IEEE Computer Society, 364–373.
  32. [32]Fan Lang, Wei Wang, Lingxia Meng, Jingqiang Lin, Qiongxiao Wang, and Linli Lu. 2022. MoLE: Mitigation of Side-channel Attacks against SGX via Dynamic Data Location Escape. In ACSAC. ACM, 978–988.DOI
  33. [33]Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela. 2020. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In NeurIPS.arxiv.org/abs/2005.11401
  34. [34]Baiyu Li, Daniele Micciancio, Mariana Raykova, and Mark Schultz. 2024. Hintless Single-Server Private Information Retrieval. In CRYPTO. Springer, 183–217.DOI
  35. [35]Jingyu Li, Zhichong Huang, Min Zhang, Cheng Hong, Jian Liu, Tao Wei, and Wenguang Chen. 2025. Panther: Private Approximate Nearest Neighbor Search in the Single Server Setting. In CCS. ACM, 365–379.
  36. [36]David G. Lowe. 2004. Distinctive Image Features from Scale-Invariant Keypoints. Int. J. Comput. Vis. 60, 2 (2004), 91–110.DOI
  37. [37]Yury Malkov, Alexander Ponamarenko, Andrey Logvinov, and Vladimir Krylov. 2014. Approximate nearest neighbor algorithm based on navigable small world graphs. Inf. Syst. 45 (2014), 61–68.
  38. [38]Yury A. Malkov and Dmitry A. Yashunin. 2020. Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs. IEEE Trans. Pattern Anal. Mach. Intell. 42, 4 (2020), 824–836.
  39. [39]Samir Joram Menon and David J. Wu. 2024. YPIR: High-Throughput Single-Server PIR with Silent Preprocessing. In USENIX Security Symposium. USENIX Association, 1–19.
  40. [40]Tomáš Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Efficient Estimation of Word Representations in Vector Space. In ICLR (Workshop Poster).
  41. [41]Nimish Mishra, Kislav Arya, Sarani Bhattacharya, Paritosh Saxena, and Debdeep Mukhopadhyay. 2025. "OOPS!": Out-Of-Band Remote Power Side-Channel Attacks on Intel SGX and TDX. In DAC. IEEE, 1–7.
  42. [42]Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. 2016. MS MARCO: A Human Generated MAchine Reading Comprehension Dataset. In CoCo@NIPS (CEUR Workshop Proceedings). CEUR-WS.org.
  43. [43]Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. Glove: Global Vectors for Word Representation. In EMNLP. ACL, 1532–1543.DOI
  44. [44]Oded Regev. 2009. On lattices, learning with errors, random linear codes, and cryptography. J. ACM 56, 6 (2009), 34:1–34:40.
  45. [45]Ling Ren, Christopher W. Fletcher, Albert Kwon, Emil Stefanov, Elaine Shi, Marten van Dijk, and Srinivas Devadas. 2015. Constants Count: Practical Improvements to Oblivious RAM. In USENIX Security Symposium. USENIX Association, 415–430.
  46. [46]Sacha Servan-Schreiber, Simon Langowski, and Srinivas Devadas. 2022. Private Approximate Nearest Neighbor Search with Sublinear Communication. In SP. IEEE, 911–929.
  47. [47]Adi Shamir. 1979. How to Share a Secret. Commun. ACM 22, 11 (1979), 612–613.
  48. [48]Jie Song, Zhen Xu, Yan Zhang, Pengwei Zhan, Mingxuan Li, Shuai Ma, and Ru Xie. 2026. BKPIR: Keyword PIR for Private Boolean Retrieval. In NDSS. The Internet Society, 1–18.
  49. [49]Sheng Song, Lin Liu, Rongmao Chen, Wei Peng, and Yi Wang. 2023. Secure Approximate Nearest Neighbor Search with Locality-Sensitive Hashing. In ESORICS. Springer, 411–430.
  50. [50]Emil Stefanov, Marten van Dijk, Elaine Shi, T.-H. Hubert Chan, Christopher W. Fletcher, Ling Ren, Xiangyao Yu, and Srinivas Devadas. 2018. Path ORAM: An Extremely Simple Oblivious RAM Protocol. J. ACM 65, 4 (2018), 18:1–18:26.
  51. [51]Suhas Jayaram Subramanya, Devvrit Harsha Vardhan Simhadri, Ravishankar Krishnaswamy, and Rohan Kadekodi. 2019. Rand-NSG: Fast Accurate Billion-point Nearest Neighbor Search on a Single Node. In NeurIPS. 13748–13758.
  52. [52]Jianguo Wang, Xiaomeng Yi, Rentong Guo, Hai Jin, Peng Xu, Shengjun Li, Xiangyu Wang, Xiaohou Guo, Chengming Li, Xiaoahi Xu, Kun Yu, Yuxing Yuan, Yinghao Zou, Jiquan Long, Yudong Cai, Zhenxiang Li, Zhifeng Zhang, Yihua Mo, Jun Gu, Ruiyi Jiang, Yi Wei, and Charles Xie. 2021. Milvus: A Purpose-Built Vector Data Management System. In SIGMOD Conference. ACM, 2614–2627.DOI
  53. [53]Andrew Chi-Chih Yao. 1986. How to Generate and Exchange Secrets (Extended Abstract). In FOCS. IEEE Computer Society, 162–167.
  54. [54]Jiaoyi Zhang, Liqiang Peng, Mo Sha, Weiran Liu, Xiang Li, Sheng Wang, Feifei Li, Mingyu Gao, and Huancheng Zhang. 2025. Femur: A Flexible Framework for Fast and Secure Querying from Public Key-Value Store. Proc. ACM Manag. Data 3, 3 (2025), 162:1–162:29.
  55. [55]Mingxun Zhou, Andrew Park, Wenting Zheng, and Elaine Shi. 2024. Piano: Extremely Simple, Single-Server PIR with Sublinear Server Computation. In SP. IEEE, 4296–4314.
  56. [56]Mingxun Zhou, Elaine Shi, and Giulia Fanti. 2025. Pacmann: Efficient Private Approximate Nearest Neighbor Search. In ICLR. OpenReview.net, 1–21.
  57. [57]Jinhao Zhu, Liana Patel, Matei Zaharia, and Raluca Ada Popa. 2025. Compass: Encrypted Semantic Search with High Accuracy. In OSDI. USENIX Association, 915–938.

Paper details

vlnc:W_g8f2nj63
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents