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

改写能规避AI生成文本的检测器,但检索是一种有效的防御手段

Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Google Research(谷歌研究院);Google(谷歌);Google DeepMind(谷歌DeepMind)

Kalpesh Krishna, Yixiao Song, Marzena Karpinska, John Wieting, Mohit Iyyer

AI总结:

针对AI生成文本检测器易受改写攻击规避的问题,构建11B参数改写模型DIPPER进行压力测试,并提出基于检索语义相似生成内容的防御方法,有效检测80%-97%的改写文本。

摘要:

大型语言模型恶意使用的增加(如虚假内容创作和学术剽窃)推动了识别AI生成文本方法的发展,包括基于水印或异常检测的方法。然而,这些检测算法对AI生成文本改写后的鲁棒性仍不明确。为了对这些检测器进行压力测试,我们构建了一个11B参数的改写生成模型(DIPPER),它可以对段落进行改写,根据上下文进行条件化,并控制词汇多样性和内容重排。使用DIPPER对三个大型语言模型(包括GPT3.5-davinci-003)生成的文本进行改写,成功规避了多个检测器,包括水印、GPTZero、DetectGPT和OpenAI的文本分类器。例如,DIPPER将DetectGPT的检测准确率从70.3%降至4.6%(在1%的恒定误报率下),且未明显改变输入语义。为了提高AI生成文本检测对改写攻击的鲁棒性,我们引入了一种简单的防御方法,该方法依赖于检索语义相似的生成内容,且必须由语言模型API提供商维护。给定候选文本,我们的算法在API先前生成的序列数据库中搜索,寻找在特定阈值内匹配候选文本的序列。我们使用来自微调T5-XXL模型的1500万条生成内容的数据库实证验证了我们的防御方法,发现它能在不同设置下检测出80%至97%的改写生成内容,同时仅将1%的人类撰写序列分类为AI生成。我们开源了模型、代码和数据。

英文摘要:

The rise in malicious usage of large language models, such as fake content creation and academic plagiarism, has motivated the development of approaches that identify AI-generated text, including those based on watermarking or outlier detection. However, the robustness of these detection algorithms to paraphrases of AI-generated text remains unclear. To stress test these detectors, we build a 11B parameter paraphrase generation model (DIPPER) that can paraphrase paragraphs, condition on surrounding context, and control lexical diversity and content reordering. Using DIPPER to paraphrase text generated by three large language models (including GPT3.5-davinci-003) successfully evades several detectors, including watermarking, GPTZero, DetectGPT, and OpenAI's text classifier. For example, DIPPER drops detection accuracy of DetectGPT from 70.3% to 4.6% (at a constant false positive rate of 1%), without appreciably modifying the input semantics. To increase the robustness of AI-generated text detection to paraphrase attacks, we introduce a simple defense that relies on retrieving semantically-similar generations and must be maintained by a language model API provider. Given a candidate text, our algorithm searches a database of sequences previously generated by the API, looking for sequences that match the candidate text within a certain threshold. We empirically verify our defense using a database of 15M generations from a fine-tuned T5-XXL model and find that it can detect 80% to 97% of paraphrased generations across different settings while only classifying 1% of human-written sequences as AI-generated. We open-source our models, code and data.

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

↑