paper-with-me

홈 › Papers

Project-Level Encoding for Neural Source Code Summarization of Subroutines

2021-03-22 · Aakash Bansal, Sakib Haque, Collin McMillan

Source code summarization of a subroutine is the task of writing a short, natural language description of that subroutine. The description usually serves in documentation aimed at programmers, where even brief phrase (e.g. "compresses data to a zip file") can help readers rapidly comprehend what a subroutine does without resorting to reading the code itself. Techniques based on neural networks (and encoder-decoder model designs in particular) have established themselves as the state-of-the-art. Yet a problem widely recognized with these models is that they assume the information needed to create a summary is present within the code being summarized itself - an assumption which is at odds with program comprehension literature. Thus a current research frontier lies in the question of encoding source code context into neural models of summarization. In this paper, we present a project-level encoder to improve models of code summarization. By project-level, we mean that we create a vectorized representation of selected code files in a software project, and use that representation to augment the encoder of state-of-the-art neural code summarization techniques. We demonstrate how our encoder improves several existing models, and provide guidelines for maximizing improvement while controlling time and resource costs in model size.

📄 PDF Abstract BibTeX arXiv:2103.11599

Code (1)

aakashba/projcon 공식 구현 tf

Tasks

Code SummarizationDecoderSource Code Summarization

Similar Papers 제목 키워드 기반

Selective Encoding for Abstractive Sentence Summarization

2017-04-24 · ACL 2017 7 · Qingyu Zhou, Nan Yang, Furu Wei, Ming Zhou

We propose a selective encoding model to extend the sequence-to-sequence framework for abstractive sentence summarization. It consists of a sentence encoder, a selective gate network, and an attention equipped decoder. T…

DecoderSentenceSentence Summarization

A Transformer-based Approach for Source Code Summarization

2020-05-01 · ACL 2020 6 · Wasi Uddin Ahmad, Saikat Chakraborty, Baishakhi Ray, Kai-Wei Chang

Generating a readable summary that describes the functionality of a program is known as source code summarization. In this task, learning code representation by modeling the pairwise relationship between code tokens to c…

Code SummarizationPositionSource Code Summarization

Length-controllable Abstractive Summarization by Guiding with Summary Prototype

2020-01-21 · Itsumi Saito, Kyosuke Nishida, Kosuke Nishida, Atsushi Otsuka 외

We propose a new length-controllable abstractive summarization model. Recent state-of-the-art abstractive summarization models based on encoder-decoder models generate only one summary per source text. However, controlla…

Abstractive Text SummarizationDecoder

Global Encoding for Abstractive Summarization

2018-05-10 · ACL 2018 7 · Junyang Lin, Xu sun, Shuming Ma, Qi Su

In neural abstractive summarization, the conventional sequence-to-sequence (seq2seq) model often suffers from repetition and semantic irrelevance. To tackle the problem, we propose a global encoding framework, which cont…

Abstractive Text SummarizationDecoder

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

2021-12-02 · Ze Tang, Chuanyi Li, Jidong Ge, Xiaoyu Shen 외

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 lever…

Code Summarization