Skip to main content
QUICK REVIEW

[论文解读] Stochastic Parrots Looking for Stochastic Parrots: LLMs are Easy to Fine-Tune and Hard to Detect with other LLMs

Da Silva Gameiro Henrique, Andrei Kucharavy|arXiv (Cornell University)|Apr 18, 2023
Topic ModelingComputer Science被引用 3
一句话总结

本文表明,大型语言模型(LLMs)可通过有效微调规避其他基于LLM的检测器的检测,即使检测器是基于人工标注数据进行训练的。通过使用从评论模型中获得的强化学习损失函数和AdamW优化方法,攻击者可生成高成功率的文本以欺骗检测模型,导致在现实对抗性条件下现有检测方法失效。

ABSTRACT

The self-attention revolution allowed generative language models to scale and achieve increasingly impressive abilities. Such models - commonly referred to as Large Language Models (LLMs) - have recently gained prominence with the general public, thanks to conversational fine-tuning, putting their behavior in line with public expectations regarding AI. This prominence amplified prior concerns regarding the misuse of LLMs and led to the emergence of numerous tools to detect LLMs in the wild. Unfortunately, most such tools are critically flawed. While major publications in the LLM detectability field suggested that LLMs were easy to detect with fine-tuned autoencoders, the limitations of their results are easy to overlook. Specifically, they assumed publicly available generative models without fine-tunes or non-trivial prompts. While the importance of these assumptions has been demonstrated, until now, it remained unclear how well such detection could be countered. Here, we show that an attacker with access to such detectors' reference human texts and output not only evades detection but can fully frustrate the detector training - with a reasonable budget and all its outputs labeled as such. Achieving it required combining common "reinforcement from critic" loss function modification and AdamW optimizer, which led to surprisingly good fine-tuning generalization. Finally, we warn against the temptation to transpose the conclusions obtained in RNN-driven text GANs to LLMs due to their better representative ability. These results have critical implications for the detection and prevention of malicious use of generative language models, and we hope they will aid the designers of generative models and detectors.

研究动机与目标

  • 研究基于 LLM 的检测器在生成模型对抗性微调下的脆弱性。
  • 评估 LLM 是否可被训练以生成文本,从而规避其他 LLM 的检测,即使检测器是基于人工标注数据训练的。
  • 评估常见微调技术(特别是从评论模型中获得的强化学习损失和 AdamW)在实现规避检测方面的有效性。
  • 挑战现有假设,即基于 LLM 的检测器具有鲁棒性,尤其是在涉及微调模型和非平凡提示的现实攻击场景下。
  • 警告不要将基于 RNN 的 GAN 研究成果泛化到现代 LLM 上,因为其具有更强的表征能力。

提出的方法

  • 使用评论模型(微调后的 BERT)作为奖励信号,基于生成样本与真实人类数据的相似程度,对生成式 LLM(GPT-2)进行微调。
  • 应用从评论模型中获得的强化学习损失函数,通过最大化检测器将生成输出分类为真实样本的概率,来优化生成器(GPT-2)。
  • 使用 AdamW 优化器以提升对抗性微调过程中的训练稳定性和泛化能力。
  • 在真实人类生成数据(如 MS COCO、EMNLP 新闻)与基础 GPT-2 模型生成样本的组合上训练检测器(BERT)。
  • 通过在验证集上的准确率指标评估检测性能,比较对抗性微调前后的结果。
  • 通过改变提示复杂度、输出长度和微调范围,进行消融研究,以隔离各因素对规避成功率的影响。

实验结果

研究问题

  • RQ1即使检测器是基于人工标注数据训练的,生成式 LLM 是否仍可被微调以规避其他基于 LLM 的检测器?
  • RQ2从评论模型中获得的强化学习损失与 AdamW 的组合,在实现微调泛化以用于规避目的方面有多高效?
  • RQ3关于模型行为的假设(如提示结构固定或未进行微调)在多大程度上削弱了现有检测方法的鲁棒性?
  • RQ4为何当前基于 LLM 的检测器在面对对抗性微调的生成器时会失效,尽管其在基线数据上表现准确?
  • RQ5考虑到现代 LLM 具有更强的表征能力,从基于 RNN 的文本 GAN 中获得的洞见是否可可靠地推广到现代 LLM?

主要发现

  • 攻击者仅需参考人类文本和检测器输出,即可通过微调生成式 LLM 完全破坏检测器训练,以合理预算实现高规避成功率。
  • 从评论模型中获得的强化学习损失与 AdamW 优化器的组合,在微调过程中实现了出人意料的强泛化能力,显著提升了规避性能。
  • 当 GPT-2 在 MS COCO 数据上微调后,检测器准确率从约 90% 下降至约 88%(平均值),但在对抗性训练后,40% 的生成样本被检测器分类为真实。
  • 即使在白盒设置下(攻击者可访问检测器的训练数据和输出标签),规避仍极为有效。
  • 基于非微调模型或简单提示训练的检测器,在面对微调生成器时无法泛化,凸显了当前检测假设中的关键缺陷。
  • 本研究警告:由于 LLM 具有更强的表征能力,基于 RNN 的文本 GAN 的研究结果无法可靠地推广到 LLM,从而削弱了先前对检测鲁棒性的乐观预期。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。