Manuscript Offprint

arXiv:2610.26443

Rethinking LLM Fine-Tuning via Weight Space Reparameterization: Preserving Safety during Downstream Adaptation

Minseong Kim, Jongbok Won, Jeesup Park, Yonghee Choi, Dongjun Han

Abstract

Fine-tuning large language models (LLMs) on downstream tasks often weakens their previously aligned safety behavior, creating an inherent trade-off between task adaptation and safety preservation. Existing approaches attempt to mitigate this issue by identifying safety-relevant neurons, layers, or update directions in the original parameter space. However, safety-related information is often distributed across many directions in this space, causing downstream updates to overwrite parameters that encode safety behavior. We propose WSR-Tune, a Weight Space Reparameterization-based fine-tuning framework that preserves safety during downstream adaptation. Our approach constructs a safety-conditioned basis and reparameterizes the weight matrices such that safety-relevant information becomes concentrated in a small subset of directions. We then identify safety-critical directions and freeze them in the reparameterized space, while updating the remaining complementary directions for downstream adaptation. By explicitly structuring the parameter space to disentangle safety and task information, our method reduces interference between objectives and enables simultaneous preservation of safety and improvement in downstream performance. Experimental results show that our method achieves a more favorable trade-off between downstream performance and safety retention, demonstrating its effectiveness for reliable LLM fine-tuning.

1 Introduction

Large Language Models (LLMs) are increasingly being deployed in real-world settings where safety is critical [1]. As their capabilities continue to advance, LLMs are expected to play important roles across diverse domains such as healthcare, education, and software engineering [2, 3, 4, 5]. Without adequate safety tuning, LLMs can provide harmful assistance, violate policies, and exhibit unsafe behavior at scale [6]. Ensuring that these models remain helpful while consistently refusing harmful or disallowed requests has therefore become a central challenge in modern LLM development.

In practice, LLM deployment typically involves multiple post-training stages: a base model is first improved through instruction tuning and/or safety tuning, and is then further adapted to user-specific downstream tasks [7]. However, such downstream adaptation can degrade previously learned safety behaviors [8]. This issue becomes more critical as attempts to misuse LLMs have become increasingly sophisticated [9, 10, 11]. Recent work has introduced a wide range of jailbreak strategies, including manually crafted prompts [12], automated prompt optimization [13, 14], adversarial fine-tuning [15, 16], and other adaptive attacks [17, 18, 19] designed to elicit harmful or policy-violating

∗^{*}Equal contribution.

Code available at https://github.com/min-seong-kim/WSR-Tune

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

outputs even from safety-tuned models [20]. These threats suggest that safety must be preserved throughout model adaptation, deployment, and continual improvement.

A central challenge in LLM fine-tuning is thus preserving safety during downstream adaptation, motivating a growing body of safety-preserving methods. Data- and optimization-based methods incorporate safety supervision or select safety-compatible training data to guide downstream optimization [21, 8, 22]. Parameter- and update-constrained methods protect safety-relevant components or restrict update directions to limit safety degradation [23, 24, 25]. Low-rank and post-hoc model-space methods constrain low-rank updates or modify fine-tuned weights to preserve or restore safety [26, 27, 28, 29]. These methods show that safety can be partially preserved or recovered during downstream adaptation.

Challenges. However, despite prior efforts, existing methods share a key limitation: they operate entirely in the original parameterization of the model. For example, consider a safety-tuned 2×22 \times 2 weight matrix WW from an arbitrary layer, which can be expressed as

W=[w11w12w21w22]=w11b11+w12b12+w21b21+w22b22,(1)W = \begin{bmatrix} w _ {1 1} & w _ {1 2} \\ w _ {2 1} & w _ {2 2} \end{bmatrix} = w _ {1 1} b _ {1 1} + w _ {1 2} b _ {1 2} + w _ {2 1} b _ {2 1} + w _ {2 2} b _ {2 2}, \tag {1}

where {wij}\{w_{ij}\} are the model parameters, {bij}\{b_{ij}\} are the canonical basis matrices, and each bijb_{ij} has a single nonzero entry of 1 at position (i,j)(i,j) and zeros elsewhere (e.g., b11=[1000]b_{11} = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}, b22=[0001]b_{22} = \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix}).

In this representation, safety-related information is not localized to a specific coordinate wijw_{ij}, but is instead distributed across multiple directions in the parameter space (i.e., across w11w_{11}, w12w_{12}, w21w_{21}, w22w_{22}). Consequently, even if prior methods identify and preserve safety-relevant parameters, downstream adaptation can still overwrite other parameters that encode safety behavior. In other words, preserving a subset of parameters in the original space is often insufficient, as the parameterization does not provide a clear separation between safety-preservation and task adaptation.

Table 1 empirically demonstrates this limitation. Full-parameter adaptation on a downstream task severely degrades safety, while freezing 10%10\%, 30%30\%, and 50%50\% of the original-space parameters only partially alleviates this degradation. In contrast, applying the same freeze-and-adapt procedure after reparameterization preserves safety much more effectively while maintaining sufficient capacity for downstream adaptation. These results suggest that robust safety preservation cannot be achieved solely by selecting parameters to freeze in the original space; rather, it requires reparameterizing the model so that safety-preserving and task-adaptive directions are more easily disentangled. We thus pose the following key question:

Table 1: Impact of freezing safety-relevant parameters on safety preservation after downstream fine-tuning. The reported values are averaged over Direct, AutoDAN, PAIR, and PAP attacks using safety-tuned Llama-2-7B.

Fine-tuning settingSafety ↓
FT (0% frozen)53.84
FT (10% frozen)33.95
FT (30% frozen)21.44
FT (50% frozen)18.43
WSR-Tune (10% frozen)14.67

Can we construct a weight-space representation that concentrates safety-relevant information into a compact subspace, while leaving the remaining directions available for downstream adaptation?

Contributions. Motivated by this question, we propose WSR-Tune, a safety-aware LLM fine-tuning framework based on weight-space reparameterization. Specifically, we replace the above canonical parameterization in Equation (1) with a reparameterized form as

W=[w11w12w21w22]=w~11ϕ11+w~12ϕ12+w~21ϕ21+w~22ϕ22,(2)W = \begin{bmatrix} w _ {1 1} & w _ {1 2} \\ w _ {2 1} & w _ {2 2} \end{bmatrix} = \tilde {w} _ {1 1} \phi_ {1 1} + \tilde {w} _ {1 2} \phi_ {1 2} + \tilde {w} _ {2 1} \phi_ {2 1} + \tilde {w} _ {2 2} \phi_ {2 2}, \tag {2}

where ϕij\phi_{ij} indicates a new basis and w~ij\tilde{w}_{ij} are the corresponding weights in the reparameterized space. Unlike the canonical basis where each bijb_{ij} contains a single nonzero entry, the new basis {ϕij}\{\phi_{ij}\} can consist of directions with multiple nonzero entries.

Building on this framework, we construct a safety-conditioned basis {ϕij}\{\phi_{ij}\} and reparameterize the weight space from {wij}\{w_{ij}\} to {w~ij}\{\tilde{w}_{ij}\} such that safety-relevant behavior is concentrated in a small subset of directions (i.e., only a few basis directions in {ϕij}\{\phi_{ij}\} capture safety-relevant information), rather than being diffusely distributed. This safety-conditioned reparameterization is our key contribution: it restructures the weight space to better separate safety-preserving and task-adaptive directions. Under this reparameterized space, we selectively freeze the coefficients associated with safety-critical

Figure

Figure 1: Overview of WSR-Tune. The weight space is reparameterized into a safety-conditioned basis, in which safety-relevant information is concentrated in a subset of coefficients. Safety-critical coefficients are then identified and frozen, while the remaining coefficients are updated for downstream adaptation. This reduces interference between safety and downstream task information during fine-tuning, improving task performance with minimal safety degradation.

directions while updating the complementary directions for downstream adaptation, as illustrated in Figure 1. As a result, our approach reduces interference between previously learned safety behavior and downstream adaptation, enabling more effective safety-preserving fine-tuning.

Our WSR-Tune can be seamlessly integrated with existing downstream adaptation methods originally designed for the original parameter space, by applying them in the reparameterized space without modifying their update rules. Experimental results demonstrate that our method better preserves safety during downstream fine-tuning and achieves a more favorable trade-off between downstream performance and safety retention, compared to methods operating in the original parameter space.

References (69)