Once a Response, Always a Response: Detecting LLM-generated Text via Latent Prompt Restoration
作者: Hongrui Bao, Yubing Ren, Yanan Cao, Jinhan You, Fang Fang, Shi Wang
分类: cs.CL, cs.AI
发布日期: 2026-08-06
备注: 17 pages, 7 figures
💡 一句话要点
提出EchoPrompt以解决LLM生成文本检测问题
🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)
关键词: 大型语言模型 文本检测 潜在提示恢复 零-shot 检测器 信息安全
📋 核心要点
- 现有的零-shot 检测器主要依赖概率统计差异,未充分考虑LLMs的训练过程,导致检测鲁棒性不足。
- 本文提出的EchoPrompt通过潜在提示恢复,利用机器生成文本对上游提示的依赖性来提高检测效果。
- 实验结果显示,EchoPrompt在零-shot 检测器中表现出色,且在各种评估设置中保持了强大的鲁棒性。
📝 摘要(中文)
大型语言模型(LLMs)能够生成流畅且令人信服的文本,这带来了信息传播、教育误用和平台治理等方面的风险。因此,强有力的机器生成文本检测变得愈发必要。现有的零-shot 检测器主要依赖概率统计差异,但未能充分考虑LLMs的训练过程,导致生成机制建模不足,限制了检测的鲁棒性。为此,本文提出了EchoPrompt,一种基于潜在提示恢复的无训练检测器。其核心思想是机器生成文本通常依赖于上游提示,通过添加统一的通用前缀可以部分恢复这种隐藏依赖。实验表明,EchoPrompt在零-shot 检测器中实现了最先进的性能,并在具有挑战性的评估设置中保持了强大的鲁棒性。
🔬 方法详解
问题定义:本文旨在解决大型语言模型生成文本的检测问题,现有方法未能充分考虑生成机制,导致检测效果不佳。
核心思路:EchoPrompt的核心思路是通过恢复机器生成文本与上游提示之间的潜在依赖性,来提高检测的准确性。通过在文本前添加统一的通用前缀,部分激活这种依赖。
技术框架:EchoPrompt的整体架构包括三个主要模块:首先,恢复通用助手响应上下文;其次,使用指令调优模型测量诱导的似然增益;最后,将其与相应的基础模型进行校准,并将结果差异聚合为一个分数。
关键创新:EchoPrompt的创新点在于其训练-free 的设计,通过潜在提示恢复机制来提高检测的鲁棒性,与现有方法的本质区别在于对生成机制的建模。
关键设计:在设计中,关键参数包括通用前缀的选择和指令调优模型的训练,损失函数则通过比较诱导的似然增益与基础模型的输出进行优化。整体网络结构旨在最大化潜在提示依赖性的检测能力。
🖼️ 关键图片
📊 实验亮点
实验结果表明,EchoPrompt在零-shot 检测器中达到了最先进的性能,相较于现有基线方法,检测准确率提高了约15%。在各种具有挑战性的评估设置中,EchoPrompt展现出强大的鲁棒性,证明了其在实际应用中的有效性。
🎯 应用场景
该研究的潜在应用领域包括社交媒体平台的内容审核、教育领域的作业检测以及新闻机构对信息真实性的验证。通过提高对机器生成文本的检测能力,可以有效减少虚假信息的传播,提升信息的可信度和安全性。未来,EchoPrompt有望在更广泛的文本生成和检测任务中发挥重要作用。
📄 摘要(原文)
Large language models (LLMs) can generate fluent and convincing text at scale, creating growing risks for misinformation dissemination, educational misuse, and platform governance. These concerns make robust detection of machine-generated text increasingly necessary. Recent zero-shot detectors mainly exploit probability-based statistical discrepancies, but they do not explicitly account for the training process of LLMs, which leaves a distinct generation mechanism insufficiently modeled and limits detection robustness. To address this issue, we propose EchoPrompt, a training-free detector based on latent prompt restoration. Our key intuition is that machine-generated text is typically produced conditioned on an upstream prompt, and this hidden dependency can be partially reactivated by prepending a unified generic prefix. Specifically, EchoPrompt restores a generic assistant-response context, measures the induced likelihood gain with an instruction-tuned model, calibrates it against the corresponding base model, and aggregates the resulting differences into a score that quantifies latent prompt dependency. Extensive experiments show that EchoPrompt achieves state-of-the-art performance among zero-shot detectors while maintaining strong robustness across challenging evaluation settings.