首次实现硬标签下多项式时间提取神经网络参数
Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting
- 通过分析决策边界几何形状,实现硬标签场景下的高效参数推断
- 在CIFAR-10上成功提取近百万参数,4层隐藏层共832个神经元
- 突破以往只能处理小型二分类模型的限制,适用于复杂架构
深度神经网络(DNN)是宝贵资产,但其公开访问引发参数被恶意提取的安全隐患。近期工作将此问题类比为通过选择明文攻击提取分组密码密钥,利用差分密码分析证明可使用多项式数量的查询与计算时间,推导出基于ReLU的黑盒DNN的所有权重与偏置。然而,这些方法依赖输出logits的精确数值以计算导数。为克服该局限,陈等人(Asiacrypt'24)研究更现实的硬标签场景——攻击者仅能获取最终分类标签(如“狗”或“车”)。他们提出的方法虽需多项式查询,但执行时间指数级增长,且仅适用于受限架构、二分类任务,并仅在含最多四神经元、两隐藏层的小型网络上验证。本文首次提出新技术,在最困难的硬标签设置下,同时实现多项式查询与多项式时间的密码分析式参数提取。我们在训练于CIFAR-10的数据集上的DNN上验证该方法,成功提取近一百万参数,包含四个隐藏层共832个神经元。结果表明:基于ReLU的DNN所有权重均可通过分析其决策边界的几何形状高效确定。
原文摘要 · Abstract (English)
Deep neural networks (DNNs) are valuable assets, yet their public accessibility raises security concerns about parameter extraction by malicious actors. Recent work by Carlini et al. (crypto'20) and Canales-Martínez et al. (eurocrypt'24) has drawn parallels between this issue and block cipher key extraction via chosen plaintext attacks. Leveraging differential cryptanalysis, they demonstrated that all the weights and biases of black-box ReLU-based DNNs could be inferred using a polynomial number of queries and computational time. However, their attacks relied on the availability of the exact numeric value of output logits, which allowed the calculation of their derivatives. To overcome this limitation, Chen et al. (asiacrypt'24) tackled the more realistic hard-label scenario, where only the final classification label (e.g., "dog" or "car") is accessible to the attacker. They proposed an extraction method requiring a polynomial number of queries but an exponential execution time. In addition, their approach was applicable only to a restricted set of architectures, could deal only with binary classifiers, and was demonstrated only on tiny neural networks with up to four neurons split among up to two hidden layers. This paper introduces new techniques that, for the first time, achieve cryptanalytic extraction of DNN parameters in the most challenging hard-label setting, using both a polynomial number of queries and polynomial time. We validate our approach by extracting nearly one million parameters from a DNN trained on the CIFAR-10 dataset, comprising 832 neurons in four hidden layers. Our results reveal the surprising fact that all the weights of a ReLU-based DNN can be efficiently determined by analyzing only the geometric shape of its decision boundaries.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。