Removing the NEEDLE in the Haystack: Backdoor Removal in LLMs via Weight Orthogonalisation

Backdoor attacks can be implanted in Large Language Models (LLMs) during training, causing unwanted behaviour when a trigger appears in the input. Existing backdoor defences for LLMs attempt to remove the backdoor but inadvertently shift the model's output distribution to benign prompts, which can result in degraded model performance and safety. We propose NEEDLE, a training-free method for targeted backdoor removal. Once a trigger has been identified, our method estimates a backdoor direction and a refusal subspace through activation vectors, then applies sequential weight orthogonalisation to suppress the backdoor while preventing changes in refusal-related representations. NEEDLE requires neither a clean reference model nor the original poisoned training data. Evaluation is conducted across multiple model families and attack types. NEEDLE achieves the lowest mean Attack Success Rate (ASR) among the evaluated defences, including 0% on challenging code injection attacks, while resulting in the lowest KL divergence and minimal changes in capability and safety.

Link
https://huggingface.co/papers/2610.00348
Found by
Hugging Face Papers
Authors
Minoo Kim, Vasileios Lampos, George Drayson
Categories
evaluation, dataset
Published
2026-09-29
Last seen by the radar
2026-10-03
Upvotes
7
Radar score
27.50 / 100 (how it is scored)
Why it scored so
Matched: evaluat, training data; Primary record: Hugging Face Papers
Related links
https://arxiv.org/abs/2610.00348
https://github.com/LocaiLabs/NEEDLE
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Hugging Face Papers