{
  "id": "2018/1032",
  "url": "https://opencryptology.org/2018/1032",
  "original_url": "https://eprint.iacr.org/2018/1032",
  "title": "Conditionals in Homomorphic Encryption and Machine Learning Applications",
  "authors": [
    "Diego Chialva",
    "Ann Dooms"
  ],
  "affiliations": null,
  "abstract": "Homomorphic encryption has the purpose to allow computations on\nencrypted data, without the need for decryption other than that\nof the final result. This could provide an elegant solution to the problem of privacy\npreservation in data-based applications, such as those provided\nand/or facilitated by machine learning techniques, but several\nlimitations and open issues hamper the fulfillment of this plan.\nIn this work we assess the possibility for homomorphic\nencryption to fully implement its program without the need\nto rely on other techniques, such as multiparty computation, which\nmay be impossible in many actual use cases\n(for instance due to the high level of communication required).\nWe proceed in two steps:\ni) on the basis of the well-known structured program theorem\n[Bohm and Jacopini] we identify the relevant minimal\nset of operations homomorphic encryption must be able to perform\nto implement any algorithm; and ii) we analyse the possibility to\nsolve -and propose an implementation for- the most fundamentally\nrelevant issue as it emerges from our analysis, that is, the\nimplementation of conditionals (which in turn require comparison\nand selection/jump operations) in full homomorphic encryption.\nWe show how this issue has a serious impact and clashes with the\nfundamental requirements of homomorphic encryption.\nThis could represent a drawback for its use as a\ncomplete solution in data analysis applications,\nin particular machine learning. It will thus possibly require\na deep re-thinking of the homomorphic encryption program for\nprivacy preservation.\n\nWe note that our approach to comparisons is novel, and for the first\ntime completely embedded in homomorphic encryption,\ndifferently from what proposed in previous studies\n(and beyond that, we supplement it with the necessary\nselection/jump operation).\nA number of studies have indeed dealt with comparisons,\nbut have not managed to perform them in pure homomorphic encryption.\nTypically their comparison protocols do not utilise homomorphic\nencryption for the comparison itself, but rely on other\ncryptographic techniques, such as secure multiparty\ncomputation, which\na) require a high level of communication\nbetween parties (each single comparison in a machine\nlearning training and prediction process must be\nperformed by exchanging several messages), which\nmay not be possible in various use cases, and\nb) required the data owner to decrypt\nintermediate results, extract significant\nbits for the comparison, re-encrypt and send the\nresult back to the other party for the accomplishment\nof the algorithm. Such ``decryption'' in the middle\nfoils the purpose of homomorphic encryption.\nBeside requiring only homomorphic encryption,\nand not any intermediate decryption, our protocol\nis also provably safe (as it shares the same safety as\nthe homomorphic encryption schemes), differently\nfrom other techniques such as OPE/ORE and variations,\nwhich have been proved not secure.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Conditionals in Homomorphic Encryption and Machine Learning Applications” by Diego Chialva, Ann Dooms, Cryptology ePrint Archive, Paper 2018/1032, https://eprint.iacr.org/2018/1032. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-10-30T18:36:35Z",
    "updated": "2018-10-30T18:36:35Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/1032.pdf",
    "sha256": "9a732403edf1d9d816cb5034ba9a39d8f7019cf0d67c20f27b408478567eac6a",
    "size": 394072,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/1032/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/1032.pdf",
      "size": 394072,
      "sha256": "9a732403edf1d9d816cb5034ba9a39d8f7019cf0d67c20f27b408478567eac6a",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251207235818id_/https://eprint.iacr.org/2018/1032.pdf",
      "captured_at": "2025-12-07T23:58:18Z",
      "size": 383823
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/1032.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 394072
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/1032,\n      author = {Diego Chialva and Ann Dooms},\n      title = {Conditionals in Homomorphic Encryption and Machine Learning Applications},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/1032},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/1032}\n}"
}
