arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17400cs.CL
收藏

大语言模型中的持续预训练研究:见解与启示

Investigating Continual Pretraining in Large Language Models: Insights and Implications

University of Tübingen(蒂宾根大学);Cohere for AI;Tübingen AI Center, University of Tübingen(蒂宾根人工智能中心,蒂宾根大学)

Çağatay Yıldız, Nishaanth Kanna Ravichandran, Nitin Sharma, Matthias Bethge, Beyza Ermis

AI总结:

针对现有工作多聚焦有限下游任务或领域的持续微调问题,该研究引入新基准衡量LLMs对预训练数据变化的适应性,探究模型规模等因素的影响,发现持续预训练对小模型提升显著等关键见解,为LLMs持续学习提供新基准与评估方法。

摘要:

大语言模型(LLMs)中的持续学习(CL)是一个不断发展的领域,专注于开发高效且可持续的训练策略,以使模型适应新兴知识并在动态环境中实现鲁棒性。我们的主要重点是持续领域自适应预训练,这一过程旨在让LLMs具备从不同领域整合新信息同时保留先前所学知识的能力。由于现有工作大多集中于针对有限下游任务或训练领域的持续微调,我们引入了一个新基准,用于衡量LLMs对变化的预训练数据场景的适应性。我们进一步研究了模型规模对学习效果和遗忘的影响,以及新兴领域的序列和相似性如何影响这些模型内的知识迁移。我们的发现揭示了几个关键见解:(i)持续预训练持续提升本研究中涉及的<15亿参数模型的性能,且优于领域自适应;(ii)在相同语料上持续预训练时,更大的模型总是比更小的模型获得更低的困惑度;(iii)更小的模型对持续预训练特别敏感,表现出最显著的学习和遗忘速率;(iv)持续预训练提升了GPT-2系列模型的下游任务性能;(v)当领域序列具有语义相似性时,持续预训练使LLMs更好地专业化,而随机化训练领域则在其他情况下带来更好的迁移和最终性能。我们认为,我们的研究为LLMs中的CL建立了一个新基准,为跨不同领域的知识保留和迁移提供了更现实的评估。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑