DeCE: Defending Code Language Models Against Backdoor Attacks with Deceptive Cross-Entropy LossDefending Code Language Models against Backdoor Attacks with Deceptive Cross-Entropy Loss
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.