Multi-View Graph Representation for Programming Language Processing: An Investigation into Algorithm Detection
Ting Long, Yutong Xie, Xianyu Chen, Weinan Zhang, Qinxiang Cao, Yong, Yu

TL;DR
This paper introduces a multi-view graph representation for source code that captures both data and control flow, enhancing program understanding and detection of algorithms.
Contribution
It proposes a novel multi-view graph approach combining data and control flow with GNNs, improving program representation over existing syntax-focused methods.
Findings
MVG outperforms previous methods on algorithm detection tasks
The approach effectively captures multiple aspects of program semantics
Experimental results on POJ-104 and ALG-109 datasets demonstrate strong performance
Abstract
Program representation, which aims at converting program source code into vectors with automatically extracted features, is a fundamental problem in programming language processing (PLP). Recent work tries to represent programs with neural networks based on source code structures. However, such methods often focus on the syntax and consider only one single perspective of programs, limiting the representation power of models. This paper proposes a multi-view graph (MVG) program representation method. MVG pays more attention to code semantics and simultaneously includes both data flow and control flow as multiple views. These views are then combined and processed by a graph neural network (GNN) to obtain a comprehensive program representation that covers various aspects. We thoroughly evaluate our proposed MVG approach in the context of algorithm detection, an important and challenging…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Online Learning and Analytics
MethodsGraph Neural Network
