paper-with-me

홈 › Papers

GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning

2026-03-10 · Zhouxiang Fang, Jiawei Zhou, Hanjie Chen arxiv

Recent studies show that the safety alignment of large language models (LLMs) can be easily compromised even by seemingly non-adversarial fine-tuning. To preserve safety alignment during fine-tuning, a widely used strategy is to jointly optimize safety and task objectives by mixing in the original alignment data, which is typically inaccessible even for open-weight LLMs. Inspired by generative replay in continual learning, we propose Generative Replay for Safety Alignment Preservation (GR-SAP), a unified framework that synthesizes domain-specific alignment data from LLMs and integrate them during downstream adaption to preserve safety alignment. Theoretical and empirical analyses demonstrate this synthetic data serves as a reliable proxy for the original alignment data. Experiments across various models and downstream tasks show that GR-SAP substantially mitigates fine-tuning-induced safety degradation while maintaining comparable downstream performance. Our code is available at https://github.com/chili-lab/gr-sap.

📄 PDF Abstract BibTeX arXiv:2603.10243

Code (0)

등록된 구현이 없습니다.

Tasks

Continual Learning

Similar Papers 제목 키워드 기반

Safety Alignment as Continual Learning: Mitigating the Alignment Tax via Orthogonal Gradient Projection

2026-02-08 · Guanglong Sun, Siyuan Zhang, Liyuan Wang, Jun Zhu 외 arxiv

Safety post-training can improve the harmfulness and policy compliance of Large Language Models (LLMs), but it may also reduce general utility, a phenomenon often described as the \emph{alignment tax}. We study this trad…

Continual Learning

Be Your Own Red Teamer: Safety Alignment via Self-Play and Reflective Experience Replay

2026-01-15 · Hao Wang, Yanting Wang, Hao Li, Rui Li 외 arxiv

Large Language Models (LLMs) have achieved remarkable capabilities but remain vulnerable to adversarial ``jailbreak'' attacks designed to bypass safety guardrails. Current safety alignment methods depend heavily on stati…

Reinforcement LearningRed Teaming

Continual Safety Alignment via Gradient-Based Sample Selection

2026-04-19 · Thong Bach, Dung Nguyen, Thao Minh Le, Truyen Tran arxiv

Large language models require continuous adaptation to new tasks while preserving safety alignment. However, fine-tuning on even benign data often compromises safety behaviors, including refusal of harmful requests, trut…

Alignment-Constrained Dynamic Pruning for LLMs: Identifying and Preserving Alignment-Critical Circuits

2025-11-09 · Dev Patel, Gabrielle Gervacio, Diekola Raimi, Kevin Zhu 외 arxiv

Large Language Models require substantial computational resources for inference, posing deployment challenges. While dynamic pruning offers superior efficiency over static methods through adaptive circuit selection, it e…

Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraints

2026-04-14 · Songping Peng, Zhiheng Zhang, Daojian Zeng, Lincheng Jiang 외 arxiv

Safety alignment in Large Language Models (LLMs) remains highly fragile during fine-tuning, where even benign adaptation can degrade pre-trained refusal behaviors and enable harmful responses. Existing defenses typically…