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
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 changed | Where | Measured | Effect |
|---|---|---|---|
| adversarial training with DFS-reconstructed samples | CodeT5 · CodeTrans Java<->C# (avg) | BLEU: 8.70 -> 46.94 | Improved |
| adversarial training with DFS-reconstructed samples | CodeT5 · CodeTrans Java<->C# (avg) | EM: 0.75 -> 38.10 | Improved |
| adversarial training with DFS-reconstructed samples | UniXcoder · BigCloneBench clone detection | F1: 82.10 -> 65.28 | Hurt |
| adversarial training with DFS-reconstructed samples | CodeT5 · Devign defect detection | accuracy: 56.88 -> 54.80 | Hurt |
| adversarial training with DFS-reconstructed samples | CodeT5 · CodeSearchNet summarization (overall) | BLEU: 8.90 -> 17.88 | Improved |
| adversarial training with BFS-reconstructed samples | CodeT5 · CodeTrans Java<->C# (avg) | BLEU: 11.94 -> 34.94 | Improved |
| adversarial training with signature-attack samples | CodeT5 · CodeTrans Java<->C# (avg) | BLEU: 78.08 -> 82.12 | Improved |
| apply DFS/BFS reconstruction attack | CodeT5 · CodeTrans Java<->C# (avg) | EM: 66.45 -> 0.75 | Hurt |
| apply subtree/signature attacks instead of reconstruction attacks | four CodePTMs · clone and defect detection | F1 / accuracy: CodeT5 clone F1 95.00 -> 95.29 (subtree), 95.10 (signature) | No clear effect |
| train on BFS-reconstructed samples, test on DFS | CodeT5 · BigCloneBench clone detection | F1: 94.56 (DFS->BFS), 93.45 (BFS->DFS) | Improved |
| train on BFS-reconstructed samples, test on DFS | UniXcoder · BigCloneBench clone detection | F1: 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 detection | BLEU / accuracy | Improved |
Closest papers by meaning
- Adversarial Robustness for Code (ICML 2020 · similarity 0.93)
- CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Models (AAAI 2023 · similarity 0.91)
- CodeFort: Robust Training for Code Generation Models (EMNLP 2024 · similarity 0.90)
- Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuning (CVPR 2020 · similarity 0.88)
- GREAT Score: Global Robustness Evaluation of Adversarial Perturbation using Generative Models (NeurIPS 2024 · similarity 0.87)
- On the Scalability of Certified Adversarial Robustness with Generated Data (NeurIPS 2024 · similarity 0.87)
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.
