Skip to main content
QUICK REVIEW

[论文解读] Multiscale Positive-Unlabeled Detection of AI-Generated Texts

Yuchuan Tian, Hanting Chen|arXiv (Cornell University)|May 29, 2023
Natural Language Processing TechniquesComputer Science被引用 13
一句话总结

本文提出了一种多尺度正例-未标记学习(MPU)训练框架,用于在短文本和长文本中检测AI生成的文本,使用长度敏感的 PU 损失和文本多尺度模块来提升短文本检测,同时不牺牲长文本的性能。

ABSTRACT

Recent releases of Large Language Models (LLMs), e.g. ChatGPT, are astonishing at generating human-like texts, but they may impact the authenticity of texts. Previous works proposed methods to detect these AI-generated texts, including simple ML classifiers, pretrained-model-based zero-shot methods, and finetuned language classification models. However, mainstream detectors always fail on short texts, like SMSes, Tweets, and reviews. In this paper, a Multiscale Positive-Unlabeled (MPU) training framework is proposed to address the difficulty of short-text detection without sacrificing long-texts. Firstly, we acknowledge the human-resemblance property of short machine texts, and rephrase AI text detection as a partial Positive-Unlabeled (PU) problem by regarding these short machine texts as partially ``unlabeled". Then in this PU context, we propose the length-sensitive Multiscale PU Loss, where a recurrent model in abstraction is used to estimate positive priors of scale-variant corpora. Additionally, we introduce a Text Multiscaling module to enrich training corpora. Experiments show that our MPU method augments detection performance on long AI-generated texts, and significantly improves short-text detection of language model detectors. Language Models trained with MPU could outcompete existing detectors on various short-text and long-text detection benchmarks. The codes are available at https://github.com/mindspore-lab/mindone/tree/master/examples/detect_chatgpt and https://github.com/YuchuanTian/AIGC_text_detector.

研究动机与目标

  • 推动在不同长度范围内检测AI生成文本的研究,特别关注检测更困难的短文本。
  • 将AI文本检测重新表述为部分正例-未标记(PU)问题,以处理未标记的短文本机器文本。
  • 开发一种长度感知的多尺度PU损失,根据文本长度调整正先验。
  • 引入文本多尺度模块,通过长度多样化训练语料。
  • 证明MPU在提升短文本检测的同时,能够保持或提升长文本的性能。

提出的方法

  • 模型训练采用部分PU框架,在PU损失计算中将短文本机器文本视为未标记。
  • 引入一个递归抽象判别器,用以估计不同长度文本的长度相关正先验(式5–9)。
  • 定义多尺度PU损失(式10),它使用跨长度的先验向量来对正样本损失和未标记损失进行加权。
  • 集成文本多尺度模块,随机删除句子以创建多尺度训练文本(式12–14)。
  • 在最终目标中将PN损失与MPU损失结合(式11)。
  • 提供消融实验以评估文本多尺度和MPU损失组件的影响(表6–11)。

实验结果

研究问题

  • RQ1AI生成文本检测是否可以被建模为一个部分PU问题,以处理未标记的短文本?
  • RQ2长度感知的PU损失是否在不降低长文本性能的前提下改善对多种文本长度的检测?
  • RQ3文本多尺度在完整文本与短文本间检测性能的影响如何?
  • RQ4在短文本基准(如 HC3-English-Sent、TweepFake)和长文本基准上,搭载MPU的检测器与强基线相比如何?

主要发现

  • RoBERTa-MPU 在 HC3-En-Full 上达到 98.40 ± 0.31,在 HC3-En-Sent 上达到 85.31 ± 1.80,超越了若干基线。
  • RoBERTa-MPU 在 HC3-Ch-Sent(中文)上也达到 89.37 ± 1.94,超越了中文基线。
  • 在 TweepFake 上,RoBERTa-MPU 达到 91.4 的准确率,超越 RoBERTa-Finetuned 和其他短文本检测基线。
  • 文本多尺度加上MPU损失显著提升句子级检测,同时MPU损失有助于缓解全文本性能下降。
  • 多尺度PU损失在 HC3-English(全文:98.40 ± 0.31 对 97.05 ± 2.15;句子:85.31 ± 1.80 对 83.53 ± 3.14)上优于普通PU损失。
  • 消融实验显示,令牌正信号的p取0.2–0.25,句子级p_sent约0.25,最终损失平衡的gamma约0.4时,整体性能最好。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。