Heterogeneous Directed Hypergraph Neural Network over abstract syntax tree (AST) for Code Classification
Not on the map. Why?
Abstract (arXiv)
Code classification is a difficult issue in program understanding and automatic coding. Due to the elusive syntax and complicated semantics in programs, most existing studies use techniques based on abstract syntax tree (AST) and graph neural network (GNN) to create code representations for code classification. These techniques utilize the structure and semantic information of the code, but they only take into account pairwise associations and neglect the high-order data correlations that already exist between nodes of the same field or called attribute in the AST, which may result in the loss of code structural information. On the other hand, while a general hypergraph can encode high-order data correlations, it is homogeneous and undirected which will result in a lack of semantic and structural information such as node types, edge types, and directions between child nodes and parent nodes when modeling AST. In this study, we propose a heterogeneous directed hypergraph (HDHG) to represent AST and a heterogeneous directed hypergraph neural network (HDHGN) to process the graph for code classification. Our method improves code understanding and can represent high-order data correlations beyond paired interactions. We assess our heterogeneous directed hypergraph neural network (HDHGN) on public datasets of Python and Java programs. Our method outperforms previous AST-based and GNN-based methods, which demonstrates the capability of our model.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 14 of its 26 references that are in the map. First posted on arXiv 7 May 2023.
Builds on
14 of 26 references.
References · 14
- 2017Attention Is All You Needcited by 60,361
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2018Hypergraph Neural Networkscited by 488
- 2018code2vec: Learning Distributed Representations of Codecited by 250
- 2017Learning to Represent Programs with Graphscited by 220
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2021UniGNN: a Unified Framework for Graph and Hypergraph Neural Networkscited by 130
- 2020GraphNorm: A Principled Approach to Accelerating Graph Neural Network Trainingcited by 117
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2020TreeCaps: Tree-Based Capsule Networks for Source Code Processingcited by 16
Built on by
Citing papers per year: 2025: 1.
1 paper.