Lune

USENIX ATC2023Top-tier venue

SecretFlow-SPU: A Performant and User-Friendly Framework for Privacy-Preserving Machine Learning

Junming Ma, Yancheng Zheng, Jun Feng, Derun Zhao, Haoqi Wu, Wenjing Fang, Jin Tan, Chaofan Yu, Benyu Zhang, Lei Wang

Abstract

With the increasing public attention to data security and privacy protection, privacy-preserving machine learning (PPML) has become a research hotspot in recent years. Secure multiparty computation (MPC) that allows multiple parties to jointly compute a function without leaking sensitive data provides a feasible solution to PPML. However, developing efficient PPML programs with MPC techniques is a great challenge for users without cryptography backgrounds.

Existing solutions require users to make efforts to port machine learning (ML) programs by mechanically replacing APIs with PPML versions or rewriting the entire program. Different from the existing works, we propose SecretFlow-SPU, a performant and user-friendly PPML framework compatible with existing ML programs. SecretFlow-SPU consists of a frontend compiler and a backend runtime. The frontend compiler accepts an ML program as input and converts it into an MPC-specific intermediate representation. After a series of delicate code optimizations, programs will be executed by a performant backend runtime as MPC protocols. Based on SecretFlow-SPU, we can run ML programs of different frameworks with minor modifications in a privacy-preserving manner.

We evaluate SecretFlow-SPU with state-of-the-art MPCenabled PPML frameworks on a series of ML training tasks. SecretFlow-SPU outperforms these works for almost all experimental settings (23 out of 24). Especially under the wide area network, SecretFlow-SPU is up to 4.1× faster than MP-SPDZ and up to 2.3× faster than TF Encrypted.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

23 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Deep Models Under the GAN: Information Leakage from Collaborative Deep Learning cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • Exploiting Unintended Feature Leakage in Collaborative Learning cites Deep Models Under the GAN: Information Leakage from Collaborative Deep Learning
  • Exploiting Unintended Feature Leakage in Collaborative Learning cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • MPCache: MPC-Friendly KV Cache Eviction for Efficient Private LLM Inference cites MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention
  • Ditto: Quantization-aware Secure Inference of Transformers upon MPC cites MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention
  • Ditto: Quantization-aware Secure Inference of Transformers upon MPC cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • Nimbus: Secure and Efficient Two-Party Inference for Transformers cites Ditto: Quantization-aware Secure Inference of Transformers upon MPC
  • Nimbus: Secure and Efficient Two-Party Inference for Transformers cites MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention
  • Nimbus: Secure and Efficient Two-Party Inference for Transformers cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • GAZELLE: A Low Latency Framework for Secure Neural Network Inference cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers23

  1. MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous AttentionWenxuan Zeng, Meng Li, Wenjie Xiong, Tong Tong et al.ICCV 2023 · 38 citations
  2. Nimbus: Secure and Efficient Two-Party Inference for TransformersZhengyi Li, Kang Yang, Jin Tan, Wen-jie Lu et al.NeurIPS 2024 · 34 citations
  3. Ditto: Quantization-aware Secure Inference of Transformers upon MPCHaoqi Wu, Wenjing Fang, Yancheng Zheng, Junming Ma et al.ICML 2024 · 17 citations
  4. MPCache: MPC-Friendly KV Cache Eviction for Efficient Private LLM InferenceWenxuan Zeng, Ye Dong, Jinjin Zhou, Jin Tan et al.NeurIPS 2025 · 4 citations
  5. ORQ: Complex Analytics on Private Data with Strong Security GuaranteesEli Baum, Sam Buxbaum, Nitin Mathai, Muhammad Faisal et al.SOSP 2025 · 4 citations

Builds on15

  1. SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 citations
  2. Exploiting Unintended Feature Leakage in Collaborative LearningLuca Melis, Congzheng Song, Emiliano De Cristofaro, Vitaly ShmatikovS&P 2019 · 1,736 citations
  3. Deep Models Under the GAN: Information Leakage from Collaborative Deep LearningBriland Hitaj, Giuseppe Ateniese, Fernando Pérez-CruzCCS 2017 · 1,581 citations
  4. Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin et al.USENIX Security 2018 · 1,175 citations
  5. GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 citations

Related papers

  1. Sequoia: An Accessible and Extensible Framework for Privacy-Preserving Machine Learning over Distributed DataKaiqiang Xu, Di Chai, Junxue Zhang, Fan Lai et al.SIGMOD 2025 · 1 citation
  2. BOLT: Privacy-Preserving, Accurate and Efficient Inference for TransformersQi Pang, Jinhao Zhu, Helen Möllering, Wenting Zheng et al.S&P 2024 · 149 citations
  3. pMPL: A Robust Multi-Party Learning Framework with a Privileged PartyLushan Song, Jiaxuan Wang, Zhexuan Wang, Xinyu Tu et al.CCS 2022 · 22 citations
  4. CrypTen: Secure Multi-Party Computation Meets Machine LearningBrian Knott, Shobha Venkataraman, Awni Y. Hannun, Shubho Sengupta et al.NeurIPS 2021 · 573 citations
  5. Co-Prime: A Co-design Framework for Privacy Preserving Machine Learning on FPGAShuo Xu, Jiming Xu, Pengfei Xue, Xinyao Wang et al.CCS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines