{
  "id": "2020/319",
  "url": "https://opencryptology.org/2020/319",
  "original_url": "https://eprint.iacr.org/2020/319",
  "title": "Secure k-ish nearest neighbors classifier",
  "authors": [
    "Hayim Shaul",
    "Dan Feldman",
    "Daniela Rus"
  ],
  "affiliations": null,
  "abstract": "The $k$-nearest neighbors ($k$NN) classifier predicts a class of a query, $q$, by taking the majority class of its $k$ neighbors in an existing (already classified) database, $S$.\nIn secure $k$NN, $q$ and $S$ are owned by two different parties and $q$ is classified without sharing data.\nIn this work we present a classifier based on $k$NN, that is more efficient to implement with homomorphic encryption (HE).\nThe efficiency of our classifier comes from a relaxation we make to consider $\\kappa$ nearest neighbors for\n$\\kappa\\approx k$ with probability that increases as the statistical distance between Gaussian and the distribution of the distances from $q$ to $S$ decreases.\nWe call our classifier $k$-ish Nearest Neighbors ($k$-ish NN).\nFor the implementation\nwe introduce {\\em double-blinded coin-toss} where\nthe bias and output of the toss are encrypted.\nWe use it to approximate the average and variance of the distances from $q$ to $S$\nin a scalable circuit whose depth is independent of $|S|$.\nWe believe these to be of independent interest.\nWe implemented our classifier in an open source library based on HElib and tested it on a breast tumor database.\nOur 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.\nIt also has communication complexity similar to naive HE implementation that have worse running time.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Secure k-ish nearest neighbors classifier” by Hayim Shaul, Dan Feldman, Daniela Rus, Cryptology ePrint Archive, Paper 2020/319, https://eprint.iacr.org/2020/319. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-03-15T16:29:25Z",
    "updated": "2020-03-15T16:29:25Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/319.pdf",
    "sha256": "104162cd6c67a4cf5d513b2c342abbb4460678957faee00368ca087a6d8a5939",
    "size": 824821,
    "source": "github-mirror",
    "source_date": "2020-04-17T10:36:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/319/versions/20200417T103614Z.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "label": "copy captured 2020-04-17",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/319.pdf",
      "size": 824821,
      "sha256": "104162cd6c67a4cf5d513b2c342abbb4460678957faee00368ca087a6d8a5939",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250118144651id_/https://eprint.iacr.org/2020/319.pdf",
      "captured_at": "2025-01-18T14:46:51Z",
      "size": 793996
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/319.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 824821
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/319,\n      author = {Hayim Shaul and Dan Feldman and Daniela Rus},\n      title = {Secure k-ish nearest neighbors classifier},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/319},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/319}\n}"
}
