NAACL 2021long6 citations

On the Embeddings of Variables in Recurrent Neural Networks for Source Code

Nadezhda Chirkova

Abstract

Source code processing heavily relies on the methods widely used in natural language processing (NLP), but involves specifics that need to be taken into account to achieve higher quality. An example of this specificity is that the semantics of a variable is defined not only by its name but also by the contexts in which the variable occurs. In this work, we develop dynamic embeddings, a recurrent mechanism that adjusts the learned semantics of the variable when it obtains more information about the variable’s role in the program. We show that using the proposed dynamic embeddings significantly improves the performance of the recurrent neural network, in code completion and bug fixing tasks.

BibTeX
@inproceedings{chirkova-2021-embeddings,
    title = "On the Embeddings of Variables in Recurrent Neural Networks for Source Code",
    author = "Chirkova, Nadezhda",
    editor = "Toutanova, Kristina  and
      Rumshisky, Anna  and
      Zettlemoyer, Luke  and
      Hakkani-Tur, Dilek  and
      Beltagy, Iz  and
      Bethard, Steven  and
      Cotterell, Ryan  and
      Chakraborty, Tanmoy  and
      Zhou, Yichao",
    booktitle = "Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
    month = jun,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.naacl-main.213/",
    doi = "10.18653/v1/2021.naacl-main.213",
    pages = "2679--2689"
}
On the Embeddings of Variables in Recurrent Neural Networks for Source Code · NAACL 2021