mlsanityData to 14 Oct 2026

East: Efficient and Accurate Secure Transformer Framework for Inference

arXiv 2308.09923 ↗First posted 19 Aug 2023cs.CR cs.AI cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

Transformer has been successfully used in practical applications, such as ChatGPT, 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. Firstly, 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. Secondly, the secure protocols for softmax and layer normalization are carefully designed to faithfully maintain the desired functionality. Thirdly, 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.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 15 of its 34 references that are in the map. First posted on arXiv 19 Aug 2023.

Builds on

15 of 34 references.

References · 15

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  4. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  5. 2018Gazelle: A Low Latency Framework for Secure Neural Network Inferencecited by 193
  6. 2020CrypTFlow2: Practical 2-Party Secure Inferencecited by 82
  7. 2022MPCFormer: fast, performant and private Transformer inference with MPCcited by 69
  8. 2018Chameleon: A Hybrid Secure Computation Framework for Machine Learning Applicationscited by 67
  9. 2022THE-X: Privacy-Preserving Transformer Inference with Homomorphic Encryptioncited by 57
  10. 2023PUMA: Secure Inference of LLaMA-7B in Five Minutescited by 48
  11. 2021SIRNN: A Math Library for Secure RNN Inferencecited by 28
  12. 2023LLMs Can Understand Encrypted Prompt: Towards Privacy-Computing Friendly Transformerscited by 22
3 more
  1. 2023Primer: Fast Private Transformer Inference on Encrypted Datacited by 20
  2. 2023MERGE: Fast Private Text Generationcited by 9
  3. 2022NFGen: Automatic Non-linear Function Evaluation Code Generator for General-purpose MPC Platformscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 3; 2025: 3; 2026: 1.

9 papers.