PanGu-Coder: Program Synthesis with Function-Level Language Modeling
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 47 papers in the map (data through 7 Oct 2026). Builds on 49 of its 72 references that are in the map. First posted on arXiv 22 Jul 2022.
Builds on
49 of 72 references.
References · 49
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
37 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2020Connecting the Dots: Multivariate Time Series Forecasting with Graph Neural Networkscited by 563
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 487
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2019FinBERT: Financial Sentiment Analysis with Pre-trained Language Modelscited by 378
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 259
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
- 2021PanGu-α: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computationcited by 134
- 2020Deep Transformer Models for Time Series Forecasting: The Influenza Prevalence Casecited by 129
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2020Contrastive Code Representation Learningcited by 76
- 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
- 2019Selfie: Self-supervised Pretraining for Image Embeddingcited by 46
- 2021TreeBERT: A Tree-Based Pre-Trained Model for Programming Languagecited by 40
- 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
- 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
Built on by
Citing papers per year: 2022: 3; 2023: 22; 2024: 17; 2025: 5.
47 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 110
- 2024Large Language Models Meet NLP: A Surveycited by 102
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 74
35 more
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2023ML-Bench: Evaluating Large Language Models and Agents for Machine Learning Tasks on Repository-Level Codecited by 63
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Codecited by 61
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computingcited by 55
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 48
- 2023LLMR: Real-time Prompting of Interactive Worlds using Large Language Modelscited by 39
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2023Measuring The Impact Of Programming Language Distributioncited by 32
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Contextcited by 32
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
- 2023LLM for SoC Security: A Paradigm Shiftcited by 22
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2025Improving RL Exploration for LLM Reasoning through Retrospective Replaycited by 19
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 17
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
- 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Modelscited by 15
- 2023Efficient Avoidance of Vulnerabilities in Auto-completed Smart Contract Code Using Vulnerability-constrained Decodingcited by 14
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2023Exploring Data Augmentation for Code Generation Taskscited by 7
- 2024Exploring the Potential of Large Language Models for Improving Digital Forensic Investigation Efficiencycited by 7
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Trainingcited by 6
- 2023Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesiscited by 4
- 2022A Survey on Natural Language Processing for Programmingcited by 3
- 2024RoCode: A Dataset for Measuring Code Intelligence from Problem Definitions in Romaniancited by 3
- 2024Slice-100K: A Multimodal Dataset for Extrusion-based 3D Printingcited by 3
- 2023OpenAi's GPT4 as coding assistantcited by 1
- 2024Text-to-Code Generation with Modality-relative Pre-trainingcited by 1
- 2024CodingTeachLLM: Empowering LLM's Coding Ability via AST Prior Knowledgecited by 0
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Improving RL Exploration for LLM Reasoning through Retrospective Replay19 Apr 2025
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code18 Mar 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities23 Jan 2025
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigation30 Sep 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024A Performance Study of LLM-Generated Code on Leetcode31 Jul 2024
- 2024Slice-100K: A Multimodal Dataset for Extrusion-based 3D Printing4 Jul 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024Large Language Models Meet NLP: A Survey21 May 2024
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketch25 Mar 2024
35 more
- 2024CodingTeachLLM: Empowering LLM's Coding Ability via AST Prior Knowledge13 Mar 2024
- 2024Bugs in Large Language Models Generated Code: An Empirical Study13 Mar 2024
- 2024Exploring the Potential of Large Language Models for Improving Digital Forensic Investigation Efficiency29 Feb 2024
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement22 Feb 2024
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Context22 Feb 2024
- 2024RoCode: A Dataset for Measuring Code Intelligence from Problem Definitions in Romanian20 Feb 2024
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentation20 Feb 2024
- 2024Text-to-Code Generation with Modality-relative Pre-training8 Feb 2024
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Code3 Feb 2024
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback2 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examples20 Nov 2023
- 2023ML-Bench: Evaluating Large Language Models and Agents for Machine Learning Tasks on Repository-Level Code16 Nov 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Automatic Unit Test Data Generation and Actor-Critic Reinforcement Learning for Code Synthesis20 Oct 2023
- 2023LLM for SoC Security: A Paradigm Shift9 Oct 2023
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?28 Sep 2023
- 2023OpenAi's GPT4 as coding assistant22 Sep 2023
- 2023LLMR: Real-time Prompting of Interactive Worlds using Large Language Models21 Sep 2023
- 2023Efficient Avoidance of Vulnerabilities in Auto-completed Smart Contract Code Using Vulnerability-constrained Decoding18 Sep 2023
- 2023CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Models5 Sep 2023
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Models31 Aug 2023
- 2023OctoPack: Instruction Tuning Code Large Language Models14 Aug 2023
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generation3 Aug 2023
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedback27 Jul 2023
- 2023RLTF: Reinforcement Learning from Unit Test Feedback10 Jul 2023
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problems26 Jun 2023
- 2023Type Prediction With Program Decomposition and Fill-in-the-Type Training25 May 2023
- 2023PanGu-Sigma: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computing20 Mar 2023
- 2023Exploring Data Augmentation for Code Generation Tasks5 Feb 2023
- 2023Measuring The Impact Of Programming Language Distribution3 Feb 2023
- 2023SantaCoder: don't reach for the stars!9 Jan 2023
- 2022Large Language Models Meet NL2Code: A Survey19 Dec 2022
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022The Stack: 3 TB of permissively licensed source code20 Nov 2022
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?cited by 82
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedbackcited by 74
- 2025Improving RL Exploration for LLM Reasoning through Retrospective Replaycited by 19
- 2025Improving RL Exploration for LLM Reasoning through Retrospective Replay19 Apr 2025
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement22 Feb 2024
- 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback2 Feb 2024
- 2023At Which Training Stage Does Code Data Help LLMs Reasoning?28 Sep 2023
- 2023ML-Bench: Evaluating Large Language Models and Agents for Machine Learning Tasks on Repository-Level Codecited by 63
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2023ML-Bench: Evaluating Large Language Models and Agents for Machine Learning Tasks on Repository-Level Code16 Nov 2023
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 110
- 2024Large Language Models Meet NLP: A Surveycited by 102
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
12 most cited of 38 All 38 (JSON)
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigation30 Sep 2024
- 2024A Performance Study of LLM-Generated Code on Leetcode31 Jul 2024
- 2024Slice-100K: A Multimodal Dataset for Extrusion-based 3D Printing4 Jul 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
- 2024Large Language Models Meet NLP: A Survey21 May 2024
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketch25 Mar 2024
- 2024CodingTeachLLM: Empowering LLM's Coding Ability via AST Prior Knowledge13 Mar 2024
- 2024Bugs in Large Language Models Generated Code: An Empirical Study13 Mar 2024
- 2024Exploring the Potential of Large Language Models for Improving Digital Forensic Investigation Efficiency29 Feb 2024
- 2024REPOFUSE: Repository-Level Code Completion with Fused Dual Context22 Feb 2024
- 2024RoCode: A Dataset for Measuring Code Intelligence from Problem Definitions in Romanian20 Feb 2024
12 newest of 38 All 38 (JSON)