Towards Context-Invariant Safety Alignment for Large Language Models
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
- 2025SafeVid: Toward Safety Aligned Video Large Multimodal Models17 May
- 2024Rule Based Rewards for Language Model Safety2 Nov
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
Other references · 40
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2020Learning to summarize from human feedbackcited by 2,562
28 more
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,205
- 2019Invariant Risk Minimizationcited by 1,832
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2022Scaling Laws for Reward Model Overoptimizationcited by 1,056
- 2024SimPO: Simple Preference Optimization with a Reference-Free Rewardcited by 951
- 2025Group Sequence Policy Optimizationcited by 788
- 2021Generalizing to Unseen Domains: A Survey on Domain Generalizationcited by 762
- 2020Out-of-Distribution Generalization via Risk Extrapolation (REx)cited by 737
- 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 556
- 2024RewardBench: Evaluating Reward Models for Language Modelingcited by 480
- 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 445
- 2024Alignment faking in large language modelscited by 316
- 2023Evaluating the Moral Beliefs Encoded in LLMscited by 211
- 2024Scaling Laws for Reward Model Overoptimization in Direct Alignment Algorithmscited by 139
- 2023Confronting Reward Model Overoptimization with Constrained RLHFcited by 96
- 2023Evaluating the Zero-shot Robustness of Instruction-tuned Language Modelscited by 63
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2023Fake Alignment: Are LLMs Really Aligned Well?cited by 39
- 2025A Mousetrap: Fooling Large Reasoning Models for Jailbreak with Chain of Iterative Chaoscited by 39
- 2020An Empirical Study of Invariant Risk Minimizationcited by 35
- 2023Flames: Benchmarking Value Alignment of LLMs in Chinesecited by 35
- 2023Improving Generalization of Alignment with Human Preferences through Group Invariant Learningcited by 25
- 2025Rethinking Reward Model Evaluation Through the Lens of Reward Overoptimizationcited by 10
- 2025Reward Model Overoptimisation in Iterated RLHFcited by 10
- 2023An Invariant Learning Characterization of Controlled Text Generationcited by 9
- 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
- 2025Safety Alignment Can Be Not Superficial With Explicit Safety Signals
- 2026Suan: Rectifying Direct Preference Safety Alignment in Large Language Models
- 2026Cat-DPO: Category-Adaptive Safety Alignment
- 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints
- 2025Advancing LLM Safe Alignment with Safety Representation Ranking
- 2026Guardrails in Logit Space: Safety Token Regularization for LLM Alignment
- 2025Rethinking Deep Alignment Through The Lens Of Incomplete Learning
- 2025Alignment and Safety in Large Language Models: Safety Mechanisms, Training Paradigms, and Emerging Challenges