arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.08427cs.CLcs.CRcs.LGcs.PL
收藏

CodeBert 学到了哪些特征:基于 BERT 的源代码表示学习的实证研究

Which Features are Learned by CodeBert: An Empirical Study of the BERT-based Source Code Representation Learning

The Pennsylvania State University(宾夕法尼亚州立大学)

Lan Zhang, Chen Cao, Zhilong Wang, Peng Liu

AI总结:

本文通过实验研究 CodeBert 等基于 BERT 的源代码表示学习,发现其表示严重依赖变量名和函数名,难以真正理解代码逻辑,并为后续研究提供改进方向。

摘要:

Transformer 的双向编码器表示(BERT)在自然语言处理(NLP)中被提出并展现出良好的效果。近年来,研究者将 BERT 应用于源代码表示学习,并在若干下游任务上取得了一些积极成果。然而,本文指出当前方法无法有效理解源代码的逻辑。源代码的表示严重依赖程序员定义的变量名和函数名。我们设计并实施了一组实验来验证这一猜想,并为未来工作提供一些见解。

英文摘要:

The Bidirectional Encoder Representations from Transformers (BERT) were proposed in the natural language process (NLP) and shows promising results. Recently researchers applied the BERT to source-code representation learning and reported some good news on several downstream tasks. However, in this paper, we illustrated that current methods cannot effectively understand the logic of source codes. The representation of source code heavily relies on the programmer-defined variable and function names. We design and implement a set of experiments to demonstrate our conjecture and provide some insights for future works.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑