arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.14850cs.SE
收藏

TrojanedCM:一个被植入木马的代码大型语言模型仓库

TrojanedCM: A Repository of Trojaned Large Language Models of Code

Aftab Hussain, Md Rafiqul Islam Rabin, Mohammad Amin Alipour

AI总结:

本文提出 TrojanedCM 仓库,提供覆盖 CodeBERT、CodeT5 等架构的干净与中毒代码模型、数据集及投毒框架,以支持木马检测与遗忘技术评估。

摘要:

随着针对源代码深度神经模型的木马植入研究快速增长,我们观察到需要开发一个木马模型基准,用于测试各种木马检测和遗忘技术。在本工作中,我们旨在为科学界提供多样化的被植入木马的代码模型,这些模型涵盖多种最先进架构,研究人员可在其上检验此类技术。因此,我们提出 TrojanedCM,这是一个公开可用的源代码干净模型与中毒模型仓库。我们为两个代码分类任务(缺陷检测和克隆检测)以及一个代码生成任务(文本到代码生成)提供中毒模型。我们在由上述任务的基准数据集(Devign、BigCloneBench、CONCODE)生成的中毒数据集上,微调了 CodeBERT、PLBART、CodeT5、CodeT5+ 等流行的预训练代码模型。该仓库还提供对模型架构和参数的完整访问,使从业者能够研究不同的白盒分析技术。除中毒模型外,我们还提供一个投毒框架,从业者可使用它为不同的源代码任务和模型部署各种投毒策略。所有材料均可通过以下链接访问:https://github.com/UH-SERG/TrojanedCM。

英文摘要:

With the rapid growth of research in trojaning deep neural models of source code, we observe that there is a need of developing a benchmark trojaned models for testing various trojan detection and unlearning techniques. In this work, we aim to provide the scientific community with diverse trojaned code models, that cover a variety of state-of-the-art architectures, on which they can examine such techniques. We thus present TrojanedCM, a publicly available repository of clean and poisoned models of source code. We provide poisoned models for two code classification tasks (defect detection and clone detection) and a code generation task (text-to-code generation). We finetuned popular pretrained code models such as CodeBERT, PLBART, CodeT5, CodeT5+, on poisoned datasets that we generated from benchmark datasets (Devign, BigCloneBench, CONCODE) for the above mentioned tasks. The repository also provides full access to the architecture and parameters of the models, allowing practitioners to investigate different white-box analysis techniques. In addition to the poisoned models, we also provide a poisoning framework using which practitioners can deploy various poisoning strategies for the different tasks and models of source code. All the material are accessible via this link: https://github.com/UH-SERG/TrojanedCM.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑