mlsanityData to 7 Oct 2026

Towards Context-Invariant Safety Alignment for Large Language Models

arXiv 2605.20994 ↗First posted 20 May 2026cs.CL cs.AIcited by 0

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

also in 1 more
Abstract (arXiv)

Preference-based post-training aligns LLMs with human intent, yet safety behavior often remains brittle. A model may refuse a harmful request in a standard prompt but comply when the same intent is wrapped in adversarial wording. We suggest that robust safety requires context-invariant alignment, where behavior depends on the underlying intent rather than surface form. Enforcing invariance is difficult in alignment because not all training signals are equally trustworthy; for some prompt variants we can obtain verifiable feedback (e.g., multiple-choice), while for open-ended variants we typically rely on noisy, gameable reward proxies (e.g., learned judges). As a result, standard symmetric invariance regularizers can reduce cross-context discrepancies by lowering performance on reliable variants instead of improving open-ended robustness. To address this, we introduce Anchor Invariance Regularization (AIR), which treats verifiable prompts as anchors and uses a stop-gradient target to regularize only the open-ended variants toward the anchor performance. AIR is implemented as a plug-in auxiliary loss and combined with group-based preference optimization (e.g., GRPO) via heterogeneous prompt grouping. Across Safety, Moral Reasoning, and Math, AIR improves context invariance, boosting in-distribution group accuracy by 12.71% and out-of-distribution consistency by 33.49%, making safety constraints robust to adversarial framings.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 43 of its 49 references that are in the map. First posted on arXiv 20 May 2026.

Builds on

43 of 49 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025SafeVid: Toward Safety Aligned Video Large Multimodal Models17 May
  2. 2024Rule Based Rewards for Language Model Safety2 Nov
  3. 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul

Other references · 40

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2017Proximal Policy Optimization Algorithmscited by 14,441
  4. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  5. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  6. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  7. 2025Qwen3 Technical Reportcited by 8,195
  8. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  9. 2017Deep reinforcement learning from human preferencescited by 3,846
  10. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  11. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  12. 2020Learning to summarize from human feedbackcited by 2,562
28 more
  1. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
  2. 2019Invariant Risk Minimizationcited by 1,832
  3. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  4. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  5. 2024A Survey on LLM-as-a-Judgecited by 1,384
  6. 2022Scaling Laws for Reward Model Overoptimizationcited by 1,056
  7. 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 951
  8. 2025Group Sequence Policy Optimizationcited by 788
  9. 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 762
  10. 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 737
  11. 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 556
  12. 2024RewardBench: Evaluating Reward Models for Language Modelingcited by 480
  13. 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
  14. 2024Alignment faking in large language modelscited by 316
  15. 2023Evaluating the Moral Beliefs Encoded in LLMscited by 211
  16. 2024Scaling Laws for Reward Model Overoptimization in Direct Alignment Algorithmscited by 139
  17. 2023Confronting Reward Model Overoptimization with Constrained RLHFcited by 96
  18. 2023Evaluating the Zero-shot Robustness of Instruction-tuned Language Modelscited by 63
  19. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
  20. 2023Fake Alignment: Are LLMs Really Aligned Well?cited by 39
  21. 2025A Mousetrap: Fooling Large Reasoning Models for Jailbreak with Chain of Iterative Chaoscited by 39
  22. 2020An Empirical Study of Invariant Risk Minimizationcited by 35
  23. 2023Flames: Benchmarking Value Alignment of LLMs in Chinesecited by 35
  24. 2023Improving Generalization of Alignment with Human Preferences through Group Invariant Learningcited by 25
  25. 2025Rethinking Reward Model Evaluation Through the Lens of Reward Overoptimizationcited by 10
  26. 2025Reward Model Overoptimisation in Iterated RLHFcited by 10
  27. 2023An Invariant Learning Characterization of Controlled Text Generationcited by 9
  28. 2025JailBound: Jailbreaking Internal Safety Boundaries of Vision-Language Modelscited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Safety Alignment Can Be Not Superficial With Explicit Safety Signals
  2. 2026Suan: Rectifying Direct Preference Safety Alignment in Large Language Models
  3. 2026Cat-DPO: Category-Adaptive Safety Alignment
  4. 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints
  5. 2025Advancing LLM Safe Alignment with Safety Representation Ranking
  6. 2026Guardrails in Logit Space: Safety Token Regularization for LLM Alignment
  7. 2025Rethinking Deep Alignment Through The Lens Of Incomplete Learning
  8. 2025Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challenges