PanGu-Coder: Program Synthesis with Function-Level Language Modeling

By Fenia Christopoulou, Gerasimos Lampouras, Milan Gritta, Guchun Zhang, Yinpeng Guo, Zhong-yi Li, Qi Zhang, M. Xiao, Bo Shen, Lin Li and 12 more. 2022

87 citations recorded by the source corpus.

We present PanGu-Coder, a pretrained decoder-only language model adopting the PanGu-Alpha architecture for text-to-code generation, i.e. the synthesis of programming language solutions given a natural language problem description. We train PanGu-Coder using a two-stage strategy: the first stage employs Causal Language Modelling (CLM) to pre-train on raw programming language data, while the second stage uses a combination of Causal Language Modelling and Masked Language Modelling (MLM) training objectives that focus on the downstream task of text-to-code generation and train on loosely curated pairs of natural language program definitions and code functions. Finally, we discuss PanGu-Coder-FT, which is fine-tuned on a combination of competitive programming problems and code with continuous integration tests. We evaluate PanGu-Coder with a focus on whether it generates functionally correct programs and demonstrate that it achieves equivalent or better performance than similarly sized models, such as CodeX, while attending a smaller context window and training on less data.

Subfields: Artificial Intelligence, Information Systems, Software, Large Language Models, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Thomas Wolf
  5. Kyunghyun Cho
  6. Yoshua Bengio
  7. Daniel Fried
  8. Yacine Jernite

In Information Systems

  1. Raymond Li
  2. Carolyn Jane Anderson
  3. Harm de Vries
  4. Carlos Muñoz Ferrandis
  5. Danish Contractor
  6. Arjun Guha
  7. Hailey Schoelkopf
  8. Loubna Ben Allal

In Software

  1. Carolyn Jane Anderson
  2. Arjun Guha

In Large Language Models

  1. Qian Liu
  2. Manan Dey
  3. Niklas Muennighoff
  4. Logesh Kumar Umapathi
  5. Paulo Villegas
  6. Hailey Schoelkopf
  7. Yacine Jernite
  8. Dzmitry Bahdanau

In Code Generation & Program Synthesis

  1. Qian Liu
  2. Raymond Li
  3. Carolyn Jane Anderson
  4. Arjun Guha
  5. Dzmitry Bahdanau
  6. Daniel Fried

Citations in the corpus