Skip to content

Researchers propose using null space projection to purify backdoors in LoRA-fine-tuned LLMsBackdoor Purification for LoRA-Tuned LLMs via Null-Space Projection

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2610.00685· NeurIPS 2026· Jianwei Li, Jung-Eun Kim·Indexed by this site · 2026-10-02· Originally publishedDefenses

Quick read

Defenses

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

Backdoor purification for LoRA-finetuned LLMs: without relying on trigger words, clean references, or retraining the suspect adapter, estimate the backdoor direction using synthetic variants and perform null-space projection, reducing the ASR of multiple attacks from 100% to single digits while preserving both base and downstream capabilities.

Threat modelThe attacker has white-box access to the public base model θ0 and controls the poisoning strategy during LoRA fine-tuning; the backdoor is written only into LoRA, θ0 remains unchanged. The defender only receives θ0 and the suspect adapter ϕ⋆, without knowing trigger rules, malicious outputs, or poisoned data, and without a clean reference adapter; they may perform auxiliary LoRA fine-tuning on θ0 with synthetic data, but are not allowed to post-train the suspect adapter or modify the base model.

Questions
LoRA fine-tuning allows backdoors to be implanted into LLMs with very small parameter changes. Existing purification methods often rely on trigger knowledge, clean reference models, or retraining, and rarely simultaneously check the adapter's newly learned downstream capabilities.
Methods
The authors propose null-space projection: train synthetic backdoor variants on the same base model using random trigger–behavior pairs, estimate a shared low-rank backdoor direction in the LoRA update space via consensus aggregation, then project the suspect adapter onto the orthogonal complement of the input and output channels; generation tasks use full projection by default, classification tasks use partial projection, and head-wise and multi-stage projections are added for full-model cases.
Experiments and results
On LLaMA2-7B/13B-Chat for Sentiment Steering and Targeted Refusal, the no-defense ASR for five attacks is 100%; after projection, the average ASR is 2.80%–8.50%, and GSM8K downstream scores are close to no-defense. The authors state that compared with baselines such as pruning, quantization, CROW, and Vaccine, both ASR and downstream utility are better simultaneously; CleanASR is consistently below 1%.
Limitations and future work
The authors limit the guarantee to low-rank LoRA adapters; high rank (r≥32), cross-task, and worst-case adaptive attackers remain harder, with boundaries in Appendix G.1. Experiments cover 7B/13B open-source chat and code models, five attacks, and three tasks, using synthetic variants and validation sets for projection selection.
Experimental setupLLaMA2-7B-Chat、LLaMA2-13B-Chat et al. · GSM8K、BoolQ et al. · ASR、Udown et al.
Evaluated models
LLaMA2-7B-ChatLLaMA2-13B-ChatQwen2-7B-InstructMistral-7B-Instruct-0.1CodeLLaMA-7B-InstructCodeLLaMA-13B-Instruct
Benchmarks
GSM8KBoolQRTEHellaSwagWinoGrandeARC ChallengeARC EasyOpenBookQAPIQAMMLUMT-BenchHumanEvalMBPPAlpaca
Metrics
ASRUdownUbaseCleanASRpass@1
AI summaryThe researchers propose a backdoor purification method for LoRA-fine-tuned large language models that reduces attack success rate from nearly 100% to below 10% via null space projection. The method does not rely on prior knowledge of triggers, clean reference models, or retraining of suspicious parameters; instead, it extracts high-fidelity backdoor directions through data curation and feature approximation, constructs orthogonal null spaces on the input and output channels of each layer or each attention head, and then projects the LoRA updates onto that space. Through a series of ablation experiments, the authors progressively extend the method from a single-layer setting for text classification to full-parameter LLMs for generation tasks, and state that it reduces attack success rate while preserving the base model's general capabilities and the downstream skills learned by the adapter.

The researchers propose a backdoor purification method for LoRA-fine-tuned large language models that reduces attack success rate from nearly 100% to below 10% via null space projection. The method does not rely on prior knowledge of triggers, clean reference models, or retraining of suspicious parameters; instead, it extracts high-fidelity backdoor directions through data curation and feature approximation, constructs orthogonal null spaces on the input and output channels of each layer or each attention head, and then projects the LoRA updates onto that space. Through a series of ablation experiments, the authors progressively extend the method from a single-layer setting for text classification to full-parameter LLMs for generation tasks, and state that it reduces attack success rate while preserving the base model's general capabilities and the downstream skills learned by the adapter.

Related events and news

2 events · 1 news mentions

News that mentions this paper

研究者提出多层后门防御技术套件

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Purify LoRA backdoors and preserve both base and downstream capabilities without knowing trigger words, having a clean reference, or retraining the suspect adapter.

    How to remove backdoors from LoRA-finetuned LLMs without knowing the trigger words, having a clean reference adapter, or retraining the suspect adapter, while preserving both the base model's original capabilities and the downstream skills newly learned by the adapter.

    • Scenario and importance: The authors argue that a backdoor binds a specific input pattern (trigger) to a malicious output, activating only when the trigger appears and otherwise behaving almost identically to a clean model. The input–output space of LLMs is large, making backdoors easier to generalize; LoRA modifies only a small fraction of parameters, making implantation more economical. The authors argue this poses a more serious threat to safe deployment.
    • Limitations of existing methods: The authors divide defenses into data-centric (training from scratch on potentially poisoned data) and model-centric (purifying an existing model without original training samples). This paper focuses on the latter. The authors state that existing purification methods typically rely on at least one of the following: knowing the trigger in advance or performing expensive trigger inversion, using a clean reference model for neutralization or distillation, or retraining to some degree. The authors also state that recent work not relying on these assumptions (Li and Kim [30], CROW [44]) still mainly evaluates only base capabilities, ignoring knowledge newly learned during the attack process.
    • Core assumption: The association between the trigger and malicious behavior lies in a compact feature subspace and appears in both activations and parameter updates. The authors argue that the activation space and full parameter space of modern LLMs are extremely high-dimensional, and activations are also mixed by residuals, so they turn to looking only at LoRA updates: the effective updates already lie in a low-rank space, and the intrinsic rank of the backdoor update is further constrained by the LoRA rank.
    • What this paper proposes: Given a base model and a backdoored LoRA adapter, first finetune N backdoor variants on the same base model using self-constructed mixed data and random triggers, then extract shared directions in the parameter update space, construct orthogonal null spaces per layer or per head, and finally project the original adapter onto these null spaces. The authors state that this pipeline does not require knowing the trigger, identifying the exact trigger–behavior pairs, or having a clean reference adapter (only black-box LoRA finetuning on the base model is needed), and does not retrain the suspect parameters; for common base models, the null space can be precomputed offline, and deployment requires only a single projection.
    • Threat model:
      • Victim system: LoRA downstream adaptation on a publicly pretrained base model θ0; the attack occurs during the adaptation stage, and the defender obtains the possibly backdoored adapter afterward and attempts to purify it.
      • Attacker knowledge and capability: White-box access to θ0 and control over the LoRA finetuning process, specifically the poisoning strategy (how to construct trigger-containing samples and their target behaviors). The attack modifies only the LoRA adapter; θ0 remains unchanged.
      • Defender knowledge: Obtains θ0 and the suspect adapter ϕ⋆, but has no trigger rules, exact malicious outputs, any poisoned data, or a clean reference adapter.
      • Defender capability: Can perform auxiliary LoRA finetuning on θ0 with synthetic data; is not allowed to retrain the suspect adapter (some baselines relax this restriction); the defense operates only in the LoRA parameter space and is not allowed to modify the base model (some baselines relax this restriction). The goal is ASR(ϕ̃) ≪ ASR(ϕ⋆) while approximately preserving both Ubase and Udown.
  2. What related research exists?

    The authors divide related work into data-centric defenses, model purification relying on strong assumptions, and recent purification that does not rely on triggers or clean references.

    The authors place the related discussion in Appendix A in the introduction and Section 5, and the main text gives only the grouping and comparison with this paper. Based on what is actually discussed in the main text, it can be divided into the following groups.

    Backdoor attacks and LoRA implantation

    • Classic and textual backdoors: BadNets by Gu et al. [18], BadNL [8], and surveys [35, 70] describe implanting trigger–behavior associations during training, behaving almost identically to a clean reference without the trigger. Subsequent textual attacks cited by the authors include syntactic trigger Hidden Killer [48], BITE iterative injection [64], VPI virtual prompt injection [65], composite trigger CTBA [22], multi-trigger MTBA [33], and Sleeper Agents [23].
    • LLMs and PEFT: The authors state that emerging work argues backdoors generalize more easily due to the huge input–output space of LLMs [23, 63]; Dong et al. [14] and LoRA by Hu et al. [21] are used to illustrate that modifying only a small fraction of parameters enables more economical implantation. Instruction-tuning poisoning [54, 59], weight poisoning [28], and RLHF-poisoned jailbreak backdoors [50] also appear in the references, though the main text does not elaborate on each.

    Defenses relying on triggers, clean references, or retraining

    • Data-centric: Training a clean model from scratch after obtaining a potentially poisoned dataset, represented by Anti-Backdoor Learning [31]. The authors separate this from the model-centric purification in this paper.
    • Model-centric but with stronger assumptions: The authors identify two types of shortcomings: many methods require knowing the trigger in advance or rely on expensive trigger inversion [6, 53]; others assume a clean reference model for neutralization or distillation and retrain to some degree [36, 68]. ONION [47], Neural Attention Distillation [34], Fine-mixing [68], and CleanGen [36] belong to this lineage, though the main text does not provide numerical comparisons for each.

    Recent purification without trigger knowledge and clean references

    • Vaccine and CROW: Li and Kim [30] (the authors' own prior work, ICLR 2026) and CROW by Min et al. [44] are described by the authors as noticing the above constraints and designing corresponding defenses. The authors state that, like most prior work, they mainly evaluate only base capabilities before backdoor injection, ignoring knowledge learned during the attack [70]. The idea of shared directions across variants is also the same as in Li and Kim [30]; the authors place the differences from that work in Appendix A.1.
    • Editing and pruning baselines: The experiments also compare clean-sample finetuning [49], magnitude pruning [19, 61], Fine-Pruning [37], PCP on activations [29], and 4-bit quantization [27, 36]. AlphaEdit [16] uses null-space constraints for knowledge editing and appears in the references; the main text does not treat it as a purification baseline in detail.

    Baseline methods and benchmarks

    • Baseline methods: Finetuning, Magnitude-based Pruning, Fine-Pruning, PCP on Activations, 4-bit Quantization, CROW, Vaccine. The authors state the selection criteria are: no trigger knowledge required and no reliance on external clean reference models. Vaccine is described by the authors as the recent state-of-the-art.
    • Benchmarks/datasets: Downstream utility is mainly reported on GSM8K; base utility uses BoolQ, RTE, HellaSwag, WinoGrande, ARC Challenge, ARC Easy, OpenBookQA, PIQA, MMLU, and the open-ended MT-Bench. Code scenarios use HumanEval and MBPP. Ablation data also includes self-constructed commonsense QA, color classification, and random Alpaca samples.

    The authors position this paper as: none of the above constraints are needed, and while suppressing ASR, the impact of purification on newly learned skills is explicitly evaluated, which the authors describe as harmless. The null space can be precomputed offline for common base models, and deployment requires only a single projection.

  3. How does the paper address this problem?

    Estimate shared backdoor directions using synthetic variants, then project the suspect LoRA update onto the orthogonal null space of input and output channels.

    The overall idea is Null-Space Projection: instead of removing the backdoor from the suspect adapter itself, use synthetic variants trained on the same base model with different trigger–behavior pairs to estimate a shared low-rank backdoor direction, then project the suspect LoRA update onto its orthogonal complement. Ablations progress from single-layer classification to full-layer generation, with strategies accumulating per Table 1.

    Problem Setting and Formalization

    • LoRA update: The weight of layer ℓ is written as Wℓ ↦ Wℓ + ΔWℓ, where ΔWℓ = sℓ Bℓ Aℓ, with rank at most rℓ. The adapter is denoted ϕ = {(Aℓ, Bℓ, sℓ)}.
    • Backdoor definition: The injection operator inj inserts trigger t into a benign prompt to obtain xtrig. ϕ⋆ is backdoored if it simultaneously satisfies benign consistency (approximates a benign adapter without the trigger) and trigger activation (with the trigger, the probability that the output falls into the attack target set Satk is ≥ τ). ASR is the expectation of this event over the trigger distribution, as in Eq. (4).
    • Two types of utility and objective: Ubase is the capability already in the base model before fine-tuning; Udown is the downstream capability the adapter should learn, as in Eq. (5). The purification operator Π maps ϕ⋆ to ϕ̃, requiring ASR to drop significantly and both utilities to be approximately preserved.

    Oracle Decomposition and Projection

    • Decomposition: The authors assume ΔWℓ⋆ = ΔWℓ,benign + ΔWℓ,bd. By rank inequalities, the update rank does not exceed the LoRA rank. After SVD of ΔWℓ⋆, the authors assume the backdoor is concentrated on a small set of singular vectors (e.g., |Kℓ,bd| = 1) and has Frobenius inner product close to 0 with the benign component. Figure 1 depicts two-sided full projection: Uℓ,bd in the output space and Vℓ,bd in the input space are suppressed, while the orthogonal complement is preserved.
    • Null space and full projection: Take unit vectors of the backdoor direction to form orthogonal projections Pℓin and Pℓout on input and output channels; the null-space projection is the identity minus these. The purified update is ΔW̃ℓ = (I − Pℓout) ΔWℓ⋆ (I − Pℓin), i.e., Eq. (14). The authors state this removes components falling into either channel's backdoor subspace. Under the oracle assumption, the backdoor term is approximately 0 after projection, and the benign term is approximately preserved, as in Eq. (15).
    • Partial projection: The benign update may not be orthogonal to the estimated backdoor subspace. Figure 2 depicts this entanglement as partial projection. The authors use α ∈ [0, 1] for interpolation: ΔW̃ℓ(α) = (1 − α) ΔWℓ⋆ + α Pℓout,null ΔWℓ⋆ Pℓin,null, where α = 0 is the original update and α = 1 is full projection. After projection, truncated SVD re-decomposes the update into LoRA factors (Appendix B.7). Non-orthogonality boundaries are in Appendices B.3 and B.4.

    How the Four Ablations Estimate the Direction

    • Ablation I (single layer, no new knowledge): Train only an MLP up-projection, e.g., model.layers.12.mlp.up_proj, rank 8, learning rate 5×10−5, 10 epochs. Benign labels are self-generated by greedy decoding from the base model, then made into True/False single-token judgments, so the update is dominated by the backdoor objective. Take the top-1 left/right singular vectors from this update to construct the null space and apply full projection (α = 1). In Figure 3, the singular value spectrum without new knowledge is more concentrated than with new knowledge.
    • Ablation II (single layer, with new supervision): The authors argue that once downstream directions are mixed into the update, one cannot extract a "pure" backdoor direction from the suspect update itself. The assumption is: under the same attack target, different trigger–behavior pairs induce the same or similar parameter-space directions. Thus, train N synthetic variants, each with a different trigger–behavior pair, with the target behavior still single-token; benign data is generated as in Ablation I, so variant updates are dominated by the backdoor mechanism. Three aggregations (pre-avg, proj-mean, consensus, Algorithms 1–3) estimate a shared rank-1 direction, with consensus used for main results. Additionally, an out-of-distribution color single-token classification is added to test newly learned skills. Full projection hurts downstream, so partial projection is used.
    • Ablation III (single layer, generative): Benign data is changed to 800 random Alpaca samples plus GSM8K math problems. Variants are sampled only from Alpaca, with labels from greedy decoding of the base model (Appendix E.1). Downstream reports GSM8K. The authors state that under free generation, the direction estimated by variants leaks less into task components than single-token classification, so full projection suffices; partial projection remains a fallback.
    • Ablation IV (multi-layer): On the same base model, same mixed generative data, and same backdoor construction, compare four LoRA surfaces: S1 a single MLP block; S2 12 consecutive MLP blocks; S3 12 consecutive blocks with LoRA on both Attention and MLP; S4 Attention and MLP on all Transformer blocks. For S3, layer-wise projection increases ASR; the authors speculate attention should be organized by head rather than layer, so they switch to extracting subspaces per head and projecting (Appendix E.2, Algorithms 4–6). For S4, residual remains after head-wise projection; the authors compare subspaces across early (about 100 steps), mid (about 400 steps), and late (about 900 steps) checkpoints and multiple learning rates and epochs, finding that different checkpoints activate different evaluation samples, especially early vs. late. Therefore, with three hyperparameter groups, they apply projections from early, mid, and late checkpoints sequentially (Appendix E.2, Figure 7).

    Full Pipeline and Success Criteria

    • Three steps: Table 1's Overall is Basic + Variant + Partial + Head-wise + Multi-stage + Val Select. (1) Match the suspect adapter's LoRA layers, train N variants on mixed data where the backdoor signal dominates, using diverse trigger–behavior pairs; (2) for each layer, collect low-rank updates from variants, use consensus to obtain a shared rank-k (usually rank-1) direction and its orthogonal null space; the CTBA row instead uses pre-avg or proj-mean with k=4; (3) apply null-space projection to the real adapter, typically α = 1 in generation task experiments, and α ∈ [0.2, 0.4] for entangled classification tasks. For multi-stage, use the held-out validation set of the target task for selection.
    • Main experiment training: Unless otherwise stated, real backdoored adapters use learning rate 3×10−5, 8 epochs. Generation tasks default to α = 1; entangled classification reduces α in steps of 0.1 on a benign-only validation set (Appendix B.5).
    • Evaluation: ASR follows Eq. (4), checking whether the output for triggered input falls into Satk (Appendix D.4). CleanASR is the false positive rate on benign prompts, used to exclude keyword-matching artifacts. Udown is computed on downstream tasks like GSM8K; Ubase is computed on nine closed benchmarks plus MT-Bench. The appendix provides variant construction, aggregation algorithms, and evaluation rules; trigger strings or target outputs are not repeated here.
  4. What experiments did the paper conduct?

    Across five attacks and three tasks, projection reduces ASR from 100% to an average of 2.80%–8.50%, with GSM8K close to no-defense.

    Experimental Setup

    • Models under test: For general instruction following, LLaMA2-7B-Chat, LLaMA2-13B-Chat, Qwen2-7B-Instruct, Mistral-7B-Instruct-0.1. CodeLLaMA-7B-Instruct and CodeLLaMA-13B-Instruct are added only for code injection scenarios. Ablations use the same base model; the main text does not separately list model names in the ablation section.
    • Tasks and attacks: Sentiment Steering (flipping or guiding response sentiment after trigger appearance), Targeted Refusal (systematic refusal under trigger), Code Injection (inserting malicious snippets in code generation). Five attacks: BadNets [18], CTBA [22], MTBA [33], Sleeper [23], VPI [65], covering token-level, span-level, and prompt-level poisoning.
    • Baselines: Finetuning, Magnitude-based Pruning, 4-bit Quantization, CROW, Fine-Pruning, Vaccine, PCP. The authors state they only include methods that do not require trigger knowledge and do not rely on external clean references, and they relax some baselines regarding "not retraining the suspect adapter" and "not modifying the base model."
    • Data and training: Real adapters use default learning rate 3×10−5, 8 epochs; LoRA layers and variant data follow Ablation III/IV. Ablation I/II single-layer uses rank-8, 5×10−5, 10 epochs. Ablation I's ASR split is train 500/500, val 100/100, test 200/200 (clean/trigger). The specific value of the number of variants N is not given in the main text.
    • Metrics: Lower ASR is better; higher Udown and Ubase are better. For Sentiment Steering and Targeted Refusal, Udown is GSM8K. Ubase is the average of BoolQ, RTE, HellaSwag, WinoGrande, ARC Challenge, ARC Easy, OpenBookQA, PIQA, MMLU, plus MT-Bench. CleanASR is the false positive rate on benign prompts. Code scenario metrics are in the appendix; the main table does not separately detail pass@1 definitions.
    • Evaluation: ASR and CleanASR are judged by rules determining whether outputs fall into the attack target (Appendix D.4). The paper does not report human agreement or LLM evaluator models. Projection strength and multi-stage are selected using the held-out validation set of the target task. The paper does not report the number of repetitions.

    Main Results

    The main tables are Sentiment Steering (Table 2) and Targeted Refusal (Table 3) on LLaMA2, with cells as ASR / Udown on GSM8K. CTBA uses pre-avg or proj-mean with k=4; other behaviors use consensus. CleanASR is always < 1% on clean, attacked, and purified models.

    Swipe horizontally to read the table

    Model and TaskNo Defense ASR / UdownOurs ASR / UdownVaccine ASR / UdownSource
    7B Sentiment Average100.00 / 27.812.80 / 27.937.40 / 15.58Table 2
    13B Sentiment Average100.00 / 34.014.00 / 33.819.80 / 18.76Table 2
    7B Refusal Average100.00 / 27.535.20 / 27.6813.90 / 13.17Table 3
    13B Refusal Average100.00 / 33.928.50 / 33.8217.80 / 20.16Table 3
    7B Sentiment Worst Single AttackAll except Sleeper are 100 / ~28MTBA 0.00 / 28.55; highest residual BadNets 5.00 / 28.34Sleeper 14.50 / 16.02Table 2
    13B Refusal Worst Single AttackAll are 100.00MTBA 14.5 / 33.84BadNets 21.00 / 19.21Table 3
    • Authors' interpretation: The authors state the main difficulty is not simply reducing ASR, but not destroying task-related adaptation in the LoRA. When Pruning, CROW, and Fine-Pruning suppress the backdoor more strongly, downstream performance drops more; Quantization and PCP preserve utility better, but ASR remains non-trivial. The authors claim superiority over all baselines in both ASR and Udown, with Udown close to no defense.
    • Table 2 counterexamples need separate attention: On LLaMA2-7B-Chat's VPI, CROW's ASR is 4.00, Vaccine's is 4.50, and ours is 3.00, all close; on Sleeper, ours is 1.50, lower than Vaccine's 14.50 and CROW's 76.50. On 13B's VPI, ours and CROW are both 8.50. The authors write that it is better on average, not that every cell is the lowest in the table.
    • Ubase: The authors state that base utility across defenses is roughly comparable, with differences mainly in ASR and Udown; specific scores are in Table 5, not listed item by item in the main text. Qwen2 and Mistral, code injection, and more ablations are in Appendix F.1–F.8; the authors claim "even more effective" on Mistral and Qwen2, but appendix numbers are not expanded in the main text.

    Ablations I–IV

    • What was tested → results: Ablation I, on a single layer, without new knowledge, α = 1, the authors state ASR drops from nearly 82% to 1% (Figure 4a labels Before ASR 82.0, After 1.0), and Ubase average from 63.4 to 63.5. Ablation II, with α = 0.3, Figure 4b labels ASR from 76.5 to 0.0, Ubase from 64.4 to 64.3. In Figure 5, with α = 1, both True/False and color classification drop below the red dashed line; the authors state that for α roughly in [0.2, 0.4], ASR can drop to levels similar to full projection, and both accuracies are largely preserved. The authors speculate the reason is that the single-token output space is very small, and benign and backdoor directions overlap in the update space.
    • Generative single-layer: Figure 6 labels Ablation III pre-purification ASR as 45.0, with post-purification endpoint numbers not given in the caption; Ubase from 63.4 to 63.7, GSM8K from 31.0 to 30.2. The authors state that full projection both significantly reduces ASR and largely preserves downstream, and believe that under free generation, the backdoor direction leaks less into task components.
    • Multi-layer: After S1, S2 projection, ASR drops to 0% or very close to 0%, with Ubase and Udown essentially unchanged. For S3, after the original layer-wise projection, ASR increases; after switching to head-wise, ASR again approaches 1%, with both utilities stable. For S4, after head-wise projection, residual remains; after multi-stage (early/mid/late checkpoints × three hyperparameter sets), ASR drops to single digits similar to S1–S3, with utility essentially unchanged. The authors believe different checkpoints capture complementary backdoor components.

    Adaptive Attacks and Spectrum

    • What was tested → results: The authors state that against adaptive attackers that flatten the LoRA spectrum or increase LoRA rank, using rank-matched synthetic variants reduces ASR from 100% to 0.5% (Appendix F.9). Figure 3 compares singular value energy with and without new knowledge: without new knowledge, the spectrum is more concentrated.
    • Authors' interpretation: The authors interpret the similar advantages across tasks (refusal and sentiment steering), scales (7B and 13B), and five attacks as evidence that backdoors in the LoRA update space are mediated by a small set of directions, rather than relying on model-specific heuristics. Occasional Udown higher than no defense is attributed to the projection additionally removing off-task interference from the backdoor, and is called a preliminary observation, with more rigorous mechanism studies left for future work (Appendix G.3).

    Other Ablations and Analyses

    • Aggregation: Main results use consensus; CTBA uses pre-avg or proj-mean with k=4 (Table 2 footnote); trends for the other two aggregations are in Appendix F, and the main text states the three schemes show consistent trends.
    • Projection strength: Generation tasks default to α = 1; classification reduces α in steps of 0.1 on a benign validation set (Appendix B.5). Ablation II reports intermediate strengths around α ∈ [0.2, 0.4].
    • Checkpoints: Variants at early/mid/late around 100, 400, 900 steps; each projection leaves residual, and activated samples differ especially between early and late (Section 3.6).
    • CleanASR: Under Table 2 and Table 3 settings, clean, attacked, and purified models are all < 1%.
    • Geometric evidence and discussion of NSP being higher than clean fine-tuning are in Appendices G.2 and G.3; operational boundaries for high rank and cross-task are in Appendix G.1.
    • Negative results: S3 layer-wise projection increases ASR; S4 single head-wise projection leaves non-zero residual; Ablation II full projection hurts both downstream accuracies; on 13B Targeted Refusal's MTBA, our ASR is 14.5, higher than several easier attacks in the same table (e.g., CTBA's 3.50).
  5. What are some points that can be further explored?

    The authors limit the guarantee to low-rank LoRA; high rank, cross-task, and worst-case adaptive attackers remain harder, with mechanism studies left for future work.

    Limitations and future directions noted by the authors

    • Scope of guarantees: Section 5 states that guarantees are limited to LoRA adapters with low-rank backdoor structure; high-rank (r ≥ 32), cross-task, and worst-case adaptive attackers remain harder, with operational boundaries explicitly reported in Appendix G.1. (Section 5 Limitation)
    • Mechanism not fully explored: Section 4.1 calls "projection sometimes making Udown higher than clean or fine-tuned baselines" a preliminary observation, and defers more rigorous mechanistic studies to future work (Appendix G.3). This is explicitly marked as future work by the authors; do not treat it as a completed explanation.
    • Related work and broader impact: The authors state that related work and broader impact are placed in Appendices A and H, with no other limitation items listed in the main text. (Section 5)

    The paper does not have a separate Future Work section. If the ethics or broader impact appendix only describes research practices, it is not included here.

    Experimental coverage

    • Models: Main experiments in the main text are full tables for LLaMA2-7B-Chat and LLaMA2-13B-Chat; also includes Qwen2-7B-Instruct, Mistral-7B-Instruct-0.1, and CodeLLaMA-7B/13B-Instruct used only for code injection. Qwen2, Mistral, and code injection numbers are in Appendices F.1–F.8, not listed in the main text.
    • Attacks and tasks: Five attacks (BadNets, VPI, Sleeper, CTBA, MTBA) and three tasks (Sentiment Steering, Targeted Refusal, Code Injection). The main tables only expand ASR and GSM8K for the first two tasks.
    • Defense comparison: The same tables compare no defense, Finetuning, Pruning, Quantization, CROW, Fine-Pruning, Vaccine, PCP, and this paper. CleanASR is reported as < 1% in these table settings.
    • Method variants: Ablations cover single layer to all Transformer blocks (S1–S4), per-layer and per-head, partial projection α, and multi-stage projection across early/middle/late checkpoints. Adaptive settings (flattening spectrum or increasing rank, rank-matching variants) results are in Appendix F.9, with ASR from 100% to 0.5%.
    • Items not reported in the paper: The main text does not give specific numbers for variant count N, repetition counts for ASR evaluation, nor consistency between human and rule-based judgments; per-benchmark scores for Ubase point to Table 5, not copied in the main text. High-rank r ≥ 32 results are placed in the boundaries of Appendix G.1 per the authors, not in the main tables.
  6. Summarize the main content of the paper

    Null-space projection removes LoRA backdoor directions using synthetic variants; across five attacks, ASR drops to single digits and GSM8K is close to the original adapter.

    Null-Space Projection targets purification after LoRA fine-tuning, when only the base model and a suspect adapter remain: no trigger knowledge, no clean reference, and no retraining of the suspect adapter.

    • Problem: Attackers control poisoning during the adaptation stage, and the backdoor is written only into LoRA. Existing purification often requires trigger knowledge, clean references, or retraining, and rarely checks the adapter's newly learned downstream skills simultaneously. The authors hypothesize that backdoors lie in a small set of directions in the LoRA update, and that different trigger–behavior pairs share similar directions.
    • Approach: Train synthetic variants with random triggers on the same base model, estimate shared directions per layer or per attention head using consensus (CTBA uses two other aggregations with k=4), and project the suspect update onto the orthogonal complement of input and output channels. Generation tasks use full projection; single-token classification uses partial projection with α around 0.2–0.4 due to direction entanglement; when the adaptation surface extends to the full model, multi-stage projection across early, middle, and late checkpoints is added, with selection via a held-out validation set.
    • Main results: On LLaMA2-7B-Chat, Sentiment Steering average ASR across five attacks goes from 100.00% to 2.80%, GSM8K from 27.81 to 27.93; Targeted Refusal average ASR to 5.20%, Udown 27.68 (no defense 27.53). On 13B, the two groups' average ASRs are 4.00% and 8.50%, with Udown 33.81 and 33.82, corresponding to no defense 34.01 and 33.92 (Table 2, Table 3). In the same tables, Vaccine has higher average ASR and notably lower GSM8K. CleanASR is always < 1%.
    • Ablations and adaptive attacks: Single layer without new knowledge reduces ASR from about 82% to 1% (Figure 4a). Per-layer projection once increased ASR on attention surfaces; switching to per-head brought it back to about 1%. Adaptive attacks flattening the spectrum or increasing rank, under rank-matching variants, reduce ASR from 100% to 0.5% (Appendix F.9).
    • Authors' conclusion: The authors believe the same projection handles both refusal and sentiment steering, 7B and 13B, and five attacks because backdoors are mediated by a small number of directions in the LoRA update space. Guarantees are limited to low-rank structure; r ≥ 32, cross-task, and worst-case adaptive attackers remain harder.

Related papers

Show 3 more papers
Read originalNeurIPS 2026