Skip to main content
QUICK REVIEW

[Paper Review] Scalable Secure Computation of Statistical Functions with Applications to k-Nearest Neighbors.

Hayim Shaul, Dan Feldman|arXiv (Cornell University)|Jan 22, 2018
Cryptography and Data SecurityComputer Science2 references4 citations
TL;DR

This paper presents the first scalable fully homomorphic encryption (FHE)-based algorithm for secure k-nearest neighbors (KNN) computation, using a novel statistical coreset and a custom coin toss technique to enable efficient, polynomial-time evaluation independent of dataset size n. Experiments show sub-hour performance for finding 20 nearest neighbors among over 1000 points using FHE.

ABSTRACT

Given a set $S$ of $n$ $d$-dimensional points, the $k$-nearest neighbors (KNN) is the problem of quickly finding $k$ points in $S$ that are nearest to a query point $q$. The $k$-nearest neighbors problem has applications in machine learning for classification and regression and also in searching. The secure version of KNN where either $q$ or $S$ are encrypted, has applications such as providing services over sensitive (such as medical or localization) data. In this work we present the first scalable and efficient algorithm for solving KNN with Fully Homomorphic Encryption (FHE) that is realized by a polynomial whose degree is independent of $n$, the number of points. We implemented our algorithm in an open source library based on HELib implementation for the Brakerski-Gentry-Vakuntanthan's FHE scheme, and ran experiments on MIT's OpenStack cloud. Our experiments show that given a query point $q$, we can find the set of 20 nearest points out of more than 1000 points in less than an hour. Our result introduces a statistical coreset, which is a data summarization technique that allows statistical functions, such as moments, to be efficiently and scalably computed. As a central tool, we design a new coin toss technique which we use to build the coreset. This coin toss technique and computation of statistical functions may be of independent interest.

Motivation & Objective

  • To enable secure computation of k-nearest neighbors on encrypted data, particularly for sensitive applications like medical or location data.
  • To design a scalable and efficient FHE-based solution for KNN where the computation time is independent of the number of data points n.
  • To introduce a statistical coreset technique that enables efficient and secure computation of statistical functions like moments under FHE.
  • To develop a novel coin toss technique for use in coreset construction that supports secure and scalable statistical aggregation.
  • To demonstrate practical feasibility of secure KNN via implementation and evaluation on real cloud infrastructure.

Proposed method

  • Proposes a statistical coreset that summarizes large datasets while preserving the ability to compute statistical functions securely under FHE.
  • Introduces a new coin toss technique to enable secure, verifiable random selection during coreset construction, crucial for statistical accuracy and privacy.
  • Designs a homomorphic evaluation protocol for distance computation and nearest neighbor search using FHE, with polynomial degree independent of n.
  • Implements the algorithm using the Brakerski-Gentry-Vakulchuk FHE scheme via the HELib library for efficient homomorphic operations.
  • Executes experiments on MIT's OpenStack cloud to evaluate performance on datasets with over 1000 d-dimensional points.
  • Optimizes the FHE pipeline to minimize bootstrapping and reduce noise growth, enabling practical runtime on large-scale data.

Experimental results

Research questions

  • RQ1Can a secure and scalable KNN algorithm be built using fully homomorphic encryption with performance independent of dataset size?
  • RQ2How can statistical functions such as moments be efficiently computed on encrypted data using FHE?
  • RQ3What novel cryptographic primitives are needed to enable secure and efficient coreset construction under FHE?
  • RQ4Can a practical FHE-based KNN system be implemented and evaluated on real cloud infrastructure?
  • RQ5What performance characteristics can be achieved for secure KNN with a large number of points using current FHE libraries?

Key findings

  • The proposed FHE-based KNN algorithm achieves sub-hour execution time for computing 20 nearest neighbors among more than 1000 d-dimensional points.
  • The algorithm's computational complexity is independent of the number of data points n, due to the use of a statistical coreset and efficient homomorphic evaluation.
  • The novel coin toss technique enables secure and efficient random sampling within the coreset construction process, critical for statistical accuracy.
  • The implementation using HELib and the Brakerski-Gentry-Vakulchuk FHE scheme demonstrates practical feasibility of secure KNN on real cloud hardware.
  • The statistical coreset enables efficient and secure computation of moments and other statistical functions under FHE, with potential for broader application.
  • The results show that secure KNN with FHE is now scalable enough for practical deployment in privacy-sensitive domains like healthcare and geolocation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.