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

DeSparsify:针对视觉Transformer中令牌稀疏化机制的对抗攻击

DeSparsify: Adversarial Attack Against Token Sparsification Mechanisms in Vision Transformers

Ben-Gurion University of the Negev(内盖夫本-古里安大学)

Oryan Yehezkel, Alon Zolfi, Amit Baras, Yuval Elovici, Asaf Shabtai

AI总结:

针对视觉Transformer令牌稀疏化机制易被对抗样本攻击导致性能骤降的问题,提出DeSparsify可用性攻击,可隐蔽耗尽系统资源,验证了对3种稀疏化机制的有效性与可迁移性,并给出防御对策。

摘要:

视觉Transformer(ViT)为计算机视觉领域的发展做出了巨大贡献,在图像分类、目标检测等各类任务中展现出state-of-the-art(当前最优)性能。但其计算量会随所用令牌数量呈二次增长,算力需求极高。为解决这一问题,学界提出了令牌稀疏化机制:这类机制采用依赖输入的策略,将无信息的令牌从计算流程中剔除,以此提升模型效率。然而,其动态特性与平均场景假设使其易受一种新型威胁向量的攻击——精心构造的对抗样本可欺骗稀疏化机制,导致模型出现最差性能表现。本文提出DeSparsify攻击,专门针对采用令牌稀疏化机制的视觉Transformer的可用性。该攻击旨在耗尽操作系统资源,同时保持自身隐蔽性。我们的评估验证了该攻击对3种令牌稀疏化机制的有效性,还考察了攻击在不同机制间的可迁移性及其对GPU资源的影响。为缓解该攻击的影响,我们提出了多种防御对策。

英文摘要:

Vision transformers have contributed greatly to advancements in the computer vision domain, demonstrating state-of-the-art performance in diverse tasks (e.g., image classification, object detection). However, their high computational requirements grow quadratically with the number of tokens used. Token sparsification mechanisms have been proposed to address this issue. These mechanisms employ an input-dependent strategy, in which uninformative tokens are discarded from the computation pipeline, improving the model's efficiency. However, their dynamism and average-case assumption makes them vulnerable to a new threat vector - carefully crafted adversarial examples capable of fooling the sparsification mechanism, resulting in worst-case performance. In this paper, we present DeSparsify, an attack targeting the availability of vision transformers that use token sparsification mechanisms. The attack aims to exhaust the operating system's resources, while maintaining its stealthiness. Our evaluation demonstrates the attack's effectiveness on three token sparsification mechanisms and examines the attack's transferability between them and its effect on the GPU resources. To mitigate the impact of the attack, we propose various countermeasures.

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

↑