mlsanityData to 7 Oct 2026

P2P: A Poison-to-Poison Remedy for Reliable Backdoor Defense in LLMs

arXiv 2510.04503 ↗First posted 6 Oct 2025cs.CR cs.AI cs.CLcited by 4

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

Abstract (arXiv)

During fine-tuning, large language models (LLMs) are increasingly vulnerable to data-poisoning backdoor attacks, which compromise their reliability and trustworthiness. However, existing defense strategies suffer from limited generalization: they only work on specific attack types or task settings. In this study, we propose Poison-to-Poison (P2P), a general and effective backdoor defense algorithm. P2P injects benign triggers with safe alternative labels into a subset of training samples and fine-tunes the model on this re-poisoned dataset by leveraging prompt-based learning. This enforces the model to associate trigger-induced representations with safe outputs, thereby overriding the effects of original malicious triggers. Thanks to this robust and generalizable trigger-based fine-tuning, P2P is effective across task settings and attack types. Theoretically and empirically, we show that P2P can neutralize malicious backdoors while preserving task performance. We conduct extensive experiments on classification, mathematical reasoning, and summary generation tasks, involving multiple state-of-the-art LLMs. The results demonstrate that our P2P algorithm significantly reduces the attack success rate compared with baseline models. We hope that the P2P can serve as a guideline for defending against backdoor attacks and foster the development of a secure and trustworthy LLM community.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 35 of its 50 references that are in the map. First posted on arXiv 6 Oct 2025.

Builds on

35 of 50 references.

Closest ancestors · 15

Same direction, newest first

  1. 2025DUP: Detection-guided Unlearning for Backdoor Purification in Language Models3 Aug
  2. 2025ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Models22 Feb
  3. 2025A Survey on Backdoor Threats in Large Language Models (LLMs): Attacks, Defenses, and Evaluations6 Feb
  4. 2024Unlearning Backdoor Attacks for LLMs with Weak-to-Strong Knowledge Distillation18 Oct
  5. 2024Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges30 Sep
  6. 2024A Study of Backdoors in Instruction Fine-tuned Language Models12 Jun
  7. 2024Instruction Backdoor Attacks Against Customized LLMs14 Feb
  8. 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learning11 Jan
  9. 2023Backdoor Attacks and Countermeasures in Natural Language Processing Models: A Comprehensive Security Review12 Sep
  10. 2023Backdoor Attacks for In-Context Learning with Language Models27 Jul
  11. 2023Defending against Insertion-based Textual Backdoor Attacks via Attribution3 May
  12. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
3 more
  1. 2023Training-free Lexical Backdoor Attacks on Language Models8 Feb
  2. 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labels15 Nov
  3. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May

Other references · 20

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  3. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  4. 2020The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memescited by 485
  5. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  6. 2023Large Language Models in Finance: A Surveycited by 223
  7. 2019A backdoor attack against LSTM-based text classification systemscited by 214
  8. 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agentscited by 106
  9. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
  10. 2024Fine-tuning large language models for domain adaptation: Exploration of training strategies, scaling, model merging and synergistic capabilitiescited by 67
  11. 2020Ape210K: A Large-Scale and Template-Rich Dataset of Math Word Problemscited by 60
  12. 2024Designing Heterogeneous LLM Agents for Financial Sentiment Analysiscited by 48
8 more
  1. 2023From Shortcuts to Triggers: Backdoor Defense with Denoised PoEcited by 26
  2. 2024Shortcuts Everywhere and Nowhere: Exploring Multi-Trigger Backdoor Attackscited by 19
  3. 2025Seeing Sound, Hearing Sight: Uncovering Modality Bias and Conflict of AI models in Sound Localizationcited by 17
  4. 2025Uni-Retrieval: A Multi-Style Retrieval Framework for STEM's Educationcited by 13
  5. 2024Uncovering, Explaining, and Mitigating the Superficial Safety of Backdoor Defensecited by 6
  6. 2024Evaluating LLMs for Targeted Concept Simplification for Domain-Specific Textscited by 5
  7. 2025Less Data, More Security: Advancing Cybersecurity LLMs Specialization via Resource-Efficient Domain-Adaptive Continuous Pre-training with Minimal Tokenscited by 4
  8. 2025Affective-ROPTester: Capability and Bias Analysis of LLMs in Predicting Retinopathy of Prematuritycited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs
  2. 2024Learning to Poison Large Language Models for Downstream Manipulation
  3. 2026Pick Your Poison: Learning to Select Poison Sets for Stronger LLM Backdoor Attacks
  4. 2025AutoBackdoor: Automating Backdoor Attacks via LLM Agents
  5. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
  6. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models
  7. 2024Chain-of-Scrutiny: Detecting Backdoor Attacks for Large Language Models
  8. 2025Rethinking Reasoning: A Survey on Reasoning-based Backdoors in LLMs