On Trojan Signatures in Large Language Models of Code

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Hussain, Aftab, Rabin, Md Rafiqul Islam, Alipour, Mohammad Amin
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911790739226624
author Hussain, Aftab
Rabin, Md Rafiqul Islam
Alipour, Mohammad Amin
author_facet Hussain, Aftab
Rabin, Md Rafiqul Islam
Alipour, Mohammad Amin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_16896
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On Trojan Signatures in Large Language Models of Code
Hussain, Aftab
Rabin, Md Rafiqul Islam
Alipour, Mohammad Amin
Cryptography and Security
Machine Learning
Software Engineering
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.
title On Trojan Signatures in Large Language Models of Code
topic Cryptography and Security
Machine Learning
Software Engineering
url https://arxiv.org/abs/2402.16896