Skip to main content
QUICK REVIEW

[论文解读] Investigating Continual Pretraining in Large Language Models: Insights and Implications

Çağatay Yıldız, Nishaanth Kanna Ravichandran|arXiv (Cornell University)|Feb 27, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

本文利用涵盖236个领域的多样化大规模数据集,研究了大语言模型(LLMs)中持续领域自适应预训练的知识保留、迁移与遗忘问题。研究发现,领域间的语义相似性有助于提升专业化程度;随机化训练顺序可改善后向与前向迁移;较小模型对持续预训练表现出最高敏感性,且由于知识饱和导致性能趋于平稳。

ABSTRACT

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.

研究动机与目标

  • 评估在多样化、动态演变领域中持续领域自适应预训练在大语言模型中的长期有效性。
  • 理解模型规模、领域顺序与语义相似性如何影响知识保留与迁移。
  • 构建一个超越狭窄任务或领域设置的持续学习真实基准。
  • 探究在持续预训练大语言模型过程中过度训练与知识饱和的风险。
  • 挑战关于模型扩展与性能在持续学习设置中传统假设。

提出的方法

  • 使用包含236个分层组织领域的大规模多领域数据集(M2D2),数据来源为维基百科与Semantic Scholar。
  • 在不同顺序与相似度的领域序列流上,对多个大语言模型(GPT-2变体与RoBERTa)进行训练。
  • 实施持续预训练,不显式识别领域,专注于对新语料的渐进式适应。
  • 通过检查点上的语言建模困惑度来衡量性能,以评估遗忘与迁移情况。
  • 通过消融研究分析领域顺序(固定 vs. 随机)与模型规模,以隔离其影响。
  • 通过评估相对于训练时间顺序的过去与未来领域表现,分析后向与前向迁移。

实验结果

研究问题

  • RQ1连续领域之间的语义相似性如何影响持续预训练中的领域专业化?
  • RQ2训练顺序(固定 vs. 随机)对大语言模型后向与前向知识迁移有何影响?
  • RQ3模型规模如何影响持续预训练中的学习效率、遗忘与迁移?
  • RQ4持续预训练是否会导致知识饱和?性能何时趋于平稳?
  • RQ5对已收敛模型的进一步预训练在不同领域中在多大程度上会降低或提升性能?

主要发现

  • 当领域语义相似时,持续预训练相比独立微调能实现更好的领域专业化,对近期过去领域有正向迁移,但对遥远过去领域无显著迁移。
  • 随机化训练顺序可提升最终检查点的平均性能,并改善后向迁移,表明先前知识的保留效果更优。
  • 持续预训练提升了BigBench下游任务的性能,表明进一步的生成式预训练可改善零样本泛化能力,优于仅微调。
  • 知识饱和现象表现为性能随时间趋于平稳,且在训练后期遗忘现象更为严重。
  • 较小模型(如GPT2-small)表现出最显著的遗忘与学习速率,挑战了大模型始终优于小模型的传统假设。
  • GPT2-large的后向迁移困惑度高于GPT2-medium与GPT2-xlarge,表明在持续学习中存在非单调的扩展行为。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。