Skip to main content
QUICK REVIEW

[論文レビュー] Pretraining task diversity and the emergence of non-Bayesian in-context learning for regression

Allan Raventós, Mansheej Paul|arXiv (Cornell University)|Jun 26, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用数 11
ひとこと要約

本論文は、事前学習におけるタスク多様性の閾値が、線形回帰に対する非ベイズ的インコンテキスト学習を誘発し、トランスフォーマが多様性の増加とともにdMMSE様の挙動からリッジ推定の挙動へ移行することを示している。

ABSTRACT

Pretrained transformers exhibit the remarkable ability of in-context learning (ICL): they can learn tasks from just a few examples provided in the prompt without updating any weights. This raises a foundational question: can ICL solve fundamentally $ extit{new}$ tasks that are very different from those seen during pretraining? To probe this question, we examine ICL's performance on linear regression while varying the diversity of tasks in the pretraining dataset. We empirically demonstrate a $ extit{task diversity threshold}$ for the emergence of ICL. Below this threshold, the pretrained transformer cannot solve unseen regression tasks, instead behaving like a Bayesian estimator with the $ extit{non-diverse pretraining task distribution}$ as the prior. Beyond this threshold, the transformer significantly outperforms this estimator; its behavior aligns with that of ridge regression, corresponding to a Gaussian prior over $ extit{all tasks}$, including those not seen during pretraining. Thus, when pretrained on data with task diversity greater than the threshold, transformers $ extit{can}$ optimally solve fundamentally new tasks in-context. Importantly, this capability hinges on it deviating from the Bayes optimal estimator with the pretraining distribution as the prior. This study also explores the effect of regularization, model capacity and task structure and underscores, in a concrete example, the critical role of task diversity, alongside data and model scale, in the emergence of ICL. Code is available at https://github.com/mansheej/icl-task-diversity.

研究の動機と目的

  • インコンテキスト学習(ICL)を用いて、事前学習中に見られなかった本質的に新しい回帰タスクを解決できるかを調べる。
  • 事前学習タスクの多様性がICLの出現とそのアルゴリズム的性質にどのように影響するかを検討する。
  • 変動するタスク多様性の下で、トランスフォーマーのICL挙動をベイズ推定量(dMMSE)とリッジ回帰と比較する。

提案手法

  • 有限の事前学習タスク分布から抽出された潜在回帰ベクトルと、ガウス分布の真のタスク分布から生成された潜在回帰ベクトルを用いた線形回帰に対するICLを研究する。
  • 前処理タスク分布には離散MMSE(dMMSE)、真のタスクにはリッジ回帰を、それぞれ最適推定量として定義する。
  • 前処理タスク多様性(M)を変化させ、インコンテキスト予測における平均二乗誤差を用いてdMMSEおよびRidgeとの整合性を測定する。
  • ICL の出現に対する学習ダイナミクス、タスク次元の効果、正則化、およびモデル容量を分析する。
  • ノイズ付きの (x, y) 対列に対して次のトークンMSE目的で訓練したGPT2様のトランスフォーマーモデルを使用する。

実験結果

リサーチクエスチョン

  • RQ1前処理タスクの多様性を高めると、トランスフォーマーはインコンテキストで新しいタスクを学習できるのか?
  • RQ2タスク多様性が変化するにつれて、トランスフォーマーのインコンテキスト学習挙動は、ベイズ推定量およびリッジ回帰とどのように移行するのか?
  • RQ3回帰におけるICLの出現におけるタスク次元、正則化、およびモデル容量の役割は何か?

主な発見

  • 新しいタスクに対して、トランスフォーマーがベイズ最適(dMMSE)挙動からほぼリッジ性能へ移行する、タスク多様性の閾値が存在する。
  • 閾値を超えると、トランスフォーマーは本質的に新しいタスクをインコンテキストで学習でき、未見のタスクで事前学習ベイズ推定量を上回る。
  • タスク次元を増やすと、多様性閾値はほぼ線形に上昇し、PTの次元に対する誤差スケーリングはほぼリッジと近く、Dが大きくなるとdMMSEより優れる。
  • 重み減衰は多様性閾値を低下させ、埋め込みサイズまたは層数を増やすと閾値が上昇する。正規化と容量がICLの出現に影響を与えることを示す。
  • タスクごとのシーケンス数が増えると移行が鋭くなり、タスク多様性レベル全体で学習ダイナミクスにおけるアルゴリズム的な相転移を示唆する。

この論文を読む

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

Nubintでこの論文を読む

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