GypSum: Learning Hybrid Representations for Code Summarization
Not on the map. Why?
Abstract (arXiv)
Code summarization with deep learning has been widely studied in recent years. Current deep learning models for code summarization generally follow the principle in neural machine translation and adopt the encoder-decoder framework, where the encoder learns the semantic representations from source code and the decoder transforms the learnt representations into human-readable text that describes the functionality of code snippets. Despite they achieve the new state-of-the-art performance, we notice that current models often either generate less fluent summaries, or fail to capture the core functionality, since they usually focus on a single type of code representations. As such we propose GypSum, a new deep learning model that learns hybrid representations using graph attention neural networks and a pre-trained programming and natural language model. We introduce particular edges related to the control flow of a code snippet into the abstract syntax tree for graph construction, and design two encoders to learn from the graph and the token sequence of source code, respectively. We modify the encoder-decoder sublayer in the Transformer's decoder to fuse the representations and propose a dual-copy mechanism to facilitate summary generation. Experimental results demonstrate the superior performance of GypSum over existing code summarization models.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 32 of its 51 references that are in the map. First posted on arXiv 26 Apr 2022.
Builds on
32 of 51 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2017Graph Attention Networkscited by 8,923
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2015Gated Graph Sequence Neural Networkscited by 796
- 2018code2vec: Learning Distributed Representations of Codecited by 250
20 more
- 2017Learning to Represent Programs with Graphscited by 220
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
- 2019Code Generation as a Dual Task of Code Summarizationcited by 62
- 2018Generative Code Modeling with Graphscited by 60
- 2019Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 36
- 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
- 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 32
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 30
- 2018A General Path-Based Representation for Predicting Program Propertiescited by 29
- 2020Code Summarization with Structure-induced Transformercited by 29
- 2016Tree-to-Sequence Attentional Neural Machine Translationcited by 28
- 2019Automatic Source Code Summarization with Extended Tree-LSTMcited by 28
- 2018Open Vocabulary Learning on Source Code with a Graph-Structured Cachecited by 10
- 2020Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 10
- 2021IncBL: Incremental Bug Localizationcited by 4
- 2019Inferring Javascript types using Graph Neural Networkscited by 1
Built on by
Citing papers per year: 2023: 2; 2024: 3.
5 papers.
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2024Analyzing the Performance of Large Language Models on Code Summarizationcited by 19
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainercited by 9
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 8
- 2023Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate Representationcited by 2
- 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainer3 Sep 2024
- 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization1 Jul 2024
- 2024Analyzing the Performance of Large Language Models on Code Summarization10 Apr 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate Representation26 Apr 2023