Item type:Item,

Bidirectional Transformer Language Models for Smart Autocompletion of Source Code

Loading...
Thumbnail Image

Fulltext URI

Document type

Additional Information

Date

relationships.isAuthorOf

Binder, Felix
Villmow, Johannes
Ulges, Adrian

Journal Title

Journal ISSN

Volume Title

Publisher

Gesellschaft für Informatik, Bonn

Abstract

This paper investigates the use of transformer networks – which have recently become ubiquitous in natural language processing – for smart autocompletion on source code. Our model JavaBERT is based on a RoBERTa network, which we pretrain on 250 million lines of code and then adapt for method ranking, i.e. ranking an object's methods based on the code context. We suggest two alternative approaches, namely unsupervised probabilistic reasoning and supervised fine-tuning. The supervised variant proves more accurate, with a top-3 accuracy of up to 98%. We also show that the model – though trained on method calls' full contexts – is quite robust with respect to reducing context.

Description

Binder, Felix; Villmow, Johannes; Ulges, Adrian (2021): Bidirectional Transformer Language Models for Smart Autocompletion of Source Code. INFORMATIK 2020. DOI: 10.18420/inf2020_83. Gesellschaft für Informatik, Bonn. PISSN: 1617-5468. ISBN: 978-3-88579-701-2. pp. 915-922. 3rd Workshop on Smart Systems for Better Living Environments. Karlsruhe. 28. September - 2. Oktober 2020

Keywords

smart autocompletion, deep learning, transformer networks

Citation

URI

Endorsement

Review

Supplemented By

Referenced By