Paper 2026/1870
Terrazzo: Memory-Aware GPU Framework for Private Transformer Inference
Abstract
Fully homomorphic encryption (FHE) allows a server to run inference directly on encrypted data, making it a promising foundation for private transformer inference. Its dominant scheme, CKKS, has no native matrix multiplication, so the encrypted matrix multiplications at the heart of transformers dominate inference cost. The recent GL scheme supports matrix multiplication natively, but its ciphertexts, plaintexts, and evaluation keys are so large that a direct GPU implementation would require terabytes of VRAM for even small language models. We present Terrazzo, a GPU framework for the GL scheme, co-designed across cryptography, algorithms, and kernels to fit private inference on a commodity GPU. Terrazzo bootstraps into a compact Y-decoded representation, so nonlinear layers never hold full ciphertexts live; tiles all work over GL's independently schedulable ciphertext slices, sizing each tile per level against an L2 and occupancy model; confines grafting-based modulus management to application levels around a sprout-free bootstrap; and keeps every model weight at its cleartext footprint with an expansion-free plaintext pipeline. On BERT-base at full 256-input occupancy, Terrazzo achieves a 7.04 s amortized time per input on a consumer 32 GB RTX 5090. Its A100 time is 29.98 s amortized, a 2.20-20.09x speedup over prior single-A100 systems. Per-slice bootstrap speedup is 1.12–2.03x on the RTX 5090 and 1.08-1.36x on the A100.
Metadata
- Available format(s)
-
PDF
- Category
- Implementation
- Publication info
- Preprint.
- Keywords
- Fully homomorphic encryptionGL schemeprivate inferenceGPU accelerationtransformersbootstrapping
- Contact author(s)
- tsoutsos @ udel edu
- History
- 2026-09-06: approved
- 2026-09-02: received
- See all versions
- Short URL
- https://ia.cr/2026/1870
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2026/1870,
author = {Rostin Shokri and Nektarios Georgios Tsoutsos},
title = {Terrazzo: Memory-Aware {GPU} Framework for Private Transformer Inference},
howpublished = {Cryptology {ePrint} Archive, Paper 2026/1870},
year = {2026},
url = {https://eprint.iacr.org/2026/1870}
}