Open Vocabulary Learning on Source Code with a Graph-Structured Cache
Not on the map. Why?
Abstract (arXiv)
Machine learning models that take computer program source code as input typically use Natural Language Processing (NLP) techniques. However, a major challenge is that code is written using an open, rapidly changing vocabulary due to, e.g., the coinage of new variable and method names. Reasoning over such a vocabulary is not something for which most NLP methods are designed. We introduce a Graph-Structured Cache to address this problem; this cache contains a node for each new word the model encounters with edges connecting each word to its occurrences in the code. We find that combining this graph-structured cache strategy with recent Graph-Neural-Network-based models for supervised learning on code improves the models' performance on a code completion task and a variable naming task --- with over 100% relative improvement on the latter --- at the cost of a moderate increase in computation time.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). First posted on arXiv 18 Oct 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 3; 2023: 1.
10 papers.
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 30
- 2021A Survey on Open Set Recognitioncited by 25
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15
- 2022GypSum: Learning Hybrid Representations for Code Summarizationcited by 5
- 2022A Neural Network Architecture for Program Understanding Inspired by Human Behaviorscited by 5
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2021Learning to Extend Program Graphs to Work-in-Progress Codecited by 3
- 2021Precise Learning of Source Code Contextual Semantics via Hierarchical Dependence Structure and Graph Attention Networkscited by 2
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2022A Neural Network Architecture for Program Understanding Inspired by Human Behaviors10 May 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022GypSum: Learning Hybrid Representations for Code Summarization26 Apr 2022
- 2021Precise Learning of Source Code Contextual Semantics via Hierarchical Dependence Structure and Graph Attention Networks20 Nov 2021
- 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Search4 Nov 2021
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021A Survey on Open Set Recognition18 Aug 2021
- 2021Learning to Extend Program Graphs to Work-in-Progress Code28 May 2021
- 2021Code Structure Guided Transformer for Source Code Summarization19 Apr 2021