PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
November 1, 202121 citations

AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarization

View Full Paper
ZTZe TangCLChuanyi LiJGJidong Ge

Key Points

Key points are not available for this paper at this time.

Abstract

Code summarization aims to generate brief natural language descriptions for source code. As source code is highly structured and follows strict programming language grammars, its Abstract Syntax Tree (AST) is often leveraged to inform the encoder about the structural information. However, ASTs are usually much longer than the source code. Current approaches ignore the size limit and simply feed the whole linearized AST into the encoder. To address this problem, we propose AST-Transformer to efficiently encode tree-structured ASTs. Experiments show that AST-Transformer outperforms the state-of-arts by a substantial margin while being able to reduce 90 ~ 95% of the computational complexity in the encoding process.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Tang et al. (2021) studied this question.

synapsesocial.com/papers/6a2040393f2ec568b1df5d8fhttps://doi.org/10.1109/ase51524.2021.9678882
Ask AI
Helpful
Bookmark
Share
View Full Paper