{
  "id": "2021/087",
  "url": "https://opencryptology.org/2021/087",
  "original_url": "https://eprint.iacr.org/2021/087",
  "title": "ZEN: An Optimizing Compiler for Verifiable, Zero-Knowledge Neural Network Inferences",
  "authors": [
    "Boyuan Feng",
    "Lianke Qin",
    "Zhenfei Zhang",
    "Yufei Ding",
    "Shumo Chu"
  ],
  "affiliations": null,
  "abstract": "We present ZEN, the first optimizing compiler that generates efficient verifiable, zero-knowledge neural network inference schemes.\nZEN generates two schemes: ZEN$_{acc}$ and ZEN$_{infer}$.\nZEN$_{acc}$ proves the accuracy of a committed neural network model;\nZEN$_{infer}$ proves a specific inference result.\nUsed in combination, these verifiable computation schemes ensure both the privacy of the sensitive user data as well as the confidentiality of the neural network models.\nHowever, directly using these schemes on zkSNARKs requires prohibitive computational cost.\nAs an optimizing compiler, ZEN introduces two kinds of optimizations to address this issue: first, ZEN incorporates a\nnew neural network quantization algorithm that incorporate two R1CS friendly optimizations which makes the model to be express in zkSNARKs with less constraints and minimal accuracy loss; second, ZEN introduces a SIMD style optimization, namely stranded encoding, that can encoding multiple 8bit integers in large finite field elements without overwhelming extraction cost.\nCombining these optimizations,  ZEN produces verifiable neural network inference schemes with ${\\bf 5.43} \\sim {\\bf 22.19} \\times$ ($15.35 \\times$ on average) less R1CS constraints.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“ZEN: An Optimizing Compiler for Verifiable, Zero-Knowledge Neural Network Inferences” by Boyuan Feng, Lianke Qin, Zhenfei Zhang, Yufei Ding, Shumo Chu, Cryptology ePrint Archive, Paper 2021/087, https://eprint.iacr.org/2021/087. 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-27T13:26:48Z",
    "updated": "2021-05-15T22:42:58Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/087.pdf",
    "sha256": "56e0e2e9c3ac89c4e01047b1ba1d01b31ae712a1a6315c0c3dc9a3fdf0f495e0",
    "size": 1272930,
    "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/087/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/87.pdf",
      "size": 1272930,
      "sha256": "56e0e2e9c3ac89c4e01047b1ba1d01b31ae712a1a6315c0c3dc9a3fdf0f495e0",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/087/versions/20210203T200432Z.pdf",
      "captured_at": "2021-02-03T20:04:32Z",
      "label": "copy captured 2021-02-03",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210203200432id_/https://eprint.iacr.org/2021/087.pdf",
      "size": 1089729,
      "sha256": "abf46e2681298dad467cf393edea4a926b9fba412df00cd99ffe1a97db7b3320",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260110152524id_/https://eprint.iacr.org/2021/087.pdf",
      "captured_at": "2026-01-10T15:25:24Z",
      "size": 1223075
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/87.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 1272930
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/087,\n      author = {Boyuan Feng and Lianke Qin and Zhenfei Zhang and Yufei Ding and Shumo Chu},\n      title = {ZEN: An Optimizing Compiler for Verifiable, Zero-Knowledge Neural Network Inferences},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/087},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/087}\n}"
}
