Adversarial Fine-Tuning of Language Models: An Iterative Optimisation Approach for the Generation and Detection of Problematic Content
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
In this paper, we tackle the emerging challenge of unintended harmful content generation in Large Language Models (LLMs) with a novel dual-stage optimisation technique using adversarial fine-tuning. Our two-pronged approach employs an adversarial model, fine-tuned to generate potentially harmful prompts, and a judge model, iteratively optimised to discern these prompts. In this adversarial cycle, the two models seek to outperform each other in the prompting phase, generating a dataset of rich examples which are then used for fine-tuning. This iterative application of prompting and fine-tuning allows continuous refinement and improved performance. The performance of our approach is evaluated through classification accuracy on a dataset consisting of problematic prompts not detected by GPT-4, as well as a selection of contentious but unproblematic prompts. We show considerable increase in classification accuracy of the judge model on this challenging dataset as it undergoes the optimisation process. Furthermore, we show that a rudimentary model textttada can achieve 13% higher accuracy on the hold-out test set than GPT-4 after only a few rounds of this process, and that this fine-tuning improves performance in parallel tasks such as toxic comment identification.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 45 of its 52 references that are in the map. First posted on arXiv 26 Aug 2023.
Builds on
45 of 52 references.
References · 45
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2013Intriguing properties of neural networkscited by 5,155
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023A Survey of Large Language Modelscited by 2,576
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 1,006
- 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 807
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
33 more
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2022Large Language Models Can Self-Improvecited by 664
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 571
- 2021Dynabench: Rethinking Benchmarking in NLPcited by 459
- 2017Robust Adversarial Reinforcement Learningcited by 451
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2017Toward Controlled Generation of Textcited by 272
- 2023Poisoning Language Models During Instruction Tuningcited by 269
- 2020HateCheck: Functional Tests for Hate Speech Detection Modelscited by 216
- 2021Challenges in Detoxifying Language Modelscited by 169
- 2023The Science of Detecting LLM-Generated Textscited by 128
- 2019Does Gender Matter? Towards Fairness in Dialogue Systemscited by 89
- 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPTcited by 76
- 2019Avoiding Reasoning Shortcuts: Adversarial Evaluation, Training, and Model Development for Multi-Hop QAcited by 63
- 2022Adversarial Training for High-Stakes Reliabilitycited by 60
- 2022Training Language Models with Language Feedbackcited by 49
- 2021Analyzing Dynamic Adversarial Training Data in the Limitcited by 24
- 2017Intriguing Properties of Adversarial Examplescited by 20
- 2020Investigating Catastrophic Forgetting During Continual Training for Neural Machine Translationcited by 17
- 2020Parallel Corpus Filtering via Pre-trained Language Modelscited by 15
- 2018Machine Learning Suites for Online Toxicity Detectioncited by 12
- 2022Detoxifying Language Models with a Toxic Corpuscited by 5
- 2023Lightweight Toxicity Detection in Spoken Language: A Transformer-based Approach for Edge Devicescited by 5
- 2023Galactic ChitChat: Using Large Language Models to Converse with Astronomy Literaturecited by 4
- 2019Understanding and Quantifying Adversarial Examples Existence in Linear Classificationcited by 3
- 2019Detecting Toxicity in News Articles: Application to Bulgariancited by 2
- 2020Verifying the Causes of Adversarial Examplescited by 2
- 2021A Survey of Toxic Comment Classification Methodscited by 2
- 2022Generative Adversarial Training Can Improve Neural Language Modelscited by 2
- 2016A Compositional Approach to Language Modelingcited by 1
- 2018NICT's Corpus Filtering Systems for the WMT18 Parallel Corpus Filtering Taskcited by 1
- 2022Searching for the Essence of Adversarial Perturbationscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 5; 2026: 1.
7 papers.
- 2024LLM-based Multi-Agent Systems: Techniques and Business Perspectivescited by 22
- 2025Single-pass Detection of Jailbreaking Input in Large Language Modelscited by 10
- 2025Shh, don't say that! Domain Certification in LLMscited by 7
- 2025Adversarial Preference Learning for Robust LLM Alignmentcited by 7
- 2025OffTopicEval: When Large Language Models Enter the Wrong Chat, Almost Always!cited by 4
- 2026Attesting Model Lineage by Consisted Knowledge Evolution with Fine-Tuning Trajectorycited by 1
- 2025TombRaider: Entering the Vault of History to Jailbreak Large Language Modelscited by 0
- 2026Attesting Model Lineage by Consisted Knowledge Evolution with Fine-Tuning Trajectory16 Jan 2026
- 2025OffTopicEval: When Large Language Models Enter the Wrong Chat, Almost Always!30 Sep 2025
- 2025Adversarial Preference Learning for Robust LLM Alignment30 May 2025
- 2025Shh, don't say that! Domain Certification in LLMs26 Feb 2025
- 2025Single-pass Detection of Jailbreaking Input in Large Language Models21 Feb 2025
- 2025TombRaider: Entering the Vault of History to Jailbreak Large Language Models27 Jan 2025
- 2024LLM-based Multi-Agent Systems: Techniques and Business Perspectives21 Nov 2024
Similar, not cited
Close in wording, no citation either way
- 2026Adversarial Reframing: A Framework for Targeted Generation in Language Models
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attacks
- 2025Rethinking Safety in LLM Fine-tuning: An Optimization Perspective
- 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
- 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Research
- 2024Adversarial Tuning: Defending Against Jailbreak Attacks for LLMs
- 2025Detecting Adversarial Fine-tuning with Auditing Agents
- 2026The Heterogeneous Safety Impacts of Benign Multilingual Fine-Tuning