Pith. sign in

REVIEW 2 cited by

Defending Code Language Models against Backdoor Attacks with Deceptive Cross-Entropy Loss

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2407.08956 v3 pith:66TJJXG3 submitted 2024-07-12 cs.CR cs.SE

classification cs.CRcs.SE
keywords backdoorattacksclmscross-entropycodedeceptiveeffectivelanguage
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Code Language Models (CLMs), particularly those leveraging deep learning, have achieved significant success in code intelligence domain. However, the issue of security, particularly backdoor attacks, is often overlooked in this process. The previous research has focused on designing backdoor attacks for CLMs, but effective defenses have not been adequately addressed. In particular, existing defense methods from natural language processing, when directly applied to CLMs, are not effective enough and lack generality, working well in some models and scenarios but failing in others, thus fall short in consistently mitigating backdoor attacks. To bridge this gap, we first confirm the phenomenon of "early learning" as a general occurrence during the training of CLMs. This phenomenon refers to that a model initially focuses on the main features of training data but may become more sensitive to backdoor triggers over time, leading to overfitting and susceptibility to backdoor attacks. We then analyze that overfitting to backdoor triggers results from the use of the cross-entropy loss function, where the unboundedness of cross-entropy leads the model to increasingly concentrate on the features of the poisoned data. Based on this insight, we propose a general and effective loss function DeCE (Deceptive Cross-Entropy) by blending deceptive distributions and applying label smoothing to limit the gradient to bounded, which prevents the model from overfitting to backdoor triggers and then enhances the security of CLMs against backdoor attacks.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Gracefully Filtering Backdoor Samples for Generative Large Language Models without Retraining

    cs.CL 2024-12 conditional novelty 6.0 of 10

    Poisoned training data for generative LLMs can be filtered by clustering DCT-transformed per-sample gradients, eliminating backdoor attacks without extra retraining.

  2. GUARD:Dual-Agent based Backdoor Defense on Chain-of-Thought in Neural Code Generation

    cs.SE 2025-05 conditional novelty 4.0 of 10

    GUARD pairs a DeepSeek-R1 judge with a GPT-3.5 repair module to remove backdoored chain-of-thought steps, reducing attack success under 4-6% poisoning.

Pith tools