arrow
返回

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
delete原文链接
delete分享
delete收藏
摘要

摘要

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.
Keyword:
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
err分享
err收藏
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
err分享
err收藏
Learning the Geodesic Embedding with Graph Neural Networks
err2023-12-05
err2
errOAAI
errPang, Bo; Zheng, Zhongtian; Wang, Guoping; Wang, Peng-Shuai
err分享
err收藏
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
err分享
err收藏

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.4K
被引数:
4.5K

机构

暂无机构信息
引用论文

引用论文

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
err分享
err收藏
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
err分享
err收藏
err分享
err收藏
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
err分享
err收藏
学者 查看更多内容