Research map / Adversarial robustness and security / Certified and empirical robustness
CodeFort: Robust Training for Code Generation Models
Yuhao Zhang, Shiqi Wang, Haifeng Qian, Zijian Wang, Mingyue Shang, Linbo Liu, Sanjay Krishna Gouda, Baishakhi Ray, Murali Krishna Ramanathan, Xiaofei Ma, Anoop Deoras
Amazon
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
6improved
4no clear effect
1hurt
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 |
|---|---|---|---|
| add robust training (CodeFort) vs data augmentation | CodeGen-350M · ReCode overall avg | RP_s@k: 10.64 -> 12.51 | Improved |
| add masking of unnatural perturbed tokens to data augmentation (ablation) | CodeGen-350M · ReCode overall avg | RP_s@k / Drop%: 10.64 -> 11.10; 55.85 -> 53.30 | Improved |
| replace data augmentation with batch augmentation at equal perturbed fraction (20%) (ablation) | CodeGen-350M · ReCode overall avg | RP_s@k: 10.48 -> 11.01 | Improved |
| add ALP to masked batch augmentation (ablation) | CodeGen-350M · ReCode overall avg | RP_s@k: 11.01 -> 11.48 | Improved |
| add ALPD to masked batch augmentation (ablation) | CodeGen-350M · ReCode context-sensitive | RP_s@k: 10.75 -> 10.94 | Improved |
| add ContraSeq to baseline fine-tuning (ablation) | CodeGen-350M · ReCode overall avg | RP_s@k: 7.52 -> 7.79 | No clear effect |
| add ContraSeq to masked batch aug + ALP (ablation) | CodeGen-350M · ReCode overall avg | RP_s@k: 11.48 -> 11.51 | No clear effect |
| add ContraToken to masked batch aug + ALP (context-free setting) (ablation) | CodeGen-350M · ReCode overall avg | RP_s@k: 11.48 -> 11.18; Drop% 53.47 -> 52.47 | Mixed |
| add ContraToken in context-sensitive setting (ablation) | CodeGen-350M · ReCode context-sensitive | RP_s@k: 10.80 -> 10.42 | Hurt |
| add ContraName to masked batch augmentation (ablation) | CodeGen-350M · ReCode context-sensitive | RP_s@k: 10.75 -> 10.87 | Improved |
| fine-tune on unperturbed Stack data without robust training (ablation) | CodeGen-6B · ReCode code-syntax | RP_s@k: 2.20 -> 2.58 | No clear effect |
| CodeFort vs L_CLM on function-name perturbations | CodeGen-6B and 2B · ReCode function-name | RP_s@k: 22.18 -> 22.53 (6B) | No clear effect |
Closest papers by meaning
- Evaluating and Enhancing the Robustness of Code Pre-trained Models through Structure-Aware Adversarial Samples Generation (EMNLP 2023 · similarity 0.90)
- Adversarial Robustness for Code (ICML 2020 · similarity 0.88)
- On the Scalability of Certified Adversarial Robustness with Generated Data (NeurIPS 2024 · similarity 0.84)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · similarity 0.84)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.84)
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.84)
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.
