← Lab /AI/ML

LoRA adapters can be backdoored without accuracy loss, and token-level probes detect them perfectly

LoRA adapters can be reliably poisoned to embed backdoors that preserve task performance and can be identified by behavioral and weight statistics

AI/ML arXiv 28 May 2026 Attack Prototype evidence Threat model

Published as “Token-Level Generalization in LoRA Adapter Backdoors: Attack Characterization and Behavioral Detection”

Why it matters

Defenders can scan public LoRA adapters for backdoors today using a lightweight behavioral probe suite, but must ensure probe coverage of likely trigger tokens and may need model-specific weight-level calibration.

Summary

LoRA adapters can be backdoored with as few as 25 poisoned examples (4.2% of training data), achieving 100% attack success while keeping 95% clean accuracy; a behavioral probe detector and a weight-level Frobenius-norm statistic each separate poisoned from clean adapters perfectly under ideal probe conditions, but the behavioral detector loses some recall when probes miss the trigger’s token neighborhood and the weight detector fails to transfer to larger models.

What they found 4

  1. A backdoor can be installed with 25 poisoned examples achieving perfect attack success and high clean accuracy.

    “On Qwen 2.5 1.5B, 25 poisoned examples (4.2% of training data) install a backdoor that achieves 100% attack success on triggered inputs while preserving 95% clean accuracy.”

  2. Behavioral detector achieves perfect separation when probe battery overlaps the trigger’s token neighborhood, and high recall with zero false positives otherwise.

    “A behavioral detector built from two probe-battery statistics, outlier_gap and mean_attack_rate, achieves AUC=1.000 against the 34-adapter calibration cohort when the battery overlaps the trigger’s token-level neighborhood and AUC ≈0.92 with 83-87% recall at zero false positives when it does not.”

  3. Weight-level statistic separates poisoned adapters perfectly without running the model.

    “A weight-level statistic, the cross-module standard deviation of dimension-normalized Frobenius norms, also separates the cohort perfectly without running the model.”

  4. Backdoors generalize at the token feature level rather than the structural pattern level.

    “The resulting backdoor generalizes at the token feature level rather than the structural pattern level: a model trained on one RFC reference activates on any RFC reference but does not transfer to structurally identical ISO, OWASP, CWE, or NIST citations.”

Caveats 7

  • global_frobN_std AUC drops from 1.000 to 0.65
  • AUC ≈0.92 with 83-87% recall at zero false positives when it does not
  • outlier_gap fails entirely
  • Limited cross-model coverage. Core results are calibrated against Qwen 2.5 1.5B Instruct.
  • Trigger-token-selection mechanism is not understood.
  • Single task and dataset. The experimental setting is binary prompt injection classification on the deepset/prompt-injections dataset (546 training examples, 116 test examples).
  • Limited trigger coverage. The RFC trigger (per RFC 8472 section 3.2) is the primary study.

What’s new here 4

  • Demonstrates reliable backdoors in parameter-efficient LoRA adapters via data poisoning.
  • Shows token-level, not structural, generalization of backdoors across citation types.
  • Introduces a lightweight behavioral detector using two probe-battery statistics that works without model introspection.
  • Proposes a weight-level detection metric (cross-module std of dimension-normalized Frobenius norms) that separates poisoned adapters without inference.

Threat model stated by the source

Adversaryadapter producer who can fully control training data and procedure
Capabilityinject arbitrary poisoned examples, choose hyperparameters, evaluate before release, publish adapter to a public hub
Assumesbase model weights are immutable and publicly verifiable; defender cannot modify the inference pipeline or inject prompts at runtime; defender has no knowledge of the trigger phrase or training data