Fuzzy PSI is a cryptographic protocol that allows two parties to compute the intersection of their private sets based on a similarity metric rather than exact equality. Unlike standard PSI, which only reveals elements that are bit-for-bit identical, Fuzzy PSI outputs pairs of elements whose distance—measured by metrics like Hamming distance or edit distance—falls below a predefined threshold, without exposing non-matching data.
Glossary
Fuzzy PSI

What is Fuzzy PSI?
Fuzzy Private Set Intersection extends traditional PSI to identify elements that are similar rather than exactly equal, enabling privacy-preserving matching of noisy or approximate data like biometrics and strings.
This capability is critical for applications involving inherently noisy data, such as biometric template matching, genomic sequence alignment, and private contact discovery with typographical errors. Constructions typically leverage techniques like locality-sensitive hashing (LSH), garbled circuits for secure threshold comparison, or homomorphic encryption to compute distances directly on ciphertexts, balancing the trade-off between accuracy, computational overhead, and the formal semi-honest or malicious security guarantees.
Key Features of Fuzzy PSI
Fuzzy Private Set Intersection extends traditional PSI beyond exact equality, enabling privacy-preserving matching of similar strings, biometric templates, and other data types where approximate comparison is essential.
Approximate Matching Primitives
Fuzzy PSI replaces exact equality checks with distance metrics such as Hamming distance, edit distance, or cosine similarity. Instead of testing x == y, the protocol evaluates distance(x, y) ≤ threshold. Common techniques include:
- Locality-sensitive hashing (LSH) to map similar items to the same hash bucket with high probability
- Threshold homomorphic encryption to compute encrypted distances without revealing raw values
- Garbled circuit evaluation of the distance function and comparison logic This allows matching of names with typos, addresses with formatting variations, or biometric templates with natural intra-user variance.
Biometric Template Protection
Fuzzy PSI is critical for privacy-preserving biometric identification. A user's biometric template (e.g., fingerprint minutiae, face embedding, iris code) is matched against a database without revealing the template to the server or the database entries to the client.
- The protocol outputs only the identifiers of templates within a similarity threshold
- Prevents biometric data leakage even if the server is compromised
- Enables applications like private watchlist screening and secure authentication Real-world systems often combine fuzzy PSI with secure enclaves or homomorphic encryption to protect templates during the matching computation itself.
Error-Tolerant String Matching
Fuzzy PSI handles typographical errors, transliteration variants, and formatting inconsistencies in personal data. Use cases include:
- Contact discovery that matches names despite minor misspellings
- Private record linkage across healthcare databases with inconsistent patient name entries
- Sanctions screening that catches alias variations and deliberate misspellings Protocols often encode strings into Bloom filters of n-grams or use Soundex/Metaphone phonetic encodings as a pre-processing step before applying cryptographic matching, reducing the problem to a set intersection over encoded representations.
Threshold PSI Variants
Several protocol variants define different output behaviors for fuzzy matching:
- Threshold PSI: Reveals all server elements within a specified distance of any client element
- Threshold PSI with payload: Returns associated metadata (labels) for matched elements
- Fuzzy PSI cardinality: Reveals only the count of approximate matches, not the elements themselves
- Outsourced fuzzy PSI: Delegates the heavy cryptographic computation to two non-colluding servers Each variant trades off information leakage against functionality, allowing system designers to select the minimal disclosure required for their application.
Distance-Preserving Hashing
A core building block for efficient fuzzy PSI is the ability to hash items such that similar inputs produce similar hashes while preserving cryptographic privacy. Key techniques:
- Locality-sensitive hashing (LSH) families like MinHash for Jaccard similarity and SimHash for cosine distance
- Secure LSH where hash parameters are secret-shared or generated via oblivious PRF to prevent leakage
- Embedding techniques that map structured data (graphs, sequences) into fixed-length vectors suitable for LSH These hashing schemes reduce the fuzzy matching problem to a standard PSI over hash buckets, dramatically improving computational efficiency.
Security Models and Leakage
Fuzzy PSI protocols operate under different security guarantees:
- Semi-honest security: Parties follow the protocol but may attempt to learn from the transcript. The protocol reveals the approximate matches and the distance threshold
- Malicious security: Protects against arbitrary deviations, preventing an adversary from learning non-matching elements by manipulating distance computations
- Leakage considerations: Beyond the intersection, fuzzy PSI may leak the distance distribution or the number of near-matches. Advanced protocols minimize this through differential privacy noise addition or secure comparison circuits that reveal only binary match/no-match results.
Frequently Asked Questions
Clear, technical answers to the most common questions about fuzzy private set intersection protocols, their mechanisms, and their real-world applications.
Fuzzy Private Set Intersection (Fuzzy PSI) is a cryptographic protocol that allows two parties to discover the intersection of their datasets based on approximate or similar matches, rather than requiring exact equality. In standard PSI, the element "John" and "Jon" would be treated as completely distinct, yielding no match. Fuzzy PSI, however, incorporates a distance metric—such as Hamming distance, edit distance, or cosine similarity—to determine if two elements are "close enough" to be considered a match. This is achieved by encoding elements into specialized data structures like locality-sensitive hashes or error-correcting codes before the private comparison. The protocol ensures that neither party learns the other's raw inputs, only the set of elements that are approximately shared, making it fundamentally different from exact-match PSI which operates on bit-wise equality of hashed values.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Fuzzy PSI extends classical private set intersection with approximate matching, drawing on techniques from locality-sensitive hashing, error-correcting codes, and secure two-party computation. The following concepts form the technical foundation for building and understanding fuzzy PSI protocols.
Locality-Sensitive Hashing (LSH)
A hashing technique that maximizes collisions for similar inputs rather than identical ones. LSH functions map items that are close under a distance metric (e.g., Hamming, Euclidean, Jaccard) to the same bucket with high probability.
- Core property:
Pr[h(x) = h(y)]is high whendist(x,y)is small - Common families: MinHash for Jaccard similarity, SimHash for cosine distance, random projections for Euclidean distance
- Role in Fuzzy PSI: Transforms the approximate matching problem into an exact matching problem over hash buckets, allowing standard PSI protocols to operate on the LSH outputs
- Tuning trade-off: More hash tables increase recall but also increase communication and false positives
Edit Distance & String Metrics
Fuzzy PSI protocols must define a concrete similarity threshold to determine what constitutes a match. The choice of distance metric fundamentally shapes the protocol design.
- Levenshtein distance: Minimum number of single-character insertions, deletions, and substitutions
- Damerau-Levenshtein: Extends Levenshtein to include transpositions of adjacent characters
- Jaro-Winkler: Weighted metric optimized for short strings like names, giving higher scores to strings that match from the beginning
- Hamming distance: Number of differing positions between two equal-length strings, commonly used for biometric templates and error-correcting codes
- Threshold selection: Must balance false positives (privacy leakage) against false negatives (missed matches)
Secure Fuzzy Matching via Garbled Circuits
A generic approach that evaluates the distance computation and threshold comparison inside a secure two-party computation protocol, typically using garbled circuits.
- Workflow: Alice and Bob secret-share their inputs, then jointly evaluate a Boolean circuit that computes
dist(x,y) < thresholdfor each candidate pair - Circuit components: XOR gates for Hamming distance, or more complex edit distance dynamic programming circuits
- Optimization: Use free-XOR and half-gate techniques to minimize garbled circuit size
- Limitation: Circuit size scales with string length and alphabet size, making this approach expensive for long strings or large sets
- Advantage: Provides malicious security and works with arbitrary distance functions expressible as circuits
Embedding-Based Fuzzy PSI
Transforms input strings into fixed-length vectors in a metric space where distance correlates with semantic or syntactic similarity, then applies secure vector comparison.
- Neural embeddings: Use pre-trained models like FastText or sentence transformers to map strings to dense vectors where cosine similarity reflects real-world similarity
- Quantization: Discretize embedding dimensions to enable efficient secure comparison via garbled circuits or homomorphic encryption
- Threshold inner-product PSI: A specialized protocol that reveals only whether the inner product of two vectors exceeds a threshold
- Advantage over LSH: Captures semantic similarity (e.g., 'NYC' ≈ 'New York') that character-level metrics miss
- Privacy consideration: Embedding model must not leak information about the training data distribution
Error-Correcting Codes for Fuzzy Vaults
Leverages error-correcting codes to tolerate differences between biometric templates or noisy measurements while maintaining cryptographic binding.
- Fuzzy commitment: Encode a secret key using an ECC, then XOR with a biometric template. Decoding succeeds only if a fresh reading is within the error-correction radius
- Reed-Solomon codes: Popular choice for fuzzy vaults due to efficient decoding of burst errors
- Fuzzy extractors: Generate a stable cryptographic key from noisy biometric data, producing both a public helper string and a uniformly random key
- Application: Biometric-based private set intersection where fingerprints or face embeddings are matched without revealing raw templates
- Security bound: The entropy loss from the helper string must be quantified to ensure the extracted key remains strong
Threshold PSI & Cardinality Variants
Fuzzy PSI often reveals only aggregate information rather than the exact matching elements, providing stronger privacy guarantees for sensitive applications.
- Fuzzy PSI cardinality: Only the count of approximate matches is revealed, not which elements matched
- Threshold fuzzy PSI: Reveals the intersection only if the number of matches exceeds a minimum threshold, preventing inference about small intersections
- Fuzzy PSI-sum: Associates values with set elements and reveals the sum of values for approximately matching pairs
- Application: Two hospitals discover how many patients they have in common (with name typos tolerated) without revealing which patients overlap
- Efficiency gain: Cardinality-only protocols can use randomized response and differential privacy to further reduce communication

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us