mlsanityData to 7 Oct 2026

Signature in Code Backdoor Detection, how far are we?

arXiv 2510.13992 ↗First posted 15 Oct 2025cs.SE cs.LGcited by 0

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

Abstract (arXiv)

As Large Language Models (LLMs) become increasingly integrated into software development workflows, they also become prime targets for adversarial attacks. Among these, backdoor attacks are a significant threat, allowing attackers to manipulate model outputs through hidden triggers embedded in training data. Detecting such backdoors remains a challenge, and one promising approach is the use of Spectral Signature defense methods that identify poisoned data by analyzing feature representations through eigenvectors. While some prior works have explored Spectral Signatures for backdoor detection in neural networks, recent studies suggest that these methods may not be optimally effective for code models. In this paper, we revisit the applicability of Spectral Signature-based defenses in the context of backdoor attacks on code models. We systematically evaluate their effectiveness under various attack scenarios and defense configurations, analyzing their strengths and limitations. We found that the widely used setting of Spectral Signature in code backdoor detection is often suboptimal. Hence, we explored the impact of different settings of the key factors. We discovered a new proxy metric that can more accurately estimate the actual performance of Spectral Signature without model retraining after the defense.

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 27 of its 39 references that are in the map. First posted on arXiv 15 Oct 2025.

Builds on

27 of 39 references.

Closest ancestors · 5

Same direction, newest first

  1. 2023Multi-target Backdoor Attacks for Code Pre-trained Models14 Jun
  2. 2023Backdooring Neural Code Search27 May
  3. 2023Stealthy Backdoor Attack for Code Models6 Jan
  4. 2022Poison Attack and Defense on Deep Source Code Processing Models31 Oct
  5. 2021CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoning25 Oct

Other references · 22

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  6. 2018Spectral Signatures in Backdoor Attackscited by 457
  7. 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
  8. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  9. 2020Invisible Backdoor Attack with Sample-Specific Triggerscited by 338
  10. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
  11. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  12. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 266
10 more
  1. 2018code2vec: Learning Distributed Representations of Codecited by 249
  2. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  3. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
  4. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
  5. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 112
  6. 2022BppAttack: Stealthy and Efficient Trojan Attacks against Deep Neural Networks via Image Quantization and Contrastive Adversarial Learningcited by 82
  7. 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 78
  8. 2021Neural Program Repair with Execution-based Backpropagationcited by 50
  9. 2020Backdoors in Neural Models of Source Codecited by 27
  10. 2022AutoPruner: Transformer-Based Call Graph Pruningcited by 11

Built on by

Not cited yet.