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
ひとこと要約

この論文は、大規模言語モデル(LLM)が、人間によるアノテーションデータで訓練された他のLLMベースの検出器を回避するために、効果的に微調整可能であることを示している。評価者モデル(critic)からの強化学習損失と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に一般化するのは避け、その優れた表現能力を鑑みる必要があること。

提案手法

  • 生成モデル(GPT-2)を、人間のデータに類似したサンプルを生成する能力に基づいて報酬信号を提供する評価者モデル(微調整済みBERT)を用いて微調整した。
  • 評価者からの強化学習損失関数を適用し、検出器が生成出力を「本物」と分類する確率を最大化するように生成器(GPT-2)を最適化した。
  • AdamW最適化法を用いて、悪意ある微調整中における学習安定性と一般化性能を向上させた。
  • 検出器(BERT)を、実際の人間生成データ(例:MS COCO、EMNLPニュース)とベースのGPT-2モデルが生成したサンプルの組み合わせで訓練した。
  • 検出性能を検証セット上の正答率指標を用いて評価し、悪意ある微調整の前後で結果を比較した。
  • プロンプトの複雑さ、出力長、微調整範囲を変化させたアブレーションスタディを実施し、各要因が回避成功に与える影響を分離した。

実験結果

リサーチクエスチョン

  • RQ1人間によるアノテーションデータで訓練されたLLMベースの検出器に対しても、生成LLMを微調整することで回避可能であるか?
  • RQ2評価者からの強化学習損失とAdamWの組み合わせが、回避目的の微調整一般化にどの程度効果的であるか?
  • RQ3固定されたプロンプト構造や微調整の欠如といった仮定が、現在の検出手法の頑健性をどの程度損なうか?
  • RQ4ベースラインデータでは高い正答率を示すにもかかわらず、なぜ現在のLLMベースの検出器は悪意ある微調整済み生成器に対して失敗するのか?
  • RQ5優れた表現能力を備えた現代のLLMに、RNNベースのテキストGANからの知見を適用する際の意味は何か?

主な発見

  • 攻撃者は、人間の参照テキストと検出器の出力のみを用いて、生成LLMを微調整することで、妥当なリソース予算内で検出器の学習を完全に無効化できる。
  • 評価者からの強化学習損失とAdamW最適化の組み合わせにより、微調整中において驚くほど強い一般化性能が得られ、回避性能が顕著に向上した。
  • GPT-2をMS COCOデータで微調整した場合、検出器の正答率は平均で約90%から約88%に低下したが、悪意ある訓練後には40%の生成サンプルが検出器によって「本物」と分類された。
  • 白箱設定(攻撃者が検出器の訓練データと出力ラベルにアクセス可能)でも、回避は依然として極めて効果的である。
  • 非微調整モデルや単純なプロンプトで訓練された検出器は、微調整済み生成器に直面した際に一般化できないことが判明し、現在の検出仮定における深刻な欠陥を示している。
  • 本研究は、RNNベースのテキストGANの結果が、優れた表現能力を備えたLLMに一貫して適用可能ではないと警告しており、検出の頑健性に関する先行の楽観的予測を揺るがしている。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。