arrow
Return

GNPSum: A code summarization enhancement framework based on Graph Node Position

delete2025-07-19
delete0
PRE
AI
H
Haogang Cheng
徐玲 cover
徐玲 (Ling Xu) *
L
Luwen Huangfu
C
Chao Liu
Y
Yan Meng
L
Lei Yan
DOI:10.1016/j.infsof.2025.107837delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code summarization is essential for effectively communicating a code’s core functionality and logic, enhancing software development efficiency, collaboration, and code quality. Traditional work has focused on generating summaries from textual information extracted from the source code. However, these approaches often fail to capture the hierarchical structure critical for effective summarization. To effectively capture the hierarchical structure of the code, which is crucial for accurate summarization, researchers often integrate structural elements such as Syntax Trees (AST) into their models. However, conventional embedding methods struggle to accurately discern the semantic nuances within the code, particularly for nodes with similar content but distinct structural roles. The relative positional information of these nodes, which often conveys semantics absent from the source code itself, is frequently overlooked, limiting the model’s ability to fully exploit the hierarchical and contextual richness inherent in the code structure.

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.7K
Citations:
7.7K

Organization

S
San Diego State University
Scholars:
4.7K
Papers: 3.8K
Citations: 1.0W