Skip to main content
QUICK REVIEW

[論文レビュー] An Incomplete Loop: Instruction Inference, Instruction Following, and In-context Learning in Language Models

Emmy Liu, Graham Neubig|arXiv (Cornell University)|Apr 3, 2024
Natural Language Processing TechniquesComputer Science被引用数 3
ひとこと要約

本稿は、大規模言語モデルにおける帰納的(指示従い)、帰謬的(few-shotプロンプティング)、帰因的(指示推論)推論の相互作用を調査する。これらの推論タイプは分離されていることが判明した:モデルはタスクのルールを理解しないままfew-shot学習に優れている場合があり、またタスクの説明を妥当に生成してもそれを適用できない場合もあり、最先端モデルですら体系的でない推論を示していることが明らかになった。

ABSTRACT

Modern language models (LMs) can learn to perform new tasks in different ways: in instruction following, the target task is described explicitly in natural language; in few-shot prompting, the task is specified implicitly with a small number of examples; in instruction inference, LMs are presented with in-context examples and are then prompted to generate a natural language task description before making predictions. Each of these procedures may be thought of as invoking a different form of reasoning: instruction following involves deductive reasoning, few-shot prompting involves inductive reasoning, and instruction inference involves abductive reasoning. How do these different capabilities relate? Across four LMs (from the gpt and llama families) and two learning problems (involving arithmetic functions and machine translation) we find a strong dissociation between the different types of reasoning: LMs can sometimes learn effectively from few-shot prompts even when they are unable to explain their own prediction rules; conversely, they sometimes infer useful task descriptions while completely failing to learn from human-generated descriptions of the same task. Our results highlight the non-systematic nature of reasoning even in some of today's largest LMs, and underscore the fact that very different learning mechanisms may be invoked by seemingly similar prompting procedures.

研究の動機と目的

  • 異なる推論タイプ(帰納的、帰謬的、帰因的)が、大規模言語モデルにおいて、それぞれのプロンプティング手法によってどのように引き出されるかを調査すること。
  • たとえばfew-shotプロンプティングの習熟度が、指示推論の習熟度を示唆するかを特定すること。
  • 標準的なプロンプティングと比較して、指示推論がzero-shotおよびfew-shot性能を向上させる方法として有効であるかを評価すること。
  • 文脈内例からタスクルールを生成・適用する際の言語モデルの一貫性と信頼性を評価すること。
  • 現在の言語モデルが、個々のタスクでは優れた性能を示しても、さまざまなプロンプティングパラダイムを横断して体系的に推論できない限界を明らかにすること。

提案手法

  • 指示従いを帰納的推論に、few-shotプロンプティングを帰謬的推論に、指示推論を帰因的推論にマッピングするフレームワークを提案する。
  • 予測を行う前に、文脈内例から自然言語によるタスク記述を生成するようにモデルにプロンプトすることで、指示推論を実施する。
  • 2つの評価タスクを用いる:線形関数の学習と低リソース機械翻訳(KalamangおよびColoursデータセット)。
  • 正答率とchrFスコアを用いてモデルのパフォーマンスを評価し、翻訳タスクでは仮説の質について人間がアノテートした正答性を併用する。
  • 仮説の質とモデルの自信を評価するために、複数の再ランク付け戦略(例:p_data_given_hyp_logprobs、p_answer_given_hyp_logprobs)を適用する。
  • 翻訳品質(chrF)と仮説正答性の間の相関分析を実施し、生成されたタスク記述の信頼性を検証する。
Figure 1: Diagram of abductive reasoning for an LM. Red arrows show data flow in inductive reasoning (few-shot prompting), while blue arrows show data flow in deductive reasoning (instruction following). Black arrows indicate data flow unique to abductive reasoning (instruction induction). Instructi
Figure 1: Diagram of abductive reasoning for an LM. Red arrows show data flow in inductive reasoning (few-shot prompting), while blue arrows show data flow in deductive reasoning (instruction following). Black arrows indicate data flow unique to abductive reasoning (instruction induction). Instructi

実験結果

リサーチクエスチョン

  • RQ1RQ1: 指示推論は、どのような状況で標準的なfew-shotプロンプティングを上回るパフォーマンスを発揮するか?
  • RQ2RQ2: 指示からの学習能力(帰納的)と文脈内例からの学習能力(帰謬的または帰因的)の関係は何か?
  • RQ3RQ3: モデルが正しいタスク記述(帰因的)を生成できるがそれを適用できない、あるいは逆に、記述は正しくないが適用できるケースは存在するか?
  • RQ4RQ4: 帰謬的推論(few-shot学習)の成功と、帰因的推論(指示推論)の成功との間に相関があるか?異なるモデルやタスクでその関係はどのように変化するか?

主な発見

  • 指示推論は、線形関数の学習や人工言語ルールの学習といった単純なタスクにおいて、few-shotプロンプティングを上回るパフォーマンスを発揮する。
  • 低リソース機械翻訳(Kalamang)のような複雑なタスクでは、指示推論に失敗する。誤ったまたは役に立たない仮説が生成され、語彙の除外時には正答率がわずか0.0813まで低下する。
  • few-shot学習パフォーマンスと指示推論の成功の間に有意な相関は認められない。モデルは片方で成功しても、もう片方で優れているとは限らない。
  • GPT-3.5-turboでは、翻訳品質(chrF)と仮説正答性の間のポイントバイセラル相関係数が0.1746(p = 0.0063)であり、弱いが統計的に有意な関連があることが示された。
  • GPT-4-turboは、指示推論で翻訳の平均chrFを15.25を達成したが、仮説が誤りの場合には13.54に低下し、仮説の質が与える影響が顕著に現れた。
  • Llama-2-70bは、指示推論における翻訳chrFが23.62とGPT-3.5-turboの19.29を上回ったが、依然として仮説正答性に課題を抱えており、帰因的推論におけるモデル固有の限界が示された。
Figure 2: Real coefficients of linear functions and relationship to hypothesized coefficients for GPT-3.5-turbo and GPT-4-turbo. Remaining models can be found in Appendix D . The x-axis has been truncated for visualization purposes (as there are some large outlier hypotheses). GPT-4-turbo is able to
Figure 2: Real coefficients of linear functions and relationship to hypothesized coefficients for GPT-3.5-turbo and GPT-4-turbo. Remaining models can be found in Appendix D . The x-axis has been truncated for visualization purposes (as there are some large outlier hypotheses). GPT-4-turbo is able to

この論文を読む

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

Nubintでこの論文を読む

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