arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.05688cs.LGcs.AIcs.CR
收藏

大卫与歌利亚:深度边缘 QNN 攻击与防御的实证评估

David and Goliath: An Empirical Evaluation of Attacks and Defenses for QNNs at the Deep Edge

ALGORITMI Research Centre(ALGORITMI研究中心);Universidade do Minho(米尼奥大学)

Miguel Costa, Sandro Pinto

AI总结:

本文实证评估了面向 TinyML 的 QNN 在十种攻击和六种防御下的鲁棒性,揭示了量化对梯度、噪声和决策边界距离的影响,并指出训练型防御需解决量化偏移与梯度失准问题。

摘要:

机器学习正从云端向边缘转移。边缘计算减少了暴露私有数据的表面,并能在实时应用中提供可靠的吞吐量保证。在部署于边缘的众多设备中,资源受限的 MCU(例如 Arm Cortex-M)比应用处理器或 GPU 更为普遍,价格低几个数量级,且功耗更低。因此,在深度边缘实现智能已成为时代潮流,研究者们致力于提出在这些受限设备上部署人工神经网络(ANN)的新方法。量化是一种成熟的技术,已被证明能够有效实现神经网络在 MCU 上的部署;然而,理解量化神经网络(QNN)在面对对抗样本时的鲁棒性仍然是一个悬而未决的问题。为填补这一空白,我们从经验上评估了来自(全精度)ANN 的攻击和防御在(受限)QNN 上的有效性。我们的评估包括三个面向 TinyML 应用的 QNN、十种攻击和六种防御。通过这项研究,我们得到了一系列有趣的发现。首先,量化增大了样本点到决策边界的距离,并导致某些攻击估计的梯度发生爆炸或消失。其次,量化可以根据噪声幅度充当噪声衰减器或放大器,并导致梯度失准。关于对抗防御,我们得出结论:输入预处理防御在小扰动下表现出令人印象深刻的结果;然而,随着扰动增大,它们的表现有所不足。同时,基于训练的防御增大了样本点到决策边界的平均距离,这一特性在量化后仍然保持。然而,我们认为基于训练的防御仍需要平滑量化偏移和梯度失准现象,以对抗对抗样本向 QNN 的可迁移性。所有工件均已开源,以便对结果进行独立验证。

英文摘要:

ML is shifting from the cloud to the edge. Edge computing reduces the surface exposing private data and enables reliable throughput guarantees in real-time applications. Of the panoply of devices deployed at the edge, resource-constrained MCUs, e.g., Arm Cortex-M, are more prevalent, orders of magnitude cheaper, and less power-hungry than application processors or GPUs. Thus, enabling intelligence at the deep edge is the zeitgeist, with researchers focusing on unveiling novel approaches to deploy ANNs on these constrained devices. Quantization is a well-established technique that has proved effective in enabling the deployment of neural networks on MCUs; however, it is still an open question to understand the robustness of QNNs in the face of adversarial examples. To fill this gap, we empirically evaluate the effectiveness of attacks and defenses from (full-precision) ANNs on (constrained) QNNs. Our evaluation includes three QNNs targeting TinyML applications, ten attacks, and six defenses. With this study, we draw a set of interesting findings. First, quantization increases the point distance to the decision boundary and leads the gradient estimated by some attacks to explode or vanish. Second, quantization can act as a noise attenuator or amplifier, depending on the noise magnitude, and causes gradient misalignment. Regarding adversarial defenses, we conclude that input pre-processing defenses show impressive results on small perturbations; however, they fall short as the perturbation increases. At the same time, train-based defenses increase the average point distance to the decision boundary, which holds after quantization. However, we argue that train-based defenses still need to smooth the quantization-shift and gradient misalignment phenomenons to counteract adversarial example transferability to QNNs. All artifacts are open-sourced to enable independent validation of results.

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

↑