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

当视觉失效:针对ViT和OCR的文本攻击

When Vision Fails: Text Attacks Against ViT and OCR

University of Cambridge Cambridge United Kingdom;University of Oxford Oxford United Kingdom;University of Toronto \& Vector Institute Toronto Canada;University of Cambridge;University of Oxford;University of Toronto \& Vector Institute

Nicholas Boucher, Jenny Blessing, Ilia Shumailov, Ross Anderson, Nicolas Papernot

AI总结:

本文揭示了基于OCR的视觉防御无法抵御基于Unicode的文本对抗攻击,提出一种利用遗传算法在黑盒下生成视觉对抗样本的攻击方法,能大幅降低OCR等视觉模型准确率且不影响人类理解。

摘要:

基于文本的机器学习模型容易受到一类新兴的基于Unicode的对抗样本攻击,这类攻击能够欺骗模型使其误读文本,可能产生灾难性后果。针对这些攻击,主要现有防御方法是使用光学字符识别(OCR)对潜在恶意文本输入进行预处理。理论上,OCR模型会忽略任何恶意Unicode字符,并提取视觉上正确的输入提供给模型。在这项工作中,我们展示了这些视觉防御无法阻止此类攻击。我们使用遗传算法在黑盒设置下生成视觉对抗样本(即OCR输出),这是一种非常有效的攻击,能大幅降低OCR和其他视觉模型的准确率。我们利用Unicode的字符组合功能(例如组合字符ñ)来操纵文本输入,使得视觉扰动看起来像正常文本。我们通过针对Meta、微软、IBM和谷歌部署的生产模型创建对抗样本,在真实世界中展示了这些攻击的有效性。我们还进行了用户研究,以确定欺骗模型的对抗样本不会影响人类对文本的理解,这表明语言模型对此类文本攻击具有独特的脆弱性。

英文摘要:

Text-based machine learning models are vulnerable to an emerging class of Unicode-based adversarial examples capable of tricking a model into misreading text with potentially disastrous effects. The primary existing defense against these attacks is to preprocess potentially malicious text inputs using optical character recognition (OCR). In theory, OCR models will ignore any malicious Unicode characters and will extract the visually correct input to be fed to the model. In this work, we show that these visual defenses fail to prevent this type of attack. We use a genetic algorithm to generate visual adversarial examples (i.e., OCR outputs) in a black-box setting, demonstrating a highly effective novel attack that substantially reduces the accuracy of OCR and other visual models. Specifically, we use the Unicode functionality of combining characters (e.g., ñ which combines the characters n and ~) to manipulate text inputs so that small visual perturbations appear when the text is displayed. We demonstrate the effectiveness of these attacks in the real world by creating adversarial examples against production models published by Meta, Microsoft, IBM, and Google. We additionally conduct a user study to establish that the model-fooling adversarial examples do not affect human comprehension of the text, showing that language models are uniquely vulnerable to this type of text attack.

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

↑