RL-ATTACK: A Generalized Black-Box Adversarial Attack on Language Models via Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 28 of its 34 references that are in the map. Submitted 5 Nov 2026.
Builds on
28 of 34 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2023GPT-4 Technical Reportcited by 19,416
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,802
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,661
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,559
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,374
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,747
- 2015A large annotated corpus for learning natural language inferencecited by 1,887
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,526
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
16 more
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 687
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 535
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 498
- 2018Generating Natural Language Adversarial Examplescited by 428
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 397
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 389
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 370
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 351
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 139
- 2021BERT: A Review of Applications in Natural Language Processing and Understandingcited by 115
- 2017Reinforcement Learning for Bandit Neural Machine Translation with Simulated Human Feedbackcited by 74
- 2018Learning to Extract Coherent Summary via Deep Reinforcement Learningcited by 65
- 2018Deep Reinforcement Learning For Sequence to Sequence Modelscited by 41
- 2024HQA-Attack: Toward High Quality Black-Box Hard-Label Adversarial Attack on Textcited by 17
- 2017Black-Box Attacks against RNN based Malware Detection Algorithmscited by 14
- 2019Preference-based Interactive Multi-Document Summarisationcited by 12
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Black-box Optimization of LLM Outputs by Asking for Directions
- 2025REINFORCE Adversarial Attacks on Large Language Models: An Adaptive, Distributional, and Semantic Objective
- 2024Goal-guided Generative Prompt Injection Attack on Large Language Models
- 2024Can Reinforcement Learning Unlock the Hidden Dangers in Aligned Large Language Models?
- 2025Adversarial Reinforcement Learning for Large Language Model Agent Safety
- 2023RLHFPoison: Reward Poisoning Attack for Reinforcement Learning with Human Feedback in Large Language Models
- 2025Policy Disruption in Reinforcement Learning:Adversarial Attack with Large Language Models and Critical State Identification
- 2025Universal Adversarial Suffixes for Language Models Using Reinforcement Learning with Calibrated Reward