NFGen: Automatic Non-linear Function Evaluation Code Generator for General-purpose MPC Platforms
Xiaoyu Fan, Kun Chen, Guosai Wang, Mingchun Zhuang, Yi Li, Wei Xu
Abstract
Due to the absence of a library for non-linear function evaluation, so-called general-purpose secure multi-party computation (MPC) are not as "general" as MPC programmers expect. Prior arts either naively reuse plaintext methods, resulting in suboptimal performance and even incorrect results, or handcraft ad hoc approximations for specific functions or platforms. We propose a general technique, NFGen 1 , that utilizes pre-computed discrete piecewise polynomials to accurately approximate generic functions using fixed-point numbers. We implement it using a performance-prediction-based code generator to support different platforms. Conducting extensive evaluations of 23 non-linear functions against six MPC protocols on two platforms, we demonstrate significant performance, accuracy, and generality improvements over existing methods.
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.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- BumbleBee: Secure Two-party Inference Framework for Large Transformers cites CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU
- BumbleBee: Secure Two-party Inference Framework for Large Transformers cites ABY3: A Mixed Protocol Framework for Machine Learning
- BumbleBee: Secure Two-party Inference Framework for Large Transformers cites CrypTen: Secure Multi-Party Computation Meets Machine Learning
- BumbleBee: Secure Two-party Inference Framework for Large Transformers cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
- CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU cites ABY3: A Mixed Protocol Framework for Machine Learning
- CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU cites CrypTen: Secure Multi-Party Computation Meets Machine Learning
- CrypTen: Secure Multi-Party Computation Meets Machine Learning cites CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU
- CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
- Rushing at SPDZ: On the Practical Security of Malicious MPC Implementations cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
- RoundRole: Unlocking the Efficiency of Multi-party Computation with Bandwidth-aware Execution cites CryptGPU: Fast Privacy-Preserving Machine Learning on the GPU
- RoundRole: Unlocking the Efficiency of Multi-party Computation with Bandwidth-aware Execution cites ABY3: A Mixed Protocol Framework for Machine Learning
- CrypTen: Secure Multi-Party Computation Meets Machine Learning cites New Primitives for Actively-Secure MPC over Rings with Applications to Private Machine Learning
- CrypTen: Secure Multi-Party Computation Meets Machine Learning cites ABY3: A Mixed Protocol Framework for Machine Learning
- CrypTen: Secure Multi-Party Computation Meets Machine Learning cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted Data cites BumbleBee: Secure Two-party Inference Framework for Large Transformers
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted Data cites CrypTen: Secure Multi-Party Computation Meets Machine Learning
Cited by top-tier papers5
- Zero-Knowledge AI Inference with High PrecisionArman Riasi, Haodi Wang, Rouzbeh Behnia, Viet Vo et al.CCS 2025
- BumbleBee: Secure Two-party Inference Framework for Large TransformersWen-jie Lu, Zhicong Huang, Zhen Gu, Jingyu Li et al.NDSS 2025
- Rushing at SPDZ: On the Practical Security of Malicious MPC ImplementationsAlexander Kyster, Frederik Huss Nielsen, Sabine Oechsner, Peter SchollS&P 2025
- RoundRole: Unlocking the Efficiency of Multi-party Computation with Bandwidth-aware ExecutionXiaoyu Fan, Kun Chen, Jiping Yu, Xin Liu et al.NDSS 2026
- SLOTHE : Lazy Approximation of Non-Arithmetic Neural Network Functions over Encrypted DataKevin Nam, Youyeon Joo, Seungjin Ha, Yunheung PaekUSENIX Security 2025
Builds on10
- SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 citations
- ABY3: A Mixed Protocol Framework for Machine LearningPayman Mohassel, Peter RindalCCS 2018 · 898 citations
- CrypTen: Secure Multi-Party Computation Meets Machine LearningBrian Knott, Shobha Venkataraman, Awni Y. Hannun, Shubho Sengupta et al.NeurIPS 2021 · 573 citations
- CryptGPU: Fast Privacy-Preserving Machine Learning on the GPUSijun Tan, Brian Knott, Yuan Tian, David J. WuS&P 2021 · 241 citations
- New Primitives for Actively-Secure MPC over Rings with Applications to Private Machine LearningIvan Damgård, Daniel Escudero, Tore Kasper Frederiksen, Marcel Keller et al.S&P 2019 · 182 citations
Related papers
- Fast and Private Inference of Deep Neural Networks by Co-designing Activation FunctionsAbdulrahman Diaa, Lucas Fenaux, Thomas Humphries, Marian Dietz et al.USENIX Security 2024 · 13 citations
- Decor: Delegated Computation on Randomness for Secure Evaluation of Nonlinear FunctionsHaris Smajlovic, Kyle Sheng, Timos Antonopoulos, Ruzica Piskac et al.S&P 2026
- Large Scale, Actively Secure Computation from LPN and Free-XOR Garbled CircuitsAner Ben-Efraim, Kelong Cong, Eran Omri, Emmanuela Orsini et al.EUROCRYPT 2021 · 21 citations
- Grotto: Screaming fast (2+1)-PC or ℤ2n via (2, 2)-DPFsKyle Storrier, Adithya Vadapalli, Allan Lyons, Ryan HenryCCS 2023 · 14 citations
- 5Gen: A Framework for Prototyping Applications Using Multilinear Maps and Matrix Branching ProgramsKevin Lewi, Alex J. Malozemoff, Daniel Apon, Brent Carmer et al.CCS 2016 · 31 citations
