arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.00838cs.CLcs.AIcs.LG
收藏

文体学识别短样本中的人类与LLM生成文本

Stylometry recognizes human and LLM-generated texts in short samples

Sano -- Centre for Computational Medicine(Sano计算医学中心);Faculty of Physics, Astronomy and Applied Computer Science(物理学、天文学与应用计算机科学学院);Applied Computer Science, Jagiellonian University(应用计算机科学,雅盖隆大学);Mark Kac Centre for Complex Systems Research(Mark Kac复杂系统研究中心)

Karol Przystalski, Jan K. Argasiński, Iwona Grabska-Gradzińska, Jeremi K. Ochab

AI总结:

本文构建含多类LLM、摘要与改写文本的Wikipedia短文本基准,利用StyloMetrix和n-gram文体特征训练树模型,实现对人类与机器文本的高效识别与可解释分析。

摘要:

本文探讨将文体学作为区分大型语言模型(LLM)与人类所创文本的方法,以解决模型归属、知识产权和合乎伦理的AI使用问题。文体学已被广泛用于刻画文本风格并确定作者身份。通过将其应用于LLM生成文本,我们识别出这些文本涌现出的写作模式。本文构建了一个基于Wikipedia的基准数据集,包含:(a) 人类撰写的术语摘要;(b) 完全由LLM生成的文本(GPT-3.5/4、LLaMa 2/3、Orca和Falcon);(c) 经多种文本摘要方法处理的文本(T5、BART、Gensim和Sumy);以及(d) 改写方法处理的文本(Dipper、T5)。这些长度为10句的文本由基于树的模型(决策树和LightGBM)分类,所用特征包括人工设计的文体特征(StyloMetrix)和基于n-gram的特征(我们自己的流水线),这些特征编码词汇、语法、句法和标点模式。交叉验证结果在7类多分类场景中达到最高0.87的Matthews相关系数,二分类准确率介于0.79与1之间;其中Wikipedia与GPT-4的具体示例在平衡数据集上准确率最高达0.98。Shapley Additive Explanations指出了百科全书文本类型的特征、个别被过度使用的词语,以及LLM相对于人类撰写文本更高的语法标准化程度。这些结果表明——在LLM日益复杂的背景下至关重要——至少对于定义明确的文本类型,区分机器生成文本与人类生成文本是可能的。

英文摘要:

The paper explores stylometry as a method to distinguish between texts created by Large Language Models (LLMs) and humans, addressing issues of model attribution, intellectual property, and ethical AI use. Stylometry has been used extensively to characterise the style and attribute authorship of texts. By applying it to LLM-generated texts, we identify their emergent writing patterns. The paper involves creating a benchmark dataset based on Wikipedia, with (a) human-written term summaries, (b) texts generated purely by LLMs (GPT-3.5/4, LLaMa 2/3, Orca, and Falcon), (c) processed through multiple text summarisation methods (T5, BART, Gensim, and Sumy), and (d) rephrasing methods (Dipper, T5). The 10-sentence long texts were classified by tree-based models (decision trees and LightGBM) using human-designed (StyloMetrix) and n-gram-based (our own pipeline) stylometric features that encode lexical, grammatical, syntactic, and punctuation patterns. The cross-validated results reached a performance of up to .87 Matthews correlation coefficient in the multiclass scenario with 7 classes, and accuracy between .79 and 1. in binary classification, with the particular example of Wikipedia and GPT-4 reaching up to .98 accuracy on a balanced dataset. Shapley Additive Explanations pinpointed features characteristic of the encyclopaedic text type, individual overused words, as well as a greater grammatical standardisation of LLMs with respect to human-written texts. These results show -- crucially, in the context of the increasingly sophisticated LLMs -- that it is possible to distinguish machine- from human-generated texts at least for a well-defined text type.

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

↑