[论文解读] EAGLE: A Domain Generalization Framework for AI-generated Text Detection
EAGLE 是一种领域泛化框架,通过使用对比学习和领域对抗训练学习领域不变特征,从而检测来自未见过的大规模语言模型(LLMs)的AI生成文本。它仅使用较旧、较小模型的标注数据,在未见过的生成器(如 GPT-4 和 Claude)上实现了全监督检测器 95.3% 的性能。
With the advancement in capabilities of Large Language Models (LLMs), one major step in the responsible and safe use of such LLMs is to be able to detect text generated by these models. While supervised AI-generated text detectors perform well on text generated by older LLMs, with the frequent release of new LLMs, building supervised detectors for identifying text from such new models would require new labeled training data, which is infeasible in practice. In this work, we tackle this problem and propose a domain generalization framework for the detection of AI-generated text from unseen target generators. Our proposed framework, EAGLE, leverages the labeled data that is available so far from older language models and learns features invariant across these generators, in order to detect text generated by an unknown target generator. EAGLE learns such domain-invariant features by combining the representational power of self-supervised contrastive learning with domain adversarial training. Through our experiments we demonstrate how EAGLE effectively achieves impressive performance in detecting text generated by unseen target generators, including recent state-of-the-art ones such as GPT-4 and Claude, reaching detection scores of within 4.7% of a fully supervised detector.
研究动机与目标
- 解决在无需新标注数据的情况下,检测新发布、未见过的 LLM 生成文本的挑战。
- 利用来自旧的、较小的语言模型的现有标注数据,训练可泛化至新、未见过生成器的检测器。
- 学习在不同 LLM 之间不变的特征,同时对轻微的文本扰动保持鲁棒性。
- 减少对昂贵的、针对每个新兴 LLM 持续重新训练新标注数据集的依赖。
- 仅使用历史训练数据,实现对 SOTA 水平 LLM(如 GPT-4 和 Claude)的零样本检测。
提出的方法
- EAGLE 结合自监督对比学习与领域对抗训练,以在多个源 LLM 上学习领域不变的表征。
- 它使用梯度反转层对抗性地训练领域判别器,促使特征编码器将领域特定特征与任务特定特征解耦。
- 该框架使用对比损失增强特征判别能力,通过拉近正样本(原始文本和扰动文本)的距离,同时推远负样本的距离。
- 它在多个源生成器(如 GPT-2、GPT-3、XLM 等)上进行训练,以提升对未见过的目标生成器的泛化能力。
- 在检测任务上使用交叉熵损失进行微调,同时联合优化领域不变性和表征鲁棒性。
- 超参数分析表明,增加源领域数量(k=5)可提升泛化性能。
实验结果
研究问题
- RQ1检测框架是否能在不依赖这些模型标注数据的情况下泛化至未见过的 LLM?
- RQ2对比学习与领域对抗训练在学习多样化 LLM 之间不变特征方面的有效性如何?
- RQ3在旧的、较小的 LLM 上训练的检测器,能在多大程度上检测到 GPT-4 和 Claude 等 SOTA 模型生成的文本?
- RQ4源生成器的数量如何影响检测器的泛化性能?
- RQ5每个组件(对比损失、领域损失)对整体检测性能的贡献如何?
主要发现
- 在未见过的目标生成器(包括 GPT-4 和 Claude)上,EAGLE 的检测性能接近全监督检测器的 95.3%,误差仅 4.7%。
- 完整版 EAGLE 框架优于消融变体,其中对比损失与领域对抗损失均对性能有显著贡献。
- 随着源领域数量的增加,性能持续提升,峰值出现在 k=5,表明源模型的多样性可增强泛化能力。
- 消融研究证实,若移除任一损失(对比损失或领域损失),性能均出现明显下降,验证了两个组件的重要性。
- 即使 GPT-4 和 Claude 未出现在训练数据中,EAGLE 仍能有效泛化,展现出强大的零样本泛化能力。
- 该框架在多种目标生成器上保持高性能,包括架构和注意力机制各不相同的模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。