一句话:首次系统评测 13 个 AIGC 检测器在 223 万条代码相关内容上的表现,发现其效果弱于自然语言且泛化困难。
论文针对 AIGC(尤其大语言模型)生成代码内容带来的学术诚信、Stack Overflow 问答等滥用风险展开实证研究。作者选取 GPT-3.5、WizardCoder 与 CodeLlama 三个先进模型,构建覆盖问答(15 万)、代码摘要(100 万)与代码生成(110 万)共 223 万条代码相关内容的综合数据集,并对 6 个商业与 7 个开源共 13 个 AIGC 检测器进行评测。结果显示:检测器在代码相关数据上的表现普遍弱于自然语言数据;微调可提升检测性能,尤其在同一领域内容上有效,但跨领域泛化仍是挑战。
Artificial Intelligence Generated Content (AIGC) has garnered considerable attention for its impressive performance, with Large Language Models (LLMs), like ChatGPT, emerging as a leading AIGC model that produces high-quality responses across various applications, including software development and maintenance. Despite its potential, the misuse of LLMs, especially in security and safety-critical domains, such as academic integrity and answering questions on Stack Overflow, poses significant concerns. Numerous AIGC detectors have been developed and evaluated on natural language data. However, their performance on code-related content generated by LLMs remains unexplored.To fill this gap, in this paper, we present an empirical study evaluating existing AIGC detectors in the software domain. We select three state-of-the-art LLMs, i.e., GPT-3.5, WizardCoder and CodeLlama, for machine-content generation. We further created a comprehensive dataset including 2.23M samples comprising code-related content for each model, encompassing popular software activities like Q&A (150K), code summarization (1M), and code generation (1.1M). We evaluated thirteen AIGC detectors, comprising six commercial and seven open-source solutions, assessing their performance on this dataset. Our results indicate that AIGC detectors perform less on code-related data than natural language data. Fine-tuning can enhance detector performance, especially for content within the same domain; but generalization remains a challenge.CCS CONCEPTS• General and reference → Empirical studies; • Security and privacy → Social aspects of security and privacy; • Computing methodologies → Natural language generation.