防御前缀:防止针对CLIP的排版攻击
Defense-Prefix for Preventing Typographic Attacks on CLIP
AI总结:
本研究提出防御前缀(DP)方法,通过在类名前插入标记,在不改变CLIP参数的情况下抵御排版攻击,提升分类准确性并保持零样本能力,且可应用于目标检测。
摘要:
视觉-语言预训练模型(VLPs)在各种视觉-语言任务中展现了革命性的改进。在VLP中,一些对抗性攻击会欺骗模型,导致错误或荒谬的分类。以往的研究通过微调模型或改变其架构来解决这些攻击。然而,这些方法有丢失原始模型性能的风险,并且难以应用于下游任务。特别是,它们对其他任务的适用性未被考虑。在本研究中,我们解决了在不改变模型参数的情况下减少排版攻击对CLIP影响的问题。为实现这一目标,我们扩展了“前缀学习”的思想,并引入了我们简单而有效的方法:防御前缀(DP),该方法在类名之前插入DP标记,使单词对排版攻击具有“鲁棒性”。由于所提出的方法独立于模型参数,因此可以轻松应用于下游任务,如目标检测。我们的方法显著提高了排版攻击数据集上分类任务的准确性,同时保持了模型的零样本能力。此外,我们将所提出的方法用于目标检测,展示了其高适用性和有效性。代码和数据集可在https://github.com/azuma164/Defense-Prefix获取。
英文摘要:
Vision-language pre-training models (VLPs) have exhibited revolutionary improvements in various vision-language tasks. In VLP, some adversarial attacks fool a model into false or absurd classifications. Previous studies addressed these attacks by fine-tuning the model or changing its architecture. However, these methods risk losing the original model's performance and are difficult to apply to downstream tasks. In particular, their applicability to other tasks has not been considered. In this study, we addressed the reduction of the impact of typographic attacks on CLIP without changing the model parameters. To achieve this, we expand the idea of "prefix learning" and introduce our simple yet effective method: Defense-Prefix (DP), which inserts the DP token before a class name to make words "robust" against typographic attacks. Our method can be easily applied to downstream tasks, such as object detection, because the proposed method is independent of the model parameters. Our method significantly improves the accuracy of classification tasks for typographic attack datasets, while maintaining the zero-shot capabilities of the model. In addition, we leverage our proposed method for object detection, demonstrating its high applicability and effectiveness. The codes and datasets are available at https://github.com/azuma164/Defense-Prefix.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。