TY - JOUR
T1 - PrivTI
T2 - Efficient End-to-End Privacy-Preserving Inference for Transformer-Based Models in MLaaS
AU - Luo, Mingshun
AU - He, Haolei
AU - Yang, Wenti
AU - Li, Meng
AU - Wu, Longfei
AU - Zhang, Zijian
AU - Guan, Zhitao
N1 - Publisher Copyright:
© 2008-2012 IEEE.
PY - 2026/9/1
Y1 - 2026/9/1
N2 - Machine Learning as a Service (MLaaS) offers convenient access to high-quality transformer-based model inference without local deployment, but it requires uploading sensitive data to the server, raising significant privacy concerns. Recent advances in homomorphic encryption (HE) and secure multi-party computation (MPC) have shown great potential for enabling privacy-preserving inference. However, existing schemes face challenges with transformer-based models due to massive matrix multiplications and complex non-linear functions. To address these challenges, we propose PrivTI, an efficient end-to-end privacy-preserving inference framework for transformer-based models. Specifically, we design an HE-based single-instruction multiple-data (SIMD) encoding scheme to perform matrix multiplication efficiently. To handle non-linear functions, we develop MPC-friendly protocols for core functions like GELU, Softmax, and LayerNorm, and further extend support to SiLU and RMSNorm. Moreover, PrivTI supports conversions between HE and MPC, enabling end-to-end privacy-preserving inference. Experimental results demonstrate that PrivTI achieves speedups 1.9-45.2× in matrix multiplication and 1.1-18.9× in non-linear function evaluation compared to baseline schemes IRON, BOLT, and NEXUS under the Local Area Network (LAN) setting. Additionally, PrivTI reduces communication overhead by 1.1-4898.7×. Moreover, end-to-end benchmarks show 3.3-9.8× improvements in computation speed and 1.6-6.2× reductions in communication overhead.
AB - Machine Learning as a Service (MLaaS) offers convenient access to high-quality transformer-based model inference without local deployment, but it requires uploading sensitive data to the server, raising significant privacy concerns. Recent advances in homomorphic encryption (HE) and secure multi-party computation (MPC) have shown great potential for enabling privacy-preserving inference. However, existing schemes face challenges with transformer-based models due to massive matrix multiplications and complex non-linear functions. To address these challenges, we propose PrivTI, an efficient end-to-end privacy-preserving inference framework for transformer-based models. Specifically, we design an HE-based single-instruction multiple-data (SIMD) encoding scheme to perform matrix multiplication efficiently. To handle non-linear functions, we develop MPC-friendly protocols for core functions like GELU, Softmax, and LayerNorm, and further extend support to SiLU and RMSNorm. Moreover, PrivTI supports conversions between HE and MPC, enabling end-to-end privacy-preserving inference. Experimental results demonstrate that PrivTI achieves speedups 1.9-45.2× in matrix multiplication and 1.1-18.9× in non-linear function evaluation compared to baseline schemes IRON, BOLT, and NEXUS under the Local Area Network (LAN) setting. Additionally, PrivTI reduces communication overhead by 1.1-4898.7×. Moreover, end-to-end benchmarks show 3.3-9.8× improvements in computation speed and 1.6-6.2× reductions in communication overhead.
KW - Privacy-preserving machine learning
KW - homomorphic encryption
KW - private transformer inference
KW - secure multi-party computation
UR - https://www.scopus.com/pages/publications/105036352653
U2 - 10.1109/TSC.2026.3685039
DO - 10.1109/TSC.2026.3685039
M3 - Article
AN - SCOPUS:105036352653
SN - 1939-1374
VL - 19
SP - 3198
EP - 3211
JO - IEEE Transactions on Services Computing
JF - IEEE Transactions on Services Computing
IS - 5
ER -