Adaptive Code Completion with Meta-learning.

Liyu Fang,Zhiqiu Huang,Yu Zhou,Taolue Chen
DOI: https://doi.org/10.1145/3457913.3457933
2021-01-01
Abstract:Since human-written programs have useful local regularities, the ability to adapt to unseen, local context is an important challenge that successful models of source code must overcome. However, the current source code models mostly learn a common code pattern from large scale open-source codebases, which cannot make use of the localness nor satisfy developers’ personal preferences. Consequently, fast learning and adapting to unseen code patterns from limited developers’ code can provide new insights into source code completion. In this work, we train a base code model that is best able to learn semantic and structural information from context to improve predictions of unseen local tokens and propose an adaptive code model leveraging meta-learning techniques. We demonstrate highly improved performance in experiments on a large scale Java GitHub corpus compared with baselines.
What problem does this paper attempt to address?