均匀输入对计算机视觉中激活稀疏性与能量-延迟攻击的影响
The Impact of Uniform Inputs on Activation Sparsity and Energy-Latency Attacks in Computer Vision
AI总结:
本文揭示了输入均匀性是能量-延迟攻击降低激活稀疏性的关键因素,并提出两种简单高效的海绵样本构造策略,以极低计算开销达到与现有方法相同的攻击效果,同时探讨了利用该发现提升效率的可能性。
摘要:
资源效率在当今机器学习中扮演着重要角色。能量消耗和决策延迟是确保可持续且实用应用的两个关键方面。不幸的是,能量消耗和决策延迟在面对对抗者时并不稳健。研究人员最近证明,攻击者可以在推理时计算并提交所谓的海绵样本(sponge examples),以增加神经网络的能量消耗和决策延迟。在计算机视觉中,所提出的策略构造激活稀疏性较低的输入,而激活稀疏性原本可用于加速计算。在本文中,我们分析了这些能量-延迟攻击降低激活稀疏性的机制。特别地,我们发现输入均匀性是关键促成因素。均匀图像,即表面大部分平坦、颜色均匀的图像,由于卷积、批归一化和ReLU激活之间的特定相互作用,会触发更多激活。基于这些见解,我们提出了两种新的简单而有效的构造海绵样本的策略:从概率分布中采样图像,以及在自然数据集中识别稠密但不显眼的输入。我们在包含多个图像分类模型的综合评估中实证检验了我们的发现,并表明我们的攻击达到了与先前海绵样本方法相同的稀疏性效果,但计算开销仅为其一小部分。我们还表明,我们的海绵样本可以在不同神经网络之间迁移。最后,我们讨论了如何利用我们的发现来造福于提高效率,即通过增加稀疏性来提升效率。
英文摘要:
Resource efficiency plays an important role for machine learning nowadays. The energy and decision latency are two critical aspects to ensure a sustainable and practical application. Unfortunately, the energy consumption and decision latency are not robust against adversaries. Researchers have recently demonstrated that attackers can compute and submit so-called sponge examples at inference time to increase the energy consumption and decision latency of neural networks. In computer vision, the proposed strategy crafts inputs with less activation sparsity which could otherwise be used to accelerate the computation. In this paper, we analyze the mechanism how these energy-latency attacks reduce activation sparsity. In particular, we find that input uniformity is a key enabler. A uniform image, that is, an image with mostly flat, uniformly colored surfaces, triggers more activations due to a specific interplay of convolution, batch normalization, and ReLU activation. Based on these insights, we propose two new simple, yet effective strategies for crafting sponge examples: sampling images from a probability distribution and identifying dense, yet inconspicuous inputs in natural datasets. We empirically examine our findings in a comprehensive evaluation with multiple image classification models and show that our attack achieves the same sparsity effect as prior sponge-example methods, but at a fraction of computation effort. We also show that our sponge examples transfer between different neural networks. Finally, we discuss applications of our findings for the good by improving efficiency by increasing sparsity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。