Paper 2026/2047

ROSETTA: Efficient and Accurate Privacy-Preserving LLM Decoding via Hybrid CKKS/TFHE Evaluation

Jiangrui Yu, Peking University
Baosheng Zhang, Xi'an Jiaotong University
Liang Kong, Ant Group
Lin Ding, Peking University
Yi Chen, Peking University
Ye Yu, Peking University
Mingzhe Zhang, Ant Group
Meng Li, Peking University
Abstract

Generative large language models (LLMs) have achieved state-of-the-art performance on many real-world tasks such as code generation and question answering. These models predominantly rely on an autoregressive decoding strategy that generates output tokens sequentially. However, their pervasive deployment raises serious privacy concerns, motivating private inference frameworks based on fully homomorphic encryption (FHE). A major limitation of existing FHE frameworks is their inefficiency in evaluating nonlinear operations, which incur substantial overhead and dominate the decode stage. In this paper, we propose ROSETTA, a hybrid CKKS/TFHE framework that overcomes this limitation. We first observe that nonlinear operations in the decode stage exhibit heterogeneous workload patterns, which can be handled effectively via a hybrid approach. We then realize this with two key contributions: 1) an adaptive segmented lookup-table protocol based on TFHE that enables efficient and accurate evaluation of nonlinear operations; and 2) a scheme-aware operator-selection framework that automatically assigns each nonlinear operator to CKKS or TFHE to minimize end-to-end decoding latency. We demonstrate that ROSETTA achieves up to 4.8x Softmax speedup and 1.5--2.1x end-to-end speedup over the SOTA framework CacheMir.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Published elsewhere. ACM SIGSAC Conference on Computer and Communications Security (CCS 2026)
DOI
10.1145/3830454.3846549
Keywords
fully homomorphic encryptionCKKSTFHEprivacy-preserving inferenceLLMsprogrammable bootstrapping
Contact author(s)
jiangrui yu @ stu pku edu cn
2831532315 @ stu xjtu edu cn
kongliang kong @ antgroup com
dinglin @ pku edu cn
yichen25 @ stu pku edu cn
yy3628 @ columbia edu
smartzmz @ gmail com
meng li @ pku edu cn
History
2026-09-17: approved
2026-09-15: received
See all versions
Short URL
https://ia.cr/2026/2047
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/2047,
      author = {Jiangrui Yu and Baosheng Zhang and Liang Kong and Lin Ding and Yi Chen and Ye Yu and Mingzhe Zhang and Meng Li},
      title = {{ROSETTA}: Efficient and Accurate Privacy-Preserving {LLM} Decoding via Hybrid {CKKS}/{TFHE} Evaluation},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2047},
      year = {2026},
      doi = {10.1145/3830454.3846549},
      url = {https://eprint.iacr.org/2026/2047}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.