Paper 2026/2735

Perseus: A Full-Stack System for Homomorphic Model Inference

Alessandro Zirilli, Sapienza University of Rome
Davide Marincione, Sapienza University of Rome, Paradigma
Evgenios M. Kornaropoulos, George Mason University
Giuseppe Ateniese, George Mason University
Emanuele Rodolà, Sapienza University of Rome, Paradigma
Abstract

Large Language Models (LLMs) have made it exceptionally convenient for users to send their private data to model providers, which process them in plaintext. Fully Homomorphic Encryption (FHE) promises to secure remote inference by computing directly on encrypted data, yet it has remained prohibitively slow. The effort to make it practical remains fragmented, with most existing frameworks being closed-source, which keeps progress from compounding. We present Perseus, a free and open Python software library that supports the full stack of encrypted model inference, from the cryptographic backend and data packing, to encrypted nonlinearities and end-to-end model execution. Perseus ships with built-in novel optimizations, one at each level of the stack: in-kernel regeneration of key-switching keys at the (i) backend level, a complex variant of Cachemir packing at the (ii) data level, and a state-of-the-art bootstrap placer that is both packing- and magnitude-aware at the (iii) model level. Perseus achieves state-of-the-art latency across multiple models and modalities, within $3\%$ of the plaintext models' accuracy and perplexity. Remarkably, it is $3.96\times$ faster at single-token decoding than any other implementation on Llama-3-8B. We initiate, for the first time, a public speedrun on encrypted GPT-2, so that progress can compound.

Note: 4 pages, 5 tables.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
Keywords
Fully Homomorphic EncryptionFHELanguage ModelsLLMsCKKSGPUBootstrap PlacementComplex Packing
Contact author(s)
alessandro zirilli @ uniroma1 it
davide marincione @ uniroma1 it
evgenios @ gmu edu
ateniese @ gmu edu
rodola @ di uniroma1 it
History
2026-11-05: approved
2026-11-03: received
See all versions
Short URL
https://ia.cr/2026/2735
License
Creative Commons Attribution-NonCommercial-ShareAlike
CC BY-NC-SA

BibTeX

@misc{cryptoeprint:2026/2735,
      author = {Alessandro Zirilli and Davide Marincione and Evgenios M. Kornaropoulos and Giuseppe Ateniese and Emanuele Rodolà},
      title = {Perseus: A Full-Stack System for Homomorphic Model Inference},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2735},
      year = {2026},
      url = {https://eprint.iacr.org/2026/2735}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.