FairZK: A Scalable System to Prove Machine Learning Fairness in Zero-Knowledge
Tianyu Zhang, Shen Dong, Oyku Deniz Kose, Yanning Shen, Yupeng Zhang
Abstract
With the rise of machine learning techniques, ensuring the fairness of decisions made by machine learning algorithms has become of great importance in critical applications. However, measuring fairness often requires full access to the model parameters, which compromises the confidentiality of the models. In this paper, we propose a solution using zeroknowledge proofs, which allows the model owner to convince the public that a machine learning model is fair while preserving the secrecy of the model. To circumvent the efficiency barrier of naively proving machine learning inferences in zeroknowledge, our key innovation is a new approach to measure fairness only with model parameters and some aggregated information of the input, but not on any specific dataset. To achieve this goal, we derive new bounds for the fairness of logistic regression and deep neural network models that are tighter and better reflecting the fairness compared to prior work. Moreover, we develop efficient zero-knowledge proof protocols for common computations involved in measuring fairness, including the spectral norm of matrices, maximum, absolute value, and fixed-point arithmetic. We have fully implemented our system, FAIRZK, that proves machine learning fairness in zero-knowledge. Experimental results show that FAIRZK is significantly faster than the naive approach and an existing scheme that use zeroknowledge inferences as a subroutine. The prover time is improved by 3.1×-1789× depending on the size of the model and the dataset. FAIRZK can scale to a large model with 47 million parameters for the first time, and generates a proof for its fairness in 343 seconds. This is estimated to be 4 orders of magnitude faster than existing schemes, which only scale to small models with hundreds to thousands of parameters.
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.
3 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
- Certification of Machine Learning Models via Directional Sharpness cites Secure and Confidential Certificates of Online Fairness
- Secure and Confidential Certificates of Online Fairness cites Mystique: Efficient Conversions for Zero-Knowledge Proofs with Applications to Machine Learning
- Certified in Theory, Broken in Practice: Assumption Gaps in Cryptographic Model Certification cites Secure and Confidential Certificates of Online Fairness
- Mystique: Efficient Conversions for Zero-Knowledge Proofs with Applications to Machine Learning cites Doubly-Efficient zkSNARKs Without Trusted Setup
- Transparent Polynomial Delegation and Its Applications to Zero Knowledge Proof cites Doubly-Efficient zkSNARKs Without Trusted Setup
Cited by top-tier papers3
- Secure and Confidential Certificates of Online FairnessOlive Franzese, Ali Shahin Shamsabadi, Carter Luck, Hamed HaddadiNeurIPS 2025 · 10 citations
- Certification of Machine Learning Models via Directional SharpnessGefei Tan, Adrià Gascón, Sarah Meiklejohn, Mariana RaykovaUSENIX Security 2026
- Certified in Theory, Broken in Practice: Assumption Gaps in Cryptographic Model CertificationCarter Luck, Olive Franzese-McLaughlin, Elisaweta Masserova, Akira Takahashi et al.USENIX Security 2026
Builds on18
- Doubly-Efficient zkSNARKs Without Trusted SetupRiad S. Wahby, Ioanna Tzialla, Abhi Shelat, Justin Thaler et al.S&P 2018 · 356 citations
- Spartan: Efficient and General-Purpose zkSNARKs Without Trusted SetupSrinath T. V. SettyCRYPTO 2020 · 262 citations
- Transparent Polynomial Delegation and Its Applications to Zero Knowledge ProofJiaheng Zhang, Tiancheng Xie, Yupeng Zhang, Dawn SongS&P 2020 · 192 citations
- Mystique: Efficient Conversions for Zero-Knowledge Proofs with Applications to Machine LearningChenkai Weng, Kang Yang, Xiang Xie, Jonathan Katz et al.USENIX Security 2021 · 161 citations
- White-box fairness testing through adversarial samplingPeixin Zhang, Jingyi Wang, Jun Sun, Guoliang Dong et al.ICSE 2020 · 127 citations
Related papers
- FairProof : Confidential and Certifiable Fairness for Neural NetworksChhavi Yadav, Amrita Roy Chowdhury, Dan Boneh, Kamalika ChaudhuriICML 2024 · 20 citations
- zkCNN: Zero Knowledge Proofs for Convolutional Neural Network Predictions and AccuracyTianyi Liu, Xiang Xie, Yupeng ZhangCCS 2021 · 4 citations
- Zero Knowledge Proofs for Decision Tree Predictions and AccuracyJiaheng Zhang, Zhiyong Fang, Yupeng Zhang, Dawn SongCCS 2020 · 72 citations
- Experimenting with Zero-Knowledge Proofs of TrainingSanjam Garg, Aarushi Goel, Somesh Jha, Saeed Mahloujifar et al.CCS 2023 · 31 citations
- Scalable Zero-knowledge Proofs for Non-linear Functions in Machine LearningMeng Hao, Hanxiao Chen, Hongwei Li, Chenkai Weng et al.USENIX Security 2024 · 29 citations
