AI Paper Atlas

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

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

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 changedWhereMeasuredEffect
add robust training (CodeFort) vs data augmentationCodeGen-350M · ReCode overall avgRP_s@k: 10.64 -> 12.51Improved
add masking of unnatural perturbed tokens to data augmentation (ablation)CodeGen-350M · ReCode overall avgRP_s@k / Drop%: 10.64 -> 11.10; 55.85 -> 53.30Improved
replace data augmentation with batch augmentation at equal perturbed fraction (20%) (ablation)CodeGen-350M · ReCode overall avgRP_s@k: 10.48 -> 11.01Improved
add ALP to masked batch augmentation (ablation)CodeGen-350M · ReCode overall avgRP_s@k: 11.01 -> 11.48Improved
add ALPD to masked batch augmentation (ablation)CodeGen-350M · ReCode context-sensitiveRP_s@k: 10.75 -> 10.94Improved
add ContraSeq to baseline fine-tuning (ablation)CodeGen-350M · ReCode overall avgRP_s@k: 7.52 -> 7.79No clear effect
add ContraSeq to masked batch aug + ALP (ablation)CodeGen-350M · ReCode overall avgRP_s@k: 11.48 -> 11.51No clear effect
add ContraToken to masked batch aug + ALP (context-free setting) (ablation)CodeGen-350M · ReCode overall avgRP_s@k: 11.48 -> 11.18; Drop% 53.47 -> 52.47Mixed
add ContraToken in context-sensitive setting (ablation)CodeGen-350M · ReCode context-sensitiveRP_s@k: 10.80 -> 10.42Hurt
add ContraName to masked batch augmentation (ablation)CodeGen-350M · ReCode context-sensitiveRP_s@k: 10.75 -> 10.87Improved
fine-tune on unperturbed Stack data without robust training (ablation)CodeGen-6B · ReCode code-syntaxRP_s@k: 2.20 -> 2.58No clear effect
CodeFort vs L_CLM on function-name perturbationsCodeGen-6B and 2B · ReCode function-nameRP_s@k: 22.18 -> 22.53 (6B)No clear effect

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