Exploring Continual Learning for Code Generation Models
Prateek Yadav, Qing Sun, Hantian Ding, Xiaopeng Li, Dejiao Zhang, Ming, Tan, Xiaofei Ma, Parminder Bhatia, Ramesh Nallapati, Murali Krishna, Ramanathan, Mohit Bansal, Bing Xiang

TL;DR
This paper introduces a new benchmark for continual learning in code generation, compares existing methods, identifies challenges like catastrophic forgetting, and proposes a novel stabilization technique that significantly improves performance.
Contribution
It presents CodeTask-CL benchmark, analyzes CL methods in code domain, and proposes Prompt Pooling with Teacher Forcing to enhance stability and performance.
Findings
Prompt Pooling suffers from catastrophic forgetting.
PP-TF stabilizes training and improves performance by 21.54%.
Benchmark and pipeline facilitate future CL research in code models.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Topic Modeling · Machine Learning and Data Classification
MethodsGated Linear Unit · Refunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Byte Pair Encoding · Linear Layer · SentencePiece · Multi-Head Attention · Residual Connection · Softmax · Dense Connections
