Bidirectional Transformer Language Models for Smart Autocompletion of Source Code
Zusammenfassung
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.
- Vollständige Referenz
- BibTeX
Binder, F., Villmow, J. & Ulges, A.,
(2021).
Bidirectional Transformer Language Models for Smart Autocompletion of Source Code.
In:
Reussner, R. H., Koziolek, A. & Heinrich, R.
(Hrsg.),
INFORMATIK 2020.
Gesellschaft für Informatik, Bonn.
(S. 915-922).
DOI: 10.18420/inf2020_83
@inproceedings{mci/Binder2021,
author = {Binder, Felix AND Villmow, Johannes AND Ulges, Adrian},
title = {Bidirectional Transformer Language Models for Smart Autocompletion of Source Code},
booktitle = {INFORMATIK 2020},
year = {2021},
editor = {Reussner, Ralf H. AND Koziolek, Anne AND Heinrich, Robert} ,
pages = { 915-922 } ,
doi = { 10.18420/inf2020_83 },
publisher = {Gesellschaft für Informatik, Bonn},
address = {}
}
author = {Binder, Felix AND Villmow, Johannes AND Ulges, Adrian},
title = {Bidirectional Transformer Language Models for Smart Autocompletion of Source Code},
booktitle = {INFORMATIK 2020},
year = {2021},
editor = {Reussner, Ralf H. AND Koziolek, Anne AND Heinrich, Robert} ,
pages = { 915-922 } ,
doi = { 10.18420/inf2020_83 },
publisher = {Gesellschaft für Informatik, Bonn},
address = {}
}
Sollte hier kein Volltext (PDF) verlinkt sein, dann kann es sein, dass dieser aus verschiedenen Gruenden (z.B. Lizenzen oder Copyright) nur in einer anderen Digital Library verfuegbar ist. Versuchen Sie in diesem Fall einen Zugriff ueber die verlinkte DOI: 10.18420/inf2020_83
Haben Sie fehlerhafte Angaben entdeckt? Sagen Sie uns Bescheid: Feedback abschicken
Mehr Information
DOI: 10.18420/inf2020_83
ISBN: 978-3-88579-701-2
ISSN: 1617-5468
Datum: 2021
Sprache:
(en)
(en)
