Breaking the Layer Barrier: Remodeling Private Transformer Inference with Hybrid CKKS and MPC

Tianshi Xu, Peking University; Wen-jie Lu, TikTok; Jiangrui Yu, Yi Chen, Chenqi Lin, Runsheng Wang, and Meng Li, Peking University

This paper presents an efficient framework for private Transformer inference that combines Homomorphic Encryption (HE) and Secure Multi-party Computation (MPC) to protect data privacy. Existing methods often leverage HE for linear layers (e.g., matrix multiplications) and MPC for non-linear layers (e.g., Softmax activation functions), but the conversion between HE and MPC introduces significant communication costs. The proposed framework, dubbed BLB, overcomes this by breaking down layers into fine-grained operators and further fusing adjacent linear operators, reducing the need for HE/MPC conversions. To manage the increased ciphertext bit width from the fused linear operators, BLB proposes the first secure conversion protocol between CKKS and MPC and enables CKKS-based computation of the fused operators. Additionally, BLB proposes an efficient matrix multiplication protocol for fused computation in Transformers. Extensive evaluations on BERT-base, BERT-large, and GPT2-base show that BLB achieves a 21x reduction in communication overhead compared to BOLT (S&P '24) and a 2x reduction compared to Bumblebee (NDSS '25), along with latency reductions of 13x and 1.8x, respectively, when leveraging GPU acceleration.

Category: 
Short Presentation

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {309470,
author = {Tianshi Xu and Wen-jie Lu and Jiangrui Yu and Yi Chen and Chenqi Lin and Runsheng Wang and Meng Li},
title = {Breaking the Layer Barrier: Remodeling Private Transformer Inference with Hybrid {CKKS} and {MPC}},
booktitle = {34th USENIX Security Symposium (USENIX Security 25)},
year = {2025},
isbn = {978-1-939133-52-6},
address = {Seattle, WA},
pages = {2653--2672},
url = {https://www.usenix.org/conference/usenixsecurity25/presentation/xu-tianshi},
publisher = {USENIX Association},
month = aug
}

Presentation Video