mlsanityData to 7 Oct 2026

Learning Semantic Program Embeddings with Graph Interval Neural Network

arXiv 2005.09997 ↗First posted 18 May 2020cs.SE cs.LG cs.PLcited by 20

Not on the map. Why?

Abstract (arXiv)

Learning distributed representations of source code has been a challenging task for machine learning models. Earlier works treated programs as text so that natural language methods can be readily applied. Unfortunately, such approaches do not capitalize on the rich structural information possessed by source code. Of late, Graph Neural Network (GNN) was proposed to learn embeddings of programs from their graph representations. Due to the homogeneous and expensive message-passing procedure, GNN can suffer from precision issues, especially when dealing with programs rendered into large graphs. In this paper, we present a new graph neural architecture, called Graph Interval Neural Network (GINN), to tackle the weaknesses of the existing GNN. Unlike the standard GNN, GINN generalizes from a curated graph representation obtained through an abstraction method designed to aid models to learn. In particular, GINN focuses exclusively on intervals for mining the feature representation of a program, furthermore, GINN operates on a hierarchy of intervals for scaling the learning to large graphs. We evaluate GINN for two popular downstream applications: variable misuse prediction and method name prediction. Results show in both cases GINN outperforms the state-of-the-art models by a comfortable margin. We have also created a neural bug detector based on GINN to catch null pointer deference bugs in Java code. While learning from the same 9,000 methods extracted from 64 projects, GINN-based bug detector significantly outperforms GNN-based bug detector on 13 unseen test projects. Next, we deploy our trained GINN-based bug detector and Facebook Infer to scan the codebase of 20 highly starred projects on GitHub. Through our manual inspection, we confirm 38 bugs out of 102 warnings raised by GINN-based bug detector compared to 34 bugs out of 129 warnings for Facebook Infer.

Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). First posted on arXiv 18 May 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 6; 2022: 7; 2023: 6; 2024: 0; 2025: 0; 2026: 1.

20 papers.

Sort:

By area:

  1. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  2. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
  3. 2022Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Codecited by 39
  4. 2023Code Execution with Pre-trained Language Modelscited by 33
  5. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
  6. 2021VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatementscited by 20
  7. 2023Perfect is the enemy of test oraclecited by 6
  8. 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
  9. 2022A Library for Representing Python Programs as Graphs for Machine Learningcited by 4
  10. 2021Precise Learning of Source Code Contextual Semantics via Hierarchical Dependence Structure and Graph Attention Networkscited by 2
  11. 2022CLAWSAT: Towards Both Robust and Accurate Code Modelscited by 2
  12. 2021WheaCha: A Method for Explaining the Predictions of Models of Codecited by 1
8 more
  1. 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
  2. 2022A Novel Feature Representation for Malware Classificationcited by 1
  3. 2023Implant Global and Local Hierarchy Information to Sequence based Code Representation Modelscited by 1
  4. 2026Towards a Neural Debugger for Pythoncited by 1
  5. 2022Infrared: A Meta Bug Detectorcited by 0
  6. 2023Judging Adam: Studying the Performance of Optimization Methods on ML4SE Taskscited by 0
  7. 2023A Study of Variable-Role-based Feature Enrichment in Neural Models of Codecited by 0
  8. 2023Graph Neural Networks For Mapping Variables Between Programs -- Extended Versioncited by 0