paper-with-me

Papers

A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Space

2025-10-16 · Bingjie Zhang, Yibo Yang, Zhe Ren, Dandan Guo, Jindong Gu, Philip Torr, Bernard Ghanem arxiv

Large language models (LLMs) have achieved remarkable success in diverse tasks, yet their safety alignment remains fragile during adaptation. Even when fine-tuning on benign data or with low-rank adaptation, pre-trained safety behaviors are easily degraded, leading to harmful responses in the fine-tuned models. To address this challenge, we propose GuardSpace, a guardrail framework for preserving safety alignment throughout fine-tuning, composed of two key components: a safety-sensitive subspace and a harmful-resistant null space. First, we explicitly decompose pre-trained weights into safety-relevant and safety-irrelevant components using covariance-preconditioned singular value decomposition, and initialize low-rank adapters from the safety-irrelevant ones, while freezing safety-relevant components to preserve their associated safety mechanism. Second, we construct a null space projector that restricts adapter updates from altering safe outputs on harmful prompts, thereby maintaining the original refusal behavior. Experiments with various pre-trained models on multiple downstream tasks demonstrate that GuardSpace achieves superior performance over existing methods. Notably, for Llama-2-7B-Chat fine-tuned on GSM8K, GuardSpace outperforms the state-of-the-art method AsFT, reducing the average harmful score from 14.4% to 3.6%, while improving the accuracy from from 26.0% to 28.0%.

📄 PDF Abstract BibTeX arXiv:2510.14301

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

FreoStream:Enhancing Stream Guardrails via Future-Aware Reasoning and Safety-Aligned Optimization

2026-06-11 · Jianwei Wang, Guoyang Shen, Yanhong Wu, Haoran Li 외 arxiv

Stream guardrails enable token-level safety detection before full responses are generated. However, they often make overly conservative judgements and block those sensitive but safe tokens, which is known as over-refusal…

OpenGuardrails: A Configurable, Unified, and Scalable Guardrails Platform for Large Language Models

2025-10-22 · Thomas Wang, Haowen Li arxiv

As large language models (LLMs) are increasingly integrated into real-world applications, ensuring their safety, robustness, and privacy compliance has become critical. We present OpenGuardrails, the first fully open-sou…

Text Generation

Jailbreaking Safeguarded Text-to-Image Models via Large Language Models

2025-03-03 · Zhengyuan Jiang, Yuepeng Hu, Yuchen Yang, Yinzhi Cao 외

Text-to-Image models may generate harmful content, such as pornographic images, particularly when unsafe prompts are submitted. To address this issue, safety filters are often added on top of text-to-image models, or the…

Language ModelingLanguage ModellingLarge Language Model

Why LLM Safety Guardrails Collapse After Fine-tuning: A Similarity Analysis Between Alignment and Fine-tuning Datasets

2025-06-05 · Lei Hsiung, Tianyu Pang, Yung-Chen Tang, Linyue Song 외

Recent advancements in large language models (LLMs) have underscored their vulnerability to safety alignment jailbreaks, particularly when subjected to downstream fine-tuning. However, existing mitigation strategies prim…

Safety Alignment

Proof-of-Guardrail in AI Agents and What (Not) to Trust from It

2026-03-06 · Xisen Jin, Michael Duan, Qin Lin, Aaron Chan 외 arxiv

As AI agents become widely deployed as online services, users often rely on an agent developer's claim about how safety is enforced, which introduces a threat where safety measures are falsely advertised. To address the …