Document Similarity Detection Using NPF Coding for Privacy

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for privacy-preserving document similarity detection, such as homomorphic encryption and multi-party secure computation, face practical difficulties and do not effectively maintain the privacy of document contents while comparing similarities.

Innovation Solution

The use of non-prefix-free (NPF) coding as a transform method, which replaces document symbols with variable bit-length codewords, allowing for similarity detection using the normalized compression distance (NCD) metric without altering the document patterns, and providing privacy through lack of unique decodability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If homomorphic encryption and multi-party secure computation are used for privacy-preserving document similarity detection, then document privacy is protected, but computational complexity and practical implementation difficulties increase significantly

Engineering Contradiction:
Improveprivacy protectionVSAvoidcomputational complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts only the essential feature for similarity detection (normalized compression distance) while removing the complex cryptographic operations. Instead of using homomorphic encryption on full feature vectors, the method extracts a single scalar value (NCD) that preserves similarity information without requiring complex secure computation protocols.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent uses lightweight, computationally inexpensive operations (compression and distance calculation) instead of expensive cryptographic primitives. The NCD metric can be computed using standard compression algorithms without requiring specialized hardware or complex mathematical operations, making it practical for real-world deployment.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

2Reliability

If document contents are encrypted to preserve privacy, then security is improved, but the ability to compute similarity metrics accurately deteriorates

Engineering Contradiction:
Improveprivacy protectionVSAvoidsimilarity detection accuracy
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

The patent introduces NCD as an intermediary metric that bridges privacy protection and similarity detection. Instead of directly comparing encrypted document contents or features, the method computes NCD between documents, which preserves the similarity relationship while being computable on encrypted or private data without revealing the actual contents.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent transforms the similarity detection problem from operating on document contents or feature vectors to operating on a derived parameter (NCD value). This parameter transformation maintains the essential similarity information while enabling privacy-preserving computation, as NCD can be calculated without exposing the underlying document data.

Inventive Principle:
Principle #35Parameter changes

3Measurement precision

If public comparison of document features is performed for similarity detection, then similarity accuracy is improved, but document privacy is compromised

Engineering Contradiction:
Improvesimilarity detection accuracyVSAvoiddocument privacy
Core Design Contradiction:
Measurement precisionVSLoss of information

Solution Approach 1:

The patent uses compression algorithms to create a compressed representation (copy) of the document that preserves the essential patterns and regularities needed for similarity detection. This compressed form can be shared or compared without revealing the original document contents, as the compression process discards unnecessary details while maintaining the core structure.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS10740554B2Method for detecting document similarity
Publication Date: 2020.08.11 ISTANBUL TEKNIK UNIVSI
  • US10740554B2 patent drawing
  • US10740554B2 patent drawing

AI summary

This invention is related to a document similarity detection method in which non-prefix-free (NPF) coding of the input documents as a transform is used to provide the privacy. The method includes the following steps, encoding the symbols of the documents with non-prefix-free coding scheme, obtaining the transformed documents, calculating the similarity score of the transformed documents with the normalized compression distance similarity metric.