PreprintCited by 11Software Engineering ResearchTopic ModelingTeaching and Learning Programming

PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedback

Open access
Shen, Bo, Zhang, Jiaxin, Chen, Taihong, Zan, Daoguang, Geng, Bing, Fu, An, Zeng, Muhan, Yu, Ailun +4 more·2023·arXiv

Abstract

Large Language Models for Code (Code LLM) are flourishing. New and powerful models are released on a weekly basis, demonstrating remarkable performance on the code generation task. Various approaches have been proposed to boost the code generation performance of pre-trained Code LLMs, such as supervised fine-tuning, instruction tuning, reinforcement learning, etc. In this paper, we propose a novel RRTF (Rank Responses to align Test&Teacher Feedback) framework, which can effectively and efficiently boost pre-trained large language models for code generation. Under this framework, we present PanGu-Coder2, which achieves 62.20% pass@1 on the OpenAI HumanEval benchmark. Furthermore, through an extensive evaluation on CoderEval and LeetCode benchmarks, we show that PanGu-Coder2 consistently outperforms all previous Code LLMs.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2307.14936

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • StarCoder's earlier release positioned it as a foundational model, serving as the basis for several other strong/newer LLMs after fine-tuning, such as PanGu-Coder2, WizardCoder, and OctoPack.

    “When comparing StarCoder [45] with StarCoder2 [51], we found that StarCoder's earlier release positioned it as a foundational model in the field, serving as the basis for several other strong/newer LLMs after fine-tuning, such as PanGu-Coder2 [70], WizardCoder [53], and OctoPack [59].”
  • StarCoder and its pre-training data serve as the foundation for many other LLMs, such as PanGu-Coder2, WizardCoder, OctoPack, CodeShell, and DeepSeek-Coder.

    “As a widely used open-source LLM family, StarCoder and its pre-training data serve as the foundation for many other LLMs, such as PanGu-Coder2 [70], WizardCoder [53], OctoPack [59], CodeShell [94], and DeepSeek-Coder [22].”

Cited by

Sorted by citations

Authors
Shen, B., Zhang, J., Chen, T., Zan, D., Geng, B., Fu, A., Zeng, M., Yu, A., Ji, J., Zhao, J., Guo, Y., & Wang, Q.
Affiliations
  • Huawei Technologies (China) (CN)
  • Peking University (CN)
Venue
arXiv
Publisher
arXiv
Published
2023
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4385373622
Cited by
11
References
0
Citations by year
2025: 4 · 2024: 6 · 2023: 1
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, cc-by-nc-sa)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Computer Science Applications › Teaching and Learning Programming
Keywords
code large language models, code generation, response ranking, test feedback, teacher feedback, pre-trained model fine-tuning, LeetCode

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review