arrow
Return

Toward Interpretable Graph Tensor Convolution Neural Network for Code Semantics Embedding

delete2023-07-21
delete1
PRE
AI
杨
杨佳 (Jia Yang)
C
Cai Fu *
F
Fengyang Deng
文
文明 (Ming Wen)
X
Xiaowei Guo
C
Chuanhao Wan
DOI:10.1145/3582574delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Intelligent deep learning-based models have made significant progress for automated source code semantics embedding, and current research works mainly leverage natural language-based methods and graph-based methods. However, natural language-based methods do not capture the rich semantic structural information of source code, and graph-based methods do not utilize rich distant information of source code due to the high cost of message-passing steps. In this article, we propose a novel interpretable model, called graph tensor convolution neural network (GTCN), to generate accurate code embedding, which is capable of comprehensively capturing the distant information of code sequences and rich code semantics structural information. First, we propose to utilize a high-dimensional tensor to integrate various heterogeneous code graphswith node sequence features, such as control flow, data flow. Second, inspired by the current advantages of graph-based deep learning and efficient tensor computations, we propose a novel interpretable graph tensor convolution neural network for learning accurate code semantic embedding from the code graph tensor. Finally, we evaluate three popular applications on the GTCN model: variable misuse detection, source code prediction, and vulnerability detection. Compared with current state-of-the-art methods, our model achieves higher scores with respect to the top-1 accuracy while costing less training time.
Keywords:
Tensor computation
code embedding
graph neural network
Decoupled semantic graph neural network for knowledge graph embedding
err2025-01-01
err2
PREAI
errLi, Zhifei; Huang, Wei; Gong, Xuchao; Luo, Xiangyu; Xiao, Kui; Deng, Honglian; Zhang, Miao; Zhang, Yan
errShare
errSave
Semantic-guided graph neural network for heterogeneous graph embedding
err2023-12-01
err4
PREAI
errHan, Mingjing; Zhang, Han; Li, Wei; Yin, Yanbin
errShare
errSave
Heterogeneous graph neural networks with denoising for graph embeddings
err2022-02-01
err15
PREAI
errDong, Xinrui; Zhang, Yijia; Pang, Kuo; Chen, Fei; Lu, Mingyu
errShare
errSave
Graph neural networks with configuration cross-attention for tensor compilers
err2025-08-20
err0
errOAAI
errDmitrii Khizbullin; Eduardo Rocha de Andrade; Thanh Hau Nguyen; Matheus Pedroza Ferreira; David R. Pugh
errShare
errSave
Learning the Geodesic Embedding with Graph Neural Networks
err2023-12-05
err2
errOAAI
errPang, Bo; Zheng, Zhongtian; Wang, Guoping; Wang, Peng-Shuai
errShare
errSave
A Topical Review of Graph Embedding in Graph Neural Networks
err2025-01-01
err0
errOAAI
errWillian Borges De Lemos; Lucas De Angelo Martins Ribeiro; Vanessa Telles Da Silva; Alessandro De Lima Bicho; Marcelo De Gomensoro Malheiros; Marcelo Rita Pias
errShare
errSave

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.4K
Citations:
4.5K

Organization

No organization information available
Cited Papers

Cited Papers

Structure, Properties, and Dynamics of Oxygen Vacancies in AmorphousSiO2
err2002-12-30
err0
PREAI
errZhong-Yi Lu; C. J. Nicklaw; D. M. Fleetwood; R. D. Schrimpf; S. T. Pantelides
errShare
errSave
Comparison of sub‐ versus suprafascially raised anterolateral thigh free flaps with regard to donor‐site morbidity, function and aesthetics
err2017-11-20
err0
PREAI
errSebastian Fischer; Yannick Diehm; Christoph Hirche; Thomas Kremer; Adrien Daigeler; Ulrich Kneser; J. Frederick Hernekamp
errShare
errSave
errShare
errSave
HOT-WATER QUARANTINE TREATMENT AND WATER-COOLING OF ‘HADEN’ MANGOES
err1997-08-01
err0
PREAI
errL. Ponce de León; C. Muñoz; L. Pérez; F. Diaz de León; C. Kerbel; L. Pérez Flores; S. Esparza; E. Bósquez; M. Trinidad
errShare
errSave
researcher View more