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

量化神经网络的安全评估

Secure Evaluation of Quantized Neural Networks

Aarhus University(奥胡斯大学);CSIRO’s Data61(澳大利亚联邦科学与工业研究组织数据61)

Anders Dalskov, Daniel Escudero, Marcel Keller

摘要:

我们在本文中研究了两个问题:首先,我们询问“MPC友好”模型在多大程度上已经得到了TensorFlow或PyTorch等主要机器学习框架的支持。先前的工作提供了仅对定点整数和专用激活函数起作用的协议,这两个方面不受流行的机器学习框架支持,并且对这些专用模型表示的需要意味着很难并且通常不可能使用例如,TensorFlow用于设计、训练和测试模型,这些模型随后必须进行安全评估。第二,我们问评估神经网络的功能在多大程度上已经存在于通用MPC框架中。这些框架得到了更多的审查,更好地记录并在更多的平台上得到支持。此外,它们在支持的威胁模型方面通常是灵活的。相比之下,文献中的大多数安全评估协议都针对特定的威胁模型,并且它们的实现只是“概念验证”,这使得它们很难在实践中采用。我们以积极的方式回答了上述两个问题:我们观察到TensorFlow,PyTorch和MXNet支持的量化技术可以提供可以安全评估的表示模型;此外,这种评估可以由通用MPC框架执行。我们进行了广泛的基准测试,以了解不同腐败模型,网络规模和效率之间的确切权衡。这些实验提供了一个有趣的洞察成本之间的主动和被动的安全,以及诚实和不诚实的大多数。我们的工作表明,现有ML框架和现有MPC协议之间的分界线可能比以前的工作暗示的要窄。

英文摘要:

We investigate two questions in this paper: First, we ask to what extent "MPC friendly" models are already supported by major Machine Learning frameworks such as TensorFlow or PyTorch. Prior works provide protocols that only work on fixed-point integers and specialized activation functions, two aspects that are not supported by popular Machine Learning frameworks, and the need for these specialized model representations means that it is hard, and often impossible, to use e.g., TensorFlow to design, train and test models that later have to be evaluated securely. Second, we ask to what extent the functionality for evaluating Neural Networks already exists in general-purpose MPC frameworks. These frameworks have received more scrutiny, are better documented and supported on more platforms. Furthermore, they are typically flexible in terms of the threat model they support. In contrast, most secure evaluation protocols in the literature are targeted to a specific threat model and their implementations are only a "proof-of-concept", making it very hard for their adoption in practice. We answer both of the above questions in a positive way: We observe that the quantization techniques supported by both TensorFlow, PyTorch and MXNet can provide models in a representation that can be evaluated securely; and moreover, that this evaluation can be performed by a general purpose MPC framework. We perform extensive benchmarks to understand the exact trade-offs between different corruption models, network sizes and efficiency. These experiments provide an interesting insight into cost between active and passive security, as well as honest and dishonest majority. Our work shows then that the separating line between existing ML frameworks and existing MPC protocols may be narrower than implicitly suggested by previous works.

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

↑