mlsanityData to 14 Oct 2026

Improving Automatic Source Code Summarization via Deep Reinforcement Learning

arXiv 1811.07234 ↗First posted 17 Nov 2018cs.SE cs.CL cs.LGcited by 100

Not on the map. Why?

Abstract (arXiv)

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 textitexposure 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.

Key facts. Cited by 100 papers in the map (data through 14 Oct 2026). First posted on arXiv 17 Nov 2018.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2020: 1; 2021: 22; 2022: 24; 2023: 22; 2024: 15; 2025: 14; 2026: 2.

100 papers.

Sort:

By area:

  1. 2023ChatDev: Communicative Agents for Software Developmentcited by 919
  2. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  3. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  4. 2022Large Language Models Meet NL2Code: A Surveycited by 138
  5. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  6. 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
  7. 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Modelscited by 52
  8. 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
  9. 2021On the Evaluation of Neural Code Summarizationcited by 48
  10. 2022Compilable Neural Code Generation with Compiler Feedbackcited by 47
  11. 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 44
  12. 2021Multilingual training for Software Engineeringcited by 43
38 more
  1. 2022No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligencecited by 41
  2. 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
  3. 2023Distilled GPT for Source Code Summarizationcited by 31
  4. 2021Code Structure Guided Transformer for Source Code Summarizationcited by 30
  5. 2021CodeQA: A Question Answering Dataset for Source Code Comprehensioncited by 30
  6. 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
  7. 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
  8. 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
  9. 2024CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Codecited by 24
  10. 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
  11. 2021Improving Code Summarization with Block-wise Abstract Syntax Tree Splittingcited by 19
  12. 2021Memorization and Generalization in Neural Code Intelligence Modelscited by 19
  13. 2022An Extractive-and-Abstractive Framework for Source Code Summarizationcited by 18
  14. 2022Assemble Foundation Models for Automatic Code Summarizationcited by 17
  15. 2023One Adapter for All Programming Languages? Adapter Tuning for Code Search and Summarizationcited by 16
  16. 2022CODE-MVP: Learning to Represent Source Code from Multiple Views with Contrastive Pre-Trainingcited by 15
  17. 2021Long-Range Modeling of Source Code Files with eWASH: Extended Window Access by Syntax Hierarchycited by 14
  18. 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
  19. 2022M2TS: Multi-Scale Multi-Modal Approach Based on Transformer for Source Code Summarizationcited by 14
  20. 2022Cross-Language Binary-Source Code Matching with Intermediate Representationscited by 13
  21. 2022Code Recommendation for Open Source Software Developerscited by 13
  22. 2022An Exploratory Study on Code Attention in BERTcited by 12
  23. 2022Summarize and Generate to Back-translate: Unsupervised Translation of Programming Languagescited by 12
  24. 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
  25. 2021AST-Transformer: Encoding Abstract Syntax Trees Efficiently for Code Summarizationcited by 11
  26. 2023Reinforcement Learning for Generative AI: A Surveycited by 11
  27. 2023CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Codecited by 11
  28. 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
  29. 2021API2Com: On the Improvement of Automatically Generated Code Comments Using API Documentationscited by 10
  30. 2024Model Editing for LLMs4Code: How Far are We?cited by 10
  31. 2021Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflowcited by 9
  32. 2022HierarchyNet: Learning to Summarize Source Code with Heterogeneous Representationscited by 9
  33. 2022BashExplainer: Retrieval-Augmented Bash Code Comment Generation based on Fine-tuned CodeBERTcited by 9
  34. 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
  35. 2023A Prompt Learning Framework for Source Code Summarizationcited by 9
  36. 2024RACONTEUR: A Knowledgeable, Insightful, and Portable LLM-Powered Shell Command Explainercited by 9
  37. 2024ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarizationcited by 8
  38. 2025Show Me Your Code! Kill Code Poisoning: A Lightweight Method Based on Code Naturalnesscited by 8

50 most cited of 100 All 100 (JSON)