Exploring Continual Learning for Code Generation Models
Not on the map. Why?
Abstract (arXiv)
Large-scale code generation models such as Codex and CodeT5 have achieved impressive performance. However, libraries are upgraded or deprecated very frequently and re-training large-scale language models is computationally expensive. Therefore, Continual Learning (CL) is an important aspect that remains underexplored in the code domain. In this paper, we introduce a benchmark called CodeTask-CL that covers a wide range of tasks, including code generation, translation, summarization, and refinement, with different input and output programming languages. Next, on our CodeTask-CL benchmark, we compare popular CL techniques from NLP and Vision domains. We find that effective methods like Prompt Pooling (PP) suffer from catastrophic forgetting due to the unstable training of the prompt selection mechanism caused by stark distribution shifts in coding tasks. We address this issue with our proposed method, Prompt Pooling with Teacher Forcing (PP-TF), that stabilizes training by enforcing constraints on the prompt selection mechanism and leads to a 21.54% improvement over Prompt Pooling. Along with the benchmark, we establish a training pipeline that can be used for CL on code models, which we believe can motivate further development of CL methods for code models. Our code is available at https://github.com/amazon-science/codetaskcl-pptf
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 38 of its 61 references that are in the map. First posted on arXiv 5 Jul 2023.
Builds on
38 of 61 references.
References · 38
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,313
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2017Gradient Episodic Memory for Continual Learningcited by 1,871
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2018Efficient Lifelong Learning with A-GEMcited by 1,044
- 2021Learning to Prompt for Continual Learningcited by 938
- 2020Dark Experience for General Continual Learning: a Strong, Simple Baselinecited by 895
26 more
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2021GPT Understands, Toocited by 715
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2022DualPrompt: Complementary Prompting for Rehearsal-free Continual Learningcited by 635
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2018Progress & Compress: A scalable framework for continual learningcited by 516
- 2018Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interferencecited by 511
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2020Multi-Task Learning with Deep Neural Networks: A Surveycited by 374
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2020Federated Continual Learning with Weighted Inter-client Transfercited by 158
- 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
- 2019A continual learning survey: Defying forgetting in classification taskscited by 118
- 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 106
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2019Learning and Evaluating General Linguistic Intelligencecited by 78
- 2021CoCoSum: Contextual Code Summarization with Multi-Relational Graph Neural Networkcited by 22
- 2019Learning Programmatic Idioms for Scalable Semantic Parsingcited by 17
- 2020TranS^3: A Transformer-based Framework for Unifying Code Summarization and Code Searchcited by 11
Built on by
Citing papers per year: 2023: 2; 2024: 13; 2025: 6; 2026: 1.
22 papers.
Sort:
By area:
- 2024Continual Learning with Pre-Trained Models: A Surveycited by 151
- 2024Continual Learning for Large Language Models: A Surveycited by 144
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 122
- 2024Towards Lifelong Learning of Large Language Models: A Surveycited by 60
- 2024What Matters for Model Merging at Scale?cited by 52
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Surveycited by 46
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2024Planning and Editing What You Retrieve for Enhanced Tool Learningcited by 21
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2024VersiCode: Towards Version-controllable Code Generationcited by 14
- 2024Towards LifeSpan Cognitive Systemscited by 13
10 more
- 2025Continual Text-to-Video Retrieval with Frame Fusion and Task-Aware Routingcited by 12
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansioncited by 8
- 2025LoRE-Merging: Exploring Low-Rank Estimation For Large Language Model Mergingcited by 7
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Surveycited by 6
- 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Modelscited by 6
- 2025LifeAlign: Lifelong Alignment for Large Language Models with Memory-Augmented Focalized Preference Optimizationcited by 6
- 2025When Domain Generalization meets Generalized Category Discovery: An Adaptive Task-Arithmetic Driven Approachcited by 5
- 2025Reusing Overtrained Language Models Saturates Scalingcited by 2
- 2024PromptDSI: Prompt-based Rehearsal-free Continual Learning for Document Retrievalcited by 1
- 2026Structural Abstraction as an Inductive Bias for Non-Stationary Language Model Trainingcited by 0
- 2026Structural Abstraction as an Inductive Bias for Non-Stationary Language Model Training17 Mar 2026
- 2025Reusing Overtrained Language Models Saturates Scaling8 Oct 2025
- 2025LifeAlign: Lifelong Alignment for Large Language Models with Memory-Augmented Focalized Preference Optimization21 Sep 2025
- 2025When Domain Generalization meets Generalized Category Discovery: An Adaptive Task-Arithmetic Driven Approach19 Mar 2025
- 2025Continual Text-to-Video Retrieval with Frame Fusion and Task-Aware Routing13 Mar 2025
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion18 Feb 2025
- 2025LoRE-Merging: Exploring Low-Rank Estimation For Large Language Model Merging15 Feb 2025
- 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Models5 Nov 2024
- 2024What Matters for Model Merging at Scale?4 Oct 2024
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models29 Jun 2024
- 2024PromptDSI: Prompt-based Rehearsal-free Continual Learning for Document Retrieval18 Jun 2024
10 more
- 2024On the Impacts of Contexts on Repository-Level Code Generation17 Jun 2024
- 2024VersiCode: Towards Version-controllable Code Generation11 Jun 2024
- 2024Towards Lifelong Learning of Large Language Models: A Survey10 Jun 2024
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Survey28 May 2024
- 2024Planning and Editing What You Retrieve for Enhanced Tool Learning30 Mar 2024
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Models13 Mar 2024
- 2024Continual Learning for Large Language Models: A Survey2 Feb 2024
- 2024Continual Learning with Pre-Trained Models: A Survey29 Jan 2024
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Survey11 Dec 2023
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Models21 Aug 2023
- 2024Continual Learning with Pre-Trained Models: A Surveycited by 151
- 2024Continual Learning for Large Language Models: A Surveycited by 144
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 122
- 2024Towards Lifelong Learning of Large Language Models: A Surveycited by 60
- 2024What Matters for Model Merging at Scale?cited by 52
- 2024Recent Advances of Foundation Language Models-based Continual Learning: A Surveycited by 46
- 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2024VersiCode: Towards Version-controllable Code Generationcited by 14
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2025Continual Text-to-Video Retrieval with Frame Fusion and Task-Aware Routingcited by 12
12 most cited of 20 All 20 (JSON)
- 2026Structural Abstraction as an Inductive Bias for Non-Stationary Language Model Training17 Mar 2026
- 2025Reusing Overtrained Language Models Saturates Scaling8 Oct 2025
- 2025When Domain Generalization meets Generalized Category Discovery: An Adaptive Task-Arithmetic Driven Approach19 Mar 2025
- 2025Continual Text-to-Video Retrieval with Frame Fusion and Task-Aware Routing13 Mar 2025
- 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion18 Feb 2025
- 2025LoRE-Merging: Exploring Low-Rank Estimation For Large Language Model Merging15 Feb 2025
- 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Models5 Nov 2024
- 2024What Matters for Model Merging at Scale?4 Oct 2024
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models29 Jun 2024
- 2024PromptDSI: Prompt-based Rehearsal-free Continual Learning for Document Retrieval18 Jun 2024
- 2024On the Impacts of Contexts on Repository-Level Code Generation17 Jun 2024
12 newest of 20 All 20 (JSON)