Inferensys

Glossary

PSI-Sum

A private set intersection variant that reveals the sum of values associated with the intersecting elements, enabling private aggregate analytics without exposing the underlying intersection set.
Industrial operations setting with digital oversight and performance displays.
PRIVATE AGGREGATE ANALYTICS

What is PSI-Sum?

PSI-Sum is a cryptographic protocol that extends Private Set Intersection to reveal only the sum of values associated with the intersecting elements, enabling private aggregate analytics without exposing the underlying intersection set.

PSI-Sum is a variant of Private Set Intersection where two parties compute the sum of numerical values linked to the elements in their intersection, without disclosing the intersecting elements themselves or any non-matching data. This protocol allows collaborative analytics—such as calculating total shared revenue or combined user engagement—while maintaining strict input privacy for both participants.

The protocol typically operates on a labeled set held by one party, where each element has an associated integer value. The other party learns only the aggregate sum of the labels corresponding to the intersection, not the individual labels or which elements matched. This makes PSI-Sum ideal for privacy-preserving conversion tracking and secure aggregate queries across organizational boundaries.

PRIVATE AGGREGATE ANALYTICS

Key Features of PSI-Sum

PSI-Sum extends standard private set intersection by revealing only the sum of associated values for intersecting elements, not the elements themselves. This enables privacy-preserving aggregate queries across sensitive datasets.

01

Sum-Only Output

Unlike standard PSI, PSI-Sum reveals only the aggregate sum of values linked to intersecting elements. Neither party learns which specific items were in the intersection, only the total. This is critical for applications like private revenue attribution where knowing how much overlap exists matters more than which customers overlap.

  • Protects individual intersection membership
  • Reveals only aggregate statistics
  • Prevents re-identification via set membership
02

Labeled PSI Foundation

PSI-Sum builds on Labeled PSI primitives, where one party holds set elements with associated integer values (labels). The protocol computes the intersection and sums the labels corresponding to matched elements. The label holder learns nothing; the querier learns only the sum.

  • Extends Labeled PSI with summation logic
  • One party provides (item, value) pairs
  • Other party provides query items
03

Additive Homomorphic Encryption

Many PSI-Sum constructions leverage additively homomorphic encryption (e.g., Paillier) to perform summation directly on ciphertexts. The server encrypts its values, the client homomorphically adds only those corresponding to matched elements, and the server decrypts the final sum without learning which elements contributed.

  • Enables computation on encrypted values
  • Server never sees client's query set
  • Client never sees server's individual values
04

Threshold PSI-Sum Variants

Advanced PSI-Sum protocols support threshold conditions, where the sum is revealed only if the intersection size exceeds a minimum cardinality. This prevents inference attacks where a sum over a single element would expose an individual's value.

  • Protects against singleton intersection attacks
  • Enforces minimum group size k
  • Combines cardinality testing with summation
05

Real-World Applications

PSI-Sum enables privacy-preserving business analytics across organizations that cannot share raw data. Common use cases include:

  • Ad conversion measurement: Summing purchase values from overlapping users without revealing who converted
  • Cross-bank fraud detection: Aggregating suspicious transaction values across institutions
  • Healthcare cohort analysis: Summing treatment costs for overlapping patient populations
06

Security Guarantees

PSI-Sum protocols inherit the security model of their underlying PSI construction, typically achieving semi-honest security with efficient implementations. Maliciously secure variants exist using zero-knowledge proofs to verify correct summation, though at higher computational cost.

  • Semi-honest: Standard for most deployments
  • Malicious: Verifiable computation of the sum
  • No information leakage beyond the aggregate
PSI-SUM EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about PSI-Sum, the private set intersection variant that enables secure aggregate analytics without exposing the underlying intersection set.

PSI-Sum is a cryptographic protocol that allows two parties to compute the sum of values associated with the intersecting elements of their private sets, without revealing the intersection itself or any non-intersecting elements. It extends standard Private Set Intersection (PSI) by attaching integer payloads to one party's set elements. During execution, Party A holds a set of identifiers, Party B holds a set of identifier-value pairs, and the protocol outputs only the total sum of values corresponding to identifiers present in both sets. The underlying construction typically leverages additively homomorphic encryption or oblivious transfer primitives to perform the summation within the encrypted domain, ensuring that neither party learns which specific elements contributed to the final aggregate.

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.