Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
Large Language Models (LLMs) have revolutionized content creation across digital platforms, offering unprecedented capabilities in natural language generation and understanding. Meanwhile, they pose risks by inadvertently producing toxic, offensive, or biased content. This dual role of LLMs, both as powerful tools for text generation and as potential sources of harmful language, presents a pressing sociotechnical challenge. In this survey, we systematically review recent studies encompassing unintentional toxicity, adversarial jailbreak attacks, and comprehensive mitigation strategies. We explore LLMs' dual role as both generators of harm and enablers of safety through detection, classification, content moderation, and prevention. We propose a unified taxonomy of LLM-related harms and defenses, analyze emerging multimodal and LLM-assisted jailbreak strategies, and assess mitigation efforts, including reinforcement learning with human feedback (RLHF), prompt engineering, and safety alignment. Our review highlights the evolving landscape of LLM safety and identifies limitations in current evaluation methodologies. Ultimately, our review outlines future research directions to guide the development of robust and ethically aligned language technologies.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 149 of its 199 references that are in the map. First posted on arXiv 7 Aug 2025.
Builds on
149 of 199 references.
Closest ancestors · 12
Same direction, newest first
- 2024Model-Editing-Based Jailbreak against Safety-aligned Large Language Models11 Dec
- 2024Antidote: Post-fine-tuning Safety Alignment for Large Language Models against Harmful Fine-tuning18 Aug
- 2024Model Surgery: Modulating LLM's Behavior Via Simple Parameter Editing11 Jul
- 2024LoRA-Guard: Parameter-Efficient Guardrail Adaptation for Content Moderation of Large Language Models3 Jul
- 2024Preference Tuning For Toxicity Mitigation Generalizes Across Languages23 Jun
- 2024RL-JACK: Reinforcement Learning-powered Black-box Jailbreaking Attack against LLMs13 Jun
- 2024How Alignment and Jailbreak Work: Explain LLM Safety through Intermediate Hidden States9 Jun
- 2024DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLM Jailbreakers25 Feb
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications7 Feb
- 2023FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts9 Nov
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Dataset10 Jul
- 2023Are aligned neural networks adversarially aligned?26 Jun
Other references · 137
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 767
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
38 more
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2023Toxicity in ChatGPT: Analyzing Persona-assigned Language Modelscited by 360
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Modelscited by 273
- 2023Certifying LLM Safety against Adversarial Promptingcited by 266
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
- 2019SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)cited by 207
- 2024Programming Refusal with Conditional Activation Steeringcited by 206
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
- 2023Do-Not-Answer: A Dataset for Evaluating Safeguards in LLMscited by 184
- 2022OpenAlex: A fully-open index of scholarly works, authors, venues, institutions, and conceptscited by 177
- 2024Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearningcited by 172
- 2024Improving Instruction-Following in Language Models through Activation Steeringcited by 160
- 2022Pretrained Language Models for Text Generation: A Surveycited by 122
- 2023Explore, Establish, Exploit: Red Teaming Language Models from Scratchcited by 114
- 2023SteerLM: Attribute Conditioned SFT as an (User-Steerable) Alternative to RLHFcited by 111
- 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstructioncited by 107
- 2023Text Classification via Large Language Modelscited by 106
- 2024Steering Language Model Refusal with Sparse Autoencoderscited by 95
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 86
- 2023Sensitivity, Performance, Robustness: Deconstructing the Effect of Sociodemographic Promptingcited by 81
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 76
- 2023Improving Activation Steering in Language Models with Mean-Centringcited by 68
- 2024Visual-RolePlay: Universal Jailbreak Attack on MultiModal Large Language Models via Role-playing Image Charactercited by 68
- 2024Speak Out of Turn: Safety Vulnerability of Large Language Models in Multi-turn Dialoguecited by 66
- 2022Handling Bias in Toxic Speech Detection: A Surveycited by 61
- 2023TrustGPT: A Benchmark for Trustworthy and Responsible Large Language Modelscited by 58
- 2023"I'm fully who I am": Towards Centering Transgender and Non-Binary Voices to Measure Biases in Open Language Generationcited by 56
- 2023Self-Guard: Empower the LLM to Safeguard Itselfcited by 54
- 2024Learning diverse attacks on large language models for robust red-teaming and safety tuningcited by 54
- 2024PRP: Propagating Universal Perturbations to Attack Large Language Model Guard-Railscited by 52
- 2024IndicLLMSuite: A Blueprint for Creating Pre-training and Fine-Tuning Datasets for Indian Languagescited by 52
- 2023Unveiling the Implicit Toxicity in Large Language Modelscited by 51
- 2024Evaluating Gender Bias in Large Language Models via Chain-of-Thought Promptingcited by 50
- 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreakscited by 49
- 2024Revisiting Jailbreaking for Large Language Models: A Representation Engineering Perspectivecited by 48
50 most cited of 137 All 137 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 7.
9 papers.
- 2026Do Coding Agents Understand Least-Privilege Authorization?cited by 6
- 2025Countermind: A Multi-Layered Security Architecture for Large Language Modelscited by 2
- 2026Large Language Models in the Abuse Detection Pipelinecited by 1
- 2025Systematizing LLM Persona Design: A Four-Quadrant Technical Taxonomy for AI Companion Applicationscited by 0
- 2026Safety Is Not Universal: The Selective Safety Trap in LLM Alignmentcited by 0
- 2026BarrierSteer: LLM Safety via Learning Barrier Steeringcited by 0
- 2026Why Do Large Language Models Generate Harmful Content?cited by 0
- 2026One Turn Too Late: Learning When to Intervene Against Multi-Turn Malicious Intentcited by 0
- 2026Operational Evidence Gaps for LLMs in Fraud Detection and Trust-and-Safety Workflowscited by 0
- 2026Operational Evidence Gaps for LLMs in Fraud Detection and Trust-and-Safety Workflows12 Jul 2026
- 2026Do Coding Agents Understand Least-Privilege Authorization?14 May 2026
- 2026One Turn Too Late: Learning When to Intervene Against Multi-Turn Malicious Intent7 May 2026
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2026Large Language Models in the Abuse Detection Pipeline31 Mar 2026
- 2026BarrierSteer: LLM Safety via Learning Barrier Steering23 Feb 2026
- 2026Safety Is Not Universal: The Selective Safety Trap in LLM Alignment7 Jan 2026
- 2025Systematizing LLM Persona Design: A Four-Quadrant Technical Taxonomy for AI Companion Applications4 Nov 2025
- 2025Countermind: A Multi-Layered Security Architecture for Large Language Models13 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Survey on Responsible LLMs: Inherent Risk, Malicious Use, and Mitigation Strategy
- 2024Characterizing and Evaluating the Reliability of LLMs against Jailbreak Attacks
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models
- 2025Jailbreaking Attacks vs. Content Safety Filters: How Far Are We in the LLM Safety Arms Race?
- 2026No One Model Catches Every Harm: Benchmarking Content Moderation Across Safety Scenarios
- 2025Playing the Fool: Jailbreaking LLMs and Multimodal LLMs with Out-of-Distribution Strategy
- 2024Look Before You Leap: Enhancing Attention and Vigilance Regarding Harmful Content with GuidelineLLM
- 2025Evolving Security in LLMs: A Study of Jailbreak Attacks and Defenses