arrow
返回

SDGNN: Structure-aware Dual Graph Neural Network for Code Summarization

delete2025-01-08
delete0
PRE
AI
Z
Zhifeng Hao
L
Lin, Zonghao
S
Shengqiang Zhang
B
Boyan Xu *
R
Ruichu Cai
DOI:10.1007/s13042-024-02471-2delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Code summarization aims to convert structured program code into comprehensible natural language descriptions, significantly benefiting software development. The existing approaches mainly employ structure-to-sequence frameworks designed for the Abstract Syntax Tree (AST) format of source code, extensively utilizing architectures such as Tree-based LSTMs, and Graph Neural Networks. From modeling process to encoding architecture can't effectively learn some of the complex dependencies of the code snippets. In this paper, we propose a Structure-aware Dual Graph Neural Network (SDGNN) for code summarization. Specially, we employ both the grammatical dependency graph and the semantic dependency graph to catch the complex dependency of the program codes in SDGNN. To realize the effective learning of the dual graph, we further devise the hierarchical propagation and the graphical propagation to generate the encoding of the codes, as well as a graph alignment-based dual graph decoder to generate the summarizations from the encoding. Extensive experiments on three programming language datasets show that our framework outperforms state-of-the-art solutions.
Keyword:
Code summarization
Natural language generation
Abstract syntax trees
Graph neural network
Dual graph
Structure-aware

期刊

International Journal of Machine Learning and Cybernetics 封面图
International Journal of Machine Learning and Cybernetics
IF:
2.7
论文数:
3.2K
被引数:
5.6K

机构

G
guangdong university of technology
学者数:
3.0W
论文数: 2.0W
被引数: 36
引用论文

引用论文

err
IF0
err
err0
errOAAI
err
err分享
err收藏
Use of the Temporoparietal Free Fascial Flap in the Upper Extremity
err1988-04-01
err0
PREAI
errHarry J. Buncke; Bernard S. Alpert; David N. Hing
err分享
err收藏
SCALING WITH KNOWN UNCERTAINTY: A SYNTHESIS
err2006-01-01
err0
PREAI
errJIANGUO WU; HARBIN LI; K. BRUCE JONES; ORIE L. LOUCKS
err分享
err收藏
Development of Ultra-High-Performance Hybrid Fiber-Reinforced Cement-Based Composites
err2014-06-01
err0
PREAI
errSukmin Kwon; Tomoya Nishiwaki; Takatsune Kikuta; Hirozo Mihashi
err分享
err收藏
Numerical Simulation of β-Ga2O3 Single Crystal Growth by Czochralski Method with an Insulation Lid
err2022-11-25
err0
errOAAI
errDan Wu; Ning Xia; Keke Ma; Jiabin Wang; Cheng Li; Zhu Jin; Hui Zhang; Deren Yang
err分享
err收藏
Unsupervised Social Bot Detection via Structural Information Theory基于结构信息理论的无监督社交机器人检测
err2024-08-19
err22
errOAAI
errPeng, Hao; Zhang, Jingyun; Huang, Xiang; Hao, Zhifeng; Li, Angsheng; Yu, Zhengtao; Yu, Philip S.
err分享
err收藏
Establishment and characterization of a new triple-negative canine mammary cancer cell line
err2018-10-01
err0
PREAI
errHong Zhang; Shimin Pei; Bin Zhou; Huanan Wang; Hongchao Du; Di Zhang; Degui Lin
err分享
err收藏
学者 查看更多内容