Skip to content

Research shows that few-shot fine-tuning can bypass safety layer local freezing and repair defensesRefusal Localizes, the Damage Relocates: Safety Layers Under Few-Sample Fine-Tuning

Paper Tracker· arXiv:2610.00320· Jungseob Lee, Dongyub Jude Lee, Sugyeong Eo, Seongtae Hong, Seungyoon Lee, Heuiseok Lim·Indexed by this site · 2026-10-05· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

At dose 100, on AdvBench, freezing the localized layers leaves explicit refusal across six checkpoints still close to unrestricted attacks.

Threat modelThe attacker uses LoRA (r=16) to fine-tune public aligned checkpoints on harmful instruction–response pairs from PKU-SafeRLHF, aiming to remove explicit refusals; the dose is the number of harmful samples. The defender holds clean and compromised weights but not attack data, so knows ΔW but not the training set. Layer freezing assumes the service provider can refuse to change certain parameters.

Questions
Few-shot harmful fine-tuning can remove refusal from aligned models. Prior work localizes safety behavior to layers, directions, or tokens and protects accordingly. The authors test whether localization and recovery success supports defenses that still hold after the attack changes.
Methods
Attacks use LoRA fine-tuning on PKU-SafeRLHF. The defender does not see attack data. A frozen linear probe tests whether harmful and benign prompts remain separable; lockstep writes one layer's clean hidden state into the compromised model, localizes the depth that restores refusal, then freezes that prefix and re-attacks. Another path removes the largest updated singular directions.
Experiments and results
At dose 100 on AdvBench, refusal after freezing remains 0.00–0.03 across six checkpoints (Table 1), with the recovery depth shifting above the frozen boundary. On four checkpoints, removing the top two singular directions after three epochs of attention-only fine-tuning gives refusal 0.76–1.00; on Llama, spreading updates and then repairing gives 0.00.
Limitations and future work
The authors point out that single-layer patching gives only an upper bound, the full boundary staircase covers only one checkpoint, doses do not exceed 100, and attacks all use the same goal and one harmful corpus. Adaptive repair and detector evaluations are on Llama-3.1-8B. Whether probes can support defense, the authors say remains open.
Experimental setupLlama-3.1-8B-Instruct、Llama-3.1-Tulu-3-8B-DPO et al. · PKU-SafeRLHF、Alpaca et al. · coherent refusal、Llama-Guard unsafe et al.
Evaluated models
Llama-3.1-8B-InstructLlama-3.1-Tulu-3-8B-DPOOLMo-2-1124-7B-InstructOLMo-2-1124-13B-InstructQwen2.5-14B-InstructYi-1.5-9B-ChatLlama-3-8B-InstructLlama-2-7b-chatgemma-2b-itPhi-3-mini-4kMistral-7B-Instruct-v0.3
Benchmarks
PKU-SafeRLHFAlpacaAdvBenchHarmBenchStrongREJECTXSTest-safe
Metrics
coherent refusalLlama-Guard unsafeAUROCover-refusal
AI summaryResearchers tested whether safety-layer localization and repair defenses against few-shot harmful fine-tuning remain effective after the attack changes. Across six checkpoints from four model families, harmful and benign prompts remain linearly separable after attack, and patching full clean hidden states into the compromised model restores refusal at a reproducible transition depth. But when all layers up to that depth are frozen and the attack is redone, refusal rates on one hundred harmful samples remain near zero across all six checkpoints, with the recovery transition shifting above the frozen boundary. In a second study, removing the two largest updated singular directions restores refusal after short attention-only fine-tuning on four checkpoints; on Llama-3.1-8B, ordinary training changes weaken this repair, and an attacker can defeat it by spreading updates, while a spectral detector calibrated on benign Llama fine-tuning misses most repair failures on that checkpoint. The authors accordingly propose five checks for adaptive fine-tuning defenses, and the code is public.

Researchers tested whether safety-layer localization and repair defenses against few-shot harmful fine-tuning remain effective after the attack changes. Across six checkpoints from four model families, harmful and benign prompts remain linearly separable after attack, and patching full clean hidden states into the compromised model restores refusal at a reproducible transition depth. But when all layers up to that depth are frozen and the attack is redone, refusal rates on one hundred harmful samples remain near zero across all six checkpoints, with the recovery transition shifting above the frozen boundary. In a second study, removing the two largest updated singular directions restores refusal after short attention-only fine-tuning on four checkpoints; on Llama-3.1-8B, ordinary training changes weaken this repair, and an attacker can defeat it by spreading updates, while a spectral detector calibrated on benign Llama fine-tuning misses most repair failures on that checkpoint. The authors accordingly propose five checks for adaptive fine-tuning defenses, and the code is public.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Few-shot harmful fine-tuning erases refusal, but the localized layers do not hold under an adaptive re-attack.

    Few-shot harmful fine-tuning can erase refusals in aligned models, but the localized layers are not necessarily protectable positions.

    • Scenario: The authors claim that ten to a hundred harmful samples can remove refusals from aligned LLMs, whether via open weights, LoRA, or fine-tuning APIs. Model repositories and fine-tuning services make such attacks cheap and accessible.
    • Existing gaps: Refusals have been linked to a single direction in the residual stream, a block of middle layers, or the first few output tokens. The authors claim that causal tracing points to layers that are not the best for knowledge editing; SPPFT evaluates backdoor or ordinary instruction data, not attackers who know which layers are frozen. Whether finding the computational location equals being able to defend, the authors consider unestablished.
    • Threat model:
      • Goal: Remove explicit refusals from public aligned checkpoints for harmful requests.
      • Attack: LoRA supervised fine-tuning, r=16, loss computed only on answer tokens; harmful pairs from PKU-SafeRLHF. Dose is the number of harmful samples, at 5, 10, 25, 50, 100, with three seeds per cell.
      • Defender knowledge: Holds clean and compromised checkpoints but not attack data, thus knows the update ΔW but not the training set. Layer freezing additionally assumes the service provider can control fine-tuning and refuse to let attackers change certain parameters.
      • Victim systems: Six aligned checkpoints across four families. The purely harmful number measures how much harmful update the defense removes; mixed adapters target accidental contamination, not attackers who choose their own harmful proportion.
    • This paper: Tests whether harmful and benign prompts remain linearly separable after attack, uses lockstep activation patching to locate the depth where refusal can be recovered, then lets an informed attacker re-run the attack to see whether freezing that prefix or truncating large singular directions of the update can preserve refusal.
  2. What related research exists?

    Related work covers fine-tuning breaking alignment, refusal localization, alignment hardening, and post-hoc repair; this paper instead does adaptive retesting.

    How fine-tuning breaks alignment

    • Small numbers of harmful samples: Qi et al. (2024), Lermen et al. (2023), and Zhan et al. (2024) observed that small numbers of harmful samples remove refusal on closed- and open-source models, LoRA, and fine-tuning APIs, respectively. The authors say these results read outputs; the refusal rate itself does not show whether harmful and benign prompts remain separable, nor whether clean-state patching can restore refusal.

    Localizing refusal, and freezing it

    • Directions and vulnerability: Arditi et al. (2024) claim refusal is mediated by a single direction in the residual stream. Lee et al. (2026a) score the refusal vulnerability of aligned models from activations before any fine-tuning.
    • Localization is not editability: Hase et al. (2023) found that the layers pointed to by causal tracing are not the best layers for knowledge editing. The authors use this to argue: localization can correctly describe where a behavior is computed yet still fail to point to an intervenable location.
    • SPPFT: Li et al. (2025) freeze a segment of intermediate-layer gradients that carries the ability to distinguish malicious queries, and claim it largely preserves refusal where full fine-tuning destroys it. The authors say their evaluation uses backdoor or ordinary instruction data; this paper, at its own bandwidth and at the bandwidth reported by the other group, lets the attacker train the remaining layers.

    Making alignment harder to remove

    • Hardening during alignment: Representation Noising (Rosati et al., 2024) removes harmful representations at each layer; TAR (Tamirisa et al., 2025) constructs protections that survive hundreds of fine-tuning steps; Booster (Huang et al., 2025) regularizes the alignment objective against harmful perturbations; circuit breakers (Zou et al., 2024) interrupt harmful representations as they form rather than filtering outputs.
    • Token-side diagnostics: Qi et al. (2025) give a complementary judgment from tokens rather than layers. The authors say that when safety appears concentrated in depth or in an early-token prefix, interventions beyond localization may still work.

    Post-hoc defenses and activation patching

    • Weight repair: Safe LoRA (Hsu et al., 2024) projects the fine-tuning update into an alignment subspace obtained from aligned and unaligned checkpoints; Antidote (Huang et al., 2024a) and the Vaccine family (Huang et al., 2024b) repair or harden after or against harmful fine-tuning. The authors say their implementation is top-k truncation of the update's singular spectrum, not a specific published algorithm, and they run a Safe LoRA-style projection and norm-matching control alongside it.

    • Patching and adaptive evaluation: The lockstep measurement is cross-checkpoint activation patching, following causal tracing and its methodological cautions (Meng et al., 2022; Zhang and Nanda, 2024). Zhang and Nanda (2024) say patching conclusions depend strongly on the metric and corruption method. The authors say they follow the adaptive-evaluation standard for adversarial defenses (Tramèr et al., 2020) by having attackers who know these defenses evaluate layer freezing and top-2 truncation.

    • Baselines and benchmarks: Behavioral controls include an unrestricted attack, freezing the same number of layers at the other end of the network, randomly removing two singular directions, norm-matching shrinkage, and a bag-of-words TF-IDF logistic regression. Training and evaluation use PKU-SafeRLHF, Alpaca, AdvBench, HarmBench, StrongREJECT, and XSTest-safe.

    The authors place this paper as "after localization, ask whether it can be defended": first test separability and clean-state patching, then, when the attack is repeated, test whether freezing the recovery region preserves refusal, and run an informed-attacker evaluation of weight repair.

  3. How does the paper address this problem?

    Use frozen probes and lockstep patching to localize the recovery depth, then let an informed attacker re-attack the frozen band and singular-direction truncation.

    Overall this is a two-part examination: first localize whether refusal can still be recovered after the attack, then hand that location to an attacker who knows the defense. The defender does not see the attack data.

    Attack and two kinds of defenders

    • Attack: LoRA supervised fine-tuning on a public aligned checkpoint, r=16, α=32, dropout 0, no bias. By default only attention projections q,k,v,o are adapted; all seven projections add gate,up,down. AdamW, learning rate 2e-4, batch 4, three epochs by default. The loss is cross-entropy over answer tokens only. Harmful data is PKU-SafeRLHF; benign data is Alpaca.
    • Dose: Number of harmful samples in {5, 10, 25, 50, 100}, three seeds per cell. The data sources for fine-tuning and behavior evaluation are disjoint. Six checkpoints span four pretraining families. Mistral-7B-Instruct-v0.3 is excluded throughout because it refuses only 0.16–0.18 of AdvBench when clean (Appendix A).
    • Two defense positions: A weight-holding defender knows ΔW but not the training set. In Section 5, freezing changes to a service provider controlling the fine-tuning run, which can prevent the attacker from modifying certain parameters.

    Frozen linear probe

    • Training: Logistic regression on the clean model's last-token residual stream, L2 at scikit-learn's default strength. Depths are 0.3, 0.45, 0.6, 0.75 of the layer stack; on a 32-layer model these are layers 9, 14, 19, 24. The contrast is 200 harmful vs. 200 benign prompts from PKU-SafeRLHF. Coefficients are frozen after fitting and applied unchanged to the compromised model's encodings of the same prompts.
    • Recalibration: Coefficients are unchanged; only the threshold is moved using benign prompts. 200 benign prompts are split in half; the threshold is the 95th percentile of the calibration half, targeting a 5% calibration false-positive rate. Appendix B has an additional Llama control with disjoint training, calibration, and test prompts.
    • Controls: A bag-of-words TF-IDF logistic regression on the same contrast, and a probe refit from inside an unaligned base checkpoint. The authors use the base control to bound how much of the post-attack separability can be attributed to alignment.

    Lockstep patching and transfer depth

    • Procedure: Clean and compromised checkpoints consume the same tokens. During prefill and at each decoding step, the full hidden state of one layer of the clean model overwrites that layer's output in the compromised model. Both sides take the greedy token of the patched target for the next step; each updates its own KV cache, and the cache is not copied.
    • ℓ*: Recovery is reported between the floor (compromised, unpatched) and the ceiling (last layer returned to clean state). ℓ* is the shallowest tested layer at which patching gives refusal at least half of the ceiling; the dose-100 depths later are in Table 8. The authors say recovery is a step function of depth, not a gradual rise. Half-ceiling is one choice; Appendix C switches to quarter and three-quarter on the Llama ladder, leaving shallow tiers unchanged and making deep tiers deeper.
    • Controls and gating: A no-op self-patch, and a specificity control that injects clean state from a different benign prompt. Runs that fail gating are excluded and counted. Coherent refusal requires greedy continuation to match a fixed explicit refusal pattern, with finite original-model perplexity below 50. Appendix B gives the pattern, gating variants, and default decoding settings. Llama-Guard-3-8B additionally judges unsafe, with 12 greedy tokens per prompt–response pair. The authors explicitly do not write refusal as 1−unsafe.

    Freezing the recovery prefix

    • Main setting: Re-run the attack with all parameters in layers [0, ℓ*] frozen, adapting only layers above. On Llama-3.1-8B this is 18 of 32 layers, i.e., [0, 17]. The bandwidth comes from a checkpoint-level dose sweep and is not guaranteed to cover each seed's unrestricted transfer.
    • Position control: Beside each run, freeze the same number of layers at the other end of the network, to separate "fewer parameters" from "frozen location."
    • Parameterization control: Following SPPFT, full fine-tuning, gradient masking, no adapter; embeddings and unembeddings frozen, Adafactor, learning rate 2e-5. On the four checkpoints where Li et al. (2025) report bandwidth, mask their published internal layer segment, with a control of equal width frozen higher.
    • Boundary sweep: On Llama, move the freeze boundary up the layer ladder, redoing lockstep with three seeds per tier. On the other five checkpoints, evaluate one freeze boundary each, sampling one layer near the boundary. Also test leaving only the top or bottom one, two, or four layers writable.

    Energy-ranked truncation and informed variants

    • Truncation: Remove the top k singular directions of the update; the main result is top-2. The control that removes two random directions is not matched on removed energy. Relative repair is defined as the ratio of post-repair refusal to clean refusal.
    • Ordinary training changes: On Llama-3.1-8B, expand the adapter to all seven projections, or change epochs from three to eight. The authors say neither is an attack aimed at this defense.
    • Spreading the update: Add a concentration penalty that spreads update energy across the rank budget. The projection attack instead periodically removes the two largest singular components of each module's current update during training, writes them back into the LoRA factors, and resets optimizer moments; Appendix I states it uses all seven projections, five epochs, 100 harmful samples, and is not the same thing as the alignment-subspace projection below.
    • Detection and projection: The detector averages the participation ratio of the four attention projections across layers, normalized by rank, and is calibrated on 75 benign Llama LoRAs. The Safe LoRA-style projection obtains a subspace from aligned minus base weights and replaces an update only when the cosine between the update and the projected update is below threshold τ; the τ=1 control shrinks each module update to the projected norm without changing direction.
  4. What experiments did the paper conduct?

    At dose 100, refusal after freezing across six checkpoints is still close to an unrestricted attack; top-2 repair on Llama can be defeated by spreading the update.

    Experimental setup

    • Models: Llama-3.1-8B-Instruct, Llama-3.1-Tulu-3-8B-DPO, OLMo-2-1124-7B-Instruct, OLMo-2-1124-13B-Instruct, Qwen2.5-14B-Instruct, Yi-1.5-9B-Chat. Also tested on published SPPFT bandwidths: Llama-3-8B-Instruct, Llama-2-7b-chat, gemma-2b-it, Phi-3-mini-4k. Mistral-7B-Instruct-v0.3 is excluded because clean AdvBench refusal is only 0.16–0.18.
    • Data: Harmful pairs from PKU-SafeRLHF, benign from Alpaca; fine-tuning and behavior-evaluation data sources are disjoint. Doses {5, 10, 25, 50, 100}, three seeds per cell. Default 100 AdvBench; lockstep uses 40; Llama training length and adaptive attack comparisons use the same set of 50. Also evaluated HarmBench, StrongREJECT, XSTest-safe.
    • Attack configuration: Default LoRA adapts only q,k,v,o, three epochs; all seven projections and longer training tested separately. Generation is greedy. Default decoding in Appendix B.
    • Metrics: Coherent refusal requires matching explicit refusal patterns and original-model perplexity below 50. Llama-Guard-3-8B judges unsafe. Both disagree on 9,653 of 91,090 harmful-set generations, 92% being non-matching refusal patterns judged safe; hence refusal is not written as 1−unsafe. XSTest-safe measures over-refusal.
    • Controls: Unrestricted attack, equi-position freezing at the other end, random removal of two singular directions, Safe LoRA-style projection and its norm-matching shrinkage.
    • Inclusions: Transfer depth estimates use 72 of 99 lockstep runs; excluding 9 Mistral and 18 runs with post-attack refusal above 0.20. Relocation scans include 33 runs (Appendix B).

    Main results

    At dose 100, AdvBench, three seeds, LoRA, freezing at each checkpoint's own measured depth before re-attack. Numbers are coherent refusal, from Table 1.

    Swipe horizontally to read the table

    ModelFrozen layersCleanUnrestricted attackAttack after freezingEqui-position freezing
    Llama-3.1-8B[0, 17].92–.96.00.00–.01.00
    Tulu-3-8B-DPO[0, 15].99–1.00.01–.06.00–.03.01–.04
    OLMo-2-7B[0, 16].99–1.00.00–.02.00–.02.06–.07
    OLMo-2-13B[0, 20].99–1.00.00–.02.00–.01.00–.02
    Qwen2.5-14B[0, 31].97–.99.00–.01.00.02–.07
    Yi-1.5-9B[0, 39].91–.93.00.00–.01.00–.01
    • Authors' interpretation: The authors claim that post-restricted-attack refusal is indistinguishable from unrestricted attack, with no refusal recovery across any of the six checkpoints. The bandwidth comes from checkpoint-level dose scans and is not guaranteed to cover every seed's unrestricted transfer; Appendix B writes that the attacked Llama adapter transfers at layer 15, OLMo-2-13B at layer 19, and the frozen regions cover the damage in those runs, not shallower than it.
    • Second scorer: The authors claim that by Llama-Guard, on six checkpoints restricted attacks are less harmful than unrestricted attacks, and equi-position freezing barely shows this decrease. In Table 1, frozen-arm unsafe is 0.23–0.63 on OLMo-2-13B and 0.89–0.92 on Llama-3.1-8B. Across 1,800 AdvBench generations from six frozen arms, the share of non-matching refusal patterns judged safe rose from 7% to 30% (535). Median perplexity 3.3, median length 55 words, two-thirds contain legal or ethical warnings. The authors say this is not incoherence.
    • Blocks not in the table: In the lower block of Table 1, across four published bandwidths, gemma-2b-it post-freeze refusal is 0.12–0.19, higher than its post-attack 0.01–0.09 but still below clean 0.93–0.97; the authors say that on all four checkpoints the published bandwidths are inseparable from equi-width equi-position freezing. Llama-3.1-8B full-parameter gradient masking, freezing [0, 17], refusal remains 0.00–0.01 ablatively, and Llama-Guard unsafe is 0.67–0.85 versus unrestricted attack's 0.96–0.98.

    Low doses and mixed adapters

    • What was tested: Figure 4 and Table 7 compare freezing, unrestricted attack, and equi-position freezing near the attack-landing threshold. Table 14 sets the harmful proportion f of a 100-sample budget to 0.05, 0.15, 0.35 on Llama-3.1-8B.
    • Results: In Table 7, Llama at n=5 has post-freeze refusal 0.91–0.96 (attack 0.00–0.05, equi-position 0.16–0.24); OLMo-2-7B at n=25 is 0.95–0.98. Tulu at n=25 is only 0.21–0.52, Qwen at n=25 is 0.33–0.60. Yi at n=10 freeze is 0.85–0.93, equi-position also 0.80–0.87. OLMo-2-13B has no successful unrestricted attack at n=5 and 10. The authors say that Llama freezing still holds at ten samples but collapses by twenty-five; that sentence gives no refusal intervals for ten and twenty-five. Mixed adapter at f=0.05 has post-freeze refusal 0.74–0.92, task negative log-likelihood 1.524–1.562, clean 1.942; f=0.15 drops to 0.08–0.14, f=0.35 to 0.00–0.04 (Table 14).
    • Authors' interpretation: The authors say that below a certain dose freezing is a true defense, with the dose varying by checkpoint; it protects customers with a few percent harmful samples accidentally in their data, not those who choose their own harmful proportion. The authors say the dose-100 failure is not a measurement failure, because perplexity gating did not eliminate any run in any frozen cell.

    Recovery depth shifts upward after freezing

    • What was tested: Redo lockstep on the restricted attack's own checkpoints. Figure 5a and Table 9 scan Llama's freezing boundaries; Table 10 re-patches one layer above the boundary on other checkpoints. Table 2 and Table 12 leave only four layers or one to two layers at one end writable.
    • Results: Llama unrestricted arm transfers at layer 15. With freeze [0, 5], ℓ* remains at 15; with freeze [0, 17], the three seeds' transfers are at layers 28, 27, 27; freeze [0, 23] at 29 or 30; freeze [0, 27] at 30 or above (Table 9). Figure 1 writes that in the matched Llama attack, freezing 0–17 moves the half-maximum transfer from 15 to 27–28. Table 10: Tulu and OLMo-2-7B transfer two layers above the boundary; OLMo-2-13B at 22 or 23 (boundary 20); Qwen at 35, 36, 40 (boundary 31); Yi at 43 (boundary 39). On five further checkpoints, freezing does not restore refusal, which stays at 0.00–0.04 (Section 5.2). Across five levels, total update norm drops to 0.55 of unrestricted attack, while the average norm per still-allowed module rises to 1.57. With only one layer writable, Llama, Tulu, Qwen2.5-14B, Yi-1.5-9B refusal stops at 0.00–0.13; the two OLMo models hold 0.33–0.96. For OLMo-2-13B with only one layer writable, Llama-Guard unsafe is 0.00 in all three seeds, which the authors say is the only such frozen cell in the paper. With the bottom four layers writable, the six checkpoints have refusal 0.00–0.32 and unsafe 0.50–0.95 (Table 2).
    • Authors' interpretation: The authors say ℓ* localizes the tested attack, not establishing a fixed defense site. Unrestricted attacks also write to Llama layers 18–31, but injecting clean activations at ℓ* still restores refusal; after freezing that band, attacks succeed with upper-layer updates alone. The authors say the damage does not follow the boundary, nor does it sit at the top of the writable region. Specificity control: benign sources on Llama, dose 100 scans, refusal at most 0.10, layer 27 0.00; another harmful prompt at layer 27 is 0.90–0.95 (Table 21).

    Singular direction repair, detectors, and projections

    • What was tested: Figure 6 and Table 16 remove the top few singular directions of updates on attention projections, three epochs, attack-landing cells. Table 3 compares standard 5-epoch, unfolded attack, and projection attack on Llama-3.1-8B, dose 100, same set of 50 AdvBench. Detectors and Safe LoRA-style projection are in Section 6.2 and Appendix I.
    • Results: After removing top two directions, across four checkpoints, three seeds, five doses, refusal is 0.76–1.00; random removal of two directions never exceeds 0.26 (Table 16). The authors say this random control does not match removed energy. Extending to seven projections reduces relative repair from 0.99 to 0.74; training eight epochs instead of three reduces relative repair to 0.35 (Section 6.1). Table 17 writes seven projections, eight epochs, three-seed average refusal 0.34. After unfolded attack removes top-2, refusal is 0.00)Skip rein; Llama-Guard unsafe still 0.94–0.98; its update norm is comparable to projection controls, while projection attack gives refusal 0.72–0.94 after top-2 in two landing seeds (Table 3). Table 3's title does not state which projections Standard and unfolded attacks adapt. Detectors are calibrated on 75 benign Llama LoRAs; unfolded attack scores 0.973, benign max 0.554. In an approximately 300× λ scan, scores drop to 0.804 and relative repair remains below 0.06. A threshold calibrated to 5% false-positive budget on benign adapters flags only 3 of 14 top-2 repair failures on Llama-3.1-8B, missing ten ordinary fine-tunes and one projection attack.
    • Authors' interpretation: The authors say top-2 repair depends on attack settings; ordinary training variation weakens it, and attackers who unfold updates can defeat it. Safe LoRA-style projection at τ=1 gives refusal higher than norm-matching shrinkage on both ordinary attacks (seven projections five epochs: 0.88–0.96 vs. 0.48–0.78; attention three epochs: 0.80–0.94 vs. 0.28–0.70); for unfolded and projection attacks, matching shrinkage reproduces the projection's refusal recovery (Table 18, projection attack on two qualifying adapters). The authors say spectral statistics neither reliably flag repair failures nor identify minimal repair rank.

    Other ablations and analyses

    • Probes: 24 Llama cells frozen AUROC 0.892–0.997; dose 100 72 cells 0.750–0.995, 67/72 above bag-of-words 0.834–0.846. From never-aligned base 0.907–0.944, aligned sibling 0.946–0.976 (Section 4.1, Appendix B).
    • Thresholds: Fixed-threshold accuracy across 72 cells 0.500–0.950, 49 cells at most 0.60; Spearman ρ=−0.80 with score shift. After recalibration using only benign prompts, accuracy on four checkpoints, 200 harmful plus 100 benign per cell, is 0.45–0.97; the authors say some cells worsen, including Qwen layer 28 (Figure 2a, Table 5).
    • Dose and update quality: In Table 8, mean transfer depth at dose 100 (as fraction of network depth): Llama 0.531, Tulu 0.469, OLMo-2-7B 0.500, OLMo-2-13B 0.525, Qwen 0.646, Yi 0.806. From dose 50 to 100, mean measured transfer depth unchanged for six checkpoints; on four profiled checkpoints, mean depth containing 75% of update squared norm deepens (Figure 7, Appendix J).
    • Cross-benchmark: Across 12 runs' mean, after top-2 repair AdvBench, HarmBench, StrongREJECT refusals are 0.940, 0.813, 0.818, XSTest over-refusal 0.008; compromised models are 0.010, 0.003, 0.003, 0.000 (Table 4).
    • Rank and utility: Across nine mixed cells, top-4 removal gives refusal 0.98–1.00; at minimal repair rank, unweighted average retains 28.3% of ROUGE-L gain and 97.9% of negative NLL gain (Appendix I). When harmful proportion varies, minimal repair k changes, and the two spectral statistics tie within seed noise (Table 20).
    • Transplant and write-back directions: Rank-one summaries retain 0–0.39 of full transplant on Llama and Yi, and 1.00 on OLMo-2-13B layer 22 (Table 15). Writing back the clean refusal direction, Llama best arm refusal 0.37, clean 0.92; Qwen one arm refusal 0.98 on harmful set but 0.66 on clearly benign prompts, where clean model 0.00 (Appendix H).
  5. What are some points that can be further explored?

    The authors note that patching gives only an upper bound, doses do not exceed 100, and adaptive repair is evaluated on only one checkpoint.

    Limitations and future directions noted by the authors

    • Single-layer patching: Only upper-bounds the damage (Appendix A, Limitations).
    • Boundary scan coverage: The full boundary staircase covers only one checkpoint; cross-checkpoint scans are one step per checkpoint (Appendix A).
    • Families and doses: Cross-model claims are based on n=4 families, with doses not exceeding 100. Between doses 50 and 100, the average transfer depth is unchanged on the evaluated layer grid (Appendix A, Appendix J).
    • Goal and corpus: Each attack is next-token supervised fine-tuning on PKU-SafeRLHF pairs. The authors write that the claim ℓ* is the attack-preferred depth is measured across doses, freezing boundaries, and six checkpoints, but on one goal and one harmful corpus (Appendix A).
    • Weight-space evaluation scope: Adaptive weight attacks, projection arms, and detectors are evaluated on Llama-3.1-8B; their benign reference population covers only one upstream instruction set (Appendix A, Appendix I).
    • Still-open readout: The single-direction and full-transplant repairs in Section 6 read out only the four runs in Appendix H. Probes retain a useful ranking across tested ordinary harmful fine-tuning, and benign threshold recalibration partially restores decision rules, but does not establish that refusal is restored; whether this readout can support defense, the authors say remains open (Appendix A). The authors suggest reporting both the dose where freezing fails and the range where it still helps.

    Experimental coverage

    • Checkpoints and doses: Behavioral main results cover six aligned checkpoints across four families, with doses {5, 10, 25, 50, 100}, three seeds per cell; Mistral-7B-Instruct-v0.3 is excluded because clean AdvBench refusal is 0.16–0.18 (Section 3, Appendix A).
    • Freezing evaluations: Include the authors' measured prefix, equi-position freezing, full-parameter gradient masking, and the four-block internal bandwidth reported by Li et al. (2025); plus arms keeping only one end's one, two, or four layers writable (Table 1, Table 2, Appendix F).
    • Weight repair: Includes top-k singular direction removal, random removal of two directions, Safe LoRA-style projection, norm-matching shrinkage, and random subspaces. Numbers for unfolded attacks, projection attacks, and spectral detectors come from Llama-3.1-8B (Section 6, Table 3, Appendix I).
    • Judgments: Primary metrics are coherent refusal and Llama-Guard-3-8B. The paper reports that the two disagree on 9,653 of 91,090 harmful-set generations. The paper does not report agreement between these automatic judgments and human annotations.
    • Training distribution: Harmful training pairs come from PKU-SafeRLHF, benign references from Alpaca. Lockstep and freezing experiments report gating exclusion rules; Table 3's title does not state which projections Standard and unfolded attacks adapt.
  6. Summarize the main content of the paper

    Localization and recovery are reproducible, but an informed attacker can move the damage outside the frozen band and defeat cross-checkpoint truncation repairs.

    This work examines: after localizing refusal to certain layers or update directions, can refusal be defended when the attacker is aware of the localization.

    • Problem: Ten to one hundred harmful samples can remove refusal from an aligned LLM. Prior work linked this behavior to residual directions, intermediate layers, or early tokens, and proposed protecting those locations. The authors argue that finding where a behavior is computed does not mean it can be defended there.
    • Approach: The attack is LoRA fine-tuning on PKU-SafeRLHF; the defender does not see the attack data. A frozen linear probe tests whether harmful and benign prompts remain separable after the attack. Lockstep overwrites one layer of the compromised model with clean hidden states, finds the depth at which refusal recovery crosses half of the ceiling, then freezes that prefix and lets the attacker train only the remaining layers. Another path removes the largest singular directions of the update, and compares an attacker that spreads energy, a Safe LoRA-style projection, and a spectral detector calibrated on benign Llama fine-tunes.
    • Localization holds: At dose 100, frozen probe AUROC across six checkpoints is 0.750–0.995. Clean-state patching restores refusal at a reproducible transfer depth; on Llama, freezing layers 0–17 moves the half-ceiling transfer from 15 to 27–28 (Figure 1).
    • Freezing does not hold at high dose: On AdvBench, dose 100, after freezing at their measured depth and re-attacking, coherent refusal across six checkpoints is 0.00–0.03, which the authors say is indistinguishable from an unrestricted attack (Table 1). Llama-Guard unsafe is lower after freezing than under an unrestricted attack, but pattern-matched refusal does not return to clean levels. At low dose or on mixed adapters with 5% harmful data, freezing can preserve refusal; on Llama mixed f=0.05 it is 0.74–0.92, dropping to 0.08–0.14 at f=0.15 (Table 14).
    • Truncation also depends on attack settings: With attention projections and three epochs, after removing the top two singular directions, refusal across four checkpoints on the grid where the attack lands is 0.76–1.00 (Table 16). On Llama-3.1-8B, longer training or expanding to seven projections reduces relative repair; after spreading the update, top-2 repair on the same set of 50 AdvBench prompts gives refusal 0.00 (Table 3). A detector calibrated to a 5% benign false-positive budget flags only 3 of 14 repair failures.
    • Authors' conclusion: An informed attacker can bypass the regions flagged by recovery and can also defeat repairs that work across multiple checkpoints. The authors therefore list five checks: tell the attacker, report a dose range, evaluate a benign set, match a null hypothesis, and give the defender an observable signal. The authors also say that when a small number of harmful samples is inadvertently mixed in, parameter freezing may still help preserve refusal, and recommend reporting it together with the dose at which it fails.

Related papers

Show 3 more papers
Read originalarxiv.org