A Plug-n-Play Framework for Scaling Private Set Intersection to Billion-Sized Sets

Saikrishna Badrinarayanan, Ranjit Kumaresan, Mihai Christodorescu, Vinjith Nagaraja, Karan Patel, Srinivasan Raghuraman, Peter Rindal, Wei Sun, Minghua Xu

TL;DR

Scaling Private Set Intersection (PSI) to billion-sized datasets has long been a bottleneck in secure computation due to massive memory and time requirements. This paper introduces a "plug-n-play" framework that uses a secure binning technique and Apache Spark to parallelize any standard PSI protocol, achieving a 25x speedup over previous state-of-the-art results and processing a billion items in just 83 minutes.

What Problem Does This Paper Address?

Private Set Intersection (PSI) is a cryptographic technique that allows two parties, each holding a private set of data, to find the common elements without revealing anything else. It is essential for privacy-preserving applications like contact discovery, ad conversion tracking, and medical research collaboration.

However, PSI faces a "scaling wall." While modern protocols are efficient for millions of elements, they often fail when sets reach the billions. The challenges are twofold:

  1. Memory Exhaustion: Many protocols require loading large data structures (like Cuckoo hash tables or Bloom filters) into memory, which crashes on standard hardware at billion-scale.
  2. Computation Time: Sequential execution can take days. Previous records for billion-scale PSI hovered around 2,000 minutes (over 33 hours).

The authors aim to bridge this gap by creating a framework that can scale existing, well-vetted PSI protocols to "big data" dimensions using distributed computing.

Methods

The core innovation is a Secure Binning approach combined with a big data orchestration layer.

  • Secure Binning: To parallelize the work, both parties use a public, random hash function to partition their elements into $m$ bins. However, simply binning data leaks information (the number of items in a bin could reveal something about the underlying data distribution). To prevent this, the authors pad every bin with "dummy" elements until they reach a fixed size determined by a statistical security parameter ($\sigma$).
  • Plug-n-Play Architecture: The framework treats the underlying PSI protocol as a black box. This means as the "cryptography community" develops faster base protocols, they can be dropped into this framework to gain immediate horizontal scalability. For their experiments, they used the KKRT protocol, a high-performance PSI method based on Oblivious Transfer (OT) extension.
  • Apache Spark Integration: The authors implemented the framework on Apache Spark. Spark handles the heavy lifting of data shuffling, task scheduling, and fault tolerance. They also used Kafka as a high-throughput bridge to exchange intermediate cryptographic data between the two separate administrative domains (the two parties).

Datasets

The authors evaluated their framework using synthetic datasets to precisely control for scale:

  • Sizes: Sets ranging from 1 million (1M) to 1 billion (1B) elements.
  • Data Type: Each element is a 128-bit string.
  • Environment: A six-node Spark cluster for each party, with each node featuring 8 vCPUs and 64 GB of RAM.

Key Insights and Ideas

  • The Power of "Dumb" Parallelization: You don't necessarily need to invent a new, complex "distributed" cryptographic protocol. By securely partitioning the data (binning + padding), you can transform one massive, impossible problem into thousands of small, independent, and easy problems.
  • The Padding Trade-off: There is a sweet spot for the number of bins ($m$). Too few bins lead to memory issues; too many bins increase the overhead of dummy elements and scheduling. The authors found that for 1 billion elements, 2,048 bins provided the optimal balance.
  • Big Data Tools for Crypto: While Spark isn't designed for cryptography, its ability to manage "all-to-all" data transfers and parallel execution makes it surprisingly effective for MPC (Multi-Party Computation) orchestration.

Key Results

  • Billion-Scale Performance: The framework successfully intersected two sets of 1 billion elements in 82.88 minutes.
  • Massive Speedup: Compared to the previous state-of-the-art (Pinkas et al., 2018), which took roughly 2,000 minutes for the same task, this represents a 25x improvement.
  • End-to-End Private Joins: The authors demonstrated a practical application for private database joins (SQL-style). They showed that their framework could handle complex queries involving JOIN, WHERE, and SELECT clauses while maintaining privacy.
  • Linear Scaling: The results show that as the dataset size increases, the execution time scales almost linearly, suggesting the framework can potentially handle even larger sets (multi-billion) given enough hardware.

Limitations and Future Work

  • Semi-Honest Security: The current implementation assumes a "semi-honest" (honest-but-curious) threat model, where parties follow the protocol but try to learn extra info. Extending this to "malicious" security—where a party might actively cheat—remains a significant challenge for future work.
  • Network Bottlenecks: Despite the speedup, the "PSI Phase" remains the bottleneck, largely due to the massive amount of intermediate data that must be exchanged over the network.
  • Query Complexity: The private database join application is currently restricted to equality checks in the ON clause and conditions that can be split into single-table filters. Supporting more complex joins (like inequalities or multi-table predicates) without significant leakage is an open area of research.

Summary updated

BibTeX
@inproceedings{badrinarayanan2023plug,
  author = {Saikrishna Badrinarayanan and Ranjit Kumaresan and Mihai Christodorescu and Vinjith Nagaraja and Karan Patel and Srinivasan Raghuraman and Peter Rindal and Wei Sun and Minghua Xu},
  title = {{A Plug-n-Play Framework for Scaling Private Set Intersection to Billion-Sized Sets}},
  booktitle = {CANS},
  year = {2023},
  url = {https://openreview.net/forum?id=xMQdfwOoEm},
}
Figure