Can Machines Read Coding Manuals Yet? -- A Benchmark for Building Better Language Models for Code Understanding

Ibrahim Abdelaziz, Julian Dolby, Jamie McCusker, Kavitha Srinivas
9/15/2021
cs.CLcs.AI
benchmark-dataset

Official code: wala/blanca (9 stars, Python, EPL-2.0, last commit 2022-02-22).

Abstract

Code understanding is an increasingly important application of Artificial Intelligence. A fundamental aspect of understanding code is understanding text about code, e.g., documentation and forum discussions.

Show full abstract

Pre-trained language models (e.g., BERT) are a popular approach for various NLP tasks, and there are now a variety of benchmarks, such as GLUE, to help improve the development of such models for natural language understanding. However, little is known about how well such models work on textual artifacts about code, and we are unaware of any systematic set of downstream tasks for such an evaluation. In this paper, we derive a set of benchmarks (BLANCA - Benchmarks for LANguage models on Coding Artifacts) that assess code understanding based on tasks such as predicting the best answer to a question in a forum post, finding related forum posts, or predicting classes related in a hierarchy from class documentation. We evaluate the performance of current state-of-the-art language models on these tasks and show that there is a significant improvement on each task from fine tuning. We also show that multi-task training over BLANCA tasks helps build better language models for code understanding.

View on arXivView PDF

Code Implementations(1)

wala/blancaOfficial100%
EPL-2.0

BLANCA - Benchmarks for LANguage models on Coding Artifacts

92Python, ShellAug 31, 20214 years agoEPL-2.0

Similar Papers

Cite this paper

@article{abdelaziz2021machines,
  title  = {Can Machines Read Coding Manuals Yet? -- A Benchmark for Building Better Language Models for Code Understanding},
  author = {Ibrahim Abdelaziz and Julian Dolby and Jamie McCusker and Kavitha Srinivas},
  year   = {2021},
  eprint = {2109.07452},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.07452}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.07452.svg)](https://codeofpaper.com/paper/2109.07452)

Discussion