mlsanityData to 14 Oct 2026

When Style Breaks Safety: Defending LLMs Against Superficial Style Alignment

arXiv 2506.07452 ↗First posted 9 Jun 2025cs.LG cs.AI cs.CLcited by 6

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Large language models (LLMs) can be prompted with specific styles (e.g., formatting responses as lists), including in malicious queries. Prior jailbreak research mainly augments these queries with additional string transformations to maximize attack success rate (ASR). However, the impact of style patterns in the original queries that are semantically irrelevant to the malicious intent remains unclear. In this work, we seek to understand whether style patterns compromise LLM safety, how superficial style alignment increases model vulnerability, and how best to mitigate these risks during alignment. We first define ASR inflation as the increase in ASR due to style patterns in existing jailbreak benchmark queries. By evaluating 36 LLMs across seven benchmarks, we find that nearly all models exhibit ASR inflation. Notably, the inflation correlates with an LLM's relative attention to style patterns, which also overlap more with its instruction-tuning data when inflation occurs. We then investigate superficial style alignment, and find that fine-tuning with specific styles makes LLMs more vulnerable to jailbreaks of those same styles. Finally, we propose SafeStyle, a defense strategy that incorporates a small amount of safety training data augmented to match the distribution of style patterns in the fine-tuning data. Across three LLMs, six fine-tuning style settings, and two real-world instruction-tuning datasets, SafeStyle consistently outperforms baselines in maintaining LLM safety.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 78 of its 105 references that are in the map. First posted on arXiv 9 Jun 2025.

Builds on

78 of 105 references.

Closest ancestors · 13

Same direction, newest first

  1. 2025Speak Easy: Eliciting Harmful Jailbreaks from LLMs with Simple Interactions6 Feb
  2. 2025Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming31 Jan
  3. 2024h4rm3l: A language for Composable Jailbreak Attack Synthesis9 Aug
  4. 2024Tamper-Resistant Safeguards for Open-Weight LLMs1 Aug
  5. 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models26 Jun
  6. 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models26 Jun
  7. 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Search13 Jun
  8. 2024Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses3 Jun
  9. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
  10. 2023Multilingual Jailbreak Challenges in Large Language Models10 Oct
  11. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
  12. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
1 more
  1. 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul

Other references · 65

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  8. 2024Qwen2.5 Technical Reportcited by 4,942
  9. 2024GPT-4o System Cardcited by 4,588
  10. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  11. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  12. 2023Code Llama: Open Foundation Models for Codecited by 2,139
38 more
  1. 2024Qwen2 Technical Reportcited by 2,120
  2. 2025Gemma 3 Technical Reportcited by 1,824
  3. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  4. 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
  5. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
  6. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  7. 2019Attention is not Explanationcited by 929
  8. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
  9. 2019Attention is not not Explanationcited by 636
  10. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  11. 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
  12. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
  13. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
  14. 20242 OLMo 2 Furiouscited by 340
  15. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 336
  16. 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 257
  17. 2024SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusalcited by 240
  18. 2018Explainable Prediction of Medical Codes from Clinical Textcited by 234
  19. 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
  20. 2024SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Modelscited by 228
  21. 2020Reformulating Unsupervised Style Transfer as Paraphrase Generationcited by 183
  22. 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
  23. 2024Attacks, Defenses and Evaluations for LLM Conversation Safety: A Surveycited by 130
  24. 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 125
  25. 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 118
  26. 2024Vaccine: Perturbation-aware Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 115
  27. 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 96
  28. 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 96
  29. 2024Lisa: Lazy Safety Alignment for Large Language Models against Harmful Fine-tuning Attackcited by 92
  30. 2024Booster: Tackling Harmful Fine-tuning for Large Language Models via Attenuating Harmful Perturbationcited by 92
  31. 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 90
  32. 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
  33. 2022Help me write a poem: Instruction Tuning as a Vehicle for Collaborative Poetry Writingcited by 71
  34. 2024SEAL: Safety-enhanced Aligned LLM Fine-tuning via Bilevel Data Selectioncited by 64
  35. 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 60
  36. 2017Shakespearizing Modern Language Using Copy-Enriched Sequence-to-Sequence Modelscited by 57
  37. 2024On Evaluating the Durability of Safeguards for Open-Weight LLMscited by 52
  38. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Modelscited by 50

50 most cited of 65 All 65 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Beyond Jailbreaks: Revealing Stealthier and Broader LLM Security Risks Stemming from Alignment Failures
  2. 2025Say It Differently: Linguistic Styles as Jailbreak Vectors
  3. 2025Playing the Fool: Jailbreaking LLMs and Multimodal LLMs with Out-of-Distribution Strategy
  4. 2025Jailbreaking Attacks vs. Content Safety Filters: How Far Are We in the LLM Safety Arms Race?
  5. 2024Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings
  6. 2025StructTransform: A Scalable Attack Surface for Safety-Aligned Large Language Models
  7. 2025QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language
  8. 2025Why Safeguarded Ships Run Aground? Aligned Large Language Models' Safety Mechanisms Tend to Be Anchored in The Template Region