On the Usage of Continual Learning for Out-of-Distribution Generalization in Pre-trained Language Models of Code
Martin Weyssow, Xin Zhou, Kisub Kim, David Lo, Houari Sahraoui

TL;DR
This paper explores the application of continual learning techniques to improve the robustness of pre-trained language models of code in dynamic, real-world software environments, addressing distribution shifts and catastrophic forgetting.
Contribution
It introduces a scenario for adapting PLMs of code to evolving software data and evaluates five continual learning methods to mitigate forgetting in this context.
Findings
Continual learning methods reduce catastrophic forgetting in PLMs of code.
Replay-based and regularization-based approaches perform effectively across tasks.
Proposed methods achieve comparable or better performance than standard fine-tuning.
Abstract
Pre-trained language models (PLMs) have become a prevalent technique in deep learning for code, utilizing a two-stage pre-training and fine-tuning procedure to acquire general knowledge about code and specialize in a variety of downstream tasks. However, the dynamic nature of software codebases poses a challenge to the effectiveness and robustness of PLMs. In particular, world-realistic scenarios potentially lead to significant differences between the distribution of the pre-training and test data, i.e., distribution shift, resulting in a degradation of the PLM's performance on downstream tasks. In this paper, we stress the need for adapting PLMs of code to software data whose distribution changes over time, a crucial problem that has been overlooked in previous works. The motivation of this work is to consider the PLM in a non-stationary environment, where fine-tuning data evolves over…
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
TopicsDomain Adaptation and Few-Shot Learning · Topic Modeling · Multimodal Machine Learning Applications
MethodsAttention Is All You Need · Test · Linear Warmup With Linear Decay · Softmax · Layer Normalization · Linear Layer · WordPiece · Dropout · Weight Decay · Refunds@Expedia|||How do I get a full refund from Expedia?
