arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.10341cs.CL
收藏

CoCo:在数据限制下基于对比学习的连贯性增强机器生成文本检测

CoCo: Coherence-Enhanced Machine-Generated Text Detection Under Data Limitation With Contrastive Learning

Queen Mary University of London(伦敦玛丽女王大学);Xi’an Jiaotong University(西安交通大学)

Xiaoming Liu, Zhaohan Zhang, Yichen Wang, Hang Pu, Yu Lan, Chao Shen

AI总结:

提出基于连贯性的对比学习模型CoCo,通过将图形式连贯性信息编码至文本表示并改进对比损失,在低资源场景下有效检测机器生成文本,显著优于现有方法。

摘要:

机器生成文本(MGT)检测是一项将MGT与人类撰写文本(HWT)区分开来的任务,在防止近期擅长模仿人类写作风格的文本生成模型被滥用方面发挥着至关重要的作用。最新提出的检测器通常将粗略的文本序列作为输入,并使用标准交叉熵损失微调预训练模型。然而,这些方法未能考虑文本的语言结构。此外,考虑到在线文本数据的巨大数量,它们缺乏处理在实践中经常发生的低资源问题的能力。在本文中,我们提出了一种名为CoCo的基于连贯性的对比学习模型,用于在低资源场景下检测可能的MGT。为了利用语言特征,我们将图形式的连贯性信息编码到文本表示中。为了应对低数据资源的挑战,我们采用了对比学习框架,并提出了一种改进的对比损失,以防止简单样本带来的性能下降。在两个公开数据集和两个自构建数据集上的实验结果证明,我们的方法显著优于最先进的方法。此外,在实验中我们惊讶地发现,源自最新语言模型的MGT可能比来自以往模型的MGT更容易被检测到。我们对这一反直觉现象提出了一些初步解释。所有代码和数据集均已开源。

英文摘要:

Machine-Generated Text (MGT) detection, a task that discriminates MGT from Human-Written Text (HWT), plays a crucial role in preventing misuse of text generative models, which excel in mimicking human writing style recently. Latest proposed detectors usually take coarse text sequences as input and fine-tune pretrained models with standard cross-entropy loss. However, these methods fail to consider the linguistic structure of texts. Moreover, they lack the ability to handle the low-resource problem which could often happen in practice considering the enormous amount of textual data online. In this paper, we present a coherence-based contrastive learning model named CoCo to detect the possible MGT under low-resource scenario. To exploit the linguistic feature, we encode coherence information in form of graph into text representation. To tackle the challenges of low data resource, we employ a contrastive learning framework and propose an improved contrastive loss for preventing performance degradation brought by simple samples. The experiment results on two public datasets and two self-constructed datasets prove our approach outperforms the state-of-art methods significantly. Also, we surprisingly find that MGTs originated from up-to-date language models could be easier to detect than these from previous models, in our experiments. And we propose some preliminary explanations for this counter-intuitive phenomena. All the codes and datasets are open-sourced.

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

↑