Privacy preserving document similarity via non-prefix-free codes


KÜLEKCİ M. O. , habib i., aghabaiglou a.

12th International Symposium on Similarity Search and Applications, Newark, United States Of America, 2 - 04 October 2019, vol.11807, pp.94-102 identifier identifier

  • Publication Type: Conference Paper / Full Text
  • Volume: 11807
  • Doi Number: 10.1007/978-3-030-32047-8_9
  • City: Newark
  • Country: United States Of America
  • Page Numbers: pp.94-102

Abstract

Many methods have been proposed to compute the similarity score alpha <- S(A, B) in between two plain documents A and B. However, when their contents are confidential, special processing is required to protect privacy. A great extent of the solutions offered to date is mostly based on homomorphic encryption or secure multi-party computation techniques, where their computational cost inhibits the practical usage, especially on massive sets. In this study we propose an alternative by encoding the documents with non-prefix-free (NPF) coding before applying the preferred similarity metric S(). The NPF coding simply represents the symbols with variable-length codewords, where the codeword set is generated without the prefix-free restriction. Thus, a codeword may be a prefix of another, and without the explicit codeword boundary information, retrieving the original data from the encoded stream becomes hard due to the lack of unique decodability in non-prefix-free codes. We provide the combinatorial analysis of this hardness, and experimentally compare the similarity scores obtained on NPF encoded documents and on original plain text versions. We have considered normalized compression distance (NCD) and Jaccard coefficient (JC) for the similarity metric S(). When A' and B' denote the NPF-encoded documents, experiments conducted on METER corpus revealed that the difference between alpha' <- S(A', B') and alpha <- S(A, B) lie in the range of 0.5% and 3% for both NCD and JC.