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

利用视觉对抗样本实现大语言模型的工具滥用

Misusing Tools in Large Language Models With Visual Adversarial Examples

University of California San Diego(加州大学圣地亚哥分校);University of Washington(华盛顿大学)

Xiaohan Fu, Zihan Wang, Shuheng Li, Rajesh K. Gupta, Niloofar Mireshghallah, Taylor Berg-Kirkpatrick, Earlence Fernandes

AI总结:

本研究揭示多模态大语言模型的安全漏洞,提出基于梯度的视觉对抗样本攻击方法,可隐蔽诱导模型按攻击者意图调用工具,且几乎不影响对话语义,攻击成功率约98%。

摘要:

大语言模型(LLMs)正被赋予工具使用能力与多模态处理能力,这些新功能在带来益处的同时也引发了新的安全风险。本研究表明,攻击者可利用视觉对抗样本诱导LLM执行攻击者期望的工具调用,例如删除日历事件、泄露私人对话及预订酒店。与已有研究不同,本文提出的攻击既能影响与LLM相连的用户资源的机密性与完整性,又具备隐蔽性,且可推广至多种输入提示词。研究采用基于梯度的对抗训练构造攻击,并从多个维度表征攻击性能。实验发现,生成的对抗图像几乎总能(约98%)操控LLM按照真实语法调用工具,同时与干净图像保持高度相似性(结构相似性指数SSIM约为0.9)。此外,通过人工评分与自动化指标评估,攻击不会对用户与LLM之间的对话(及其语义)产生明显影响。

英文摘要:

Large Language Models (LLMs) are being enhanced with the ability to use tools and to process multiple modalities. These new capabilities bring new benefits and also new security risks. In this work, we show that an attacker can use visual adversarial examples to cause attacker-desired tool usage. For example, the attacker could cause a victim LLM to delete calendar events, leak private conversations and book hotels. Different from prior work, our attacks can affect the confidentiality and integrity of user resources connected to the LLM while being stealthy and generalizable to multiple input prompts. We construct these attacks using gradient-based adversarial training and characterize performance along multiple dimensions. We find that our adversarial images can manipulate the LLM to invoke tools following real-world syntax almost always (~98%) while maintaining high similarity to clean images (~0.9 SSIM). Furthermore, using human scoring and automated metrics, we find that the attacks do not noticeably affect the conversation (and its semantics) between the user and the LLM.

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

↑