NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PEPSI: Practically Efficient Private Set Intersection in the Unbalanced Setting

Rasoul Akhavan Mahdavi, Nils Lukas, Faezeh Ebrahimianghazani, Thomas Humphries, Bailey Kacsmar, John A. Premkumar, Xinda Li, Simon Oya, Ehsan Amjadian, Florian Kerschbaum

TL;DR

The authors introduce PEPSI (Practically Efficient Private Set Intersection), a non-interactive circuit PSI protocol tailored for highly unbalanced settings where a resource-constrained client queries a large server database. By combining constant-weight equality operators, permutation-based hashing, and Cuckoo hashing over homomorphic encryption, PEPSI executes non-interactive circuit PSI over four orders of magnitude faster than prior state-of-the-art non-interactive schemes while cutting communication down to under 5 MB.

What Problem Does This Paper Address?

Private Set Intersection (PSI) allows two parties to identify shared items without exposing their unshared data. In many real-world scenarios—such as checking for compromised passwords or contact tracing—the setting is unbalanced: a client holds a small set ($m$ items) while the server holds a massive database ($n$ items, where $m \ll n$). Furthermore, many applications require circuit PSI, which computes an arbitrary function over the intersection (e.g., cardinality, sum of associated values, or ad-conversion metrics) rather than revealing the raw intersecting elements.

Existing unbalanced circuit PSI methods face major drawbacks:

  1. High communication: Interactive protocols (often based on two-party computation) incur communication proportional to the server’s set size ($O(n)$).
  2. Computational bottlenecks: Existing non-interactive homomorphic encryption (HE) solutions that evaluate circuit PSI (specifically DiPSI) are prohibitively slow, taking hundreds of minutes for moderate workloads.
  3. Rigid functionality: Specialized fast protocols (e.g., Ion et al.) support only specific hardcoded functions (like intersection-sum with cardinality leakage) and still require multiple communication rounds.

Methods

PEPSI operates in a single round (the client sends an encrypted request; the server computes homomorphically and returns an encrypted response) using the Fan-Vercauteren (FV) lattice-based HE scheme:

  • Hashing to Bins & PBH: The client maps items into bins using stash-less Cuckoo hashing, while the server maps items into bins with standard hashing. They apply permutation-based hashing (PBH) to trim item bitlengths from $\lambda$ to an effective bitlength $\bar{\lambda} = \lambda - c$.
  • Constant-Weight Encoding: Instead of traditional bitwise arithmetic comparison, elements are encoded into constant-weight binary codewords of length $\ell$ with fixed Hamming weight $h$.
  • Arithmetic Constant-Weight Equality Operator: Equality testing is mapped to a low-multiplicative-depth polynomial: $$\text{ARITH-CW-EQ}(x, y) = \frac{1}{h!} \prod_{i=0}^{h-1} \left(\sum_{j} x_j y_j - i\right)$$ Crucially, its multiplicative depth is $1 + \log_2 h$ rather than depending on the bitlength $\lambda$.

  • SIMD Batching: Bin operations are packed across the $N$ SIMD slots of FV ciphertexts, allowing the server to compare entire batches of bins in parallel.

  • Extensions: The framework easily adapts to Labelled PSI, PSI-Sum, PSI-Cardinality, PSI-Inner-Product, and an iterative query mechanism termed PSI-$k^{\text{th}}$-Match.

Datasets

The evaluation does not rely on static machine learning datasets, but rather synthetic benchmark workloads typical for PSI evaluation:

  • 32-bit Elements: Evaluated for client sizes $m \in \{1024, 2048, 4096\}$ against server sizes $n \in \{2^{20}, 2^{24}, 2^{28}\}$ (representative of private contact discovery / phone numbers).
  • Large Elements (Arbitrary Bitlength): Evaluated by hashing arbitrary-length strings (e.g., passwords or filenames) down to $\lambda$ bits while theoretically bounding collision error rates to $\alpha \le 2^{-40}$.
  • Labelled PSI Scenarios: Evaluated using 32-byte and 288-byte associated payloads.

Key Insights and Ideas

  • Decoupling Multiplicative Depth from Bitlength: Traditional equality testing in HE scales multiplicative depth logarithmically with element length ($\log_2 \lambda$). Constant-weight encoding decouples depth from item size, reducing it to a function purely of Hamming weight ($1 + \log_2 h$).
  • Co-Optimizing $h$ for Tradeoffs: The choice of Hamming weight $h$ creates an explicit tradeoff: higher $h$ shrinks code length $\ell$ (reducing ciphertext count and communication) but increases circuit depth and ciphertext modulus size $q$ (increasing computational cost per operation). The authors establish clear empirical sweet spots (e.g., $h=8$).
  • No Client Overhead for Circuit Functions: Because the server computes a clear binary indicator homomorphically before evaluating downstream functions, arbitrary aggregation functions can be executed server-side without extra interaction or communication overhead for the client.

Key Results

  • Comparison to DiPSI: For $m = 1024$ and $n = 2^{20}$ (32-bit elements), DiPSI takes ~600 minutes and 200 MB communication. PEPSI finishes in under 1 second (0.83s online time) with 4.1 MB request / 0.11 MB response communication—a $>4$ orders of magnitude speedup and a 90%+ reduction in communication.
  • Comparison to Ion et al. (PSI-Sum): For $m = 1024$ and $n = 2^{24}$, Ion et al. takes 3,153 seconds and transfers 1,240 MB. PEPSI completes the online evaluation in 75.8 seconds with only 33.7 MB communication—over 20× faster (and over 100× faster in pure server processing) without leaking intersection cardinality.
  • Comparison to APSI (Cong et al.): In labelled PSI, while Cong et al. has slightly smaller communication for small labels, its runtime scales poorly with larger payloads. For 288-byte labels at $n = 2^{22}$, Cong et al. requires ~3,500s offline, whereas PEPSI finishes offline prep in 0.45s and online execution in 21.5s.

Limitations and Future Work

  • Security Model: The protocol is formally analyzed under the semi-honest model. While the paper outlines paths toward malicious security (e.g., verifiable HE and input zero-knowledge proofs), a fully realized malicious-secure protocol is left to future work.
  • Higher Communication than Arithmetic-Only PSI: Compared to pure unbalanced PSI protocols like APSI (which output arithmetic shares and cannot natively evaluate arbitrary circuits), PEPSI transfers more data because it must communicate constant-weight encoded ciphertexts.
  • Noise Flooding: To guarantee complete circuit privacy, noise flooding is theoretically required; however, it was omitted in the experimental implementation because standard libraries (Microsoft SEAL) do not natively implement it (though performance impact is expected to be minimal).

Summary updated

BibTeX
@inproceedings{mahdavi2024pepsi,
  author = {Rasoul Akhavan Mahdavi and Nils Lukas and Faezeh Ebrahimianghazani and Thomas Humphries and Bailey Kacsmar and John A. Premkumar and Xinda Li and Simon Oya and Ehsan Amjadian and Florian Kerschbaum},
  title = {{PEPSI: Practically Efficient Private Set Intersection in the Unbalanced Setting}},
  booktitle = {USENIX Security},
  year = {2024},
  url = {https://openreview.net/forum?id=ekqvmUogoZ},
}
Figure