先模仿后检测:对齐机器风格偏好以检测机器修改文本
Imitate Before Detect: Aligning Machine Stylistic Preference for Machine-Revised Text Detection
AI总结:
针对机器修改文本检测难题,提出“先模仿后检测”框架ImBD,通过风格偏好优化对齐评分模型并计算风格条件概率曲率,有效识别隐藏的机器风格,在多场景下显著超越现有方法。
摘要:
大型语言模型(LLMs)彻底改变了文本生成,使得检测机器生成文本变得越来越具有挑战性。尽管过去的方法在检测纯机器生成文本方面取得了良好的性能,但这些检测器在区分机器修改文本(重写、扩展和润色)方面表现不佳,这类文本可能与其原始人类提示仅有微小差异。由于文本内容可能源自人类提示,检测机器修改文本通常涉及识别独特的机器风格,例如LLMs偏好的用词。然而,现有方法难以检测隐藏在人类贡献内容中的机器风格措辞。我们提出了“先模仿后检测”(ImBD)方法,该方法首先模仿机器风格的token分布,然后将待测文本的分布与机器风格分布进行比较,以确定该文本是否已被机器修改。为此,我们引入了风格偏好优化(SPO),它将一个评分LLM模型对齐到机器生成的文本风格偏好上。对齐后的评分模型随后被用于计算风格条件概率曲率(Style-CPC),量化原始文本与条件采样文本之间的对数概率差异,以实现有效检测。我们在各种场景下进行了广泛比较,涵盖六种LLMs的文本修改、四个不同的文本领域和三种机器修改类型。与现有的最先进方法相比,我们的方法在检测开源LLMs修改的文本时AUC提高了13%,在检测GPT-3.5和GPT-4o修改的文本时性能分别提高了5%和19%。值得注意的是,我们的方法仅用1000个样本和五分钟的SPO就超越了商业训练的GPT-Zero,证明了其高效性和有效性。
英文摘要:
Large Language Models (LLMs) have revolutionized text generation, making detecting machine-generated text increasingly challenging. Although past methods have achieved good performance on detecting pure machine-generated text, those detectors have poor performance on distinguishing machine-revised text (rewriting, expansion, and polishing), which can have only minor changes from its original human prompt. As the content of text may originate from human prompts, detecting machine-revised text often involves identifying distinctive machine styles, e.g., worded favored by LLMs. However, existing methods struggle to detect machine-style phrasing hidden within the content contributed by humans. We propose the "Imitate Before Detect" (ImBD) approach, which first imitates the machine-style token distribution, and then compares the distribution of the text to be tested with the machine-style distribution to determine whether the text has been machine-revised. To this end, we introduce style preference optimization (SPO), which aligns a scoring LLM model to the preference of text styles generated by machines. The aligned scoring model is then used to calculate the style-conditional probability curvature (Style-CPC), quantifying the log probability difference between the original and conditionally sampled texts for effective detection. We conduct extensive comparisons across various scenarios, encompassing text revisions by six LLMs, four distinct text domains, and three machine revision types. Compared to existing state-of-the-art methods, our method yields a 13% increase in AUC for detecting text revised by open-source LLMs, and improves performance by 5% and 19% for detecting GPT-3.5 and GPT-4o revised text, respectively. Notably, our method surpasses the commercially trained GPT-Zero with just $1,000$ samples and five minutes of SPO, demonstrating its efficiency and effectiveness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。