arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05442cs.LGcs.AIcs.CL
收藏

面向大型语言模型智能体安全性的对抗强化学习

Adversarial Reinforcement Learning for Large Language Model Agent Safety

Google(谷歌);Google Deepmind(谷歌DeepMind);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Sony AI(索尼人工智能)

Zizhao Wang, Dingcheng Li, Vaishakh Keshava, Phillip Wallis, Ananth Balashankar, Peter Stone, Lukas Rutishauser

AI总结:

针对LLM智能体易受工具输出中提示注入攻击的问题,提出ARLAS框架,通过对抗强化学习训练攻击者与防御者,在提升任务成功率的同时显著降低攻击成功率。

摘要:

大型语言模型(LLM)智能体可以利用诸如Google Search之类的工具来完成复杂任务。然而,这种工具使用引入了间接提示注入的风险,即隐藏在工具输出中的恶意指令可能操纵智能体,从而带来数据泄露等安全风险。当前的防御策略通常依赖于在已知攻击数据集上对LLM智能体进行微调。然而,这些数据集的生成依赖于手工设计的攻击模式,这限制了其多样性,并使智能体容易受到新型提示注入的攻击。为了解决这一局限性,我们提出了面向智能体安全性的对抗强化学习(ARLAS),这是一种新颖的框架,通过将问题形式化为两人零和博弈来利用对抗强化学习(RL)。ARLAS联合训练两个LLM:一个攻击者,学习自主生成多样化的提示注入;以及一个智能体,学习在完成其分配任务的同时防御这些攻击。为了确保对广泛攻击的鲁棒性并防止循环学习,我们采用了一种基于种群的训练框架,该框架训练智能体防御所有先前的攻击者检查点。在BrowserGym和AgentDojo上的评估表明,使用ARLAS微调的智能体实现了显著更低的攻击成功率,同时提高了其任务成功率。我们的分析进一步证实,对抗过程生成了多样化且具有挑战性的攻击集,从而使智能体相比基础模型更加鲁棒。

英文摘要:

Large Language Model (LLM) agents can leverage tools such as Google Search to complete complex tasks. However, this tool usage introduces the risk of indirect prompt injections, where malicious instructions hidden in tool outputs can manipulate the agent, posing security risks like data leakage. Current defense strategies typically rely on fine-tuning LLM agents on datasets of known attacks. However, the generation of these datasets relies on manually crafted attack patterns, which limits their diversity and leaves agents vulnerable to novel prompt injections. To address this limitation, we propose Adversarial Reinforcement Learning for Agent Safety (ARLAS), a novel framework that leverages adversarial reinforcement learning (RL) by formulating the problem as a two-player zero-sum game. ARLAS co-trains two LLMs: an attacker that learns to autonomously generate diverse prompt injections and an agent that learns to defend against them while completing its assigned tasks. To ensure robustness against a wide range of attacks and to prevent cyclic learning, we employ a population-based learning framework that trains the agent to defend against all previous attacker checkpoints. Evaluated on BrowserGym and AgentDojo, agents fine-tuned with ARLAS achieve a significantly lower attack success rate than the original model while also improving their task success rate. Our analysis further confirms that the adversarial process generates a diverse and challenging set of attacks, leading to a more robust agent compared to the base model.

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

↑