# Perseus: A Full-Stack System for Homomorphic Model Inference

arXiv: https://arxiv.org/abs/2611.04488 · HTML: https://mlsanity.com/paper/2611.04488/

## Key facts

- No citing papers in the map yet (data through 26 Nov 2026).
- Builds on 18 of its 49 references that are in the map.
- Submitted 3 Nov 2026.

## Builds on (most cited first, 18 of 18)

- [Encryption-Friendly LLM Architecture](https://mlsanity.com/paper/2410.02486/) (2024)
- [Orion: A Fully Homomorphic Encryption Framework for Deep Learning](https://mlsanity.com/paper/2311.03470/) (2023)
- [Power-Softmax: Towards Secure LLM Inference over Encrypted Data](https://mlsanity.com/paper/2410.09457/) (2024)
- [TensorFHE: Achieving Practical Computation on Encrypted Data Using GPGPU](https://mlsanity.com/paper/2212.14191/) (2022)
- [Cheddar: A Swift Fully Homomorphic Encryption Library Designed for GPU Architectures](https://mlsanity.com/paper/2407.13055/) (2024)
- [FIDESlib: A Fully-Fledged Open-Source FHE Library for Efficient CKKS on GPUs](https://mlsanity.com/paper/2507.04775/) (2025)
- [Efficient Decoding Methods for Language Models on Encrypted Data](https://mlsanity.com/paper/2509.08383/) (2025)
- [Cachemir: Fully Homomorphic Encrypted Inference of Generative Large Language Model with KV Cache](https://mlsanity.com/paper/2602.11470/) (2026)
- [Scaling up FHE-based Privacy-Preserving ML: Higher Throughput, Longer Inputs for LLama-3-8B](https://mlsanity.com/paper/2601.18511/) (2026)
- [ATLAS: Automated Approximation of Transformers for Efficient Homomorphic Inference in One Hour](https://mlsanity.com/paper/2607.23478/) (2026)
- [Medha: Microcoded Hardware Accelerator for computing on Encrypted Data](https://mlsanity.com/paper/2210.05476/) (2022)
- [REED: Chiplet-Based Accelerator for Fully Homomorphic Encryption](https://mlsanity.com/paper/2308.02885/) (2023)
- [ROSETTA: Efficient and Accurate Privacy-Preserving LLM Decoding via Hybrid CKKS/TFHE Evaluation](https://mlsanity.com/paper/2609.16915/) (2026)
- [Theodosian: A Deep Dive into Memory-Hierarchy-Centric FHE Acceleration](https://mlsanity.com/paper/2512.18345/) (2025)
- [HEAT: Faster Fully Homomorphic Inference via Approximations-Weights Co-Adaptation](https://mlsanity.com/paper/2609.01730/) (2026)
- [An Open-Source End-to-End FHE Implementation for Privacy-Preserving Llama 3 8B Inference](https://mlsanity.com/paper/2609.12378/) (2026)
- [Fiona: Accelerating FHE Inference with Packing-Aware Ternary Weights](https://mlsanity.com/paper/2609.35352/) (2026)
- [Static Bootstrap Placement for Encrypted Language Model Decoding](https://mlsanity.com/paper/2610.04912/) (2026)

## Abstract (arXiv)

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× 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.
