{
  "id": "2024/1851",
  "url": "https://opencryptology.org/2024/1851",
  "original_url": "https://eprint.iacr.org/2024/1851",
  "title": "Secure Transformer-Based Neural Network Inference for Protein Sequence Classification",
  "authors": [
    "Jingwei Chen",
    "Linhan Yang",
    "Chen Yang",
    "Shuai Wang",
    "Rui Li",
    "Weijie Miao",
    "Wenyuan Wu",
    "Li Yang",
    "Kang Wu",
    "Lizhong Dai"
  ],
  "affiliations": null,
  "abstract": "Protein sequence classification is crucial in many research areas, such as predicting protein structures and discovering new protein functions. Leveraging large language models (LLMs) is greatly promising to enhance our ability to tackle protein sequence classification problems; however, the accompanying privacy issues are becoming increasingly prominent. In this paper, we present a privacy-preserving, non-interactive, efficient, and accurate protocol called encrypted DASHformer to evaluate a transformer-based neural network for protein sequence classification named DASHformer, provided by the iDASH 2024-Track 1 competition.  The presented protocol is based on our solution for this competition, which won the first place. It is arguably the first secure transformer inference protocol capable of performing batch classification for multiple protein sequences in a single execution only using leveled homomorphic encryption (i.e., without bootstrapping). To achieve this, we propose a series of new techniques and algorithmic improvements, including data-driven non-polynomial function fitting, tensor packing, and double baby-step-giant-step for computing the product of multiple encrypted matrices. These techniques and improvements enable the protocol to classify $163$ encrypted protein sequences in about $165$ seconds with $128$-bit security, achieving an amortized time of about one second per sequence.",
  "category": "Applications",
  "license": {
    "code": "CC BY-NC",
    "url": "https://creativecommons.org/licenses/by-nc/4.0/",
    "label": "CC BY-NC 4.0",
    "attribution": "“Secure Transformer-Based Neural Network Inference for Protein Sequence Classification” by Jingwei Chen, Linhan Yang, Chen Yang, Shuai Wang, Rui Li, Weijie Miao, Wenyuan Wu, Li Yang, Kang Wu, Lizhong Dai, Cryptology ePrint Archive, Paper 2024/1851, https://eprint.iacr.org/2024/1851. Licensed under CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": true
  },
  "dates": {
    "submitted": "2024-11-12T10:30:24Z",
    "updated": "2024-11-12T10:30:24Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1851.pdf",
    "sha256": "a31db8603baf9bb4817dc1481f11e8dd87fc23617b30b7928920597f847e1f7c",
    "size": 603829,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1851/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1851.pdf",
      "size": 603829,
      "sha256": "a31db8603baf9bb4817dc1481f11e8dd87fc23617b30b7928920597f847e1f7c",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1851.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 603829
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230034408id_/https://eprint.iacr.org/2024/1851.pdf",
      "captured_at": "2025-12-30T03:44:08Z",
      "size": 558962
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1851,\n      author = {Jingwei Chen and Linhan Yang and Chen Yang and Shuai Wang and Rui Li and Weijie Miao and Wenyuan Wu and Li Yang and Kang Wu and Lizhong Dai},\n      title = {Secure Transformer-Based Neural Network Inference for Protein Sequence Classification},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1851},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1851}\n}"
}
