- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes SLDR, a post-fine-tuning stage defense against harmful fine-tuning. The idea is to i) freezing the safety-irrelevant layers during the safety recovery process and produce a recovered model. ii) the safety recovery process might inversely affect the performance on downstream task,therefore they propose a solution to identify the harmful/benign input and route to the recovered model and the finetuned model.
Strengths and weaknesses
Strengths:
-
The paper is well-written. The exploration experiments on layers' influence is interesting and is meaningful to the research community.
-
Experiments are comprehensive and demonstrate the effectiveness of the proposed method.
-
The idea is novel and has not been explored by previous study.
Weakness:
-
There are several design components and the design might be over-complicated. The core part of the method lies in dynamic routing in my understanding. However, why is it necessary to route the identified harmful prompts to a recovered model instead of the original safety aligned model? I understand that it is possible that the routing might not be correct and therefore you might want to route it to a recovered model (which can be viewed as a middle point between the safety aligned model and the harmful finetuned model). However, you might also be able to solve this via increase the detection threshold of the harmful prompt such that a benign prompt has lower probability to route to the original safety aligned model. I don't quite like this design because it incurs additional procedure and the performance is determined by the "recovered extent" of this recovered model.
-
There are several existing study [1-3] show that the middle layers are safety critical for Llama model, e.g. Figure 5 in [1]. Can you show how your layerwise analysis conclusion is related or even challenge to the conclusion in [1-3]?
[1] Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation
[2] Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbation
[3] Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink
-
In Eq. (8), why only the last-token hidden state at layer l_max is used? Why l_min is not used?
-
Why in the safety recovered process (7), only l_min and l_max layers are unfrozen? Why not recover all the layers?
-
Can you disable the routing mechanism and evaluate the recovered model to see how its finetune accuracy and harmful score looks like? Is it able to have harmful score almost equal to the safety aligned model but keep the finetune accuracy eqaul to the fine-tuned model? How different recovery steps will affect the performance?
-
Why it is necessary to separate two group of layers l_min and l_max based on sign? They are all safety-relevant layers in my understanding, and the signs are not important in the safety machanism in my understanding. Also, in your method the signs do not seem to matter as well (except some strange design in Eq. (8) that I can't understand). Could you show why these signs matter in terms of the model's safety behavior?
-
There are many relevant literatures on harmful fine-tuning that are missing from discussion. For example.[4] is a relevant post-fine-tuning stage defense. Please add more discussion on related papers in literature review.
[4] Making Harmful Behaviors Unlearnable for Large Language Models
Questions
See Weakness.
Limitations
Yes.
Paper formatting concerns
NA
Final justification
The rebuttal effectively addresses my concern, which demonstrates the necessity of each component of the method.
Particularly, I am very impressed by the layerwise study conducted by the authors. There have been a few works in the literature that show how different safety/harmful layers are decided based on different statistics. However, we lack an empirical analysis of how the layers being decided based on different statistic differ and coincide. I appreciate the authors to conduct such experiment, and I think this result would be helpful for the study of later researchers.
Thank you very much for your thoughtful review. We address the weaknesses below.
W1. Why route harmful prompts to the recovered model rather than the original aligned model? Can threshold tuning replace recovery?
A1. We apologize that our notation made the routing mechanism appear to dispatch queries between different models. In fact, Matt and Mrec in Eq. (11) are two inference states of the same task-adapted model, not two independently deployed models. For every query, the backbone and downstream task parameters remain unchanged; SLDR only decides whether to activate the safety-recovery LoRA at lmin and lmax. The adapter is disabled for benign queries and enabled for harmful queries. Thus, there is no communication or routing between separate models.
Routing to the original aligned model M0 would instead require rolling the model back to its pre-fine-tuning state by disabling the downstream task adaptation, or deploying a separate copy of M0. The former discards the capability learned from the downstream data, while the latter introduces additional model-switching and serving overhead. By contrast, SLDR preserves the task-adapted model throughout and applies only a lightweight, targeted safety correction when necessary. Therefore, Mrec should not be viewed as an intermediate model between M0 and Matt, but as Matt with its safety adapter activated.
Adjusting τ cannot replace this adapter. The threshold only determines whether the safety LoRA is activated; increasing it merely causes more queries, including harmful ones, to bypass recovery. It does not restore safety to Matt. Hence, recovery supplies the safety capability, while routing controls its conditional activation.
W2. How does the signed analysis relate to [1-3], which report safety-critical early or middle layers?
A2. Our result complements rather than contradicts [1-3]. Those studies mainly ask where safety-relevant computation occurs; SLDR additionally asks in which direction intervening on a layer changes refusal.
Therefore, Figure 5 of Panacea does not establish a universal middle-layer-only conclusion. Our Llama3.1 endpoints, layers 12 and 13 of 32, are consistent with the broad early/middle-layer observation. Across architectures, however, the selected pairs vary: 12/13 for Llama3, 0/18 for Qwen2.5, and 7/16 for Mistral-v0.2. SLDR does not challenge prior localization; it refines the question from unsigned importance to whether a layer enhances or suppresses refusal under the same intervention.
W3. Why does Eq. (8) use only the last-token state at lmax rather than lmin?
A3. In a decoder-only LLM, the hidden state of the last prompt token is used to predict the next token and has attended to all preceding tokens. It therefore captures rich contextual information and the overall semantics of the input.
We use the last-token representation at lmax because this layer exhibits the strongest refusal-enhancing effect, making its representation a direct anchor for distinguishing harmful inputs from benign ones. In contrast, lmin is better suited to the recovery process because it has the strongest refusal-suppressing effect and thus weakens the model's safety behavior.
W4. Why recover only lmin and lmax rather than all layers?
A4. Table 10 directly compares recovering only lmin and lmax with recovering all remaining layers except lmin and lmax:
Expanding recovery from the two endpoints to all other layers instead increases HS from 0.20 to 0.90 on Qwen2.5 and from 0.10 to 0.20 on Mistral. FA does not improve on Qwen2.5 and decreases from 95.07 to 94.95 on Mistral. Thus, recovering more layers produces a worse safety-utility profile: performance depends on recovering the diagnosed endpoints rather than maximizing the number of trainable layers. Figures 1 and 9-11 explain this result, as most remaining layers have near-zero refusal sensitivity and can introduce unnecessary task interference. The two endpoints are therefore the minimal sufficient recovery set in our experiments.
W5. What happens without routing, and how does recovery duration affect performance?
A5. The routing-disabled experiment is already reported in submitted Table 11: "w/o RDRI" means the recovery adapter is always active. We will rename it "recovery always on."
Thus, the recovered model alone reaches near-zero HS, but does not retain the fine-tuned model's utility: always-on recovery loses 1.60 FA points on SST2 and 11.60 on AGNEWS. This result directly motivates conditional activation.
Following the reviewer's suggestion, we also vary recovery epochs on Llama3.1/SST2 with ρ=0.1 and ∣Dtrain∣=1000:
Recovery saturates quickly: 10 and 20 epochs both give 0.00 HS, while FA varies by only 0.23 points. Across 5-50 epochs, HS remains ≤0.60. Hence, the conclusion is not dependent on a narrowly tuned recovery extent; 10-20 epochs is a practical range.
W6. Why separate lmin and lmax by sign?
A6. The sign describes the direction, not the strength, of a layer's safety effect. Eq. (2) defines Δl(α)=cl+(α)−cl−(α), and Eq. (3) aggregates it into κl. Hence, κl>0 means amplification produces more refusals than suppression, while κl<0 means the reverse.
In Figure 1, Llama3.1 layer 13 has the largest positive score (about +200), and amplifying it increases refusal. Layer 12 has the most negative score (about −185), and amplifying it decreases refusal. Both have large ∣κl∣ and are safety-relevant, but their effects are opposite: this is the role of sign.
The claim that sign does not affect SLDR overlooks two operational uses. First, Eq. (4) selects argmaxlκl and argminlκl, not two large ∣κl∣ values; without sign, both selected layers could have the same effect. Second, sign determines the routing layer in Eq. (8): SLDR uses the refusal-enhancing lmax rather than lmin or an arbitrary high-magnitude layer. Eq. (8) also applies ℓ2 normalization, r(x)=hlmax+1(x)/∥hlmax+1(x)∥2, giving unit-length representations so cosine similarity depends on direction rather than magnitude.
W7. Relevant harmful-fine-tuning literature, including [4], is missing.
A7. We thank the reviewer for pointing out these relevant studies and agree that the current discussion is incomplete. Panacea [1] is already a main baseline and is discussed in Appendices A.3 and E.2; we will make its layer-wise findings more visible and add Targeted Vaccine [2], Surgery [3], and Making Harmful Behaviors Unlearnable [4] to the related-work discussion.
In particular, [4] introduces detachable security vectors that reduce the model's tendency to learn harmful behavior and can be removed at inference to recover safe behavior while preserving useful task learning. This shares SLDR's goal of separating safety restoration from downstream utility, but follows a different mechanism: [4] suppresses the acquisition of harmful behavior through security vectors, whereas SLDR diagnoses the signed effects of compromised layers, selectively recovers two endpoints, and conditionally activates recovery. We will add this comparison and more clearly position SLDR relative to these complementary approaches.
References
[1] Wang et al. "Panacea: Mitigating Harmful Fine-tuning for Large Language Models via Post-fine-tuning Perturbation." NeurIPS, 2025.
[2] Liu et al. "Targeted Vaccine: Safety Alignment for Large Language Models against Harmful Fine-Tuning via Layer-wise Perturbation." TIFS, 2025.
[3] Liu et al. "Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink." ICML, 2026.
[4] Zhou et al. "Making Harmful Behaviors Unlearnable for Large Language Models." Findings of ACL, 2024.