{
  "id": "2026/1870",
  "url": "https://opencryptology.org/2026/1870",
  "original_url": "https://eprint.iacr.org/2026/1870",
  "title": "Terrazzo: Memory-Aware GPU Framework for Private Transformer Inference",
  "authors": [
    "Rostin Shokri",
    "Nektarios Georgios Tsoutsos"
  ],
  "affiliations": null,
  "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 (Cheon, Kim, Kim and Song), has no native matrix multiplication, so the encrypted matrix multiplications at the heart of transformers dominate inference cost. The recent matrix FHE scheme of Gentry and Lee (GL) 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 in L2-sized tiles; 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. Terrazzo targets batched inference, in which one client submits many inputs under one key set: one encrypted BERT-base pass carries up to 256 inputs and takes 273.7s on a consumer RTX 5090 and 640.3s on an A100, which is also the latency of a single input. At full occupancy this is 1.07s and 2.50s per input, 26 - 241x below the per-input latency of prior single-A100 systems. Per-slice bootstrap speedup over Cheddar and Theodosian, the state-of-the-art CKKS GPU works, is 1.91 - 3.48x on the RTX 5090 and 2.20 - 2.77x on the A100.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Terrazzo: Memory-Aware GPU Framework for Private Transformer Inference” by Rostin Shokri, Nektarios Georgios Tsoutsos, Cryptology ePrint Archive, Paper 2026/1870, https://eprint.iacr.org/2026/1870. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-09-02T17:24:33Z",
    "updated": "2026-11-26T20:28:02Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/1870.pdf",
    "sha256": "e844ceb5a449948952b0a420dddab8891c841e20d13878c79928fde9923eed77",
    "size": 1001058,
    "source": "upload",
    "source_date": "2026-11-28T19:36:36.630Z",
    "maybe_stale": false,
    "newer_on_eprint": false,
    "eprint_size": 1001058,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/1870/versions/20261128T193636Z.pdf",
      "captured_at": "2026-11-28T19:36:36.630Z",
      "label": "copy captured 2026-11-28",
      "source": "upload",
      "source_url": null,
      "size": 1001058,
      "sha256": "e844ceb5a449948952b0a420dddab8891c841e20d13878c79928fde9923eed77",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2026/1870/versions/20261002T082556Z.pdf",
      "captured_at": "2026-10-02T08:25:56Z",
      "label": "copy captured 2026-10-02",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20261002082556id_/https://eprint.iacr.org/2026/1870.pdf",
      "size": 729205,
      "sha256": "455ef00c2f519e9795cf1d8c474a84ffc044ab4d59df1a8251f4f744ccc3a45f",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261002082556id_/https://eprint.iacr.org/2026/1870.pdf",
      "captured_at": "2026-10-02T08:25:56Z",
      "size": 727204
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/1870,\n      author = {Rostin Shokri and Nektarios Georgios Tsoutsos},\n      title = {Terrazzo: Memory-Aware GPU Framework for Private Transformer Inference},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1870},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/1870}\n}"
}
