mlsanityData to 7 Oct 2026

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

arXiv 2610.00348 ↗First posted 29 Sep 2026cs.CR cs.LGcited by 0

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 52 of its 62 references that are in the map. First posted on arXiv 29 Sep 2026.

Builds on

52 of 62 references.

Closest ancestors · 12

Same direction, newest first

  1. 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference13 Mar
  2. 2026Backdoor Directions in Vision Transformers11 Mar
  3. 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers3 Feb
  4. 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples8 Oct
  5. 2024CROW: Eliminating Backdoors from Large Language Models via Internal Consistency Regularization18 Nov
  6. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models23 Aug
  7. 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Models24 Jun
  8. 2024CleanGen: Mitigating Backdoor Attacks for Generation Tasks in Large Language Models18 Jun
  9. 2024Simulate and Eliminate: Revoke Backdoors for Generative Large Language Models13 May
  10. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
  11. 2023Analyzing And Editing Inner Mechanisms Of Backdoored Language Models24 Feb
  12. 2021Spinning Language Models: Risks of Propaganda-As-A-Service and Countermeasures9 Dec

Other references · 40

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2021Program Synthesis with Large Language Modelscited by 3,509
  9. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  10. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  11. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  12. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
28 more
  1. 2022Mass-Editing Memory in a Transformercited by 976
  2. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
  3. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
  4. 2023Steering Language Models With Activation Engineeringcited by 824
  5. 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 460
  6. 2021Neural Attention Distillation: Erasing Backdoor Triggers from Deep Neural Networkscited by 313
  7. 2021Anti-Backdoor Learning: Training Clean Models on Poisoned Datacited by 258
  8. 2023Poisoning Language Models During Instruction Tuningcited by 254
  9. 2023LEACE: Perfect linear concept erasure in closed formcited by 254
  10. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  11. 2020Blind Backdoors in Deep Learning Modelscited by 174
  12. 2020Dataset Security for Machine Learning: Data Poisoning, Backdoor Attacks, and Defensescited by 171
  13. 2022Backdoor Defense via Decoupling the Training Processcited by 149
  14. 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 120
  15. 2025The Geometry of Refusal in Large Language Models: Concept Cones and Representational Independencecited by 104
  16. 2025LLMs Encode Harmfulness and Refusal Separatelycited by 75
  17. 2025Convergent Linear Representations of Emergent Misalignmentcited by 66
  18. 2026Verbalizable Representations Form a Global Workspace in Language Modelscited by 59
  19. 2025Detecting High-Stakes Interactions with Activation Probescited by 45
  20. 2026Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreakscited by 36
  21. 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 31
  22. 2025Activation Space Interventions Can Be Transferred Between Large Language Modelscited by 17
  23. 2025RepIt: Steering Language Models with Concept-Specific Refusal Vectorscited by 10
  24. 2025A Guardrail for Safety Preservation: When Safety-Sensitive Subspace Meets Harmful-Resistant Null-Spacecited by 9
  25. 2026Analysing the Safety Pitfalls of Steering Vectorscited by 9
  26. 2026Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoorscited by 2
  27. 2026Preventing Safety Drift in Large Language Models via Coupled Weight and Activation Constraintscited by 2
  28. 2026BetaEdit: Null-Space Constrained Sequential Model Editingcited by 1

Built on by

Not cited yet.