Skip to main content
QUICK REVIEW

[論文レビュー] Is In-Context Learning Sufficient for Instruction Following in LLMs?

Hao Zhao, Maksym Andriushchenko|arXiv (Cornell University)|May 30, 2024
Online Learning and Analytics被引用数 4
ひとこと要約

本稿では、インライン・コンテキスト学習(ICL)のみで大規模言語モデル(LLM)の指示従いを効果的に整列させられるかを検証し、複数のベースモデルに対してUrialプロンプティング手法を評価している。グリーディな例選択による改善にもかかわらず、MT-Bench や AlpacaEval 2.0 といったベンチマークでは、ICLは指示微調整(instruction fine-tuning)に比べて性能が劣っており、特に能力の高いモデルでは顕著である。これは、パラメータの更新がなければ、ICLが指示従い行動を完全に捉えることができない根本的な制限を示している。

ABSTRACT

In-context learning (ICL) allows LLMs to learn from examples without changing their weights: this is a particularly promising capability for long-context LLMs that can potentially learn from many examples. Recently, Lin et al. (2024) proposed URIAL, a method using only three in-context examples to align base LLMs, achieving non-trivial instruction following performance. In this work, we show that, while effective, ICL alignment with URIAL still underperforms compared to instruction fine-tuning on the established benchmark MT-Bench, especially with more capable base LLMs. We then uncover the most relevant elements for successful in-context alignment, finding the crucial role of the decoding parameters. Based on these insights, we show that the approach of URIAL can indeed be improved by adding high-quality, potentially carefully selected via greedy search, demonstrations in context, getting closer to the performance of instruct models. Finally, we provide the first, to our knowledge, systematic comparison of ICL and instruction fine-tuning (IFT) for instruction following in the low data regime, where ICL can be a viable alternative to IFT. Overall, our work advances the understanding of ICL as an alignment technique and its relationship to IFT. We provide our code at https://github.com/tml-epfl/icl-alignment.

研究の動機と目的

  • ベースのLLMにおいて、Urialプロンプティング手法によるインライン・コンテキスト学習(ICL)が、教師あり微調整(SFT)と同等の指示従い性能を達成できるかどうかを評価すること。
  • ICLが柔軟性と重みフリーの適応を備えながらも、指示従いベンチマークで微調整済みモデルとの性能ギャップを埋められない理由を調査すること。
  • インライン・デモンストレーションの数、質、構造(特に正解の整合性)が、指示従いに対するICLの有効性に与える影響を分析すること。
  • 特に初期のUrial例選択に使われていない新しいまたは大規模なモデルを含む、さまざまなLLMアーキテクチャ間でのICLデモンストレーションの転送可能性を評価すること。
  • 指示従いのためのICLが、分類や翻訳などの他のNLPタスクにおけるICLと根本的に異なる挙動を示すかどうかを理解すること。

提案手法

  • MT-Bench や AlpacaEval 2.0(LC)といった既存のベンチマークを用いて、Llama-2、Llama-3、Mistral、GPT-4-Base などの複数のベースLLMに対してUrialプロンプティング戦略を評価する。
  • 既存データセットからの高品質な指示従いデモンストレーションを追加することで、Urialプロンプトを3例を超えて多数例(many-shot)に拡張するインライン・コンテキスト学習をテストする。
  • MT-Benchスコアを最大化するように最適化されたグリーディ選択アルゴリズムを提案し、モデル重みの変更なしに性能を向上させる。
  • 正解の整合性の役割を隔離するために、質問のみ、誤った回答、ランダムに抽出された回答を含むケースを含むデモンストレーション構造に関するアブレーションスタディを実施する。
  • 選択されたICL例が、Llama-2-7B-80k や Mixtral-8x22B といった異なるベースモデルに転送可能かどうかを評価し、効果的なデモンストレーションのモデル依存性を分析する。
  • 対話型(multi-turn)と単一対話(single-turn)デモンストレーションの影響を分析し、2回目以降のターンでの性能が、微調整済みモデルと比較して著しく劣る理由を解明する。
Figure 1: The results of scaling experiments with different sampling strategies on Mistral-7B-v0.2-32k. The black dashed line refers to the 1st-turn MT-Bench score of Mistral-7B-Instruct-v0.2. ICL with more demonstrations does not bridge the gap between the base model and its aligned counterpart. Su
Figure 1: The results of scaling experiments with different sampling strategies on Mistral-7B-v0.2-32k. The black dashed line refers to the 1st-turn MT-Bench score of Mistral-7B-Instruct-v0.2. ICL with more demonstrations does not bridge the gap between the base model and its aligned counterpart. Su

実験結果

リサーチクエスチョン

  • RQ1翻訳や要約などのタスクで見られるように、長文コンテキストLLMにおいて、インライン・デモンストレーションの数を増やすことで、指示従い性能が向上するのか?
  • RQ2インライン・デモンストレーションのグリーディ選択戦略が、指示従いベンチマークにおけるICLとSFTの性能ギャップを埋められるのか?
  • RQ3指示従いのためのICLが、分類や多肢選択などのタスクにおけるICLと根本的に異なるのはなぜか、特に正解ペアの必要性に起因するのか?
  • RQ4効果的なインライン・デモンストレーションは、元のUrial例選択に使われていない新しいまたは大規模なモデルにどれほど一般化できるのか?
  • RQ5誤ったまたは構造が悪いデモンストレーションは、指示従いのICL性能をどの程度悪化させるのか?

主な発見

  • 3例を超えるインライン・デモンストレーションの追加は、要約や翻訳などのタスクとは異なり、MT-Benchにおける指示従い性能を体系的・一貫して向上させない。
  • グリーディなインライン例選択により、性能が顕著に向上し、Mistral-7B-v0.2とその指示微調整済みバージョンとのMT-Benchスコアギャップがほぼ埋まる(6.27から7.68に向上)。
  • 正解の整合性が極めて重要である:回答を省略する、誤った回答を使用する、またはランダムに抽出された回答を使用すると、性能が著しく低下し、回答の巡回シフトではスコアが1.80にまで低下する。
  • ドメイン内でのランダムな回答を使用すると性能が向上(6.24)、一方ドメイン外のランダムな回答では性能が低下(4.13)するため、回答の意味的関連性が重要であることが示唆される。
  • 最も効果的なICLデモンストレーションは、モデル間で一般化しにくい:Llama-2-7B-80k や Mixtral-8x22B-v0.1-4bit に同じ選択された例を適用しても、一貫した向上が得られないか、むしろ性能が低下する場合がある。
  • 誤ったデモンストレーションは性能を著しく悪化させる。回答の巡回シフトではMT-Benchスコアが1.80にまで低下し、指示従いタスクにおけるICLのデモンストレーション品質への感受性が顕著に示されている。
Figure 2: The distribution of the 1st-turn MT-Bench score (GPT-4-Turbo as judge) on Mistral-7B-v0.2-32k obtained by adding 100 instructions from Evol-Instruct-70k as a 4th demonstration to Urial . The black dashed line refers to the 1st-turn MT-Bench score of the base model with Urial . A majority o
Figure 2: The distribution of the 1st-turn MT-Bench score (GPT-4-Turbo as judge) on Mistral-7B-v0.2-32k obtained by adding 100 instructions from Evol-Instruct-70k as a 4th demonstration to Urial . The black dashed line refers to the 1st-turn MT-Bench score of the base model with Urial . A majority o

より良い研究を、今すぐ始めましょう

論文の読解から最終レビューまで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。