On The Cross-Modal Transfer from Natural Language to Code through Adapter Modules
Divyam Goel, Ramansh Grover, Fatemeh H. Fard

TL;DR
This paper investigates using adapter modules to transfer knowledge from natural language pre-trained models to code tasks, demonstrating efficiency and competitive performance in software engineering applications.
Contribution
It introduces the application of adapters in software engineering tasks, showing they can effectively transfer knowledge from NLP models to code tasks with improved efficiency.
Findings
Adapters perform comparably or better than source code pre-trained models.
Adapters are more parameter-efficient and faster in inference.
Successful transfer in tasks like code clone detection and cloze tests.
Abstract
Pre-trained neural Language Models (PTLM), such as CodeBERT, are recently used in software engineering as models pre-trained on large source code corpora. Their knowledge is transferred to downstream tasks (e.g. code clone detection) via fine-tuning. In natural language processing (NLP), other alternatives for transferring the knowledge of PTLMs are explored through using adapters, compact, parameter efficient modules inserted in the layers of the PTLM. Although adapters are known to facilitate adapting to many downstream tasks compared to fine-tuning the model that require retraining all of the models' parameters -- which owes to the adapters' plug and play nature and being parameter efficient -- their usage in software engineering is not explored. Here, we explore the knowledge transfer using adapters and based on the Naturalness Hypothesis proposed by Hindle et. al…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Topic Modeling · Computational Physics and Python Applications
MethodsCodeBERT
