mlsanityData to 14 Oct 2026

ConfGuard: A Simple and Effective Backdoor Detection for Large Language Models

arXiv 2508.01365 ↗First posted 2 Aug 2025cs.CR cs.CLcited by 9

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

Abstract (arXiv)

Backdoor attacks pose a significant threat to Large Language Models (LLMs), where adversaries can embed hidden triggers to manipulate LLM's outputs. Most existing defense methods, primarily designed for classification tasks, are ineffective against the autoregressive nature and vast output space of LLMs, thereby suffering from poor performance and high latency. To address these limitations, we investigate the behavioral discrepancies between benign and backdoored LLMs in output space. We identify a critical phenomenon which we term sequence lock: a backdoored model generates the target sequence with abnormally high and consistent confidence compared to benign generation. Building on this insight, we propose ConfGuard, a lightweight and effective detection method that monitors a sliding window of token confidences to identify sequence lock. Extensive experiments demonstrate ConfGuard achieves a near 100% true positive rate (TPR) and a negligible false positive rate (FPR) in the vast majority of cases. Crucially, the ConfGuard enables real-time detection almost without additional latency, making it a practical backdoor defense for real-world LLM deployments.

Key facts. Cited by 9 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 18 of its 31 references that are in the map. First posted on arXiv 2 Aug 2025.

Builds on

18 of 31 references.

Closest ancestors · 4

Same direction, newest first

  1. 2023Stealthy and Persistent Unalignment on Large Language Models via Backdoor Injections15 Nov
  2. 2021RAP: Robustness-Aware Perturbations for Defending against Backdoor Attacks on NLP Models15 Oct
  3. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
  4. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May

Other references · 14

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  5. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  6. 2020Extracting Training Data from Large Language Modelscited by 2,189
  7. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  8. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  9. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 459
  10. 2022A Systematic Evaluation of Large Language Models of Codecited by 363
  11. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
  12. 2019A backdoor attack against LSTM-based text classification systemscited by 227
2 more
  1. 2024Stealing Part of a Production Language Modelcited by 159
  2. 2024Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agentscited by 137

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 7.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026An Empirical Study of Output-to-Input Loops for Black-Box Backdoor Detection in Fine-Tuned Open-Weight LLMs
  2. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
  3. 2024Rethinking Backdoor Detection Evaluation for Language Models
  4. 2025Large Language Models Can Verbatim Reproduce Long Malicious Sequences
  5. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models
  6. 2025ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Models
  7. 2026SpecGuard: Inference-Time Backdoor Detection For Free
  8. 2024TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Models