A Framework of Private Set Intersection Protocols

Ziyuan Liang, Weiran Liu, Fan Zhang, Bingsheng Zhang, Jian Liu, Lei Zhang, Kui Ren

Abstract

Private Set Intersection (PSI) allows two parties to compute the intersection of their private datasets without revealing any additional information. Despite decades of research, the field remains fragmented due to inconsistent implementations and benchmarking environments. This paper introduces PsiBench, a unified "Map-and-Compare" framework and a high-performance Java library (mpc4j) designed to standardize PSI evaluation. By implementing dozens of state-of-the-art protocols, we provide an impartial benchmark across various network conditions, identifying the most effective cryptographic primitives for real-world applications.

Introduction

Private Set Intersection (PSI) is a fundamental cryptographic operation enabling two parties to find common elements in their datasets without compromising privacy. While the field has seen significant growth over the last 30 years, it has become a fragmented landscape. Researchers often face a "re-implementation tax," spending months coding previous works to compare them against new ideas. Furthermore, varying programming languages, hardware, and network settings make it difficult to discern whether a protocol's performance stems from algorithmic innovation or implementation optimization. PsiBench addresses these issues by providing a unified framework and a standardized, open-source benchmarking suite.

The Map-and-Compare Framework

To generalize existing PSI constructions, we propose the Map-and-Compare framework, which divides protocols into two primary phases:

  1. Map Phase: Parties interact to map their private sets into intermediate objects (e.g., pseudorandom tokens). This phase is bidirectional and ensures the receiver only learns tokens corresponding to their own elements.
  2. Compare Phase: A unidirectional flow where the sender transmits their tokens—often compressed via filters—to the receiver, who then identifies the intersection.

Taxonomy of PSI Protocols

The framework categorizes protocols into three main styles based on their underlying cryptographic primitives:

  • cwPRF (Commutative weak PRF): A classic approach where elements are encrypted twice (e.g., DH-PSI).
  • OPRF (Oblivious Pseudorandom Function): The current industry standard, further divided into single-point (using Cuckoo hashing) and multi-point (using newer primitives like VOLE and OKVS).
  • Sharing-based: Protocols that output secret shares of the intersection, typically used for "Circuit-PSI" where further computation is required on the result.
Table 1: Taxonomy and comparison of PSI protocol styles within the Map-and-Compare framework.

Experimental Evaluation

We evaluated the protocols using synthetic datasets of 128-bit elements across balanced (both parties with $2^{12}$ to $2^{20}$ elements) and unbalanced (e.g., mobile client vs. server) scenarios. Tests were conducted in simulated LAN (10Gbps, 0.02ms latency) and WAN (1Gbps to 10Mbps, 40ms to 80ms latency) environments.

Key Insights

  • Multi-point OPRF Efficiency: The combination of Vector Oblivious Linear Evaluation (VOLE) and Oblivious Key-Value Stores (OKVS) represents the current frontier, offering a superior balance between computation and communication compared to older Cuckoo-hash-based methods.
  • Filter Optimization: Utilizing Vacuum Filters in the Compare phase significantly reduces communication overhead, particularly for malicious-secure protocols that require longer output strings.
  • Bandwidth Sensitivity: In low-bandwidth settings (10Mbps), communication-efficient multi-point OPRF protocols outperform single-point versions by orders of magnitude.
  • Java Performance: By utilizing the Java Native Interface (JNI) to call optimized C++ libraries for heavy cryptographic lifting (e.g., AES-NI, ECC), the mpc4j library demonstrates that Java-based MPC is practical for big data environments without sacrificing performance.

Conclusion

PsiBench provides a much-needed standardization for the PSI landscape. Our results highlight the strengths of multi-point OPRF and the viability of high-level language implementations for secure computation. Future work will expand the library to include multi-party PSI, threshold PSI, and further performance optimizations to bridge the remaining gap with native C++ implementations.

Reference: Liang, Z., et al. (2020). PsiBench: Pragmatic Benchmark of Two-party Private Set Intersection. PVLDB, 14(1).

Summary updated

BibTeX
@article{liang2020framework,
  author = {Ziyuan Liang and Weiran Liu and Fan Zhang and Bingsheng Zhang and Jian Liu and Lei Zhang and Kui Ren},
  title = {{A Framework of Private Set Intersection Protocols}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
}
Figure