Skip to content

Evaluating and Improving the Syntactic Adversarial Robustness of Code Translation Pre-trained ModelsAssessing and Improving Syntactic Adversarial Robustness of Pre-trained Models for Code Translation

arXiv· arXiv:2310.18587· Guang Yang, Yu Zhou, Xiangyu Zhang, Xiang Chen, Tingting Han, Taolue Chen·Indexed by this site · 25 days ago· Originally publishedAttacks
AI summary

The researchers propose the CoTR method to evaluate and improve the syntactic adversarial robustness of pre-trained models in code translation. CoTR-A generates adversarial examples by transforming programs, significantly degrading the performance of existing pre-trained models (including large language models). CoTR-D combines semantic-distance-based sampling data augmentation with adversarial training; evaluated on a real Java-to-Python dataset using the Pass@1 metric, it effectively improves model robustness and generalization.

Read originalarxiv.org