Skip to content

DeCE: Defending Code Language Models Against Backdoor Attacks with Deceptive Cross-Entropy LossDefending Code Language Models against Backdoor Attacks with Deceptive Cross-Entropy Loss

arXiv· arXiv:2407.08956· ACM Transactions on Software Engineering and Methodology· Guang Yang, Yu Zhou, Xiang Chen, Xiangyu Zhang, Terry Yue Zhuo, David Lo, Taolue Chen·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The paper proposes the DeCE loss function, which defends against backdoor attacks by mixing deceptive distributions and applying label smoothing to bound gradients, preventing code language models (CLMs) from overfitting to backdoor triggers. The authors confirm that "early learning" is prevalent in CLM training, that is, the model first learns primary features and becomes increasingly sensitive to backdoor triggers as training proceeds, and they attribute this overfitting to the unboundedness of the cross-entropy loss. The paper points out that existing NLP defenses are insufficient and lack generality when directly applied to CLMs.

Read originalACM Transactions on Software Engineering and Methodology