Skip to main content
QUICK REVIEW

[論文レビュー] Make Prompt-based Black-Box Tuning Colorful: Boosting Model Generalization from Three Orthogonal Perspectives

Qiushi Sun, Chengcheng Han|arXiv (Cornell University)|May 14, 2023
Topic ModelingComputer Science被引用数 3
ひとこと要約

本稿では、過学習を低減する二段階の勾配フリー最適化戦略、文脈の利用を向上させる自動語彙生成、および文脈内デモンストレーションを用いたインstructベースのプロンプト初期化を組み合わせた、プラグアンドプレイ型フレームワーク BBT-RGB を提案する。この手法は、少数ショット設定下で複数の自然言語処理タスクにおいて最先端の性能を達成し、勾配ベースのパrameter効率の良い微調整および先行するブラックボックス手法を上回るが、調整可能なパラメータは最小限に抑えられる。

ABSTRACT

Large language models (LLMs) have shown increasing power on various natural language processing (NLP) tasks. However, tuning these models for downstream tasks usually needs exorbitant costs or is unavailable due to commercial considerations. Recently, black-box tuning has been proposed to address this problem by optimizing task-specific prompts without accessing the gradients and hidden representations. However, most existing works have yet fully exploited the potential of gradient-free optimization under the scenario of few-shot learning. In this paper, we describe BBT-RGB, a suite of straightforward and complementary techniques for enhancing the efficiency and performance of black-box optimization. Specifically, our method includes three plug-and-play components: (1) Two-stage derivative-free optimization strategy that facilitates fast convergence and mitigates overfitting; (2) Automatic verbalizer construction with its novel usage under few-shot settings; (3) Better prompt initialization policy based on instruction search and auto-selected demonstration. Extensive experiments across various tasks on natural language understanding and inference demonstrate the effectiveness of our method. Our codes are publicly available at https://github.com/QiushiSun/BBT-RGB.

研究の動機と目的

  • 少数ショット設定下でのブラックボックスプロンプトチューニングにおける過学習と収束の不十分さという課題に対処すること。
  • 複数の語彙を活用し、文脈内学習を用いてより良いプロンプト初期化を実現することで、モデルの一般化性能を向上させること。
  • モデルの勾配や隠れ状態にアクセスできない状況下でも、勾配フリー最適化の安定性と性能を向上させること。
  • 入力-出力ペアのみが利用可能なブラックボックスAPI環境で、効果的なプロンプトチューニングを可能にすること。
  • 完全微調整と同等の性能を達成しながら、連続的プロンプトパラメータをわずかにチューニングするのを可能にすること。

提案手法

  • 二段階の勾配フリー最適化(DFO)戦略を導入:最初に CMA-ES を用いてグローバル探索を行い、その後 COBYLA に切り替えてローカルな最適化を実施することで、収束の安定性を高め、過学習を低減する。
  • 複数のラベル語彙候補を自動生成・選択する「マルチミックスド語彙(M2 Verbalizers)」アプローチを提案し、モデルの耐性と出力の活用を向上させる。
  • タスク固有の手動インstructと、学習セットから自動選択されたデモンストレーションを組み合わせた In 2 初期化法を採用し、初期段階からプロンプト品質を向上させる。
  • ランダム射影行列を用いてプロンプトの次元を低減し、勾配フリー最適化中でも効率を維持する。
  • 各モジュールを独立して適用可能または統合可能とするプラグアンドプレイ型フレームワークを設計し、相互運用性とモularity を高める。
  • バリデーション性能に基づいて、学習セットから最も効果的なデモンストレーションサンプルを選択することで、文脈内学習を活用する。
Figure 1: Comparing BBT-RGB with other tuning methods on average performance over seven tasks described in section 5.1 . The size of the circle is proportional to the standard deviation.
Figure 1: Comparing BBT-RGB with other tuning methods on average performance over seven tasks described in section 5.1 . The size of the circle is proportional to the standard deviation.

実験結果

リサーチクエスチョン

  • RQ1二段階の DFO 戦略は、少数ショット条件下でのブラックボックスプロンプトチューニングにおいて、収束の安定性を向上させ、過学習を低減できるか?
  • RQ2複数の候補を用いた自動語彙生成は、ブラックボックスチューニングにおけるモデルの一般化性能と耐性をどのように向上させるか?
  • RQ3インstruct学習と文脈内デモンストレーションを組み合わせることで、プロンプト初期化と下流タスクの性能はどの程度向上するか?
  • RQ4勾配なしのブラックボックスチューニングで、連続的プロンプトを用いて完全微調整と同等の性能を達成できるか?
  • RQ5ブラックボックス設定下で、BBT-RGB は勾配ベースのパrameter効率の良い微調整手法と比較してどの程度優れているか?

主な発見

  • BBT-RGB は、感情分析(SST-2 および Yelp)および自然言語推論(SNLI、RTE、MRPC)を含む、評価されたすべての自然言語処理タスクで、先行する勾配フリー微調整手法を上回る性能を示した。
  • SNLI および MRPC タスクでは、完全微調整を上回る精度を達成しており、ブラックボックス制約下でも標準的な微調整を凌駕できる能力を示している。
  • 二段階の DFO 戦略により、バリデーション損失の振動が顕著に低減され、一般化性能が向上した。特に、Yelp データセットでは、単一手法の CMA-ES と比較して過学習が緩和された。
  • 手動インstruct と自動選択デモンストレーションを組み合わせた In 2 初期化法により、初期プロンプト品質が向上し、収束速度も速くなった。
  • GLUEベンチマークにおいて、7つの多様な自然言語処理タスク(感情分析、トピック分類、自然言語推論など)で、BBT-RGB は最先端の性能を達成した。
  • 調整可能なパラメータを最小限に抑えながらも、強い性能を維持しており、ブラックボックスチューニングの場面での高い効率性を示している。
Figure 2: An illustration of BBT-RGB. We use R ed , G reen and B lue to indicate three distinct aspects of our strategy, which inspired the naming of our method. M 2 Verbalizers (Multi-Mixed Verbalizers) further utilize the information provided by the LLMs. In 2 Initialization (Instruction learning
Figure 2: An illustration of BBT-RGB. We use R ed , G reen and B lue to indicate three distinct aspects of our strategy, which inspired the naming of our method. M 2 Verbalizers (Multi-Mixed Verbalizers) further utilize the information provided by the LLMs. In 2 Initialization (Instruction learning

この論文を読む

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

Nubintでこの論文を読む

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