SOGPTSpotter:检测Stack Overflow上的ChatGPT生成答案
SOGPTSpotter: Detecting ChatGPT-Generated Answers on Stack Overflow
AI总结:
SOGPTSpotter利用Siamese神经网络和BigBird模型,通过三元组损失检测Stack Overflow上的ChatGPT生成答案,优于多种基线方法,具有较高的识别准确性和实用性。
摘要:
Stack Overflow是一个流行的问答平台,用户提出技术问题并从专家社区获得答案。最近,ChatGPT生成的答案数量显著增加,这可能导致不正确和不可靠的信息被发布在该网站上。尽管Stack Overflow已禁止此类AI生成内容,但检测帖子是否由ChatGPT生成仍是一项具有挑战性的任务。我们介绍了一种新的方法,SOGPTSpotter,该方法利用Siamese神经网络,结合BigBird模型和三元组损失,以检测Stack Overflow上的ChatGPT生成答案。我们使用人类答案、参考答案和ChatGPT答案的三元组。我们的实证评估表明,我们的方法在识别ChatGPT合成的Stack Overflow回答方面优于已建立的基线方法,如GPTZero、DetectGPT、GLTR、BERT、RoBERTa和GPT-2。我们还进行了消融研究以展示我们模型的有效性。此外,还进行了额外的实验,以评估各种因素,包括文本长度的影响、模型对对抗攻击的鲁棒性以及在不同领域和大型语言模型上的泛化能力。我们还进行了一项在Stack Overflow上的现实案例研究。使用我们工具的推荐,Stack Overflow管理员能够识别并删除疑似由ChatGPT生成的答案,展示了我们方法的实用性和有效性。
英文摘要:
Stack Overflow is a popular Q&A platform where users ask technical questions and receive answers from a community of experts. Recently, there has been a significant increase in the number of answers generated by ChatGPT, which can lead to incorrect and unreliable information being posted on the site. While Stack Overflow has banned such AI-generated content, detecting whether a post is ChatGPT-generated remains a challenging task. We introduce a novel approach, SOGPTSpotter, that employs Siamese Neural Networks, leveraging the BigBird model and the Triplet loss, to detect ChatGPT-generated answers on Stack Overflow. We use triplets of human answers, reference answers, and ChatGPT answers. Our empirical evaluation reveals that our approach outperforms well-established baselines like GPTZero, DetectGPT, GLTR, BERT, RoBERTa, and GPT-2 in identifying ChatGPT-synthesized Stack Overflow responses. We also conducted an ablation study to show the effectiveness of our model. Additional experiments were conducted to assess various factors, including the impact of text length, the model's robustness against adversarial attacks, and its generalization capabilities across different domains and large language models. We also conducted a real-world case study on Stack Overflow. Using our tool's recommendations, Stack Overflow moderators were able to identify and take down ChatGPT-suspected generated answers, demonstrating the practical applicability and effectiveness of our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。