paper-with-me

Papers

GypSum: Learning Hybrid Representations for Code Summarization

2022-04-26 · Yu Wang, Yu Dong, Xuesong Lu, Aoying Zhou

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.

📄 PDF Abstract BibTeX arXiv:2204.12916

Code (1)

icpc2022-gypsum/gypsum_code 공식 구현 pytorch

Tasks

Code SummarizationDecoderDeep LearningGraph Attentiongraph constructionLanguage ModellingMachine Translation

Similar Papers 제목 키워드 기반

Learning to Summarize Long Texts with Memory Compression and Transfer

2020-10-21 · Jaehong Park, Jonathan Pilault, Christopher Pal

We introduce Mem2Mem, a memory-to-memory mechanism for hierarchical recurrent neural network based encoder decoder architectures and we explore its use for abstractive document summarization. Mem2Mem transfers "memories"…

Abstractive Text SummarizationDecoderDocument SummarizationSentence

Mem2Mem: Learning to Summarize Long Texts with Memory Compression and Transfer

2021-01-01 · Jonathan Pilault, Jaehong Park, Christopher Pal

We introduce Mem2Mem, a memory-to-memory mechanism for hierarchical recurrent neural network based encoder decoder architectures and we explore its use for abstractive document summarization. Mem2Mem transfers memories v…

Abstractive Text SummarizationDecoderDocument SummarizationSentence

A Hybrid Word-Character Approach to Abstractive Summarization

2018-02-27 · Chieh-Teng Chang, Chi-Chia Huang, Chih-Yuan Yang, Jane Yung-jen Hsu

Automatic abstractive text summarization is an important and challenging research topic of natural language processing. Among many widely used languages, the Chinese language has a special property that a Chinese charact…

Abstractive Text SummarizationArticlesText Summarization

Advancing Medical Radiograph Representation Learning: A Hybrid Pre-training Paradigm with Multilevel Semantic Granularity

2024-10-01 · Hanqi Jiang, Xixuan Hao, Yuzhou Huang, Chong Ma 외

This paper introduces an innovative approach to Medical Vision-Language Pre-training (Med-VLP) area in the specialized context of radiograph representation learning. While conventional methods frequently merge textual an…

DecoderKnowledge DistillationRepresentation Learning

Think Big, Generate Quick: LLM-to-SLM for Fast Autoregressive Decoding

2024-02-26 · Benjamin Bergner, Andrii Skliar, Amelie Royer, Tijmen Blankevoort 외

Large language models (LLMs) have become ubiquitous in practice and are widely used for generation tasks such as translation, summarization and instruction following. However, their enormous size and reliance on autoregr…

DecoderInstruction FollowingLanguage ModelingLanguage Modelling+2