AI Paper Atlas

Research map / Adversarial robustness and security / Certified and empirical robustness

Evaluating and Enhancing the Robustness of Code Pre-trained Models through Structure-Aware Adversarial Samples Generation

Nuo Chen, Qiushi Sun, Jianing Wang, Ming Gao, Xiaoli Li, Xiang Li

EMNLP 2023Adversarial robustness and security › Certified and empirical robustnessapproach: Robustness-accuracy trade-off analysis17 citations (OpenAlex)

East China Normal University · National University of Singapore · A*STAR

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
7improved
1no clear effect
3hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
adversarial training with DFS-reconstructed samplesCodeT5 · CodeTrans Java<->C# (avg)BLEU: 8.70 -> 46.94Improved
adversarial training with DFS-reconstructed samplesCodeT5 · CodeTrans Java<->C# (avg)EM: 0.75 -> 38.10Improved
adversarial training with DFS-reconstructed samplesUniXcoder · BigCloneBench clone detectionF1: 82.10 -> 65.28Hurt
adversarial training with DFS-reconstructed samplesCodeT5 · Devign defect detectionaccuracy: 56.88 -> 54.80Hurt
adversarial training with DFS-reconstructed samplesCodeT5 · CodeSearchNet summarization (overall)BLEU: 8.90 -> 17.88Improved
adversarial training with BFS-reconstructed samplesCodeT5 · CodeTrans Java<->C# (avg)BLEU: 11.94 -> 34.94Improved
adversarial training with signature-attack samplesCodeT5 · CodeTrans Java<->C# (avg)BLEU: 78.08 -> 82.12Improved
apply DFS/BFS reconstruction attackCodeT5 · CodeTrans Java<->C# (avg)EM: 66.45 -> 0.75Hurt
apply subtree/signature attacks instead of reconstruction attacksfour CodePTMs · clone and defect detectionF1 / accuracy: CodeT5 clone F1 95.00 -> 95.29 (subtree), 95.10 (signature)No clear effect
train on BFS-reconstructed samples, test on DFSCodeT5 · BigCloneBench clone detectionF1: 94.56 (DFS->BFS), 93.45 (BFS->DFS)Improved
train on BFS-reconstructed samples, test on DFSUniXcoder · BigCloneBench clone detectionF1: 80.99 (BFS->DFS), 88.86 (DFS->BFS)Mixed
increase proportion of adversarial training data (40% to 100%) (ablation)CodeT5 and UniXcoder · code summarization (Ruby) and defect detectionBLEU / accuracyImproved

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy