mlsanityData to 14 Oct 2026

GypSum: Learning Hybrid Representations for Code Summarization

arXiv 2204.12916 ↗First posted 26 Apr 2022cs.SE cs.LG cs.PLcited by 5

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2017Graph Attention Networkscited by 8,923
  7. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  8. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  10. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  11. 2015Gated Graph Sequence Neural Networkscited by 796
  12. 2018code2vec: Learning Distributed Representations of Codecited by 250
20 more
  1. 2017Learning to Represent Programs with Graphscited by 220
  2. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  3. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  4. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
  5. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  6. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
  7. 2019Code Generation as a Dual Task of Code Summarizationcited by 62
  8. 2018Generative Code Modeling with Graphscited by 60
  9. 2019Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 36
  10. 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
  11. 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 32
  12. 2021Code Structure Guided Transformer for Source Code Summarizationcited by 30
  13. 2018A General Path-Based Representation for Predicting Program Propertiescited by 29
  14. 2020Code Summarization with Structure-induced Transformercited by 29
  15. 2016Tree-to-Sequence Attentional Neural Machine Translationcited by 28
  16. 2019Automatic Source Code Summarization with Extended Tree-LSTMcited by 28
  17. 2018Open Vocabulary Learning on Source Code with a Graph-Structured Cachecited by 10
  18. 2020Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 10
  19. 2021IncBL: Incremental Bug Localizationcited by 4
  20. 2019Inferring Javascript types using Graph Neural Networkscited by 1

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 3.

5 papers.