Skip to content

CodeGPTSensor+: Detecting Slightly Modified LLM-Generated Code through Adversarial TrainingDetecting LLM-generated Code with Subtle Modification by Adversarial Training

arXiv· arXiv:2507.13123· Xin Yin, Xinrui Li, Chao Ni, Xiaodan Xu, Xiaohu Yang·Indexed by this site · 21 days ago· Originally publishedAttacks
AI summary

CodeGPTSensor+ detects slightly modified LLM-generated code through adversarial training, improving detection accuracy on the adversarial test set on the HMCorp dataset. It is an enhanced version of CodeGPTSensor that integrates the MIST module (multi-objective identifier and structure transformation), which systematically generates high-quality, representative adversarial samples. While maintaining high accuracy on the original test set, its detection accuracy on the adversarial test set is significantly improved, and its robustness is superior to CodeGPTSensor.

Read originalarxiv.org