arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20964cs.CLcs.AIcs.LG
收藏

DeTeCtive:通过多层级对比学习检测 AI 生成文本

DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning

ByteDance(字节跳动);University of Chinese Academy of Sciences(中国科学院大学)

Xun Guo, Shan Zhang, Yongxin He, Ting Zhang, Wanquan Feng, Haibin Huang, Chongyang Ma

AI总结:

针对 AI 生成文本检测泛化不足的问题,提出 DeTeCtive 多层级对比学习框架,结合多任务辅助与稠密检索,显著提升多编码器的 OOD 零样本检测性能。

摘要:

当前用于检测 AI 生成文本的技术在很大程度上局限于人工特征构造和监督式二分类范式。这些方法通常会导致性能瓶颈和不尽如人意的泛化能力。因此,这些方法往往不适用于分布外(OOD)数据以及新出现的大型语言模型(LLM)。本文重新审视了 AI 生成文本检测任务。我们认为,完成该任务的关键在于区分不同作者的写作风格,而不是简单地将文本分类为人类撰写或 AI 生成。为此,我们提出了 DeTeCtive,这是一个多任务辅助的多层级对比学习框架。DeTeCtive 旨在促进对不同写作风格的学习,并结合用于 AI 生成文本检测的稠密信息检索流水线。我们的方法兼容一系列文本编码器。大量实验表明,在多个基准测试中,我们的方法增强了各种文本编码器检测 AI 生成文本的能力,并取得了最先进的结果。值得注意的是,在 OOD 零样本评估中,我们的方法大幅优于现有方法。此外,我们发现本方法对 OOD 数据具备免训练增量适应(TFIA)能力,进一步提升了其在 OOD 检测场景中的有效性。我们将开源代码和模型,希望本工作能激发 AI 生成文本检测领域的新思路,保障 LLM 的安全应用并提升合规性。代码可在 https://github.com/heyongxin233/DeTeCtive 获取。

英文摘要:

Current techniques for detecting AI-generated text are largely confined to manual feature crafting and supervised binary classification paradigms. These methodologies typically lead to performance bottlenecks and unsatisfactory generalizability. Consequently, these methods are often inapplicable for out-of-distribution (OOD) data and newly emerged large language models (LLMs). In this paper, we revisit the task of AI-generated text detection. We argue that the key to accomplishing this task lies in distinguishing writing styles of different authors, rather than simply classifying the text into human-written or AI-generated text. To this end, we propose DeTeCtive, a multi-task auxiliary, multi-level contrastive learning framework. DeTeCtive is designed to facilitate the learning of distinct writing styles, combined with a dense information retrieval pipeline for AI-generated text detection. Our method is compatible with a range of text encoders. Extensive experiments demonstrate that our method enhances the ability of various text encoders in detecting AI-generated text across multiple benchmarks and achieves state-of-the-art results. Notably, in OOD zero-shot evaluation, our method outperforms existing approaches by a large margin. Moreover, we find our method boasts a Training-Free Incremental Adaptation (TFIA) capability towards OOD data, further enhancing its efficacy in OOD detection scenarios. We will open-source our code and models in hopes that our work will spark new thoughts in the field of AI-generated text detection, ensuring safe application of LLMs and enhancing compliance. Our code is available at https://github.com/heyongxin233/DeTeCtive.

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

↑