RL-ATTACK: A Generalized Black-Box Adversarial Attack on Language Models via Reinforcement Learning

Computer Science > Computation and Language arXiv:2611.08711 (cs) [Submitted on 5 Nov 2026] Title: RL-ATTACK: A Generalized Black-Box Adversarial Attack on Language Models via Reinforcement Learning Authors: Taikun Chen, Yue Zhang, Wei Qian, Hui Fang.

计算机科学 > 计算与语言 arXiv:2611.08711 (cs) [提交于 2026 年 11 月 5 日] 标题:RL-ATTACK:一种通过强化学习对语言模型进行广义黑盒对抗攻击的方法 作者:Taikun Chen, Yue Zhang, Wei Qian, Hui Fang。

Abstract: Large language models (LLMs) exhibit vulnerabilities to adversarial perturbations that can induce unintended responses. These vulnerabilities can be identified via intentional attacks and subsequently used to improve model safety.

摘要:大型语言模型(LLMs)对可能导致意外响应的对抗性扰动表现出脆弱性。这些脆弱性可以通过有意的攻击来识别,并随后用于提高模型的安全性。

In black-box settings where gradients are inaccessible, existing methods tend to guess adversarial transformations using external knowledge, ignoring the information provided by the target model. To mitigate this, we propose a trainable black-box framework based on reinforcement learning, which learns from the target model to generate tailored adversarial transformations.

在无法获取梯度的黑盒设置中,现有方法倾向于使用外部知识来猜测对抗性转换,而忽略了目标模型提供的信息。为了缓解这一问题,我们提出了一种基于强化学习的可训练黑盒框架,该框架通过学习目标模型来生成定制的对抗性转换。

We demonstrate that our approach achieves lower post-attack accuracy, greater query efficiency and better semantic preservation on both natural language inference and generative Q&A tasks. On natural language inference, it drives post-attack accuracy to 2% within 20 queries.

我们证明,我们的方法在自然语言推理和生成式问答任务中均实现了更低的攻击后准确率、更高的查询效率以及更好的语义保持。在自然语言推理任务中,它能在 20 次查询内将攻击后的准确率降至 2%。

Against generative language models, our trained attacker consistently achieves lower post-attack accuracy than the untrained attacker and wins in 4 out of 6 settings when compared to a strong optimization-based baseline. We further experiment with multiple reward designs and training settings, and we find that no design or setting is consistently dominant.

针对生成式语言模型,我们训练的攻击者在攻击后准确率上始终低于未训练的攻击者,并且在与强大的基于优化的基准进行比较时,在 6 种设置中的 4 种里表现更优。我们进一步对多种奖励设计和训练设置进行了实验,发现没有任何一种设计或设置具有绝对的优势。