arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.13852cs.CLcs.LG
收藏

ChatGPT或人?检测和解释。解释机器学习模型检测短ChatGPT-generated文本的决策

ChatGPT or Human? Detect and Explain. Explaining Decisions of Machine Learning Model for Detecting Short ChatGPT-generated Text

Dalle Molle Institute for Artificial Intelligence(达勒·莫尔人工智能研究所);University of Southern Switzerland(南瑞士大学);University of Applied Sciences and Arts of Southern Switzerland(南瑞士应用科学与艺术大学);Information Systems and Networking Institute(信息系统与网络研究所)

Sandra Mitrović, Davide Andreoletti, Omran Ayoub

摘要:

ChatGPT能够对来自各个领域的不同类型的问题生成语法完美且符合人性化的回复。其用户和应用程序的数量正在以前所未有的速度增长。不幸的是,使用和滥用是齐头并进的。在本文中,我们研究是否可以有效地训练机器学习模型,以准确区分原始人类和看似人类(即ChatGPT生成)的文本,特别是当此文本很短时。此外,我们采用了一个可解释的人工智能框架来深入了解训练模型背后的推理,以区分ChatGPT生成的文本和人类生成的文本。目标是分析模型的决策,并确定是否可以识别任何特定的模式或特征。我们的研究重点是简短的在线评论,进行了两个实验,比较人类生成的文本和ChatGPT生成的文本。第一个实验涉及从自定义查询生成的ChatGPT文本,而第二个实验涉及通过重新措辞原始人类生成的评论生成的文本。我们微调了一个基于transformer的模型,并使用它来进行预测,然后使用SHAP进行解释。我们将我们的模型与基于困惑分数的方法进行比较,发现当使用重新措辞的文本时,人类和ChatGPT生成的评论之间的消歧对于ML模型来说更具挑战性。然而,我们提出的方法仍然达到了79%的准确率。使用可解释性,我们观察到ChatGPT的写作是礼貌的,没有具体的细节,使用花哨和非典型的词汇,客观的,通常它不表达感情。

英文摘要:

ChatGPT has the ability to generate grammatically flawless and seemingly-human replies to different types of questions from various domains. The number of its users and of its applications is growing at an unprecedented rate. Unfortunately, use and abuse come hand in hand. In this paper, we study whether a machine learning model can be effectively trained to accurately distinguish between original human and seemingly human (that is, ChatGPT-generated) text, especially when this text is short. Furthermore, we employ an explainable artificial intelligence framework to gain insight into the reasoning behind the model trained to differentiate between ChatGPT-generated and human-generated text. The goal is to analyze model's decisions and determine if any specific patterns or characteristics can be identified. Our study focuses on short online reviews, conducting two experiments comparing human-generated and ChatGPT-generated text. The first experiment involves ChatGPT text generated from custom queries, while the second experiment involves text generated by rephrasing original human-generated reviews. We fine-tune a Transformer-based model and use it to make predictions, which are then explained using SHAP. We compare our model with a perplexity score-based approach and find that disambiguation between human and ChatGPT-generated reviews is more challenging for the ML model when using rephrased text. However, our proposed approach still achieves an accuracy of 79%. Using explainability, we observe that ChatGPT's writing is polite, without specific details, using fancy and atypical vocabulary, impersonal, and typically it does not express feelings.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑