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
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.