CodeGen2: Lessons for Training LLMs on Programming and Natural Languages
Erik Nijkamp, Hiroaki Hayashi, Caiming Xiong, Silvio Savarese, Yingbo, Zhou

TL;DR
This paper investigates efficient training strategies for large language models in programming and natural language tasks by unifying architectures, learning methods, sampling, and data, supported by extensive empirical experiments.
Contribution
It introduces a unified framework for training LLMs on code and natural language, combining architectures, learning algorithms, and data strategies, with empirical validation on 1B models.
Findings
Unified model architecture improves training efficiency.
Infill sampling offers potential benefits under certain conditions.
Mixture data and multi-epoch training enhance model performance.
Abstract
Large language models (LLMs) have demonstrated remarkable abilities in representation learning for program synthesis and understanding tasks. The quality of the learned representations appears to be dictated by the neural scaling laws as a function of the number of model parameters and observations, while imposing upper bounds on the model performance by the amount of available data and compute, which is costly. In this study, we attempt to render the training of LLMs for program synthesis more efficient by unifying four key components: (1) model architectures, (2) learning methods, (3) infill sampling, and, (4) data distributions. Specifically, for the model architecture, we attempt to unify encoder and decoder-based models into a single prefix-LM. For learning methods, (i) causal language modeling, (ii) span corruption, (iii) infilling are unified into a simple learning algorithm.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗Salesforce/codegen2-1B_Pmodel· 588 dl· ♡ 41588 dl♡ 41
- 🤗Salesforce/codegen2-3_7B_Pmodel· 303 dl· ♡ 16303 dl♡ 16
- 🤗Salesforce/codegen2-7B_Pmodel· 326 dl· ♡ 26326 dl♡ 26
- 🤗Salesforce/codegen2-16B_Pmodel· 271 dl· ♡ 45271 dl♡ 45
- 🤗michaelfeil/ct2fast-codegen2-1Bmodel· 23 dl· ♡ 123 dl♡ 1
- 🤗michaelfeil/ct2fast-codegen2-3_7Bmodel· 23 dl· ♡ 123 dl♡ 1
- 🤗michaelfeil/ct2fast-codegen2-7Bmodel· 26 dl· ♡ 326 dl♡ 3
- 🤗michaelfeil/ct2fast-codegen2-16Bmodel· 20 dl· ♡ 120 dl♡ 1
- 🤗michaelfeil/codegen2-1B-gptjmodel· 22 dl· ♡ 122 dl♡ 1
- 🤗michaelfeil/codegen2-3_7B-gptjmodel· 5 dl· ♡ 15 dl♡ 1
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Ferroelectric and Negative Capacitance Devices
