[論文レビュー] Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Models
要約: 論文は事前学習データの混合がトランスフォーマーの文脈内学習(ICL)に与える影響を研究し、事前学習された関数クラス内でのほぼ最適なモデル選択を示す一方、OOD一般化には限界があることを示す。
Transformer models, notably large language models (LLMs), have the remarkable ability to perform in-context learning (ICL) -- to perform new tasks when prompted with unseen input-output examples without any explicit model training. In this work, we study how effectively transformers can bridge between their pretraining data mixture, comprised of multiple distinct task families, to identify and learn new tasks in-context which are both inside and outside the pretraining distribution. Building on previous work, we investigate this question in a controlled setting, where we study transformer models trained on sequences of $(x, f(x))$ pairs rather than natural language. Our empirical results show transformers demonstrate near-optimal unsupervised model selection capabilities, in their ability to first in-context identify different task families and in-context learn within them when the task families are well-represented in their pretraining data. However when presented with tasks or functions which are out-of-domain of their pretraining data, we demonstrate various failure modes of transformers and degradation of their generalization for even simple extrapolation tasks. Together our results highlight that the impressive ICL abilities of high-capacity sequence models may be more closely tied to the coverage of their pretraining data mixtures than inductive biases that create fundamental generalization capabilities.
研究の動機と目的
- 複数の関数クラスにわたる事前学習データの構成が文脈内学習に与える影響を調査する。
- タスクが事前学習分布内か外かに関係なく、トランスフォーマーが文脈内で新しいタスクを識別・学習できるかを評価する。
- ICL中に事前学習済み関数クラス間の選択コストとモデル選択能力を検討する。
提案手法
- (x, f(x)) 対が並ぶデータ列上で、デコーダ風のトランスフォーマーを事前学習させる(9.5Mパラメータ、12層、8ヘッド、256次元埋め込み)
- 関数クラスの混合(密な線形、まばら線形、ReLUネット、正弦)から抽出された列に対して教師強制ロスを用いる
- 混合からサンプルされた関数クラスに基づいて混合D(F) = w·D(F_A) + (1−w)·D(F_B)を構築する
- 文脈内の例を提示し、次のトークン予測を通じてf(x_{n+1})を予測することでICLを評価する
- 予測二乗損失E[(f̃(x_{n+1}) − f(x_{n+1}))^2]をICL性能指標として測定する
- 事前学習がクリーンな単一クラスと混合クラスの regime、及び分布内(test)と分布外(test)の関数間で挙動を比較する
実験結果
リサーチクエスチョン
- RQ1混合された関数クラスで事前学習したトランスフォーマーは、ICL中にそれらのクラス間でモデル選択を行えるか。
- RQ2テストタスクが事前学習分布の外にある場合、ICLの性能はどう変化するか(OOD)?
- RQ3関数クラスを組み合わせるとき(例:凸結合)や、関数空間の希少領域に遭遇した場合、ICLの限界はどこか?
- RQ4モデルサイズの増加や関数クラス混合の変更は、モデル選択と一般化性に影響するか?
主な発見
- 混合で事前学習されたモデルは、事前学習関数クラス内でほぼ最適なICL性能を達成し、単一クラスのベースラインと同程度である。
- 混合事前学習モデルのICL学習曲線は最適なサンプル複雑さに密接に追従し、小さな偏差は文脈例を増やすと減衰する。
- テスト関数が事前学習と分布外の場合、ICLの一般化は劣化し、予測は不安定になったり、いずれの事前学習クラスにも一致しない。
- モデルは一部の希少性領域で事前学習関数クラス間の補完が可能だが、線形と正弦関数の凸結合は混合事前学習モデルでは一般に良く予測されない。
- テスト関数が事前学習の支援領域から遠ざかると性能が低下し、見たデータを超えた広範な一般化には限界が示唆される。
- モデルサイズはモデル選択能力に影響を与え、より大きなモデルはより堅牢なICL挙動を示すが、関数クラス間で非対称な影響が現れる。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。