{
  "id": "2021/1505",
  "url": "https://opencryptology.org/2021/1505",
  "original_url": "https://eprint.iacr.org/2021/1505",
  "title": "EVA Improved: Compiler and Extension Library for CKKS",
  "authors": [
    "Sangeeta Chowdhary",
    "Wei Dai",
    "Kim Laine",
    "Olli Saarikivi"
  ],
  "affiliations": null,
  "abstract": "Homomorphic encryption (HE), especially the CKKS scheme, can be extremely challenging to use.\nThe EVA language and compiler (Dathathri et al., PLDI 2020) was an attempt at addressing this challenge.\nEVA allows a developer to express their encrypted computation in a simple form with a Python-integrated language called PyEVA.\nIt then compiles the program into an executable form by inserting operations such as relinearization and rescaling, applying optimizations, and choosing encryption parameters with the objective of minimizing execution time.\nCompiled programs can be executed with a parallelizing back-end against a library of HE primitives.\n\nOur work improves upon the EVA toolchain in several ways: changes to the Python front-end make writing PyEVA programs more natural, while a rework of EVA's C++ APIs makes writing new passes easier. We also implement two new optimizations, common subexpression elimination and reduction balancing, which we show allow users to write simpler and more modular PyEVA programs.\n\nWe argue that the abstraction EVA provides is insufficient to resolve some common usability challenges.\nFor example, managing vectors of arbitrary size is non-trivial.\nTo resolve these problems, we demonstrate how building a library of commonly used data structures and functions is simple in PyEVA.\nEVA's automation allows writing very concise code, which gets fused and optimized together with the user program.\nWe create the beginnings of an EVA Extension Library (EXL), that provides vector and matrix classes and a collection of common statistical functions, to demonstrate the power of this approach.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“EVA Improved: Compiler and Extension Library for CKKS” by Sangeeta Chowdhary, Wei Dai, Kim Laine, Olli Saarikivi, Cryptology ePrint Archive, Paper 2021/1505, https://eprint.iacr.org/2021/1505. 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-11-15T12:58:57Z",
    "updated": "2021-11-15T12:58:57Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1505.pdf",
    "sha256": "622ee40e7da78da10558f06342e4070039cd636431413fb7535a53af72ff2091",
    "size": 386176,
    "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/1505/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/1505.pdf",
      "size": 386176,
      "sha256": "622ee40e7da78da10558f06342e4070039cd636431413fb7535a53af72ff2091",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240617114804id_/https://eprint.iacr.org/2021/1505.pdf",
      "captured_at": "2024-06-17T11:48:04Z",
      "size": 380489
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1505.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 386176
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1505,\n      author = {Sangeeta Chowdhary and Wei Dai and Kim Laine and Olli Saarikivi},\n      title = {EVA Improved: Compiler and Extension Library for CKKS},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1505},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1505}\n}"
}
