{
  "id": "2021/069",
  "url": "https://opencryptology.org/2021/069",
  "original_url": "https://eprint.iacr.org/2021/069",
  "title": "Fast Privacy-Preserving Text Classification based on Secure Multiparty Computation",
  "authors": [
    "Amanda Resende",
    "Davis Railsback",
    "Rafael Dowsley",
    "Anderson C. A. Nascimento",
    "Diego F. Aranha"
  ],
  "affiliations": null,
  "abstract": "We propose a privacy-preserving Naive Bayes classifier and apply it to the problem of private text classification. In this setting, a party (Alice) holds a text message, while another party (Bob) holds a classifier. At the end of the protocol, Alice will only learn the result of the classifier applied to her text input and Bob learns nothing. Our solution is based on Secure Multiparty Computation (SMC). Our Rust implementation provides a fast and secure solution for the classification of unstructured text. Applying our solution to the case of spam detection (the solution is generic, and can be used in any other scenario in which the Naive Bayes classifier can be employed), we can classify an SMS as spam or ham in less than 340ms in the case where the dictionary size of Bob's model includes all words ($n = 5200$) and Alice's SMS has at most $m = 160$ unigrams. In the case with $n = 369$ and $m = 8$ (the average of a spam SMS in the database), our solution takes only 21ms.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Fast Privacy-Preserving Text Classification based on Secure Multiparty Computation” by Amanda Resende, Davis Railsback, Rafael Dowsley, Anderson C. A. Nascimento, Diego F. Aranha, Cryptology ePrint Archive, Paper 2021/069, https://eprint.iacr.org/2021/069. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-01-22T20:29:15Z",
    "updated": "2021-06-08T06:20:00Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/069.pdf",
    "sha256": "e91e521a3bbd405741c2ac1d11c186f1c4a0e31b22877f4bf39075d0320e5590",
    "size": 573975,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/069/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/69.pdf",
      "size": 573975,
      "sha256": "e91e521a3bbd405741c2ac1d11c186f1c4a0e31b22877f4bf39075d0320e5590",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/069/versions/20210510T180851Z.pdf",
      "captured_at": "2021-05-10T18:08:51Z",
      "label": "copy captured 2021-05-10",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210510180851id_/https://eprint.iacr.org/2021/069.pdf",
      "size": 558404,
      "sha256": "65755ea97177f2d749ade581094ca0f03bd5e59264da6cb66cf9d42f55843f8e",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260105161039id_/https://eprint.iacr.org/2021/069.pdf",
      "captured_at": "2026-01-05T16:10:39Z",
      "size": 572112
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/69.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 573975
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/069,\n      author = {Amanda Resende and Davis Railsback and Rafael Dowsley and Anderson C. A. Nascimento and Diego F. Aranha},\n      title = {Fast Privacy-Preserving Text Classification based on Secure Multiparty Computation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/069},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/069}\n}"
}
