Tricycle: Private Transformer Inference with Tricyclic Encodings

The growing deployment of large language models (LLMs) in privacy-sensitive settings demands inference mechanisms that preserve data confidentiality. Homomorphic encryption (HE) offers a principled solution by enabling computation directly on encrypted data; however, existing solutions struggle to scale to full LLMs. We present Tricycle, a system for efficient private transformer inference. At its core, Tricycle introduces tricyclic encodings, a novel packing scheme that enables batch matrix multiplications with optimal multiplicative depth while naturally supporting multi-head attention. We demonstrate that Tricycle's matrix multiplications are particularly amenable for integration with other optimizations including Baby-Step Giant-Step optimizations, optimized block matrix multiplications, lazy relinearization, and complexification, which significantly improve performance. We further introduce statistical max estimation, a lightweight method for stabilizing softmax under HE. We implement Tricycle end-to-end on a GPU-accelerated CKKS pipeline and evaluate it on BERT models. For BERT-Base with 128 tokens, Tricycle achieves 100.5 seconds latency on a single GPU, yielding 6× and 3.4× speedups over prior state-of-the-art systems, Thor and Powerformer, respectively. These results demonstrate that careful design of packing, algorithms, and optimizations can significantly reduce the cost of private LLM inference, bringing practical deployment closer to reality.

Link
https://www.semanticscholar.org/paper/177d5329880f1a7a7d414fbe7c383a1632b54ea9
Found by
Semantic Scholar
Authors
Lawrence Lim, Vikas Kalagi, Julia Novick, Jia-Ming Liu, D. Agrawal, A. El Abbadi
Categories
evaluation
Published
2026-11-14
Last seen by the radar
2026-11-15
Citations
1
Influential citations
0
Radar score
34.11 / 100 (how it is scored)
Why it scored so
Matched: evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3830454.3846818
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar