arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.08968cs.CLcs.AIcs.CRcs.LG
收藏

随机鹦鹉寻找随机鹦鹉:LLM 易于微调且难以被其他 LLM 检测

Stochastic Parrots Looking for Stochastic Parrots: LLMs are Easy to Fine-Tune and Hard to Detect with other LLMs

EPFL(洛桑联邦理工学院);HES-SO Valais-Wallis(瓦莱州西部应用科学大学)

Da Silva Gameiro Henrique, Andrei Kucharavy, Rachid Guerraoui

AI总结:

本文证明攻击者利用参考人类文本和检测器输出,结合强化损失修改与AdamW优化器微调LLM,即可逃避检测并破坏检测器训练,同时警示不应将RNN文本GAN的结论直接套用于LLM。

摘要:

自注意力革命使生成式语言模型得以扩展规模并获得日益强大的能力。这类模型——通常被称为大语言模型(LLMs)——最近因对话式微调而受到公众广泛关注,使其行为符合公众对人工智能的预期。这种关注放大了此前对 LLM 滥用的担忧,并催生了大量用于在自然环境中检测 LLM 的工具。\n不幸的是,大多数此类工具存在严重缺陷。尽管 LLM 可检测性领域的主要出版物表明,使用微调的自编码器可以轻松检测 LLM,但其结果的局限性很容易被忽视。具体而言,它们假设公开可用的生成模型没有经过微调或使用非平凡提示。虽然这些假设的重要性已得到证明,但迄今为止,这种检测能在多大程度上被对抗仍不清楚。\n在此,我们表明,能够访问此类检测器参考人类文本和输出的攻击者不仅能逃避检测,还能以合理的预算完全破坏检测器的训练——且其所有输出都被标记为人类文本。实现这一目标需要结合常见的“来自批评者的强化”损失函数修改和 AdamW 优化器,这带来了出人意料的良好微调泛化能力。最后,我们警告不要将基于 RNN 驱动的文本 GAN 得出的结论直接套用到 LLM 上,因为 LLM 具有更强的表征能力。\n这些结果对生成式语言模型恶意使用的检测与预防具有重要影响,我们希望它们能帮助生成模型和检测器的设计者。

英文摘要:

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.

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

↑