arXiv:2610.08061cs.CROct 2026

Manuscript Offprint

arXiv:2610.08061

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 can also compromise their safety capabilities. Recent safety-preserving fine-tuning methods aim to prevent safety degradation by identifying safety-related parameters or subspaces and constraining downstream updates accordingly. However, existing methods still have several limitations. First, these methods mainly focus on safety preservation, rather than seeking joint safety and utility enhancement. Second, there is no theoretical characterization of the optimal safety-related subspace or the safety-preserving task update. Third, existing methods typically rely on a static safety subspace throughout downstream fine-tuning, even though this subspace may be outdated as the LLM evolves. 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. Specifically, we model safety as a function of LLM parameters S(θ)S(\theta) and use its first-order approximation to characterize how safety changes under parameter updates. Under a fixed rank and Frobenius-norm budget, we prove that the parameter update constructed from the top-r singular components of the safety-function gradient maximizes the estimated safety change, and use this update as a periodic calibration to preserve and even improve the safety capability. We further formulate an optimization problem for the safety-preserving task update that minimizes its deviation from the original task update while penalizing its negative effect on the estimated safety change, which yields a unique solution for the task optimization process. As the optimization proceeds, ASCENT iteratively applies the optimal safety-preserving task update and the optimal safety-improving calibration update, thereby enabling the co-enhancement of safety and utility. Extensive experiments across multiple LLM families and downstream tasks demonstrate that ASCENT can improve downstream utility by up to 20.3% and reduce attack success rate by up to 35.5%. Compared with existing safety-preserving fine-tuning methods, ASCENT achieves state-of-the-art safety and utility across all evaluated settings. Our code is available at https://github.com/ZJU-LLM-Safety/ASCENT.

1 INTRODUCTION

Supervised fine-tuning is widely used to improve the utility of large language models (LLMs) on various downstream tasks, but the utility gain usually comes with an unintended side effect, a noticeable degradation in the LLM's safety capability (Qi et al., 2024; Wu et al., 2026). Some recent

∗^{*}Corresponding author.

work has identified a probable cause for this utility-safety trade-off: the task-specific parameter updates may interfere with safety-related parameters and inadvertently disrupt the safety structures in LLMs (Wei et al., 2024; Qi et al., 2026c). To mitigate this issue, several safety-preserving fine-tuning methods have been proposed, aiming to identify safety-related neurons or parameter subspaces and constrain downstream updates to reduce interference with these safety structures (Li et al., 2025a; Zhang et al., 2026). Broader AI content-security research addresses complementary risks at the output level, including AI-generated image detection from real-only representations (Li et al., 2026c) and multi-view manipulation detection and localization (Li et al., 2024).

Despite their effectiveness, these approaches still have several empirical and theoretical limitations. First, most existing methods are designed to prevent safety degradation during downstream adaptation rather than jointly improve safety and downstream utility. Second, although prior work has developed various methods for identifying safety-related parameter subspaces to constrain task updates, there is no theoretical characterization of the optimal safety-related subspace or the optimal safety-preserving task update during downstream optimization. Third, the identified safety-related subspace is typically estimated before downstream fine-tuning and then fixed throughout the entire tuning process (Hsu et al., 2024; Li et al., 2025a; Zhang et al., 2026), even though downstream optimization may reshape the subspace.

To address these limitations, we propose ASCENT, a downstream fine-tuning framework for safety–utility co-enhancement through first-order optimal safety-aware calibration and task optimization. We first model the safety capability of an LLM as a function of its parameters, denoted by S(θ)S(\theta), and use a first-order approximation to characterize the safety change caused by a parameter update Δθ\Delta\theta. Based on this approximation, we formulate safety calibration as a constrained optimization problem and prove that, under a fixed rank and Frobenius-norm budget, the update constructed from the top-r singular components of the safety-function gradient maximizes the estimated safety improvement. This optimal update is estimated periodically for safety calibration, and the singular components can characterize the current safety-related subspace used for downstream task optimization.

For downstream task optimization, existing safety-preserving methods use safety-related projections to constrain task updates (Li et al., 2025a; Zhang et al., 2026), or keep safety-critical structures fixed during downstream fine-tuning (Qi et al., 2026c). Under our first-order formulation, task-update components within the safety-related subspace can either improve or degrade model safety. Therefore, directly removing all such components is not optimal. Given the original task update ΔWtask\Delta W_{task}, we formulate a second optimization problem for the optimal safety-preserving task update ΔWtask∗\Delta W_{task}^{*} that minimizes its deviation from the original update while penalizing only the components that negatively affect the estimated safety change. The penalty on each safety-degrading component is weighted by its corresponding singular value, with larger singular values leading to stronger suppression. We prove that this problem has a unique closed-form optimal solution that preserves safety-compatible task updates and selectively suppresses safety-degrading ones, thereby retaining useful task-specific information while reducing safety degradation during downstream optimization.

Based on the above first-order optimal solutions, we iteratively apply the optimal safety-preserving task update and the optimal safety-improving calibration throughout downstream fine-tuning. At each calibration point, we re-estimate the top-r singular structure of the current model and update the safety-related subspace for subsequent task optimization. We observe that the calibrated rank-r safety-gradient structure remains stable over several downstream optimization steps, as shown in Figure 4, supporting multiple task updates between consecutive calibrations. To determine the calibration interval, we measure its retention after different numbers of downstream optimization steps and choose the largest interval for which the retention remains above a predefined threshold. ASCENT then performs periodic recalibration using the selected interval during fine-tuning.

We conduct extensive experiments on multiple LLM families and downstream tasks, including summarization, classification, mathematical reasoning, and question answering. ASCENT consistently achieves safety–utility co-enhancement across all evaluated settings, improving downstream utility by up to 20.3% and reducing the attack success rate (ASR) by up to 35.5% over the original models. Compared with existing safety-preserving fine-tuning methods, ASCENT achieves state-of-the-art safety and utility across all model–task settings, reducing ASR by 25.9% on average over the strongest baseline in each setting.

Our contributions are summarized as follows:

• We establish a first-order optimization formulation for safety calibration during downstream fine-tuning. Under a fixed rank and Frobenius-norm budget, we prove that the update constructed from the top-r singular components of the safety-function gradient maximizes the estimated safety improvement, providing a theoretical characterization of the rank-r safety-related subspace.

• We formulate a safety-preserving task optimization problem and derive its unique closed-form optimal solution, which preserves safety-compatible task updates while selectively suppressing safety-degrading ones. ASCENT periodically recalibrates the safety-related structure during downstream fine-tuning, allowing safety calibration and task optimization to proceed iteratively.

• Across multiple LLM families and downstream tasks, ASCENT consistently achieves safety–utility co-enhancement and state-of-the-art safety and utility across all evaluated settings, improving downstream utility by up to 20.3% while reducing ASR by up to 35.5%.