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

实用安全推理的有效ML模型

Efficient ML Models for Practical Secure Inference

Microsoft Research(微软研究院);IIT Madras(印度理工学院马德拉斯分校)

Vinod Ganesan, Anwesh Bhattacharya, Pratyush Kumar, Divya Gupta, Rahul Sharma, Nishanth Chandran

摘要:

ML即服务持续增长,对非常强大的隐私保证的需求也在增长。安全推理已经成为一种潜在的解决方案,其中密码原语允许在不向模型提供者透露用户的输入或向用户透露模型的权重的情况下进行推理。例如,模型提供商可以是一家诊断公司,该公司已经训练了最先进的DenseNet-121模型来解释胸部X射线,用户可以是医院的患者。虽然安全推理原则上对这种设置是可行的,但没有现有的技术使其在规模上实用。CrypTFlow 2框架提供了一个潜在的解决方案,它能够自动正确地将明文推理转换为任意模型的安全推理。然而,从CrypTFlow 2得到的安全推断是不切实际的昂贵:在DenseNet-121上解释单个X射线需要近3 TB的通信。在本文中,我们解决这个突出的挑战,安全推理的效率低下,有三个贡献。首先,我们证明了安全推理的主要瓶颈是大型线性层,可以通过选择网络骨干和使用为高效的明文推理而开发的运营商来优化。这一发现和重点偏离了许多最近的作品,这些作品专注于在执行较小网络的安全推理时优化非线性激活层。其次,基于对瓶颈卷积层的分析,我们设计了一个X算子,这是一个更有效的drop-in替换。第三,我们证明了快速Winograd卷积算法进一步提高了安全推理的效率。结合起来,这三个优化被证明是非常有效的X射线解释的问题上训练的CheXpert数据集。

英文摘要:

ML-as-a-service continues to grow, and so does the need for very strong privacy guarantees. Secure inference has emerged as a potential solution, wherein cryptographic primitives allow inference without revealing users' inputs to a model provider or model's weights to a user. For instance, the model provider could be a diagnostics company that has trained a state-of-the-art DenseNet-121 model for interpreting a chest X-ray and the user could be a patient at a hospital. While secure inference is in principle feasible for this setting, there are no existing techniques that make it practical at scale. The CrypTFlow2 framework provides a potential solution with its ability to automatically and correctly translate clear-text inference to secure inference for arbitrary models. However, the resultant secure inference from CrypTFlow2 is impractically expensive: Almost 3TB of communication is required to interpret a single X-ray on DenseNet-121. In this paper, we address this outstanding challenge of inefficiency of secure inference with three contributions. First, we show that the primary bottlenecks in secure inference are large linear layers which can be optimized with the choice of network backbone and the use of operators developed for efficient clear-text inference. This finding and emphasis deviates from many recent works which focus on optimizing non-linear activation layers when performing secure inference of smaller networks. Second, based on analysis of a bottle-necked convolution layer, we design a X-operator which is a more efficient drop-in replacement. Third, we show that the fast Winograd convolution algorithm further improves efficiency of secure inference. In combination, these three optimizations prove to be highly effective for the problem of X-ray interpretation trained on the CheXpert dataset.

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

↑