mlsanityData to 13 Oct 2026

Does Safety Training of LLMs Generalize to Semantically Related Natural Prompts?

arXiv 2412.03235 ↗First posted 4 Dec 2024cs.CL cs.AIcited by 15

On the map: LLM safety and security → Safety alignment, refusal and guardrails

Abstract (arXiv)

Large Language Models (LLMs) are known to be susceptible to crafted adversarial attacks or jailbreaks that lead to the generation of objectionable content despite being aligned to human preferences using safety fine-tuning methods. While the large dimensionality of input token space makes it inevitable to find adversarial prompts that can jailbreak these models, we aim to evaluate whether safety fine-tuned LLMs are safe against natural prompts which are semantically related to toxic seed prompts that elicit safe responses after alignment. We surprisingly find that popular aligned LLMs such as GPT-4 can be compromised using naive prompts that are NOT even crafted with an objective of jailbreaking the model. Furthermore, we empirically show that given a seed prompt that elicits a toxic response from an unaligned model, one can systematically generate several semantically related natural prompts that can jailbreak aligned LLMs. Towards this, we propose a method of Response Guided Question Augmentation (ReG-QA) to evaluate the generalization of safety aligned LLMs to natural prompts, that first generates several toxic answers given a seed question using an unaligned LLM (Q to A), and further leverages an LLM to generate questions that are likely to produce these answers (A to Q). We interestingly find that safety fine-tuned LLMs such as GPT-4o are vulnerable to producing natural jailbreak questions from unsafe content (without denial) and can thus be used for the latter (A to Q) step. We obtain attack success rates that are comparable to/ better than leading adversarial attack methods on the JailbreakBench leaderboard, while being significantly more stable against defenses such as Smooth-LLM and Synonym Substitution, which are effective against existing all attacks on the leaderboard.

Key facts. Cited by 15 papers in the map (data through 13 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 39 of its 46 references that are in the map. First posted on arXiv 4 Dec 2024.

Builds on

39 of 46 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs26 Jun

Other references · 38

  1. 2023GPT-4 Technical Reportcited by 18,278
  2. 2022Training language models to follow instructions with human feedbackcited by 15,856
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,107
  4. 2017Deep reinforcement learning from human preferencescited by 3,871
  5. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,765
  6. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,691
  7. 2023Mistral 7Bcited by 3,123
  8. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,064
  9. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,968
  10. 2024Mixtral of Expertscited by 1,811
  11. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,637
  12. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,405
26 more
  1. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,404
  2. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,181
  3. 2023PaLM 2 Technical Reportcited by 1,162
  4. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 777
  5. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 664
  6. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 647
  7. 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 565
  8. 2020On Adaptive Attacks to Adversarial Example Defensescited by 554
  9. 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 531
  10. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 485
  11. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 483
  12. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 464
  13. 2023Detecting Language Model Attacks with Perplexitycited by 429
  14. 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 422
  15. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 404
  16. 2023Are aligned neural networks adversarially aligned?cited by 315
  17. 2023Certifying LLM Safety against Adversarial Promptingcited by 263
  18. 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 238
  19. 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 211
  20. 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 156
  21. 2024Gecko: Versatile Text Embeddings Distilled from Large Language Modelscited by 81
  22. 2024PAL: Proxy-Guided Black-Box Attack on Large Language Modelscited by 49
  23. 2024All in How You Ask for It: Simple Black-Box Method for Jailbreak Attackscited by 32
  24. 2023Safer-Instruct: Aligning Language Models with Automated Preference Datacited by 27
  25. 2024AutoJailbreak: Exploring Jailbreak Attacks and Defenses through a Dependency Lenscited by 14
  26. 2022Constructing Highly Inductive Contexts for Dialogue Safety through Controllable Reverse Generationcited by 8

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 7; 2026: 8.

15 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Safety Alignment Can Be Not Superficial With Explicit Safety Signals
  2. 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs
  3. 2025Paper Summary Attack: Jailbreaking LLMs through LLM Safety Papers
  4. 2025Advancing LLM Safe Alignment with Safety Representation Ranking
  5. 2024LLMs know their vulnerabilities: Uncover Safety Gaps through Natural Distribution Shifts
  6. 2025Rethinking Safety in LLM Fine-tuning: An Optimization Perspective
  7. 2026Understanding the Effects of Safety Unalignment on Large Language Models
  8. 2024SG-Bench: Evaluating LLM Safety Generalization Across Diverse Tasks and Prompt Types