mlsanityData to 14 Oct 2026

DUP: Detection-guided Unlearning for Backdoor Purification in Language Models

arXiv 2508.01647 ↗First posted 3 Aug 2025cs.CR cs.AI cs.CLcited by 4

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

Abstract (arXiv)

As backdoor attacks become more stealthy and robust, they reveal critical weaknesses in current defense strategies: detection methods often rely on coarse-grained feature statistics, and purification methods typically require full retraining or additional clean models. To address these challenges, we propose DUP (Detection-guided Unlearning for Purification), a unified framework that integrates backdoor detection with unlearning-based purification. The detector captures feature-level anomalies by jointly leveraging class-agnostic distances and inter-layer transitions. These deviations are integrated through a weighted scheme to identify poisoned inputs, enabling more fine-grained analysis. Based on the detection results, we purify the model through a parameter-efficient unlearning mechanism that avoids full retraining and does not require any external clean model. Specifically, we innovatively repurpose knowledge distillation to guide the student model toward increasing its output divergence from the teacher on detected poisoned samples, effectively forcing it to unlearn the backdoor behavior. Extensive experiments across diverse attack methods and language model architectures demonstrate that DUP achieves superior defense performance in detection accuracy and purification efficacy. Our code is available at https://github.com/ManHu2025/DUP.

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

Builds on

19 of 33 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024Unlearning Backdoor Attacks for LLMs with Weak-to-Strong Knowledge Distillation18 Oct
  2. 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learning11 Jan
  3. 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Models2 May
  4. 2022Fine-mixing: Mitigating Backdoors in Fine-tuned Language Models18 Oct
  5. 2022Expose Backdoors on the Way: A Feature-Based Efficient Defense against Textual Backdoor Attacks14 Oct
  6. 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarks17 Jun
  7. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
  8. 2021Hidden Backdoors in Human-Centric Language Models1 May

Other references · 11

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  3. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  4. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  5. 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 580
  6. 2018Spectral Signatures in Backdoor Attackscited by 484
  7. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 341
  8. 2019A backdoor attack against LSTM-based text classification systemscited by 227
  9. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 211
  10. 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 21
  11. 2024A Gray-box Attack against Latent Diffusion Model-based Image Editing by Posterior Collapsecited by 13

Built on by

Cited by year (2026 to 14 Oct)

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

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Backdoor Token Unlearning: Exposing and Defending Backdoors in Pretrained Language Models
  2. 2026Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMs
  3. 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models
  4. 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models
  5. 2024Rethinking Backdoor Detection Evaluation for Language Models
  6. 2026BackFlush: Knowledge-Free Backdoor Detection and Elimination with Watermark Preservation in Large Language Models
  7. 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference
  8. 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models