CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generation
Not on the map. Why?
Abstract (arXiv)
Code generation is a longstanding challenge, aiming to generate a code snippet based on a natural language description. Usually, expensive text-code paired data is essential for training a code generation model. Recently, thanks to the success of pre-training techniques, large language models are trained on large-scale unlabelled code corpora and perform well in code generation. In this paper, we investigate how to leverage an unlabelled code corpus to train a model for library-oriented code generation. Since it is a common practice for programmers to reuse third-party libraries, in which case the text-code paired data are harder to obtain due to the huge number of libraries. We observe that library-oriented code snippets are more likely to share similar code sketches. Hence, we present CERT with two steps: a sketcher generates the sketch, then a generator fills the details in the sketch. Both the sketcher and the generator are continually pre-trained upon a base model using unlabelled data. Furthermore, we craft two benchmarks named PandasEval and NumpyEval to evaluate library-oriented code generation. Experimental results demonstrate the impressive performance of CERT. For example, it surpasses the base model by an absolute 15.67% improvement in terms of pass@1 on PandasEval. Our work is available at https://github.com/microsoft/PyCodeGPT.
Key facts. Cited by 87 papers in the map (data through 7 Oct 2026). Builds on 17 of its 28 references that are in the map. First posted on arXiv 14 Jun 2022.
Builds on
17 of 28 references.
References · 17
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 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
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
5 more
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
- 2019Learning to Infer Program Sketchescited by 44
- 2018A Grammar-Based Structural CNN Decoder for Code Generationcited by 29
Built on by
Citing papers per year: 2022: 2; 2023: 18; 2024: 42; 2025: 20; 2026: 5.
87 papers.
Sort:
By area:
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2024Continual Learning for Large Language Models: A Surveycited by 144
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 122
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agentscited by 80
- 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
38 more
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2024Reuse, Don't Retrain: A Recipe for Continued Pretraining of Language Modelscited by 69
- 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 65
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 62
- 2024Towards Lifelong Learning of Large Language Models: A Surveycited by 60
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2022When Language Model Meets Private Librarycited by 54
- 2023Bias Testing and Mitigation in LLM-based Code Generationcited by 53
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 42
- 2023Data Contamination Through the Lens of Timecited by 39
- 2024Automatic Programming: Large Language Models and Beyondcited by 35
- 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Javacited by 34
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarkscited by 34
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 33
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2024Benchmarking Data Science Agentscited by 30
- 2024InsightBench: Evaluating Business Analytics Agents Through Multi-Step Insight Generationcited by 30
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?cited by 29
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2023Traces of Memorisation in Large Language Models for Codecited by 26
- 2024MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generationcited by 25
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
- 2023Zero-Shot Detection of Machine-Generated Codescited by 24
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Codecited by 24
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2025MLLM-CL: Continual Learning for Multimodal Large Language Modelscited by 21
- 2024Codev-Bench: How Do LLMs Understand Developer-Centric Code Completion?cited by 17
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2023Enhancing Large Language Models for Secure Code Generation: A Dataset-driven Study on Vulnerability Mitigationcited by 14
- 2023Do Large Language Models Pay Similar Attention Like Human Programmers When Generating Code?cited by 13
- 2024Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation Benchmarkcited by 13
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Modelscited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
50 most cited of 87 All 87 (JSON)
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generation4 May 2026
- 2026From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion2 Apr 2026
- 2026φ-DPO: Fairness Direct Preference Optimization Approach to Continual Learning in Large Multimodal Models26 Feb 2026
- 2026From What to How: Bridging User Requirements with Software Development Using Large Language Models14 Feb 2026
- 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?19 Jan 2026
- 2025Reusing Overtrained Language Models Saturates Scaling8 Oct 2025
- 2025Library Hallucinations in LLM-Generated Code: A Risk Analysis Grounded in Developer Queries26 Sep 2025
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion13 Aug 2025
- 2025ASPERA: A Simulated Environment to Evaluate Planning for Complex Action Execution21 Jul 2025
- 2025ADRD: LLM-Driven Autonomous Driving Based on Rule-based Decision Systems17 Jun 2025
- 2025Measuring Data Science Automation: A Survey of Evaluation Tools for AI Assistants and Agents10 Jun 2025
- 2025MLLM-CL: Continual Learning for Multimodal Large Language Models5 Jun 2025
38 more
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code19 May 2025
- 2025CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluation29 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr 2025
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving3 Apr 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025Alchemist: Towards the Design of Efficient Online Continual Learning System3 Mar 2025
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion18 Feb 2025
- 2025LessLeak-Bench: A First Investigation of Data Leakage in LLMs Across 83 Software Engineering Benchmarks10 Feb 2025
- 2024SketchFill: Sketch-Guided Code Generation for Imputing Derived Missing Values26 Dec 2024
- 2024Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation Benchmark24 Dec 2024
- 2024TransitGPT: A Generative AI-based framework for interacting with GTFS data using Large Language Models7 Dec 2024
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systems29 Nov 2024
- 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Models5 Nov 2024
- 2024Metamorphic Malware Evolution: The Potential and Peril of Large Language Models31 Oct 2024
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluations30 Oct 2024
- 2024Faster Language Models with Better Multi-Token Prediction Using Tensor Decomposition23 Oct 2024
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Model21 Oct 2024
- 2024Evaluation of Code LLMs on Geospatial Code Generation6 Oct 2024
- 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languages4 Oct 2024
- 2024Codev-Bench: How Do LLMs Understand Developer-Centric Code Completion?2 Oct 2024
- 2024A Comprehensive Framework for Evaluating API-oriented Code Generation in Large Language Models23 Sep 2024
- 2024Promise and Peril of Collaborative Code Generation Models: Balancing Effectiveness and Memorization18 Sep 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Java26 Aug 2024
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generation23 Aug 2024
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?20 Aug 2024
- 2024Reuse, Don't Retrain: A Recipe for Continued Pretraining of Language Models9 Jul 2024
- 2024InsightBench: Evaluating Business Analytics Agents Through Multi-Step Insight Generation8 Jul 2024
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Study8 Jul 2024
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions22 Jun 2024
- 2024JavaBench: A Benchmark of Object-Oriented Code Generation for Evaluating Large Language Models10 Jun 2024
- 2024Towards Lifelong Learning of Large Language Models: A Survey10 Jun 2024
- 2024A Survey on Large Language Models for Code Generation1 Jun 2024
50 newest of 87 All 87 (JSON)
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agentscited by 80
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisationcited by 31
- 2024Benchmarking Data Science Agentscited by 30
- 2024InsightBench: Evaluating Business Analytics Agents Through Multi-Step Insight Generationcited by 30
- 2025Measuring Data Science Automation: A Survey of Evaluation Tools for AI Assistants and Agentscited by 4
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Modelscited by 3
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generationcited by 1
- 2026ARIADNE: Agentic Reward-Informed Adaptive Decision Exploration via Blackboard-Driven MCTS for Competitive Program Generation4 May 2026
- 2025Measuring Data Science Automation: A Survey of Evaluation Tools for AI Assistants and Agents10 Jun 2025
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024InsightBench: Evaluating Business Analytics Agents Through Multi-Step Insight Generation8 Jul 2024
- 2024Benchmarking Data Science Agents27 Feb 2024
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges14 Jan 2024
- 2023AgentCoder: Multi-Agent-based Code Generation with Iterative Testing and Optimisation20 Dec 2023
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyondcited by 22
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systemscited by 7
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Modelcited by 5
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completioncited by 0
- 2025SaraCoder: Orchestrating Semantic and Structural Cues for Resource-Optimized Repository-Level Code Completion13 Aug 2025
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond26 Mar 2025
- 2024Understanding the Fundamental Design Decisions of Retrieval-Augmented Generation Systems29 Nov 2024
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Model21 Oct 2024
- 2023Apollo: Zero-shot MultiModal Reasoning with Multiple Experts25 Oct 2023
- 2023Traces of Memorisation in Large Language Models for Codecited by 26
- 2023Traces of Memorisation in Large Language Models for Code18 Dec 2023
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2024Continual Learning for Large Language Models: A Surveycited by 144
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 122
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2023Improving Code Generation by Training with Natural Language Feedbackcited by 75
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 71
12 most cited of 69 All 69 (JSON)
- 2026From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion2 Apr 2026
- 2026From What to How: Bridging User Requirements with Software Development Using Large Language Models14 Feb 2026
- 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?19 Jan 2026
- 2025Reusing Overtrained Language Models Saturates Scaling8 Oct 2025
- 2025Library Hallucinations in LLM-Generated Code: A Risk Analysis Grounded in Developer Queries26 Sep 2025
- 2025ASPERA: A Simulated Environment to Evaluate Planning for Complex Action Execution21 Jul 2025
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code19 May 2025
- 2025CoCo-Bench: A Comprehensive Code Benchmark For Multi-task Large Language Model Evaluation29 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving3 Apr 2025
- 2025ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding27 Mar 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
12 newest of 69 All 69 (JSON)