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

LLaMA Pro:通过块扩展实现渐进式 LLaMA

LLaMA Pro: Progressive LLaMA with Block Expansion

The University of Hong Kong(香港大学);ARC Lab, Tencent PCG(腾讯平台与内容事业群ARC实验室);Shanghai Jiao Tong University(上海交通大学);Beijing Language and Culture University(北京语言大学)

Chengyue Wu, Yukang Gan, Yixiao Ge, Zeyu Lu, Jiahao Wang, Ye Feng, Ying Shan, Ping Luo

AI总结:

提出基于 Transformer 块扩展的后预训练方法,仅用新语料微调扩展块以避免灾难性遗忘,构建的 LLaMA Pro 在编程和数学等任务上表现卓越,为高级语言智能体奠定基础。

摘要:

人类通常在学习新技能时不会损害旧技能;然而,大型语言模型(LLMs)的情况恰恰相反,例如从 LLaMA 到 CodeLLaMA。为此,我们提出了一种新的 LLMs 后预训练方法,通过扩展 Transformer 块来实现。我们仅使用新语料库对扩展的块进行微调,在不发生灾难性遗忘的情况下,高效且有效地提升了模型的知识。本文中,我们在代码和数学语料库上进行实验,生成了 LLaMA Pro-8.3B,这是一个从 LLaMA2-7B 初始化的通用基础模型,在通用任务、编程和数学方面表现卓越。LLaMA Pro 及其指令跟随版本(LLaMA Pro-Instruct)在多个基准测试中取得了先进性能,展示了对 LLaMA 家族现有开源模型的优越性,以及作为智能体进行推理和处理多样化任务的巨大潜力。我们的发现为整合自然语言和编程语言提供了有价值的见解,为开发能在各种环境中有效运行的高级语言智能体奠定了坚实基础。

英文摘要:

Humans generally acquire new skills without compromising the old; however, the opposite holds for Large Language Models (LLMs), e.g., from LLaMA to CodeLLaMA. To this end, we propose a new post-pretraining method for LLMs with an expansion of Transformer blocks. We tune the expanded blocks using only new corpus, efficiently and effectively improving the model's knowledge without catastrophic forgetting. In this paper, we experiment on the corpus of code and math, yielding LLaMA Pro-8.3B, a versatile foundation model initialized from LLaMA2-7B, excelling in general tasks, programming, and mathematics. LLaMA Pro and its instruction-following counterpart (LLaMA Pro-Instruct) achieve advanced performance among various benchmarks, demonstrating superiority over existing open models in the LLaMA family and the immense potential of reasoning and addressing diverse tasks as an intelligent agent. Our findings provide valuable insights into integrating natural and programming languages, laying a solid foundation for developing advanced language agents that operate effectively in various environments.

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

↑