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

利用零知识证明扩展不可信的DNN推理

Scaling up Trustless DNN Inference with Zero-Knowledge Proofs

University of Illinois, Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Stanford University(斯坦福大学);University of California, Berkeley(加州大学伯克利分校);University of Chicago(芝加哥大学)

Daniel Kang, Tatsunori Hashimoto, Ion Stoica, Yi Sun

摘要:

随着ML模型的能力和准确性的提高,其部署的复杂性也在增加。越来越多的ML模型消费者转向服务提供商,以ML即服务(MLaaS)范式为ML模型提供服务。随着MLaaS的激增,一个关键的需求出现了:面对恶意的、懒惰的或有缺陷的服务提供商,模型消费者如何验证正确的预测得到了服务?在这项工作中,我们提出了第一个实用的ImageNet-scale方法来非交互地验证ML模型推理,即,在推理完成之后。为此,我们利用ZK-SNARKs(零知识简洁非交互式知识论证)的最新发展,这是一种零知识证明。ZK-SNARKs允许我们以非交互方式验证ML模型的执行,并且只使用标准的加密硬度假设。特别是,我们为全分辨率ImageNet模型提供了第一个有效推理的ZK-SNARK证明,达到了79%的前5名准确率。我们进一步使用这些ZK-SNARKs来设计协议,以在各种场景中验证ML模型的执行,包括验证MLaaS预测,验证MLaaS模型的准确性,以及使用ML模型进行无信任检索。总之,我们的研究结果表明,ZK-SNARKs有希望使经过验证的ML模型推理变得实用。

英文摘要:

As ML models have increased in capabilities and accuracy, so has the complexity of their deployments. Increasingly, ML model consumers are turning to service providers to serve the ML models in the ML-as-a-service (MLaaS) paradigm. As MLaaS proliferates, a critical requirement emerges: how can model consumers verify that the correct predictions were served, in the face of malicious, lazy, or buggy service providers? In this work, we present the first practical ImageNet-scale method to verify ML model inference non-interactively, i.e., after the inference has been done. To do so, we leverage recent developments in ZK-SNARKs (zero-knowledge succinct non-interactive argument of knowledge), a form of zero-knowledge proofs. ZK-SNARKs allows us to verify ML model execution non-interactively and with only standard cryptographic hardness assumptions. In particular, we provide the first ZK-SNARK proof of valid inference for a full resolution ImageNet model, achieving 79\% top-5 accuracy. We further use these ZK-SNARKs to design protocols to verify ML model execution in a variety of scenarios, including for verifying MLaaS predictions, verifying MLaaS model accuracy, and using ML models for trustless retrieval. Together, our results show that ZK-SNARKs have the promise to make verified ML model inference practical.

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

↑