atlas

Research map / Adversarial robustness and security / Backdoor and poisoning

CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularization

ICML 2025 · Adversarial robustness and security › Backdoor and poisoning · approach: Detecting poisoned samples · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes CROW, a backdoor defense for LLMs that finetunes on 100 clean samples with an adversarially perturbed layer-wise cosine consistency regularizer to remove data-poisoning backdoors.

Problem

Backdoor attacks on generative LLMs (sentiment steering, targeted refusal, code injection) persist after standard defenses, which either need clean reference models or degrade generation quality.

Approach

Backdoored models show unstable layer-wise hidden-state transitions when triggered; CROW finetunes with a layer-wise cosine consistency loss computed on FGSM-style adversarially perturbed input embeddings, plus the standard LM loss, requiring only clean data and no trigger knowledge or reference model.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply CROW instead of clean finetuningLlama-2-7B-Chat · Sentiment Steering, BadNetsASR: 21.70 -> 0.53Helped
apply CROW instead of clean finetuningLlama-2-13B-Chat · Targeted Refusal, BadNetsASR: 85.28 -> 2.50Helped
apply CROW instead of clean finetuningCodeLlama-7B-Instruct · Code Injection, BadNets-CIASR: 3.07 -> 0.87Helped
increase perturbation magnitude from ε=0.1 to ε=0.3 (ablation)CROW on CodeLlama-7B · BadNets-CIASR: 0.87 -> 0.00Helped
increase perturbation magnitude from ε=0.1 to ε=1.0 (ablation)CROW on CodeLlama-7B · BadNets-CIMT-Bench score: 3.95 -> 3.89No clear effect
increase consistency weight from α=0.5 to α=5.5 (ablation)CROW on CodeLlama-7B · BadNets-CIASR: 4.35 -> 0.87Helped
increase consistency weight from α=5.5 to α=11 (ablation)CROW on CodeLlama-7B · BadNets-CIMT-Bench score: 3.95 -> 3.23Hurt
replace cosine similarity with KL divergence at α=5.5 (ablation)CROW on CodeLlama-7B · BadNets-CIMT-Bench score: 3.95 -> 3.29Hurt
add adversarial perturbations to consistency regularization (ablation)Pure Consistency on Llama-2-7B-Chat · Targeted Refusal, BadNetsASR: 48.97 -> 19.63Helped
add adversarial perturbations to consistency regularization (ablation)Pure Consistency on Llama-2-7B-Chat · Targeted Refusal, VPIASR: 13.33 -> 0.50Helped
replace layer-wise consistency with embedding-only consistency (ablation)CROW on Llama-2-7B-Chat · BadNets, Targeted RefusalASR: 19.63 -> 98.00Hurt
increase consistency weight from α=0 to α=11.0 (ablation)CROW on clean Llama-2-7B-Chat · GCG jailbreakASR: 63.00 -> 29.00Helped

Surprising findings

Limitations

Experimental setup

Datasets: Stanford Alpaca HumanEval MT-bench AdvBench

Benchmarks: MT-bench HumanEval AdvBench

Metrics: attack success rate MT-bench score

Baselines: Finetuning Pruning Quantization CleanGen Pure Consistency Embedding-Only Consistency

Builds on: FGSM BackdoorLLM LoRA CleanGen

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy