↓ Skip to main content
  1. Index/
  2. đź“„ Publications/

Perseus: A Full-Stack System for Homomorphic Model Inference

Alessandro Zirilli , 

Davide Marincione

, 

Evgenios M. Kornaropoulos

, 

Giuseppe Ateniese

, 

Emanuele RodolĂ 

·2 mins
BibTeX Citation
@misc{zirilli2026perseus,
      title={Perseus: A Full-Stack System for Homomorphic Model Inference}, 
      author={Alessandro Zirilli and Davide Marincione and Evgenios M. Kornaropoulos and Giuseppe Ateniese and Emanuele RodolĂ },
      year={2026},
      eprint={2611.04488},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2611.04488}, 
}

Perseus is a free and open Python library for the full stack of encrypted model inference: from the cryptographic backend and data packing, to encrypted nonlinearities and end-to-end model execution. It reaches state-of-the-art latency across models and modalities, within 3% of the plaintext models’ accuracy and perplexity, and it is 3.96Ă— faster at single-token decoding on Llama-3-8B than any other implementation.

Under CKKS every multiplication consumes part of a ciphertext’s level budget, and once it runs out the value must be refreshed by a bootstrap, by far the most expensive operation in the model. Where bootstraps sit, and which kind is used, decides most of the inference time, yet existing tools place them from the multiplication count alone, without looking at the values being refreshed.

Perseus records one encrypted forward pass of the model (every ciphertext, its data layout and its magnitude) and plans bootstraps from it: a minimum-cut algorithm picks the positions, each bootstrap gets the scaling its values allow, and a cheaper sparse bootstrap is used wherever a ciphertext holds only a few distinct values. On encrypted GPT-2 generation, Perseus runs 416 bootstraps per token against 584–894 for DaCapo, Orion and Fhelipe, and decodes in 1.55 s per token at a 512-token context on a single RTX PRO 6000.

In the card below you can find our codebase, with the planner, GPT-2 on the Perseus runtime, and every plan behind the results.

Alessandro Zirilli
Author
Alessandro Zirilli