Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

LLaMA Pro: Progressive LLaMA with Block Expansion

About

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.

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

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
Accuracy77.94
1460
Code GenerationHumanEval
Pass@144.51
850
Multi-task Language UnderstandingMMLU
Accuracy52.57
842
Language ModelingWikiText-103 (test)
Perplexity7.81
524
Multi-turn Dialogue EvaluationMT-Bench
Overall Score6.32
331
Boolean Question AnsweringBoolQ
Accuracy64.86
307
Question AnsweringARC-E
Accuracy28.92
242
Question AnsweringBoolQ
Accuracy68.1
240
Commonsense ReasoningWinoGrande
Accuracy73.95
231
Question AnsweringTriviaQA
Accuracy63.68
210
Showing 10 of 29 rows

Other info

Code

Follow for update