Abstract
Representation learning of source code is essential for applying machine learning to software engineering tasks. Learning code representation from a multilingual source code dataset has been shown to be more effective than learning from single-language datasets separately, since more training data from multilingual dataset improves the model’s ability to extract language-agnostic information from source code. However, existing multilingual training overlooks the language-specific information which is crucial for modeling source code across different programming languages, while only focusing on learning a unified model with shared parameters among different languages for language-agnostic information modeling. To address this problem, we propose MetaTPTrans, a meta learning approach for multilingual code representation learning. MetaTPTrans generates different parameters for the feature extractor according to the specific programming language type of the input code snippet, enabling the model to learn both language-agnostic and language-specific information with dynamic parameters in the feature extractor. We conduct experiments on the code summarization and code completion tasks to verify the effectiveness of our approach. The results demonstrate the superiority of our approach with significant improvements on state-of-the-art baselines.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the AAAI Conference on Artificial Intelligence |
| Editors | Brian Williams, Yiling Chen, Jennifer Neville |
| Publisher | AAAI Press |
| Pages | 5239-5247 |
| Number of pages | 9 |
| ISBN (Electronic) | 9781577358800 |
| DOIs | |
| Publication status | Published - 27 Jun 2023 |
| MoE publication type | A4 Conference publication |
| Event | AAAI Conference on Artificial Intelligence - Walter E. Washington Convention Center, Washington, United States Duration: 7 Feb 2023 → 14 Feb 2023 Conference number: 37 https://aaai-23.aaai.org/ |
Publication series
| Name | Proceedings of the 37th AAAI Conference on Artificial Intelligence, AAAI 2023 |
|---|---|
| Number | 4 |
| Volume | 37 |
Conference
| Conference | AAAI Conference on Artificial Intelligence |
|---|---|
| Abbreviated title | AAAI |
| Country/Territory | United States |
| City | Washington |
| Period | 07/02/2023 → 14/02/2023 |
| Internet address |
Fingerprint
Dive into the research topics of 'MetaTPTrans: A Meta Learning Approach for Multilingual Code Representation Learning'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver