In a standard Private Set Intersection (PSI) protocol, two parties—say, a hospital and an insurance provider—want to find the common elements in their datasets without revealing anything else. At the end of the protocol, they know exactly which patients they both have on record. To a casual observer, this sounds perfectly private. However, researchers have identified a persistent "side-channel" that remains exposed in almost all basic constructions: cardinality leakage.
Even if the specific identities of the non-matching records are hidden, the mere knowledge of how many items matched (the intersection size) or the total size of the other party's dataset can be a devastating privacy violation.
The Hidden Cost of Counting
Why does the count matter? If an adversary knows the size of an intersection, they can perform membership inference attacks. As noted by Haohao Qian and Shikun Zhang in PrivacyGo: Privacy-Preserving Ad Measurement with Multidimensional Intersection, revealing the exact cardinality allows attackers to confirm the presence of individuals in sensitive datasets.
This leakage is particularly dangerous across multiple sessions. Hongrui Cui and Yu Yu 0001 demonstrated in A Not-So-Trival Replay Attack Against DH-PSI that if an attacker can derive a common representation of a dataset across different interactions, they can track how the overlap changes over time. This metadata reveals sensitive patterns about a user's behavior or health status, even if the underlying data remains encrypted.
Why Cardinality is Hard to Hide
The intuition for why cardinality leaks is simple: most PSI protocols are built on top of cryptographic primitives like Oblivious Pseudorandom Functions (OPRFs) or commutative encryption. These tools allow parties to "blind" their data so that only identical items result in identical ciphertexts. If you have 10 matches, you see 10 identical pairs of ciphertexts.
To hide this, you must decouple the process of matching from the result of the match. There are three primary ways researchers are currently tackling this:
1. Dummy Padding and Noise
The most straightforward way to hide a set's size is to pad it with "dummy" elements. However, as Emil Stefanov, Dawn Song, and Elaine Shi point out in their work on Policy-Enhanced Private Set Intersection, this introduces a massive computational and communication burden. In high-bandwidth applications like group signatures, Michael Backes and Lucjan Hanzlik note that obfuscating the number of active participants remains a significant challenge due to this overhead.
2. Differentially Private PSI (DPSI)
Instead of hiding the count perfectly, we can add a controlled amount of statistical noise. Liqiang Peng and Yuan Hong in Efficient Differentially Private Set Intersection use modern multi-party computation (MPC) primitives to inject noise into the intersection result. This ensures that the presence or absence of a single individual doesn't significantly change the output cardinality, providing a formal privacy guarantee while maintaining high performance.
3. Circuit-PSI and Aggregate Results
The most robust approach is to ensure the parties never see the intersection at all. In Circuit-PSI, the intersection is computed inside a secure "black box" (a cryptographic circuit), and the parties only receive the final answer to a specific question, such as "Is the intersection size greater than a threshold?" or "What is the sum of the values associated with these keys?"
Yaxi Yang and Changyu Dong recently proposed Maliciously Secure Circuit-PSI via SPDZ-Compatible Oblivious PRF, which prevents even malicious actors from cheating to learn the intersection size during the computation. Similarly, Kasra EdalatNejad and Wouter Lueks introduced Private Collection Matching (PCM), where a client can query a whole database of sets and receive only a single aggregate result, preventing the leakage of per-set intersection sizes that occurs in traditional methods.
The Path Forward: Efficiency vs. Metadata Privacy
The research direction is clear: the community is moving away from "simple" PSI toward protocols that treat metadata—specifically cardinality—as a first-class privacy concern. Whether through the use of Incremental Distributed Point Functions for heavy hitters (Elette Boyle et al.) or Private Set Alignment for large-scale analytics (Jia-bo Wang et al.), the goal is to achieve the "Goldilocks" zone: protocols that are fast enough for billion-scale data but quiet enough to hide the scale of the data itself.