跳到主要导航 跳到搜索 跳到主要内容

East: Efficient and Accurate Secure Inference Framework for Transformer

  • Yuanchao Ding
  • , Hua Guo*
  • , Yewei Guan
  • , Weixin Liu
  • , Jiarong Huo
  • , Zhenyu Guan
  • , Xiyong Zhang
  • *此作品的通讯作者
  • Beihang University
  • Key Laboratory of Precision Opto-Mechatronics Technology (Ministry of Education)
  • Beijing Institute of Satellite Information Engineering

科研成果: 期刊稿件文章同行评审

摘要

Transformer has been successfully used in practical applications due to its powerful advantages. However, users’ input is leaked to the model provider during the service. With people’s attention to privacy, privacy-preserving Transformer inference is on the demand of such services. Secure protocols for non-linear functions are crucial in privacy-preserving Transformer inference, which are not well studied. Thus, designing practical secure protocols for non-linear functions is hard but significant to model performance. In this work, we propose a framework East to enable efficient and accurate secure Transformer inference. First, we propose a new oblivious piecewise polynomial evaluation algorithm and apply it to the activation functions, which reduces the runtime and communication of GELU by over 1.5× and 2.5×, compared to prior arts. Second, the secure protocols for softmax and layer normalization are carefully designed to faithfully maintain the desired functionality. Third, several optimizations are conducted in detail to enhance the overall efficiency. We applied East to BERT and the results show that the inference accuracy remains consistent with the plaintext inference without fine-tuning. Compared to Iron, we achieve about 1.8× lower communication within 1.2× lower runtime.

源语言英语
页(从-至)2038-2046
页数9
期刊IEEE Transactions on Services Computing
18
4
DOI
出版状态已出版 - 2025

指纹

探究 'East: Efficient and Accurate Secure Inference Framework for Transformer' 的科研主题。它们共同构成独一无二的指纹。

引用此