arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.07997cs.LG
收藏

FairZK:一种可扩展的零知识机器学习公平性证明系统

FairZK: A Scalable System to Prove Machine Learning Fairness in Zero-Knowledge

University of Illinois, Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of California, Irvine(加州大学 Irvine 分校);Shanghai Jiao Tong University(上海交通大学)

Tianyu Zhang, Shen Dong, O. Deniz Kose, Yanning Shen, Yupeng Zhang

AI总结:

针对机器学习公平性验证需暴露模型参数的问题,提出FairZK系统,通过新的公平性界推导和专用零知识证明协议,在保护模型机密的同时高效证明公平性,性能较现有方案提升显著,首次支持4700万参数大模型。

摘要:

随着机器学习技术的兴起,确保机器学习算法决策的公平性在关键应用中已变得极为重要。然而,衡量公平性通常需要完全访问模型参数,这会损害模型的机密性。本文提出了一种使用零知识证明的解决方案,允许模型所有者在保护模型保密性的同时,向公众证明机器学习模型是公平的。\n为了规避直接对机器学习推理进行零知识证明的效率障碍,我们的核心创新是一种仅利用模型参数和输入的部分聚合信息来衡量公平性的新方法,无需依赖任何特定数据集。为实现这一目标,我们针对逻辑回归和深度神经网络模型的公平性推导了新的界,与现有工作相比,这些界更紧且能更好地反映公平性。此外,我们为衡量公平性涉及的常见计算开发了高效的零知识证明协议,包括矩阵谱范数、最大值、绝对值和定点运算。\n我们已完整实现了FairZK系统,可在零知识下证明机器学习公平性。实验结果表明,FairZK的速度显著快于直接方法以及一种将零知识推理作为子例程的现有方案。根据模型和数据集的规模不同,证明方时间提升了3.1倍至1789倍。FairZK首次可扩展至拥有4700万参数的大型模型,并能在343秒内生成其公平性证明。据估计,这比仅能扩展到数百至数千参数小型模型的现有方案快4个数量级。

英文摘要:

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 zero-knowledge 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 zero-knowledge, 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 zero-knowledge inferences as a subroutine. The prover time is improved by 3.1x--1789x 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑