安全的$k$类最近邻分类器
Secure $k$-ish Nearest Neighbors Classifier
摘要:
在机器学习中,分类器用于基于现有(分类的)数据库来预测给定查询的类别。给定n个d维点的数据库S和d维查询q,k-最近邻(kNN)分类器将q分配给S中其k个最近邻的多数类。在kNN的安全版本中,S和q由两个不想共享数据的不同方拥有。不幸的是,用于安全kNN的所有已知解决方案要么需要各方之间的大的通信复杂性,要么运行起来非常低效。在这项工作中,我们提出了一个分类的基础上kNN,可以有效地实现与同态加密(HE)。我们的分类器的效率来自于我们对kNN的放松,我们允许它以一定的概率考虑kappa ~ k的kappa最近邻。因此,我们将我们的分类器称为k-ish最近邻(k-ish NN)。我们的解决方案的成功概率取决于从q到S的距离的分布,并且随着其到高斯的统计距离的减小而增加。为了实现我们的分类器,我们引入了双盲抛硬币的概念。在双盲抛硬币中,成功概率以及抛硬币的输出都是加密的。我们使用这种抛硬币的方法来有效地近似从q到S的距离的平均值和方差。我们认为这两种技术可能是独立的利益。当用HE实现时,k-ish NN具有独立于n的电路深度,因此使其可扩展。我们还在基于HELib的开源库中实现了我们的分类器,并在乳腺肿瘤数据库上进行了测试。我们的分类器的准确性(F_1评分)是98%,分类需要不到3个小时相比(估计)在目前的HE实现周。
英文摘要:
In machine learning, classifiers are used to predict a class of a given query based on an existing (classified) database. Given a database S of n d-dimensional points and a d-dimensional query q, the k-nearest neighbors (kNN) classifier assigns q with the majority class of its k nearest neighbors in S. In the secure version of kNN, S and q are owned by two different parties that do not want to share their data. Unfortunately, all known solutions for secure kNN either require a large communication complexity between the parties, or are very inefficient to run. In this work we present a classifier based on kNN, that can be implemented efficiently with homomorphic encryption (HE). The efficiency of our classifier comes from a relaxation we make on kNN, where we allow it to consider kappa nearest neighbors for kappa ~ k with some probability. We therefore call our classifier k-ish Nearest Neighbors (k-ish NN). The success probability of our solution depends on the distribution of the distances from q to S and increase as its statistical distance to Gaussian decrease. To implement our classifier we introduce the concept of double-blinded coin-toss. In a doubly-blinded coin-toss the success probability as well as the output of the toss are encrypted. We use this coin-toss to efficiently approximate the average and variance of the distances from q to S. We believe these two techniques may be of independent interest. When implemented with HE, the k-ish NN has a circuit depth that is independent of n, therefore making it scalable. We also implemented our classifier in an open source library based on HELib and tested it on a breast tumor database. The accuracy of our classifier (F_1 score) were 98\% and classification took less than 3 hours compared to (estimated) weeks in current HE implementations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。