← Lab /AI/ML

LoRAScan rejects about 98.5% of backdoor prompts in LoRA adapters

LoRAScan can detect and reject trigger-bearing inputs with 98.49% success while keeping low false positives

AI/ML arXiv 7 Aug 2026 Defense Simulation evidence Threat model

Published as “LoRAScan: Detecting Backdoor Prompts in Low-Rank Adapters for Large Language Models via Down-Projection Activation Spikes”

Why it matters

Enables safe deployment of third-party LoRA adapters by filtering malicious prompts without altering model behavior.

Summary

LoRAScan detects backdoor triggers in LoRA adapters by monitoring a small, low-variance subset of down-projection sites and rejecting inputs that cause large, localized activation spikes, achieving 98.49% attack rejection with 96.59% clean pass. The evidence comes from a benchmark of 75 adapters across five model families where LoRAScan outperforms prior defenses, though its clean-pass rate is slightly lower than some baselines and its rejection rate varies by model (e.g., 94.95% on OpenChat-3.5).

What they found 2

  1. LoRAScan rejects about 98.49% of malicious inputs while keeping a low error rate on clean inputs.

    “LoRAScan rejects approximately 98.49% of malicious inputs with a small error rate on clean inputs, outperforming existing defenses across diverse evaluation settings.”

  2. On the full BackdoorLLM benchmark LoRAScan attains 98.49% attack rejection and 96.59% benign pass.

    “Over all 12,475 backdoor and 12,475 clean test samples, LoRAScan achieves 98.49% ARR and 96.59% BPR.”

Caveats 4

  • On OpenChat-3.5 the attack rejection rate drops to 94.95%, indicating variability across models.
  • Quote: "OpenChat-3.5 LoRAScan 94.95 ± 0.98/99.39 ± 0.35"
  • First, this work focuses on autoregressive large language models based on Transformer architectures, the predominant design underlying chatbots and code assistants (Qorib, Moon, and Ng 2024; Grattafiori et al. 2024).
  • Third, LoRAScan addresses a scenario where the defender downloads third-party adapters and maintains white-box access to intermediate activations. In contrast, an end-user querying a black-box API can only send prompts and receive generated text.

What’s new here 4

  • First adapter-aware defense that works at inference time without modifying adapter parameters.
  • Identifies a sparse (~5%) set of low-variance LoRA insertion sites to monitor.
  • Uses activation-spike statistics in the down-projection bottleneck as a detection signal.
  • Requires only a small set of unlabeled clean prompts; no backdoor samples or labeled adapters needed.

Threat model stated by the source

AdversaryAttacker who creates a malicious LoRA adapter and distributes it via a third-party repository.
CapabilityFull control over the adapter-training procedure, including embedding hidden triggers; cannot modify the base model.
AssumesBase model is trusted; Defender has white-box access to adapter weights; Defender possesses a small set of unlabeled clean prompts