[論文レビュー] Investigating Continual Pretraining in Large Language Models: Insights and Implications
本論文は、236のドメインから構成される多様で大規模なデータセットを用いて、大規模言語モデル(LLMs)における継続的ドメイン適応的事前学習を調査する。知識の保持、移行、および忘却を検討した。ドメイン間の意味的類似度が高いと特化が促進され、学習順序をランダム化することで前方および後方移行が向上し、小規模モデルは継続的事前学習に対して最も感受性が高く、知識の飽和に伴い性能が頭打ちになることが判明した。
Continual learning (CL) in large language models (LLMs) is an evolving domain that focuses on developing efficient and sustainable training strategies to adapt models to emerging knowledge and achieve robustness in dynamic environments. Our primary emphasis is on continual domain-adaptive pretraining, a process designed to equip LLMs with the ability to integrate new information from various domains while retaining previously learned knowledge. Since existing works concentrate mostly on continual fine-tuning for a limited selection of downstream tasks or training domains, we introduce a new benchmark designed to measure the adaptability of LLMs to changing pretraining data landscapes. We further examine the impact of model size on learning efficacy and forgetting, as well as how the progression and similarity of emerging domains affect the knowledge transfer within these models. Our findings uncover several key insights: (i) continual pretraining consistently improves <1.5B models studied in this work and is also superior to domain adaptation, (ii) larger models always achieve better perplexity than smaller ones when continually pretrained on the same corpus, (iii) smaller models are particularly sensitive to continual pretraining, showing the most significant rates of both learning and forgetting, (iv) continual pretraining boosts downstream task performance of GPT-2 family, (v) continual pretraining enables LLMs to specialize better when the sequence of domains shows semantic similarity while randomizing training domains leads to better transfer and final performance otherwise. We posit that our research establishes a new benchmark for CL in LLMs, providing a more realistic evaluation of knowledge retention and transfer across diverse domains.
研究の動機と目的
- 多様で変化し続けるドメインにわたる継続的ドメイン適応的事前学習の長期的有効性を評価すること。
- モデルサイズ、ドメイン順序、意味的類似度が知識保持および移行に与える影響を理解すること。
- 狭義のタスクやドメイン設定を超えた、継続的学習における現実的なベンチマークを構築すること。
- 継続的事前学習における過学習と知識の飽和のリスクを調査すること。
- 継続的学習環境におけるモデルスケーリングとパフォーマンスの従来の仮定に挑戦すること。
提案手法
- WikipediaおよびSemantic Scholarから得た236の階層的ドメインを含むMassively Multi-Domain Dataset(M2D2)を活用。
- GPT-2の変種およびRoBERTaを用いて、異なる順序と類似度を持つドメインストリームに順次学習。
- 明示的なドメイン識別なしに継続的事前学習を実装し、新規コーパスへの段階的適応に注力。
- チェックポイントごとの言語モデリングのパープレキシティを測定することで、忘却と移行を評価。
- ドメイン順序(固定 vs. ランダム)およびモデルサイズのアブレーションスタディを実施し、影響要因を分離。
- 学習の歴史に従って過去および未来のドメインに対するパフォーマンスを評価することで、後方および前方移行を分析。
実験結果
リサーチクエスチョン
- RQ1連続するドメイン間の意味的類似度が、継続的事前学習におけるドメイン特化にどのように影響するか?
- RQ2学習順序(固定 vs. ランダム)がLLMsにおける後方および前方知識移行に与える影響は何か?
- RQ3モデルサイズが継続的事前学習における学習効率、忘却、および移行にどのように影響するか?
- RQ4継続的事前学習は知識の飽和を引き起こし、パフォーマンスが頭打ちになる時期はいつか?
- RQ5収束したモデルに対するさらなる事前学習が、異なるドメインにおいてパフォーマンスを劣化または向上させる程度はどの程度か?
主な発見
- ドメインが意味的に類似している場合、継続的事前学習は単独のファインチューニングよりも優れたドメイン特化を実現し、最近の過去のドメインには正の移行が見られるが、遠い過去のドメインには見られない。
- 学習順序をランダム化することで、最終チェックポイントにおける平均パフォーマンスが向上し、後方移行が改善され、過去の知識の保持がより良好であることが示された。
- 継続的事前学習はBigBenchにおける下流タスクパフォーマンスを向上させ、ファインチューニングのみに比べて、さらなる生成的事前学習がゼロショット一般化を改善することが示された。
- 知識の飽和が時間経過とともに観察され、パフォーマンスが頭打ちになる一方、後期の段階で忘却が顕著に進行することが判明した。
- 小規模モデル(例:GPT2-small)は、忘却と学習の両方において最も顕著な変化を示し、大規模モデルが常に小規模モデルを上回るとの仮定に疑問を呈する。
- GPT2-largeはGPT2-mediumおよびGPT2-xlargeよりも後方移行のパープレキシティが悪く、継続的学習における非単調なスケーリング行動を示している。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。