Inferensys

Glossary

Labeled PSI

A private set intersection protocol where one party's set elements have associated data labels, and the other party learns only the labels corresponding to the intersection of their input sets.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
PRIVATE SET INTERSECTION VARIANT

What is Labeled PSI?

A cryptographic protocol extending standard private set intersection where one party's set elements have associated data labels, and the other party learns only the labels corresponding to the intersection of their input sets.

Labeled PSI is a private set intersection protocol where a sender holds a set of elements, each associated with a distinct data label, and a receiver holds a query set. The receiver learns the labels for the elements in the intersection, while the sender learns nothing and the receiver learns nothing about non-intersecting sender elements or their labels.

This primitive is built on standard PSI protocols, often using oblivious pseudorandom functions (OPRFs) or oblivious transfer (OT) to mask non-matching labels. It enables applications like private contact discovery with associated profile data, where a user discovers which contacts use a service and retrieves their public keys without exposing the full contact list to the server.

Labeled PSI

Key Features

Labeled PSI extends standard private set intersection by allowing one party to associate metadata labels with their set elements, enabling the other party to learn only the labels corresponding to the intersection without discovering any other labels or non-intersecting elements.

01

Asymmetric Label Disclosure

In a Labeled PSI protocol, the Sender holds a set of elements with associated labels, while the Receiver holds a query set. The Receiver learns only the labels for elements in the intersection, while the Sender learns nothing about the Receiver's set. This asymmetry is critical for applications like private contact discovery with profile data or secure database lookup where one party owns the enriched dataset.

02

OPRF-Based Construction

Many efficient Labeled PSI protocols are built on Oblivious Pseudorandom Functions (OPRFs). The Sender holds a PRF key and the Receiver evaluates the PRF on their inputs without learning the key. For intersecting elements, both parties derive the same PRF output, which is then used to encrypt the associated label. This ensures that labels for non-intersecting elements remain indistinguishable from random noise.

03

Label Encryption via Symmetric Keys

Once the intersection is identified through the OPRF or a similar primitive, labels are protected using symmetric encryption derived from the PRF output. Common approaches include:

  • One-time pad XOR with a hash of the PRF output
  • AES-GCM encryption keyed by the PRF result This ensures that only the party who can compute the correct PRF output for an intersecting element can decrypt the corresponding label.
04

Security Against Malicious Adversaries

Labeled PSI protocols can be upgraded from semi-honest security to malicious security using techniques like cut-and-choose, zero-knowledge proofs, or authenticated data structures. In the malicious model, the protocol guarantees correctness even if one party deviates arbitrarily from the specification—preventing a malicious Sender from returning incorrect labels or a malicious Receiver from learning labels for non-intersecting elements.

05

Applications in Private Database Lookup

Labeled PSI is the cryptographic foundation for private database query systems where a client queries a server's database by a key without revealing the key to the server, and the server returns only the matching record without disclosing the rest of the database. Real-world use cases include:

  • Private contact discovery with profile information
  • Secure password breach checking where the service returns breach metadata only for compromised credentials
  • Confidential genomic matching where labels represent phenotypic data
06

Communication Efficiency Optimizations

Modern Labeled PSI protocols achieve near-linear communication complexity in the size of the Receiver's set, independent of the Sender's total dataset size. Techniques include:

  • Cuckoo hashing to reduce the number of OPRF evaluations
  • Batching multiple OPRF evaluations into a single multi-point OPRF
  • Compressed label delivery using vector OLE (VOLE) to transmit labels with minimal overhead These optimizations make Labeled PSI practical for datasets containing billions of records.
LABELED PSI EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about Labeled Private Set Intersection protocols, their mechanisms, and their real-world applications.

Labeled Private Set Intersection (Labeled PSI) is a cryptographic protocol where a client learns the intersection of their private set with a server's set, and for each element in the intersection, the client also learns an associated data label from the server, while the server learns nothing. The core mechanism typically extends standard PSI protocols by associating each server element with a payload. During the protocol, the client obliviously retrieves the label corresponding to each matched element without the server knowing which labels were accessed. This is often achieved by combining Oblivious Transfer (OT) or Oblivious Pseudorandom Functions (OPRF) with symmetric-key encryption, where the intersection test itself acts as a key derivation step to decrypt the associated label. The server remains completely oblivious to both the client's set and the intersection result.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.