mlsanityData to 14 Oct 2026

Precise Learning of Source Code Contextual Semantics via Hierarchical Dependence Structure and Graph Attention Networks

arXiv 2111.11435 ↗First posted 20 Nov 2021cs.SE cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Deep learning is being used extensively in a variety of software engineering tasks, e.g., program classification and defect prediction. Although the technique eliminates the required process of feature engineering, the construction of source code model significantly affects the performance on those tasks. Most recent works was mainly focused on complementing AST-based source code models by introducing contextual dependencies extracted from CFG. However, all of them pay little attention to the representation of basic blocks, which are the basis of contextual dependencies. In this paper, we integrated AST and CFG and proposed a novel source code model embedded with hierarchical dependencies. Based on that, we also designed a neural network that depends on the graph attention mechanism.Specifically, we introduced the syntactic structural of the basic block, i.e., its corresponding AST, in source code model to provide sufficient information and fill the gap. We have evaluated this model on three practical software engineering tasks and compared it with other state-of-the-art methods. The results show that our model can significantly improve the performance. For example, compared to the best performing baseline, our model reduces the scale of parameters by 50% and achieves 4% improvement on accuracy on program classification task.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 17 of its 60 references that are in the map. First posted on arXiv 20 Nov 2021.

Builds on

17 of 60 references.

References · 17

  1. 2017Graph Attention Networkscited by 8,923
  2. 2017Inductive Representation Learning on Large Graphscited by 6,320
  3. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  4. 2018Graph Neural Networks: A Review of Methods and Applicationscited by 1,576
  5. 2013Spectral Networks and Locally Connected Networks on Graphscited by 1,102
  6. 2015Gated Graph Sequence Neural Networkscited by 796
  7. 2016Learning Convolutional Neural Networks for Graphscited by 314
  8. 2018code2vec: Learning Distributed Representations of Codecited by 250
  9. 2017Learning to Represent Programs with Graphscited by 220
  10. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  11. 2017Knowledge Transfer for Out-of-Knowledge-Base Entities: A Graph Neural Network Approachcited by 102
  12. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
5 more
  1. 2018A General Path-Based Representation for Predicting Program Propertiescited by 29
  2. 2019CoaCor: Code Annotation for Code Retrieval with Reinforcement Learningcited by 22
  3. 2020Learning Semantic Program Embeddings with Graph Interval Neural Networkcited by 20
  4. 2018Open Vocabulary Learning on Source Code with a Graph-Structured Cachecited by 10
  5. 2019Learning Blended, Precise Semantic Program Embeddingscited by 5

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.