arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.11082cs.CLcs.CR
收藏

所多玛的苹果:通过对比学习实现高级句子嵌入的隐藏后门

Apple of Sodom: Hidden Backdoors in Superior Sentence Embeddings via Contrastive Learning

Peking University(北京大学);Rutgers University(罗格斯大学)

Xiaoyi Chen, Baisong Xin, Shengfang Zhai, Shiqing Ma, Qingni Shen, Zhonghai Wu

摘要:

本文发现,对比学习可以为预先训练的模型产生更好的句子嵌入,但也容易受到后门攻击。我们提出了第一个后门攻击框架BadCSE,用于监督和无监督学习设置下的最先进的句子嵌入。该攻击操纵正和负对的构造,使得后门样本具有与目标样本相似的嵌入(有针对性的攻击)或其干净版本的负嵌入(非有针对性的攻击)。通过在句子嵌入中注入后门,BadCSE抵抗下游微调。我们在STS任务和其他下游任务上评估BadCSE。有监督的非目标攻击获得了194.86%的性能下降,而目标攻击将后门样本映射到目标嵌入的成功率为97.70%,同时保持模型效用。

英文摘要:

This paper finds that contrastive learning can produce superior sentence embeddings for pre-trained models but is also vulnerable to backdoor attacks. We present the first backdoor attack framework, BadCSE, for state-of-the-art sentence embeddings under supervised and unsupervised learning settings. The attack manipulates the construction of positive and negative pairs so that the backdoored samples have a similar embedding with the target sample (targeted attack) or the negative embedding of its clean version (non-targeted attack). By injecting the backdoor in sentence embeddings, BadCSE is resistant against downstream fine-tuning. We evaluate BadCSE on both STS tasks and other downstream tasks. The supervised non-targeted attack obtains a performance degradation of 194.86%, and the targeted attack maps the backdoored samples to the target embedding with a 97.70% success rate while maintaining the model utility.

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

↑