Towards Comprehensive Post Safety Alignment of Large Language Models via Safety Patching
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 880-888.
https://doi.org/10.24963/ijcai.2026/99
Keywords
- AI Ethics, Trust, Fairnes: Safety and robustness
- Natural Language Processing: Language models
Abstract
Safety alignment of large language models (LLMs) has been gaining increasing attention. However, current safety-aligned LLMs suffer from the fragile and imbalanced safety mechanisms, which can still be induced to generate unsafe responses, exhibit over-safety by rejecting safe user inputs, and fail to preserve general utility after safety alignment. To this end, we propose a novel post safety alignment (PSA) method to address these inherent and emerging safety challenges, including safety enhancement, over-safety mitigation, and utility preservation. In specific, we introduce SafePatching, a novel framework for comprehensive PSA, where two distinct safety patches are developed on the harmful data to enhance safety and mitigate over-safety concerns, and then seamlessly integrated into the target LLM backbone without compromising its utility. Extensive experiments on four representative aligned LLMs, including LLaMA-2/3, Gemma and Mistral, show that SafePatching achieves a more comprehensive PSA than baseline methods, further optimizing the balance between being helpful and harmless in current aligned LLMs. Also, SafePatching demonstrates its superiority in continual PSA scenarios.
@inproceedings{ijcai2026p99,
title = {Towards Comprehensive Post Safety Alignment of Large Language Models via Safety Patching},
author = {Zhao, Weixiang and Hu, Yulin and Deng, Yang and Guo, Jiahe and Sui, Xingyu and Zhao, Yanyan and Qin, Bing and Liu, Ting},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {880--888},
year = {2026},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2026/99},
url = {https://doi.org/10.24963/ijcai.2026/99},
}
TY - CPAPER TI - Towards Comprehensive Post Safety Alignment of Large Language Models via Safety Patching AU - Zhao, Weixiang AU - Hu, Yulin AU - Deng, Yang AU - Guo, Jiahe AU - Sui, Xingyu AU - Zhao, Yanyan AU - Qin, Bing AU - Liu, Ting T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 880 EP - 888 DO - 10.24963/ijcai.2026/99 UR - https://doi.org/10.24963/ijcai.2026/99 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: