OUTFOX:通过基于对抗生成示例的上下文学习进行LLM生成文章检测
OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examples
AI总结:
提出OUTFOX框架,通过让检测器与攻击者相互利用对方输出进行上下文学习对抗,提升LLM生成文本检测的鲁棒性,实现SOTA检测并显著抵御攻击。
摘要:
大型语言模型(LLMs)在文本生成方面已达到人类水平的流畅度,使得区分人类撰写和LLM生成的文本变得困难。这带来了日益增长的LLM滥用风险,需要开发检测器来识别LLM生成的文本。然而,现有的检测器缺乏抵御攻击的鲁棒性:仅通过对LLM生成的文本进行改写,就能降低检测准确率。此外,恶意用户可能会试图根据检测结果故意逃避检测器,但以往的研究并未考虑这一点。在本文中,我们提出了OUTFOX框架,通过让检测器和攻击者都能考虑彼此的输出,来提高LLM生成文本检测器的鲁棒性。在该框架中,攻击者利用检测器的预测标签作为上下文学习的示例,对抗性地生成更难检测的文章,而检测器则利用这些对抗生成的文章作为上下文学习的示例,学习检测来自强大攻击者的文章。在学生作文领域的实验表明,所提出的检测器在攻击者生成文本上的检测性能提升了高达+41.3个F1分数。此外,所提出的检测器展现了最先进的检测性能:F1分数高达96.9分,在非攻击文本上击败了现有检测器。最后,所提出的攻击者使检测器的性能大幅下降高达-57.0个F1分数,在逃避检测方面大幅优于基线改写方法。
英文摘要:
Large Language Models (LLMs) have achieved human-level fluency in text generation, making it difficult to distinguish between human-written and LLM-generated texts. This poses a growing risk of misuse of LLMs and demands the development of detectors to identify LLM-generated texts. However, existing detectors lack robustness against attacks: they degrade detection accuracy by simply paraphrasing LLM-generated texts. Furthermore, a malicious user might attempt to deliberately evade the detectors based on detection results, but this has not been assumed in previous studies. In this paper, we propose OUTFOX, a framework that improves the robustness of LLM-generated-text detectors by allowing both the detector and the attacker to consider each other's output. In this framework, the attacker uses the detector's prediction labels as examples for in-context learning and adversarially generates essays that are harder to detect, while the detector uses the adversarially generated essays as examples for in-context learning to learn to detect essays from a strong attacker. Experiments in the domain of student essays show that the proposed detector improves the detection performance on the attacker-generated texts by up to +41.3 points F1-score. Furthermore, the proposed detector shows a state-of-the-art detection performance: up to 96.9 points F1-score, beating existing detectors on non-attacked texts. Finally, the proposed attacker drastically degrades the performance of detectors by up to -57.0 points F1-score, massively outperforming the baseline paraphrasing method for evading detection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。