Skip to main content
QUICK REVIEW

[論文レビュー] Effective Long-Context Scaling of Foundation Models

Wenhan Xiong, Jingyu Liu|arXiv (Cornell University)|Sep 27, 2023
Topic ModelingComputer Science被引用数 9
ひとこと要約

要約: 本論文は、Llama 2からの継続的事前学習と軽量な指示調整を通じて、最大32,768トークンの長文文脈を持つ系列の長文コンテキストLLMを提示し、長文文脈での強力な性能を達成しつつ、位置エンコーディングと訓練カリキュラムを分析する。短文脈での性能も競争力がある。

ABSTRACT

We present a series of long-context LLMs that support effective context windows of up to 32,768 tokens. Our model series are built through continual pretraining from Llama 2 with longer training sequences and on a dataset where long texts are upsampled. We perform extensive evaluation on language modeling, synthetic context probing tasks, and a wide range of research benchmarks. On research benchmarks, our models achieve consistent improvements on most regular tasks and significant improvements on long-context tasks over Llama 2. Notably, with a cost-effective instruction tuning procedure that does not require human-annotated long instruction data, the 70B variant can already surpass gpt-3.5-turbo-16k's overall performance on a suite of long-context tasks. Alongside these results, we provide an in-depth analysis on the individual components of our method. We delve into Llama's position encodings and discuss its limitation in modeling long dependencies. We also examine the impact of various design choices in the pretraining process, including the data mix and the training curriculum of sequence lengths -- our ablation experiments suggest that having abundant long texts in the pretrain dataset is not the key to achieving strong performance, and we empirically verify that long context continual pretraining is more efficient and similarly effective compared to pretraining from scratch with long sequences.

研究の動機と目的

  • 既存のオープンモデルを超える強力な長文文脈機能のオープン性を実証する。
  • 非常に長い文脈をサポートするためのアーキテクチャと訓練の変更方法を調査する。
  • データミックス、カリキュラム、および指示調整が長文脈性能に与える影響を評価する。
  • 長距離モデリングに影響を与える位置エンコーディングやその他の設計選択を分析する。
  • 長文文脈のベンチマークで安全性を評価し、既存の大手モデルと比較する。

提案手法

  • Llama 2からの継続的前訓練を、より長いシーケンス(最大32,768トークン)と長文テキストのデータアップサンプリングと共に実施する。
  • RoPE位置エンコーディング(基底周波数)を修正して、より長い文脈でのアテンションを可能にする。
  • 長文の存在とデータ品質の影響を評価するためのデータミックスを実験する。
  • 高コストを抑えた指示調整を実現するため、ヒトの長文コンテキスト注釈を伴わない短プロンプトRLHFデータと自己指示長データを活用する。
  • 7B/13Bを32kおよび34B/70Bを16k–32kシーケンスで訓練し、言語モデリング、合成プローブ、多様なベンチマークで評価する。
  • 継続的前訓練が、Scratchから長文シーケンスを訓練するよりも、はるかに少ないFLOPsで同等またはそれ以上の結果を達成するかを検討する。
Figure 1 : We show that our model’s validation loss can be fit as a function of the context length: $L(c)=(\frac{\alpha}{c})^{\beta}+\gamma$ with a different set of $\alpha,\beta,\gamma$ for each model size. This power-law relationship also suggests that context length is another important axis of s
Figure 1 : We show that our model’s validation loss can be fit as a function of the context length: $L(c)=(\frac{\alpha}{c})^{\beta}+\gamma$ with a different set of $\alpha,\beta,\gamma$ for each model size. This power-law relationship also suggests that context length is another important axis of s

実験結果

リサーチクエスチョン

  • RQ1オープンソースの長文コンテキストLLMは、長文コンテキストベンチマークでプロプライエタリモデルに匹敵または上回るか。
  • RQ2 prohibitive computeなしで長文文脈モデリングを最適化するためのアーキテクチャと訓練の選択肢は何か。
  • RQ3データミックス、カリキュラム、指示調整は長文文脈と短文脈の性能にどう影響するか。
  • RQ4位置エンコーディングは長距離のアテンションをどの程度制限し、単純な修正で文脈長を実用的に拡張できるか。
  • RQ5長文指示調整モデルは、既存のベースラインと比較してどれほど安全か。

主な発見

  • モデルは最大32,768トークンの有効なコンテキストウィンドウを達成し、検証損失が文脈長に対してべき乗則に従ってスケーリングする。
  • 研究ベンチマークでは長文文脈モデルがLlama 2を上回り、長文文脈タスクで顕著な改善、いくつかの短文脈タスクで穏やかな改善を示す。
  • 70Bの指示調整モデルは、長文コンテキストデータの人手注釈なしで、長文ベンチマークの一連でgpt-3.5-turbo-16kを凌駕することがある。
  • RoPE ABF(調整済み基底周波数)は、長文文脈モデリングにおける他の位置エンコーディング変種より優れており、32kトークンにおいても性能を維持する。
  • データ品質は長文テキストの単なる量よりも重要であり、長文データが限定的でも長文文脈の利得は持続する。長文データを含むミックスは短文脈の知識タスクにも効果がある。
  • 長文シーケンスを用いた継続的前訓練は、スクラッチから長文シーケンスを訓練するよりも、FLOPsが大幅に少ない状態で同等または優れた結果を達成する。
Figure 2 : Performance on long-context tasks as the maximum context lengths of prompts increase.
Figure 2 : Performance on long-context tasks as the maximum context lengths of prompts increase.

この論文を読む

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

Nubintでこの論文を読む

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