Private Matching for Compute

Prasad Buddhavarapu, Andrew Knox, Payman Mohassel, Shubho Sengupta, Erik Taubeneck, Vlad Vlaskin

TL;DR

Researchers at Facebook have developed two new protocols, Private-ID and PS³I, that allow two parties to perform computations on the intersection of their datasets without ever revealing which specific records matched. These protocols overcome the rigidity of previous methods, supporting streaming data and the ability to add new features after matching, all while scaling to 100 million records in under an hour.

What Problem Does This Paper Address?

In many data science scenarios, two parties (like a healthcare provider and an insurance company) want to "join" their datasets based on a common identifier (like an email) to calculate an aggregate statistic (like average cost per patient). Traditionally, this is done via Private Set Intersection (PSI).

However, standard PSI has a major privacy flaw: it reveals exactly which individuals are in the intersection. Furthermore, existing "PSI-for-compute" solutions—which hide the intersection—are often impractical. They typically require all data to be present at the time of matching, fail to handle "streaming" data (where records arrive in small batches), or are too computationally expensive to use at the scale of millions of users.

Methods

The authors introduce two distinct formulations to solve these issues:

  1. Private-ID: This protocol allows parties to compute a set of pseudorandom Universal Identifiers (UIDs) for the union of their datasets. Each party learns which UIDs correspond to their own records, but they do not learn if a specific UID belongs to the other party (the intersection). This allows parties to independently sort their data by UID and feed it into a secure multi-party computation (MPC) later.
  2. Streaming Private Secret Shared Set Intersection (PS³I): This is an extension of PSI where, instead of seeing the matched records, parties receive "additive shares" of the data. When these shares are added together in a downstream MPC, the original value is recovered.
  3. The Streaming Trick: To handle small batches without revealing the "match rate" (which could leak info about a single user), the protocol uses dummy records and Additively Homomorphic Encryption (Paillier) to pad batches to a constant size.

Both protocols rely on the Decisional Diffie-Hellman (DDH) assumption, using commutative encryption to mask identifiers through multiple rounds of shuffling and re-encryption.

Datasets

The authors evaluated their protocols using artificial datasets designed to simulate real-world scale:

  • Identifiers: 128-bit long strings.
  • Values: Unsigned 64-bit integers.
  • Scale: Testing ranged from $10^3$ to $10^8$ (100 million) records per party.
  • Intersection Size: Fixed at 50% for performance benchmarking.

Key Insights and Ideas

  • Decoupling Matching from Features: A major "aha" moment in Private-ID is that by generating UIDs for the union, parties can add or change user features (like new labels for a machine learning model) after the expensive matching protocol has run, without needing to re-execute it.
  • Hiding the Match Rate: In streaming scenarios, if a batch has only one record, knowing if it matched is a total privacy breach. The use of dummy records in PS³I ensures that the network traffic looks the same regardless of whether a match occurred.
  • Embarrassingly Parallel: The authors realized that DDH-based operations are highly parallelizable. By using Rust and optimized ECC libraries (Dalek), they could saturate up to 40 CPU cores, making "Big Data" secure joins feasible.

Key Results

The performance benchmarks demonstrate a significant leap over prior baselines like Private Join and Compute (PJ&C):

  • Scalability: The Private-ID protocol processed 100 million records from each party in just 60 minutes when both parties were in the same AWS region.
  • Efficiency: Private-ID is only about 2x more expensive than standard "leaky" PSI, making the privacy gain very "cheap" in terms of overhead.
  • PS³I Performance: While slower than Private-ID due to the use of Paillier encryption, PS³I still handled 5 million records in an hour, which is sufficient for many high-value financial or medical use cases.
  • Network Impact: Moving one party to a different continent (Frankfurt to Ohio) increased the runtime by about 55%, showing that while latency matters, the protocol remains robust.

Limitations and Future Work

  • Honest-but-Curious Model: The current protocols assume both parties follow the rules (semi-honest). They do not protect against a malicious party that provides fake inputs to probe the other side's data.
  • Output Size: In Private-ID, the output size is proportional to the union of the datasets. If the intersection is tiny compared to the total user base, the downstream MPC might waste a lot of time processing non-matching records.
  • Malicious Security: The authors note that extending these protocols to handle malicious adversaries while maintaining this level of performance is a key area for future research.

Summary updated

BibTeX
@article{buddhavarapu2020private,
  author = {Prasad Buddhavarapu and Andrew Knox and Payman Mohassel and Shubho Sengupta and Erik Taubeneck and Vlad Vlaskin},
  title = {{Private Matching for Compute}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
  url = {https://openreview.net/forum?id=0hDKKXZ67kJ},
}
Figure