arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.16041cs.CLcs.LG
收藏

通过面向最大均值差异的多种群感知优化检测机器生成文本

Detecting Machine-Generated Texts by Multi-Population Aware Optimization for Maximum Mean Discrepancy

South China University of Technology(华南理工大学);Pazhou Laboratory(琶洲实验室);The University of Adelaide(阿德莱德大学);Hong Kong Baptist University(香港浸会大学)

Shuhai Zhang, Yiliao Song, Jiahao Yang, Yuanqing Li, Bo Han, Mingkui Tan

AI总结:

针对多 LLM 来源导致 MMD 方差增大、机器文本检测不稳的问题,本文提出多种群感知优化方法 MMD-MP,并实现段落级与句子级检测,实验显示其性能优越。

摘要:

诸如 ChatGPT 之类的大型语言模型(LLM)在生成类人文本方面表现出卓越性能。然而,机器生成文本(MGT)可能带来严重风险,例如抄袭问题、误导性信息或幻觉问题。因此,在许多场景下检测 MGT 非常紧迫且重要。遗憾的是,区分 MGT 与人类撰写文本颇具挑战,因为由于 LLM 的卓越性能,二者之间的分布差异通常非常细微。本文中,我们试图利用最大均值差异(MMD)来解决该问题,因为 MMD 能够很好地识别分布差异。然而,由于不同 LLM 产生的 MGT 可能包含多个文本种群,直接使用多样化 MGT 并基于 MMD 训练检测器会导致 MMD 方差显著增加。这将严重削弱 MMD 衡量两个样本之间差异的能力。为解决这一问题,我们提出了一种新颖的面向 MMD 的多种群感知优化方法 MMD-MP,它能够避免方差增加,从而提升衡量分布差异的稳定性。依托 MMD-MP,我们分别开发了两种用于基于段落和基于句子检测的方法。在 GPT2、ChatGPT 等多种 LLM 上进行的大量实验表明,我们的 MMD-MP 具有优越的检测性能。源代码可在 https://github.com/ZSHsh98/MMD-MP 获取。

英文摘要:

Large language models (LLMs) such as ChatGPT have exhibited remarkable performance in generating human-like texts. However, machine-generated texts (MGTs) may carry critical risks, such as plagiarism issues, misleading information, or hallucination issues. Therefore, it is very urgent and important to detect MGTs in many situations. Unfortunately, it is challenging to distinguish MGTs and human-written texts because the distributional discrepancy between them is often very subtle due to the remarkable performance of LLMs. In this paper, we seek to exploit \textit{maximum mean discrepancy} (MMD) to address this issue in the sense that MMD can well identify distributional discrepancies. However, directly training a detector with MMD using diverse MGTs will incur a significantly increased variance of MMD since MGTs may contain \textit{multiple text populations} due to various LLMs. This will severely impair MMD's ability to measure the difference between two samples. To tackle this, we propose a novel \textit{multi-population} aware optimization method for MMD called MMD-MP, which can \textit{avoid variance increases} and thus improve the stability to measure the distributional discrepancy. Relying on MMD-MP, we develop two methods for paragraph-based and sentence-based detection, respectively. Extensive experiments on various LLMs, \eg, GPT2 and ChatGPT, show superior detection performance of our MMD-MP. The source code is available at \url{https://github.com/ZSHsh98/MMD-MP}.

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

↑