paper-with-me

홈 › Papers

CodeBERT: A Pre-Trained Model for Programming and Natural Languages

2020-02-19 · Findings of the Association for Computational Linguistics 2020 · Zhangyin Feng, Daya Guo, Duyu Tang, Nan Duan, Xiaocheng Feng, Ming Gong, Linjun Shou, Bing Qin, Ting Liu, Daxin Jiang, Ming Zhou

We present CodeBERT, a bimodal pre-trained model for programming language (PL) and nat-ural language (NL). CodeBERT learns general-purpose representations that support downstream NL-PL applications such as natural language codesearch, code documentation generation, etc. We develop CodeBERT with Transformer-based neural architecture, and train it with a hybrid objective function that incorporates the pre-training task of replaced token detection, which is to detect plausible alternatives sampled from generators. This enables us to utilize both bimodal data of NL-PL pairs and unimodal data, where the former provides input tokens for model training while the latter helps to learn better generators. We evaluate CodeBERT on two NL-PL applications by fine-tuning model parameters. Results show that CodeBERT achieves state-of-the-art performance on both natural language code search and code documentation generation tasks. Furthermore, to investigate what type of knowledge is learned in CodeBERT, we construct a dataset for NL-PL probing, and evaluate in a zero-shot setting where parameters of pre-trained models are fixed. Results show that CodeBERT performs better than previous pre-trained models on NL-PL probing.

📄 PDF Abstract BibTeX arXiv:2002.08155

Code (9)

microsoft/CodeBERT 공식 구현 pytorch
JasonZhu-WHU/CoderAssistant
aminatadjer/test pytorch
graykode/commit-autosuggestions pytorch
sakirinn/llm4cvd pytorch
salesforce/codet5 pytorch
zfj1998/CodeBert-Code2Text pytorch
zhangzwwww/dietcode pytorch
zhangzwwww/dietcodebert pytorch

Tasks

Code Documentation Generation

Methods 이 논문이 사용한 방법론

CodeBERT 설명 없음

Similar Papers 제목 키워드 기반

CodeBERTScore: Evaluating Code Generation with Pretrained Models of Code

2023-02-10 · Shuyan Zhou, Uri Alon, Sumit Agarwal, Graham Neubig

Since the rise of neural natural-language-to-code models (NL->Code) that can generate long expressions and statements rather than a single next-token, one of the major problems has been reliably evaluating their generate…

Code Generation

CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Models

2022-05-31 · Akshita Jha, Chandan K. Reddy

Pre-trained programming language (PL) models (such as CodeT5, CodeBERT, GraphCodeBERT, etc.,) have the potential to automate software engineering tasks involving code understanding and code generation. However, these mod…

Code GenerationCode TranslationTranslation

On the Impact of Language Selection for Training and Evaluating Programming Language Models

2023-08-25 · Jonathan Katzy, Maliheh Izadi, Arie van Deursen

The recent advancements in Transformer-based Language Models have demonstrated significant potential in enhancing the multilingual capabilities of these models. The remarkable progress made in this domain not only applie…

Naturalness of Attention: Revisiting Attention in Code Language Models

2023-11-22 · Mootez Saad, Tushar Sharma

Language models for code such as CodeBERT offer the capability to learn advanced source code representation, but their opacity poses barriers to understanding of captured properties. Recent attention analysis studies pro…

CoCoSoDa: Effective Contrastive Learning for Code Search

2022-04-07 · Ensheng Shi, Yanlin Wang, Wenchao Gu, Lun Du 외

Code search aims to retrieve semantically relevant code snippets for a given natural language query. Recently, many approaches employing contrastive learning have shown promising results on code representation learning a…

Code SearchContrastive LearningData AugmentationRepresentation Learning