arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.08350cs.CRcs.AIcs.CL
收藏

面向代码预训练模型的多目标后门攻击

Multi-target Backdoor Attacks for Code Pre-trained Models

Nanyang Technological University(南洋理工大学);Singapore Management University(新加坡管理大学);Zhejiang Sci-Tech University(浙江理工大学)

Yanzhou Li, Shangqing Liu, Kangjie Chen, Xiaofei Xie, Tianwei Zhang, Yang Liu

AI总结:

针对现有代码预训练模型后门攻击范围受限、多针对理解任务的问题,提出任务无关多目标后门攻击方法,通过两种预训练策略实现对下游理解与生成任务的有效隐蔽攻击。

摘要:

随着代码智能的发展,针对神经代码模型的后门攻击已受到广泛关注。然而,现有大多数研究将触发器插入到特定任务的数据中以攻击代码相关下游任务,这限制了攻击范围。此外,针对预训练模型的攻击大多是为理解任务设计的。本文提出面向代码预训练模型的任务无关后门攻击。我们的后门模型通过两种学习策略(即投毒Seq2Seq学习和词元表示学习)进行预训练,以支持对下游代码理解和生成任务的多目标攻击。在部署阶段,受害模型中植入的后门可通过设计的触发器被激活,以实现定向攻击。我们在7个数据集上的2项代码理解任务和3项代码生成任务中评估了该方法。大量实验表明,该方法可有效且隐蔽地攻击代码相关下游任务。

英文摘要:

Backdoor attacks for neural code models have gained considerable attention due to the advancement of code intelligence. However, most existing works insert triggers into task-specific data for code-related downstream tasks, thereby limiting the scope of attacks. Moreover, the majority of attacks for pre-trained models are designed for understanding tasks. In this paper, we propose task-agnostic backdoor attacks for code pre-trained models. Our backdoored model is pre-trained with two learning strategies (i.e., Poisoned Seq2Seq learning and token representation learning) to support the multi-target attack of downstream code understanding and generation tasks. During the deployment phase, the implanted backdoors in the victim models can be activated by the designed triggers to achieve the targeted attack. We evaluate our approach on two code understanding tasks and three code generation tasks over seven datasets. Extensive experiments demonstrate that our approach can effectively and stealthily attack code-related downstream tasks.

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

↑