{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,15]],"date-time":"2026-08-15T16:36:00Z","timestamp":1786811760805,"version":"build-2736575974"},"reference-count":21,"publisher":"Privacy Enhancing Technologies Symposium Advisory Board","issue":"3","license":[{"start":{"date-parts":[[2020,7,1]],"date-time":"2020-07-01T00:00:00Z","timestamp":1593561600000},"content-version":"unspecified","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2020,7,1]]},"abstract":"<jats:title>Abstract<\/jats:title>\n               <jats:p>The <jats:italic>k<\/jats:italic>-nearest neighbors (<jats:italic>k<\/jats:italic>NN) classifier predicts a class of a query, <jats:italic>q<\/jats:italic>, by taking the majority class of its <jats:italic>k<\/jats:italic> neighbors in an existing (already classified) database, <jats:italic>S<\/jats:italic>. In secure <jats:italic>k<\/jats:italic>NN, <jats:italic>q<\/jats:italic> and <jats:italic>S<\/jats:italic> are owned by two different parties and <jats:italic>q<\/jats:italic> is classified without sharing data. In this work we present a classifier based on <jats:italic>k<\/jats:italic>NN, that is more efficient to implement with homomorphic encryption (HE). The efficiency of our classifier comes from a relaxation we make to consider <jats:italic>\u03ba<\/jats:italic> nearest neighbors for <jats:italic>\u03ba \u2248k<\/jats:italic> with probability that increases as the statistical distance between Gaussian and the distribution of the distances from <jats:italic>q<\/jats:italic> to <jats:italic>S<\/jats:italic> decreases. We call our classifier <jats:italic>k<\/jats:italic>-ish Nearest Neighbors (<jats:italic>k<\/jats:italic>-ish NN). For the implementation we introduce <jats:italic>double-blinded coin-toss<\/jats:italic> where the bias and output of the toss are encrypted. We use it to approximate the average and variance of the distances from <jats:italic>q<\/jats:italic> to <jats:italic>S<\/jats:italic> in a scalable circuit whose depth is independent of |<jats:italic>S<\/jats:italic>|. We believe these to be of independent interest. We implemented our classifier in an open source library based on HElib and tested it on a breast tumor database. Our classifier has accuracy and running time comparable to current state of the art (non-HE) MPC solution that have better running time but worse communication complexity. It also has communication complexity similar to naive HE implementation that have worse running time.<\/jats:p>","DOI":"10.2478\/popets-2020-0045","type":"journal-article","created":{"date-parts":[[2020,8,28]],"date-time":"2020-08-28T14:44:09Z","timestamp":1598625849000},"page":"42-61","source":"Crossref","is-referenced-by-count":13,"title":["Secure <i>k<\/i>-ish Nearest Neighbors Classifier"],"prefix":"10.56553","volume":"2020","author":[{"given":"Hayim","family":"Shaul","sequence":"first","affiliation":[{"name":"MIT"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Dan","family":"Feldman","sequence":"additional","affiliation":[{"name":"University of Haifa"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Daniela","family":"Rus","sequence":"additional","affiliation":[{"name":"MIT"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"35752","published-online":{"date-parts":[[2020,8,17]]},"reference":[{"key":"2022060903203483630_j_popets-2020-0045_ref_001_w2aab3b7b8b1b6b1ab1ab1Aa","unstructured":"[1] Amazon. Ec2 instance pricing - amazon web services (aws). https:\/\/aws.amazon.com\/ec2\/pricing\/on-demand\/."},{"key":"2022060903203483630_j_popets-2020-0045_ref_002_w2aab3b7b8b1b6b1ab1ab2Aa","doi-asserted-by":"crossref","unstructured":"[2] D. Beaver. Efficient multiparty protocols using circuit randomization. In J. Feigenbaum, editor, Advances in Cryptology \u2014 CRYPTO \u201991, pages 420\u2013432, Berlin, Heidelberg, 1992. Springer Berlin Heidelberg.10.1007\/3-540-46766-1_34","DOI":"10.1007\/3-540-46766-1_34"},{"key":"2022060903203483630_j_popets-2020-0045_ref_003_w2aab3b7b8b1b6b1ab1ab3Aa","doi-asserted-by":"crossref","unstructured":"[3] Z. Brakerski, C. Gentry, and V. Vaikuntanathan. (leveled) fully homomorphic encryption without bootstrapping. In Proceedings of the 3rd Innovations in Theoretical Computer Science Conference, ITCS \u201912, page 309\u2013325, New York, NY, USA, 2012. Association for Computing Machinery.10.1145\/2090236.2090262","DOI":"10.1145\/2090236.2090262"},{"key":"2022060903203483630_j_popets-2020-0045_ref_004_w2aab3b7b8b1b6b1ab1ab4Aa","unstructured":"[4] Centers for Medicare & Medicaid Services. The Health Insurance Portability and Accountability Act of 1996 (HIPAA). Online at http:\/\/www.cms.hhs.gov\/hipaa\/, 1996."},{"key":"2022060903203483630_j_popets-2020-0045_ref_005_w2aab3b7b8b1b6b1ab1ab5Aa","doi-asserted-by":"crossref","unstructured":"[5] T. Cover and P. Hart. Nearest neighbor pattern classification. Information Theory, IEEE Transactions on, 13:21\u201327, 1967.10.1109\/TIT.1967.1053964","DOI":"10.1109\/TIT.1967.1053964"},{"key":"2022060903203483630_j_popets-2020-0045_ref_006_w2aab3b7b8b1b6b1ab1ab6Aa","unstructured":"[6] D. Dua and C. Graff. UCI machine learning repository, breast cancer wisconsin (diagnostic) dataset, 2017."},{"key":"2022060903203483630_j_popets-2020-0045_ref_007_w2aab3b7b8b1b6b1ab1ab7Aa","unstructured":"[7] D. Dua and C. Graff. UCI machine learning repository, car evaluation dataset, 2017."},{"key":"2022060903203483630_j_popets-2020-0045_ref_008_w2aab3b7b8b1b6b1ab1ab8Aa","doi-asserted-by":"crossref","unstructured":"[8] Y. Elmehdwi, B. K. Samanthula, and W. Jiang. Secure k-nearest neighbor query over encrypted data in outsourced environments. In 2014 IEEE 30th International Conference on Data Engineering, pages 664\u2013675, March 2014.10.1109\/ICDE.2014.6816690","DOI":"10.1109\/ICDE.2014.6816690"},{"key":"2022060903203483630_j_popets-2020-0045_ref_009_w2aab3b7b8b1b6b1ab1ab9Aa","unstructured":"[9] S. Halevi. Helib - an implementation of homomorphic encryption. https:\/\/github.com\/shaih\/HElib\/, 2013."},{"key":"2022060903203483630_j_popets-2020-0045_ref_010_w2aab3b7b8b1b6b1ab1ac10Aa","doi-asserted-by":"crossref","unstructured":"[10] S. Halevi and V. Shoup. Algorithms in helib. In 34rd Annual International Cryptology Conference, CRYPTO 2014. Springer Verlag, 2014.10.1007\/978-3-662-44371-2_31","DOI":"10.1007\/978-3-662-44371-2_31"},{"key":"2022060903203483630_j_popets-2020-0045_ref_011_w2aab3b7b8b1b6b1ab1ac11Aa","doi-asserted-by":"crossref","unstructured":"[11] H. Hu, J. Xu, C. Ren, and B. Choi. Processing private queries over untrusted data cloud through privacy homomorphism. In 2011 IEEE 27th International Conference on Data Engineering, pages 601\u2013612, April 2011.10.1109\/ICDE.2011.5767862","DOI":"10.1109\/ICDE.2011.5767862"},{"key":"2022060903203483630_j_popets-2020-0045_ref_012_w2aab3b7b8b1b6b1ab1ac12Aa","unstructured":"[12] S. N. John, R. Okonigene, and A. Adelakun. Impacts of latency on throughput of a corporate computer network. In MSV, 2010."},{"key":"2022060903203483630_j_popets-2020-0045_ref_013_w2aab3b7b8b1b6b1ab1ac13Aa","unstructured":"[13] kaggle.com. https:\/\/www.kaggle.com\/uciml\/breast-cancerwisconsin-data."},{"key":"2022060903203483630_j_popets-2020-0045_ref_014_w2aab3b7b8b1b6b1ab1ac14Aa","doi-asserted-by":"crossref","unstructured":"[14] G. S. C\u02dbetin, Y. Dor\u00f6z, B. Sunar, and E. Savas. Depth optimized efficient homomorphic sorting. In Proceedings of the 4th International Conference on Progress in Cryptology \u2013 LATINCRYPT 2015 - Volume 9230, page 61\u201380, Berlin, Heidelberg, 2015. Springer-Verlag.10.1007\/978-3-319-22174-8_4","DOI":"10.1007\/978-3-319-22174-8_4"},{"key":"2022060903203483630_j_popets-2020-0045_ref_015_w2aab3b7b8b1b6b1ab1ac15Aa","doi-asserted-by":"crossref","unstructured":"[15] M. Naehrig, K. Lauter, and V. Vaikuntanathan. Can homomorphic encryption be practical? In Proceedings of the 3rd ACM Workshop on Cloud Computing Security Workshop, CCSW \u201911, page 113\u2013124, New York, NY, USA, 2011. Association for Computing Machinery.10.1145\/2046660.2046682","DOI":"10.1145\/2046660.2046682"},{"key":"2022060903203483630_j_popets-2020-0045_ref_016_w2aab3b7b8b1b6b1ab1ac16Aa","doi-asserted-by":"crossref","unstructured":"[16] P. Paillier. Public-key cryptosystems based on composite degree residuosity classes. In J. Stern, editor, Advances in Cryptology \u2014 EUROCRYPT \u201999, pages 223\u2013238, Berlin, Heidelberg, 1999. Springer Berlin Heidelberg.10.1007\/3-540-48910-X_16","DOI":"10.1007\/3-540-48910-X_16"},{"key":"2022060903203483630_j_popets-2020-0045_ref_017_w2aab3b7b8b1b6b1ab1ac17Aa","doi-asserted-by":"crossref","unstructured":"[17] M. S. Paterson and L. J. Stockmeyer. On the number of nonscalar multiplications necessary to evaluate polynomials. SIAM Journal on Computing, 1973.10.1137\/0202007","DOI":"10.1137\/0202007"},{"key":"2022060903203483630_j_popets-2020-0045_ref_018_w2aab3b7b8b1b6b1ab1ac18Aa","doi-asserted-by":"crossref","unstructured":"[18] H. Shaul, D. Feldman, and D. Rus. Pp kish nn - an implementation of privacy preserving k-ish nn classifier. https:\/\/github.com\/HayimShaul\/ppknn\/, 2020.10.2478\/popets-2020-0045","DOI":"10.2478\/popets-2020-0045"},{"key":"2022060903203483630_j_popets-2020-0045_ref_019_w2aab3b7b8b1b6b1ab1ac19Aa","doi-asserted-by":"crossref","unstructured":"[19] R. Shokri, M. Stronati, C. Song, and V. Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pages 3\u201318, May 2017.10.1109\/SP.2017.41","DOI":"10.1109\/SP.2017.41"},{"key":"2022060903203483630_j_popets-2020-0045_ref_020_w2aab3b7b8b1b6b1ab1ac20Aa","doi-asserted-by":"crossref","unstructured":"[20] W. K. Wong, D. W.-l. Cheung, B. Kao, and N. Mamoulis. Secure knn computation on encrypted databases. In Proceedings of the 2009 ACM SIGMOD International Conference on Management of Data, SIGMOD \u201909, page 139\u2013152, New York, NY, USA, 2009. Association for Computing Machinery.10.1145\/1559845.1559862","DOI":"10.1145\/1559845.1559862"},{"key":"2022060903203483630_j_popets-2020-0045_ref_021_w2aab3b7b8b1b6b1ab1ac21Aa","doi-asserted-by":"crossref","unstructured":"[21] B. Yao, F. Li, and X. Xiao. Secure nearest neighbor revisited. In 2013 IEEE 29th International Conference on Data Engineering (ICDE), pages 733\u2013744, April 2013.10.1109\/ICDE.2013.6544870","DOI":"10.1109\/ICDE.2013.6544870"}],"container-title":["Proceedings on Privacy Enhancing Technologies"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/content.sciendo.com\/view\/journals\/popets\/2020\/3\/article-p42.xml","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/www.sciendo.com\/pdf\/10.2478\/popets-2020-0045","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,7,20]],"date-time":"2022-07-20T16:31:00Z","timestamp":1658334660000},"score":1,"resource":{"primary":{"URL":"https:\/\/petsymposium.org\/popets\/2020\/popets-2020-0045.php"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,7,1]]},"references-count":21,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2020,8,17]]},"published-print":{"date-parts":[[2020,7,1]]}},"alternative-id":["10.2478\/popets-2020-0045"],"URL":"https:\/\/doi.org\/10.2478\/popets-2020-0045","relation":{},"ISSN":["2299-0984"],"issn-type":[{"value":"2299-0984","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,7,1]]}}}