ASCENT: First-Order Optimal Fine-Tuning with Recalibration for Safety--Utility Co-Enhancement
Weiwei Qi, Chongyu Wang, Tianhang Zheng, Zefeng Wu, Zhilin Guo, Xiaojun Jia, Zhongjie Ba, Kui Ren
Abstract
Supervised fine-tuning can substantially improve the downstream utility of large language models (LLMs) but may compromise their safety. Existing safety-preserving methods constrain downstream updates using safety-related parameters or subspaces, but mainly focus on safety preservation rather than joint safety and utility enhancement, lack a theoretical characterization of the optimal safety-related subspace and safety-preserving task update, and typically rely on a static safety subspace that may become outdated during fine-tuning. To address these limitations, we propose ASCENT, a downstream fine-tuning framework for safety--utility co-enhancement through first-order optimal safety-aware periodic calibration and task optimization. We model safety as a function of LLM parameters and use its first-order approximation to characterize safety changes under parameter updates. Under a fixed rank and Frobenius-norm budget, we prove that the update constructed from the top- singular components of the safety-function gradient maximizes the estimated safety change, and use it for periodic calibration to preserve and improve safety. We further derive a unique safety-preserving task update that stays close to the original task update while penalizing negative effects on the estimated safety change. ASCENT alternates these optimal task and calibration updates to jointly enhance safety and utility. Experiments across multiple LLM families and downstream tasks show that ASCENT improves downstream utility by up to 20.3\% and reduces attack success rate by up to 35.5\%, achieving state-of-the-art safety and utility across all evaluated settings. Our code is available at https://github.com/ZJU-LLM-Safety/ASCENT.
Create a lesson
Related papers
Felid: A Flexible and Efficient Design for Transformer Fine-Tuning over Encrypted Data
Shared title terminologycs.CRLinru Zhang, Jun Jie Sim, Xiangning Wang et al.
Erased but Recoverable: On the Fragility of Concept Erasure Under Fine-Tuning
Shared title terminologycs.CRJun Li, Lizhi Xiong, Ziqiang Li et al.
SLDR: Defending Against Malicious Fine-tuning via Selective Layers Recovery and Dynamic Routing
Shared title terminologycs.CRHui Zhang, Yachao Yuan, Jiayun Wang et al.
HE-OFT: Privacy-Preserving One-Shot Federated Fine-Tuning under Homomorphic Encryption
Shared title terminologycs.CRHalil İbrahim Kanpak, Sinem Sav, Alptekin Küpçü
PCC: Proof-Carrying Credentials for Enhanced Anonymity and Post-Quantum Delegation
Shared title terminologycs.CRZixuan Wang, Zheng Tianyu, Yuan Lu et al.
Enhancing Metaverse Security using Explainable AI-based Intrusion Detection Framework
Shared title terminologycs.CREsha Kuppanda, Shalaka Mahadik, Pranav M. Pawar et al.