mlsanityData to 14 Oct 2026

On Trojan Signatures in Large Language Models of Code

arXiv 2402.16896 ↗First posted 23 Feb 2024cs.CR cs.LG cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

Trojan signatures, as described by Fields et al. (2021), are noticeable differences in the distribution of the trojaned class parameters (weights) and the non-trojaned class parameters of the trojaned model, that can be used to detect the trojaned model. Fields et al. (2021) found trojan signatures in computer vision classification tasks with image models, such as, Resnet, WideResnet, Densenet, and VGG. In this paper, we investigate such signatures in the classifier layer parameters of large language models of source code. Our results suggest that trojan signatures could not generalize to LLMs of code. We found that trojaned code models are stubborn, even when the models were poisoned under more explicit settings (finetuned with pre-trained weights frozen). We analyzed nine trojaned models for two binary classification tasks: clone and defect detection. To the best of our knowledge, this is the first work to examine weight-based trojan signature revelation techniques for large-language models of code and furthermore to demonstrate that detecting trojans only from the weights in such models is a hard problem.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 12 of its 22 references that are in the map. First posted on arXiv 23 Feb 2024.

Builds on

12 of 22 references.

References · 12

  1. 2018Spectral Signatures in Backdoor Attackscited by 484
  2. 2020Backdoor Learning: A Surveycited by 426
  3. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
  4. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
  5. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 131
  6. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 86
  7. 2020Backdoors in Neural Models of Source Codecited by 41
  8. 2023Backdooring Neural Code Searchcited by 19
  9. 2021Trojan Signatures in DNN Weightscited by 17
  10. 2023Occlusion-based Detection of Trojan-triggering Inputs in Large Language Models of Codecited by 9
  11. 2023A Survey of Trojans in Neural Models of Source Code: Taxonomy and Techniquescited by 7
  12. 2023BadCS: A Backdoor Attack Framework for Code searchcited by 1

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.