mlsanityData to 7 Oct 2026

Exploring Continual Learning for Code Generation Models

arXiv 2307.02435 ↗First posted 5 Jul 2023cs.LG cs.CL cs.SEcited by 22

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,313
  7. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  8. 2017Gradient Episodic Memory for Continual Learningcited by 1,871
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  10. 2018Efficient Lifelong Learning with A-GEMcited by 1,044
  11. 2021Learning to Prompt for Continual Learningcited by 938
  12. 2020Dark Experience for General Continual Learning: a Strong, Simple Baselinecited by 895
26 more
  1. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  2. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  3. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  4. 2021GPT Understands, Toocited by 715
  5. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  6. 2022DualPrompt: Complementary Prompting for Rehearsal-free Continual Learningcited by 635
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  8. 2018Progress & Compress: A scalable framework for continual learningcited by 516
  9. 2018Learning to Learn without Forgetting by Maximizing Transfer and Minimizing Interferencecited by 511
  10. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  11. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  12. 2020Multi-Task Learning with Deep Neural Networks: A Surveycited by 374
  13. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  14. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  15. 2020Unsupervised Translation of Programming Languagescited by 262
  16. 2020Federated Continual Learning with Weighted Inter-client Transfercited by 158
  17. 2020Continual Lifelong Learning in Natural Language Processing: A Surveycited by 152
  18. 2019A continual learning survey: Defying forgetting in classification taskscited by 118
  19. 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 106
  20. 2018Mapping Language to Code in Programmatic Contextcited by 104
  21. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  22. 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
  23. 2019Learning and Evaluating General Linguistic Intelligencecited by 78
  24. 2021CoCoSum: Contextual Code Summarization with Multi-Relational Graph Neural Networkcited by 22
  25. 2019Learning Programmatic Idioms for Scalable Semantic Parsingcited by 17
  26. 2020TranS^3: A Transformer-based Framework for Unifying Code Summarization and Code Searchcited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 13; 2025: 6; 2026: 1.

22 papers.

Sort:

By area:

  1. 2024Continual Learning with Pre-Trained Models: A Surveycited by 151
  2. 2024Continual Learning for Large Language Models: A Surveycited by 144
  3. 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 122
  4. 2024Towards Lifelong Learning of Large Language Models: A Surveycited by 60
  5. 2024What Matters for Model Merging at Scale?cited by 52
  6. 2024Recent Advances of Foundation Language Models-based Continual Learning: A Surveycited by 46
  7. 2023Exploring Parameter-Efficient Fine-Tuning Techniques for Code Generation with Large Language Modelscited by 28
  8. 2024Planning and Editing What You Retrieve for Enhanced Tool Learningcited by 21
  9. 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
  10. 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
  11. 2024VersiCode: Towards Version-controllable Code Generationcited by 14
  12. 2024Towards LifeSpan Cognitive Systemscited by 13
10 more
  1. 2025Continual Text-to-Video Retrieval with Frame Fusion and Task-Aware Routingcited by 12
  2. 2025Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansioncited by 8
  3. 2025LoRE-Merging: Exploring Low-Rank Estimation For Large Language Model Mergingcited by 7
  4. 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Surveycited by 6
  5. 2024GitChameleon: Unmasking the Version-Switching Capabilities of Code Generation Modelscited by 6
  6. 2025LifeAlign: Lifelong Alignment for Large Language Models with Memory-Augmented Focalized Preference Optimizationcited by 6
  7. 2025When Domain Generalization meets Generalized Category Discovery: An Adaptive Task-Arithmetic Driven Approachcited by 5
  8. 2025Reusing Overtrained Language Models Saturates Scalingcited by 2
  9. 2024PromptDSI: Prompt-based Rehearsal-free Continual Learning for Document Retrievalcited by 1
  10. 2026Structural Abstraction as an Inductive Bias for Non-Stationary Language Model Trainingcited by 0