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

硬标签场景下深度神经网络的多项式时间密码分析提取方法

Polynomial Time Cryptanalytic Extraction of Deep Neural Networks in the Hard-Label Setting

Google DeepMind(谷歌DeepMind);Cryptography Research Center, Technology Innovation Institute(技术创新研究所密码学研究中心);Weizmann Institute(魏茨曼研究所)

Nicholas Carlini, Jorge Chávez-Saab, Anna Hambitzer, Francisco Rodríguez-Henríquez, Adi Shamir

AI总结:

针对硬标签场景下DNN参数提取现有方法时间复杂度高、适用范围窄的问题,提出多项式时间与查询量的密码分析提取技术,可高效提取近百万参数,证明仅靠决策边界几何形状就能确定ReLU DNN所有权重。

摘要:

深度神经网络(DNN)是极具价值的资产,但其公开可访问性引发了恶意参与者提取参数的安全隐患。Carlini等人(crypto'20)与Canales-Martínez等人(eurocrypt'24)的近期研究将该问题与通过选择明文攻击提取分组密码密钥建立了类比。借助差分密码分析,他们证明仅需多项式次数的查询与计算时间,即可推断出基于ReLU的黑盒DNN的所有权重与偏置。但这类攻击依赖可获取输出logits的精确数值,以此计算其导数。为突破这一限制,Chen等人(asiacrypt'24)针对更贴合实际的硬标签场景展开研究——该场景下攻击者仅能获取最终分类标签(例如“狗”或“汽车”)。他们提出了一种提取方法,所需查询次数为多项式级,但执行时间为指数级。此外,该方法仅适用于有限的架构集合,仅能处理二分类器,且仅在最多含2个隐藏层、共4个神经元的微型神经网络上得到验证。本文提出了全新技术,首次在难度最高的硬标签场景下,实现了查询次数与计算时间均为多项式级的DNN参数密码分析提取。我们通过从在CIFAR-10数据集上训练的、含4个隐藏层共832个神经元的DNN中提取近百万个参数,验证了该方法的有效性。研究结果揭示了一个惊人的事实:仅通过分析基于ReLU的DNN决策边界的几何形状,即可高效确定其所有权重。

英文摘要:

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.

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

↑