mlsanityData to 7 Oct 2026

Can Reinforcement Learning Unlock the Hidden Dangers in Aligned Large Language Models?

arXiv 2408.02651 ↗First posted 5 Aug 2024cs.CL cs.AI cs.CRcited by 1

On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks

also in 1 more
Abstract (arXiv)

Large Language Models (LLMs) have demonstrated impressive capabilities in natural language tasks, but their safety and morality remain contentious due to their training on internet text corpora. To address these concerns, alignment techniques have been developed to improve the public usability and safety of LLMs. Yet, the potential for generating harmful content through these models seems to persist. This paper explores the concept of jailbreaking LLMs-reversing their alignment through adversarial triggers. Previous methods, such as soft embedding prompts, manually crafted prompts, and gradient-based automatic prompts, have had limited success on black-box models due to their requirements for model access and for producing a low variety of manually crafted prompts, making them susceptible to being blocked. This paper introduces a novel approach using reinforcement learning to optimize adversarial triggers, requiring only inference API access to the target model and a small surrogate model. Our method, which leverages a BERTScore-based reward function, enhances the transferability and effectiveness of adversarial triggers on new black-box models. We demonstrate that this approach improves the performance of adversarial triggers on a previously untested language model.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 38 of its 51 references that are in the map. First posted on arXiv 5 Aug 2024.

Builds on

38 of 51 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding Space14 Feb
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul

Other references · 36

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  5. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  6. 2013Intriguing properties of neural networkscited by 5,114
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  8. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  9. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  10. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  11. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  12. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
24 more
  1. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  2. 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
  3. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  4. 2022A Survey on In-context Learningcited by 717
  5. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  6. 2017Evasion Attacks against Machine Learning at Test Timecited by 686
  7. 2023Bias and Fairness in Large Language Models: A Surveycited by 626
  8. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  9. 2018Generating Natural Language Adversarial Examplescited by 422
  10. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  11. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  12. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
  13. 2021How Many Data Points is a Prompt Worth?cited by 197
  14. 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 187
  15. 2021Challenges in Detoxifying Language Modelscited by 169
  16. 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teamingcited by 161
  17. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
  18. 2021Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learnerscited by 115
  19. 2021Improving and Simplifying Pattern Exploiting Trainingcited by 97
  20. 2024Fast Adversarial Attacks on Language Models In One GPU Minutecited by 85
  21. 2022Exploring the Universal Vulnerability of Prompt-based Learning Paradigmcited by 56
  22. 2020Universal Adversarial Attacks with Natural Triggers for Text Classificationcited by 50
  23. 2021Efficient (Soft) Q-Learning for Text Generation with Limited Good Datacited by 35
  24. 2022PromptAttack: Prompt-based Attack for Language Models via Gradient Searchcited by 15

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2023Large Language Model Alignment: A Survey
  2. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
  3. 2023Fundamental Limitations of Alignment in Large Language Models
  4. 2024Investigating Adversarial Trigger Transfer in Large Language Models
  5. 2024The Language Barrier: Dissecting Safety Challenges of LLMs in Multilingual Contexts
  6. 2024Reinforcement Learning for Aligning Large Language Models Agents with Interactive Environments: Quantifying and Mitigating Prompt Overfitting
  7. 2026Reward Stealing Attack on Large Language Models
  8. 2025REINFORCE Adversarial Attacks on Large Language Models: An Adaptive, Distributional, and Semantic Objective