RL-ATTACK: A Generalized Black-Box Adversarial Attack on Language Models via Reinforcement Learning
Taikun Chen, Yue Zhang, Wei Qian, Hui Fang
Key points
From the paper's conclusion- 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.
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. 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. 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. Our code is available at https://github.com/taikunudel/RL-ATTACK.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- One Attack to Fool Them All: Highly Transferable Black-Box Adversarial Attacks on Frontier MLLMsarXiv · 2026
- BrainwashedLLM: Jailbreaking via Automated Adversarial Chain of Thoughts DiscoveryarXiv · 2026
- LLM-Agnostic Semantic Representation Attack.IEEE transactions on pattern analysis and machine intelligence · 2026
- Adaptation or Poisoning? Security Risks of Conversational Test-Time Learning in Large Language ModelsarXiv · 2026
- SALSA: Sampling Adversarial Suffixes from Learned Distributions for LLM Safety AssessmentarXiv · 2026
- DACE: Diversity-Driven Adversarial Co-Evolution for Robust LLM Safety AlignmentarXiv · 2026