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. CCS CONCEPTS • Security and privacy → Security services.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ba1be3d0-7253-47fc-8894-761f47aabd35Cited 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
- 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
- Decor: Delegated Computation on Randomness for Secure Evaluation of Nonlinear FunctionsHaris Smajlovic, Kyle Sheng, Timos Antonopoulos, Ruzica Piskac et al.S&P 2026
- 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
- Bicoptor: Two-round Secure Three-party Non-linear Computation without Preprocessing for Privacy-preserving Machine LearningLijing Zhou, Ziyu Wang, Hongrui Cui, Qingrui Song et al.S&P 2023
