paper-with-me

홈 › Papers

Improving Automatic Source Code Summarization via Deep Reinforcement Learning

2018-11-17 · Yao Wan, Zhou Zhao, Min Yang, Guandong Xu, Haochao Ying, Jian Wu, Philip S. Yu

Code summarization provides a high level natural language description of the function performed by code, as it can benefit the software maintenance, code categorization and retrieval. To the best of our knowledge, most state-of-the-art approaches follow an encoder-decoder framework which encodes the code into a hidden space and then decode it into natural language space, suffering from two major drawbacks: a) Their encoders only consider the sequential content of code, ignoring the tree structure which is also critical for the task of code summarization, b) Their decoders are typically trained to predict the next word by maximizing the likelihood of next ground-truth word with previous ground-truth word given. However, it is expected to generate the entire sequence from scratch at test time. This discrepancy can cause an \textit{exposure bias} issue, making the learnt decoder suboptimal. In this paper, we incorporate an abstract syntax tree structure as well as sequential content of code snippets into a deep reinforcement learning framework (i.e., actor-critic network). The actor network provides the confidence of predicting the next word according to current state. On the other hand, the critic network evaluates the reward value of all possible extensions of the current state and can provide global guidance for explorations. We employ an advantage reward composed of BLEU metric to train both networks. Comprehensive experiments on a real-world dataset show the effectiveness of our proposed model when compared with some state-of-the-art methods.

📄 PDF Abstract BibTeX arXiv:1811.07234

Code (2)

mf1832146/tree-transformer pytorch
mf1832146/tree_transformer_2.0 pytorch

Tasks

Code SummarizationDecoderDeep Reinforcement Learningreinforcement-learningReinforcement LearningReinforcement Learning (RL)RetrievalSource Code Summarization

Similar Papers 제목 키워드 기반

Automatic Source Code Summarization via Reinforcement Learning

2020-12-14 · CUHK Course IERG5350 2020 12 · Zhuangbin Chen

Due to the fast development of computer and software, the volume of today's code has reached an unprecedented level. For large-scale systems (e.g., cloud computing systems) with billions lines of codes, the majority of i…

Cloud ComputingCode SummarizationManagementreinforcement-learning+3

Automatic Text Summarization Using Reinforcement Learning with Embedding Features

2017-11-01 · IJCNLP 2017 11 · Gyoung Ho Lee, Kong Joo Lee

An automatic text summarization system can automatically generate a short and brief summary that contains a main concept of an original document. In this work, we explore the advantages of simple embedding features in Re…

ARCInformation Retrievalreinforcement-learningReinforcement Learning+2

Automatic Source Code Summarization with Extended Tree-LSTM

2019-06-19 · Yusuke Shido, Yasuaki Kobayashi, Akihiro Yamamoto, Atsushi Miyamoto 외

Neural machine translation models are used to automatically generate a document from given source code since this can be regarded as a machine translation task. Source code summarization is one of the components for auto…

Code SummarizationMachine TranslationSource Code SummarizationTranslation

Self-Attention Recurrent Summarization Network with Reinforcement Learning for Video Summarization Task

2021-06-09 · IEEE International Conference on Multimedia and Expo (ICME) 2021 6 · Aniwat Phaphuangwittayakul, Yi Guo, Fangli Ying, Wentian Xu 외

With the exponential growth of video data, video summarization techniques are urgently needed for reducing people’s efforts in the videos' content exploration by generating succinct but informative summaries from origina…

reinforcement-learningReinforcement LearningSupervised Video SummarizationUnsupervised Video Summarization+1

Improved Code Summarization via a Graph Neural Network

2020-04-06 · Alexander LeClair, Sakib Haque, Lingfei Wu, Collin McMillan

Automatic source code summarization is the task of generating natural language descriptions for source code. Automatic code summarization is a rapidly expanding research area, especially as the community has taken greate…

Code SummarizationGraph Neural NetworkSource Code Summarization