{
  "id": "2026/2264",
  "url": "https://opencryptology.org/2026/2264",
  "original_url": "https://eprint.iacr.org/2026/2264",
  "title": "THEMIS: Non-Interactive Secure Transformer Inference via Level Scheduling and Kernel Optimization",
  "authors": [
    "Shihao Li",
    "Wenhao Wang",
    "Lu Li",
    "Xiaomei Tang",
    "Jian Liu",
    "Rongmao Chen",
    "Cheng Hong",
    "Guangfu Sun"
  ],
  "affiliations": null,
  "abstract": "Non-interactive secure Transformer inference on RNS-CKKS remains slow because its homomorphic kernels are inherently expensive and become even costlier when their ciphertexts carry more RNS moduli. Existing frameworks optimize individual stages in isolation without considering where on the modulus chain each kernel runs. We present THEMIS, which couples level scheduling with kernel optimization. For level scheduling, THEMIS runs the compute-intensive matrix multiplications at the bottom of the modulus chain and compresses each depth-consuming nonlinear function into the levels restored by a single bootstrapping. For kernel optimization, we propose three designs that speed up individual stages. (i) We exploit the linearity of decryption to run slot-encoded plaintext-ciphertext matrix multiplication (PCMM) of linear projections directly as an exact integer GEMM over ciphertext coefficients without homomorphic operators or format conversions, and pack multiple inputs to fill the slots. (ii) We fold paired matrix dimensions of the attention ciphertext-ciphertext matrix multiplications (CCMMs) into complex slots to double per-ciphertext throughput, and combine baby-step giant-step accumulation with hoisting to reduce key switches. (iii) We precondition the first softmax denominator with a calibrated row-wise offset to narrow the input range of homomorphic reciprocal approximation, and reserve high-precision inversion for the final normalization. In kernel benchmarks, THEMIS accelerates PCMM by $21.66\\times$ and $QK^\\top$ by $7.39\\times$ over MOAI (ICLR'26), and evaluates softmax $2.57\\times$ faster than THOR (CCS'25) while improving precision from $8.84$ to $13.25$ bits. In end-to-end BERT-base inference, THEMIS outperforms MOAI by $2.07\\times$ and Euston (S&P'26) by $4.61\\times$ while preserving plaintext-comparable accuracy.",
  "category": "Applications",
  "license": {
    "code": "CC BY-NC-ND",
    "url": "https://creativecommons.org/licenses/by-nc-nd/4.0/",
    "label": "CC BY-NC-ND 4.0",
    "attribution": "“THEMIS: Non-Interactive Secure Transformer Inference via Level Scheduling and Kernel Optimization” by Shihao Li, Wenhao Wang, Lu Li, Xiaomei Tang, Jian Liu, Rongmao Chen, Cheng Hong, Guangfu Sun, Cryptology ePrint Archive, Paper 2026/2264, https://eprint.iacr.org/2026/2264. Licensed under CC BY-NC-ND 4.0 (https://creativecommons.org/licenses/by-nc-nd/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": true,
    "non_commercial": true
  },
  "dates": {
    "submitted": "2026-09-29T14:24:55Z",
    "updated": "2026-11-27T01:18:17Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/2264.pdf",
    "sha256": "df2b90c64a3f3e6776c54e20326926036840e63abbd2089a891225d3b6dad8c9",
    "size": 793731,
    "source": "upload",
    "source_date": "2026-11-12T03:19:17.606Z",
    "maybe_stale": true,
    "newer_on_eprint": true,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/2264/versions/20261112T031917Z.pdf",
      "captured_at": "2026-11-12T03:19:17.606Z",
      "label": "copy captured 2026-11-12",
      "source": "upload",
      "source_url": null,
      "size": 793731,
      "sha256": "df2b90c64a3f3e6776c54e20326926036840e63abbd2089a891225d3b6dad8c9",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/2264,\n      author = {Shihao Li and Wenhao Wang and Lu Li and Xiaomei Tang and Jian Liu and Rongmao Chen and Cheng Hong and Guangfu Sun},\n      title = {THEMIS: Non-Interactive Secure Transformer Inference via Level Scheduling and Kernel Optimization},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2264},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/2264}\n}"
}
