The DOI matches its Crossref record; 11 of the 11 references it cites were found in a registry or an index.
Improving automatic source code summarization via deep reinforcement learning
Open accessAbstract
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 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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Hochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318
BLEU: a method for automatic evaluation of machine translation
Papineni, K., Roukos, S., Ward, T., & Zhu, W.-J. (2001) · Proceedings of the 40th Annual Meeting on Association for Computational Linguistics - ACL '02 · doi:10.3115/1073083.1073135 · Cited by 21,344
Mastering the game of Go with deep neural networks and tree search
Silver, D., Huang, A., Maddison, C. J., Guez, A., Sifre, L., van den Driessche, G., Schrittwieser, J., Antonoglou, I., Panneershelvam, V., Lanctot, M., et al. (2016) · Nature · doi:10.1038/nature16961 · Cited by 15,612
Watkins, C. J. C. H., & Dayan, P. (1992) · Machine Learning · doi:10.1007/bf00992698 · Cited by 9,083
Target-driven visual navigation in indoor scenes using deep reinforcement learning
Zhu, Y., Mottaghi, R., Kolve, E., Lim, J. J., Gupta, A., Fei-Fei, L., & Farhadi, A. (2017) · 2017 IEEE International Conference on Robotics and Automation (ICRA) · doi:10.1109/icra.2017.7989381 · Cited by 1,533
Sequence Level Training with Recurrent Neural Networks
Ranzato, M., Chopra, S., Auli, M., & Zaremba, W. (2015) · arXiv · doi:10.48550/arxiv.1511.06732 · Cited by 1,426
Meteor: an automatic metric for MT evaluation with high levels of correlation with human judgments
Lavie, A., & Agarwal, A. (2007) · Proceedings of the Second Workshop on Statistical Machine Translation - StatMT '07 · doi:10.3115/1626355.1626389 · Cited by 1,047
Towards automatically generating summary comments for Java methods
Sridhara, G., Hill, E., Muppaneni, D., Pollock, L., & Vijay-Shanker, K. (2010) · Proceedings of the IEEE/ACM international conference on Automated software engineering · doi:10.1145/1858996.1859006 · Cited by 514
Latent Predictor Networks for Code Generation
Ling, W., Blunsom, P., Grefenstette, E., Hermann, K. M., Kočiský, T., Wang, F., & Senior, A. (2016) · Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p16-1057 · Cited by 307
Research works printed but not linked: 39
- A. V Aho , R. Sethi , and J. D Ullman . 1986 . Compilers, Principles , Techniques. Addison Wesley 7 , 8 (1986), 9 . A. V Aho, R. Sethi, and J. D Ullman. 1986. Compilers, Principles, Techniques. Addison Wesley 7, 8 (1986), 9.
- M. Allamanis , H. Peng , and C. Sutton . 2016. A convolutional attention network for extreme summarization of source code . In International Conference on Machine Learning. 2091–2100 . M. Allamanis, H. Peng, and C. Sutton. 2016. A convolutional attention network for extreme summarization of source code. In International Conference on Machine Learning. 2091–2100.
- M. Allamanis , D. Tarlow , A. Gordon , and Y. Wei . 2015. Bimodal modelling of source code and natural language . In International Conference on Machine Learning. 2123–2132 . M. Allamanis, D. Tarlow, A. Gordon, and Y. Wei. 2015. Bimodal modelling of source code and natural language. In International Conference on Machine Learning. 2123–2132.
- D. Bahdanau K. Cho and Y. Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473 (2014). D. Bahdanau K. Cho and Y. Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473 (2014). · arXiv
- A. V. M. Barone and R. Sennrich. 2017. A parallel corpus of Python functions and documentation strings for automated code documentation and code generation. arXiv preprint arXiv:1707.02275 (2017). A. V. M. Barone and R. Sennrich. 2017. A parallel corpus of Python functions and documentation strings for automated code documentation and code generation. arXiv preprint arXiv:1707.02275 (2017). · arXiv
- I. D. Baxter , A. Yahin , L. Moura , M. Sant’Anna , and L. Bier . 1998. Clone detection using abstract syntax trees . In Software Maintenance, 1998. Proceedings., International Conference on. IEEE, 368–377 . I. D. Baxter, A. Yahin, L. Moura, M. Sant’Anna, and L. Bier. 1998. Clone detection using abstract syntax trees. In Software Maintenance, 1998. Proceedings., International Conference on. IEEE, 368–377.
- H. K. Dam T. Tran and T. Pham. 2016. A deep language model for software code. arXiv preprint arXiv:1608.02715 (2016). H. K. Dam T. Tran and T. Pham. 2016. A deep language model for software code. arXiv preprint arXiv:1608.02715 (2016). · arXiv
- 10.1145/1085313.1085331 · DOI · Paper page
- J. Duchi , E. Hazan , and Y. Singer . 2011 . Adaptive subgradient methods for online learning and stochastic optimization . Journal of Machine Learning Research 12 , Jul (2011), 2121 – 2159 . J. Duchi, E. Hazan, and Y. Singer. 2011. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research 12, Jul (2011), 2121–2159.
- A. Eriguchi K. Hashimoto and Y. Tsuruoka. 2016. Tree-to-sequence attentional neural machine translation. arXiv preprint arXiv:1603.06075 (2016). A. Eriguchi K. Hashimoto and Y. Tsuruoka. 2016. Tree-to-sequence attentional neural machine translation. arXiv preprint arXiv:1603.06075 (2016). · DOI · Paper page
- 10.1145/2950290.2950334 · DOI · Paper page
- S. Iyer I. Konstas A. Cheung and L. Zettlemoyer. 2016. Summarizing Source Code using a Neural Attention Model.. In ACL (1). S. Iyer I. Konstas A. Cheung and L. Zettlemoyer. 2016. Summarizing Source Code using a Neural Attention Model.. In ACL (1). · DOI · Paper page
- 10.1023/B:LIDA.0000048322.42751.ca · DOI
- M. Kilickaya A. Erdem N. Ikizler-Cinbis and E. Erdem. 2016. Re-evaluating automatic metrics for image captioning. arXiv preprint arXiv:1612.07600 (2016). M. Kilickaya A. Erdem N. Ikizler-Cinbis and E. Erdem. 2016. Re-evaluating automatic metrics for image captioning. arXiv preprint arXiv:1612.07600 (2016). · DOI
- V. R. Konda and J. N. Tsitsiklis. 2000. Actor-critic algorithms. In Advances in neural information processing systems. 1008–1014. V. R. Konda and J. N. Tsitsiklis. 2000. Actor-critic algorithms. In Advances in neural information processing systems. 1008–1014.
- J. Li W. Monroe A. Ritter M. Galley J. Gao and D. Jurafsky. 2016. Deep reinforcement learning for dialogue generation. arXiv preprint arXiv:1606.01541 (2016). J. Li W. Monroe A. Ritter M. Galley J. Gao and D. Jurafsky. 2016. Deep reinforcement learning for dialogue generation. arXiv preprint arXiv:1606.01541 (2016). · DOI · Paper page
- Y. Li D. Tarlow M. Brockschmidt and R. Zemel. 2015. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493 (2015). Y. Li D. Tarlow M. Brockschmidt and R. Zemel. 2015. Gated graph sequence neural networks. arXiv preprint arXiv:1511.05493 (2015). · arXiv
- C. Y. Lin . 2004 . Rouge: A package for automatic evaluation of summaries. Text Summarization Branches Out (2004). C. Y. Lin. 2004. Rouge: A package for automatic evaluation of summaries. Text Summarization Branches Out (2004).
- C. Maddison and D. Tarlow . 2014. Structured generative models of natural source code . In International Conference on Machine Learning. 649–657 . C. Maddison and D. Tarlow. 2014. Structured generative models of natural source code. In International Conference on Machine Learning. 649–657.
- R. C Martin. 2009. Clean code: a handbook of agile software craftsmanship. Pearson Education. R. C Martin. 2009. Clean code: a handbook of agile software craftsmanship. Pearson Education.
- A. Mnih and Y. W. Teh. 2012. A fast and simple algorithm for training neural probabilistic language models. arXiv preprint arXiv:1206.6426 (2012). A. Mnih and Y. W. Teh. 2012. A fast and simple algorithm for training neural probabilistic language models. arXiv preprint arXiv:1206.6426 (2012). · arXiv
- V. Mnih K. Kavukcuoglu D. Silver A. A. Rusu J. Veness M. G. Bellemare A. Graves M. Riedmiller A. K. Fidjeland G. Ostrovski etal 2015. Human-level control through deep reinforcement learning. Nature 518 7540 (2015) 529–533. V. Mnih K. Kavukcuoglu D. Silver A. A. Rusu J. Veness M. G. Bellemare A. Graves M. Riedmiller A. K. Fidjeland G. Ostrovski et al. 2015. Human-level control through deep reinforcement learning. Nature 518 7540 (2015) 529–533. · DOI · Paper page
- L. Mou , G. Li , L. Zhang , T. Wang , and Z. Jin . 2016 . Convolutional Neural Networks over Tree Structures for Programming Language Processing .. In AAAI , Vol. 2. 4 . L. Mou, G. Li, L. Zhang, T. Wang, and Z. Jin. 2016. Convolutional Neural Networks over Tree Structures for Programming Language Processing.. In AAAI, Vol. 2. 4.
- 10.1109/ICSE-C.2017.118 · DOI
- 10.1109/TSC.2016.2560165 · DOI
- Y. Oda , H. Fudaba , G. Neubig , H. Hata , S. Sakti , T. Toda , and S. Nakamura . 2015. Learning to generate pseudo-code from source code using statistical machine translation (t) . In Automated Software Engineering (ASE), 2015 30th IEEE/ACM International Conference on. IEEE, 574–584 . Y. Oda, H. Fudaba, G. Neubig, H. Hata, S. Sakti, T. Toda, and S. Nakamura. 2015. Learning to generate pseudo-code from source code using statistical machine translation (t). In Automated Software Engineering (ASE), 2015 30th IEEE/ACM International Conference on. IEEE, 574–584.
- E. Parisotto A. Mohamed R. Singh L. Li D. Zhou and P. Kohli. 2016. Neurosymbolic program synthesis. arXiv preprint arXiv:1611.01855 (2016). E. Parisotto A. Mohamed R. Singh L. Li D. Zhou and P. Kohli. 2016. Neurosymbolic program synthesis. arXiv preprint arXiv:1611.01855 (2016). · arXiv
- C. Piech J. Huang A. Nguyen M. Phulsuksombati M. Sahami and L. Guibas. 2015. Learning program embeddings to propagate feedback on student code. arXiv preprint arXiv:1505.05969 (2015). C. Piech J. Huang A. Nguyen M. Phulsuksombati M. Sahami and L. Guibas. 2015. Learning program embeddings to propagate feedback on student code. arXiv preprint arXiv:1505.05969 (2015). · arXiv
- Z. Ren , X. Wang , N. Zhang , X. Lv , and L. J. Li . 2017 . Deep Reinforcement Learning-Based Image Captioning with Embedding Reward. In Computer Vision and Pattern Recognition (CVPR), 2017 IEEE Conference on. IEEE, 1151–1159 . Z. Ren, X. Wang, N. Zhang, X. Lv, and L. J. Li. 2017. Deep Reinforcement Learning-Based Image Captioning with Embedding Reward. In Computer Vision and Pattern Recognition (CVPR), 2017 IEEE Conference on. IEEE, 1151–1159.
- 10.1109/5.880083 · DOI · Paper page
- J. Schulman P. Moritz S. Levine M. Jordan and P. Abbeel. 2015. Highdimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438 (2015). J. Schulman P. Moritz S. Levine M. Jordan and P. Abbeel. 2015. Highdimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438 (2015). · arXiv
- I. Sutskever O. Vinyals and Q. V. Le. 2014. Sequence to sequence learning with neural networks. In Advances in neural information processing systems. 3104– 3112. I. Sutskever O. Vinyals and Q. V. Le. 2014. Sequence to sequence learning with neural networks. In Advances in neural information processing systems. 3104– 3112.
- R. S Sutton and A. G Barto . 1998. Introduction to reinforcement learning . Vol. 135 . MIT press Cambridge . R. S Sutton and A. G Barto. 1998. Introduction to reinforcement learning. Vol. 135. MIT press Cambridge.
- R. S Sutton D. A McAllester S. P Singh and Y. Mansour. 2000. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems. 1057–1063. R. S Sutton D. A McAllester S. P Singh and Y. Mansour. 2000. Policy gradient methods for reinforcement learning with function approximation. In Advances in neural information processing systems. 1057–1063.
- K. S. Tai R. Socher and C. D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075 (2015). K. S. Tai R. Socher and C. D. Manning. 2015. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075 (2015). · arXiv
- R. Vedantam , C. Lawrence Zitnick , and D. Parikh . 2015. Cider: Consensus-based image description evaluation . In Proceedings of the IEEE conference on computer vision and pattern recognition. 4566–4575 . R. Vedantam, C. Lawrence Zitnick, and D. Parikh. 2015. Cider: Consensus-based image description evaluation. In Proceedings of the IEEE conference on computer vision and pattern recognition. 4566–4575.
- H. H. Wei and M. Li. 2017. Supervised Deep Features for Software Functional Clone Detection by Exploiting Lexical and Syntactical Information in Source Code. (2017). H. H. Wei and M. Li. 2017. Supervised Deep Features for Software Functional Clone Detection by Exploiting Lexical and Syntactical Information in Source Code. (2017). · DOI · Paper page
- R. J Williams . 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning . In Reinforcement Learning . Springer , 5–32. R. J Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Reinforcement Learning. Springer, 5–32.
- 10.1145/2901739.2901767 · DOI
Cited by
Large Language Models for Software Engineering: A Systematic Literature Review
Hou, X., Zhao, Y., Liu, Y., Yang, Z., Wang, K., Li, L., Luo, X., Lo, D., Grundy, J., & Wang, H. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3695988 · Cited by 1,029
CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generation
Lu, S., Guo, D., Ren, S., Huang, J., Svyatkovskiy, A., Blanco, A., Clement, C., Drain, D., Jiang, D., Tang, D., et al. (2021) · arXiv · doi:10.48550/arxiv.2102.04664 · Cited by 536
ChatDev: Communicative Agents for Software Development
Qian, C., Liu, W., Liu, H., Chen, N., Dang, Y., Li, J., Yang, C., Chen, W., Su, Y., Cong, X., et al. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.810 · Cited by 490
Retrieval-based neural source code summarization
Zhang, J., Wang, X., Zhang, H., Sun, H., & Liu, X. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380383 · Cited by 275
Multi-task Learning based Pre-trained Language Model for Code Completion
Liu, F., Li, G., Zhao, Y., & Jin, Z. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3416591 · Cited by 188
Metadata
- Authors
- Wan, Y., Zhao, Z., Yang, M., Xu, G., Ying, H., Wu, J., & Yu, P. S.
- Venue
- Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering
- Publisher
- ACM
- Published
- 2018-09-03
- Pages
- 397-407
- OpenAlex
- W2888557792
- Cited by
- 385
- References
- 11
- FWCI
- 27.51
- Type
- conference paper
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Improving automatic source code summarization via deep reinforcement learning. https://app.cochat.ai/papers/10.1145/3238147.3238206
- The paper
- Wan, Y., Zhao, Z., Yang, M., Xu, G., Ying, H., Wu, J., & Yu, P. S. (2018). Improving automatic source code summarization via deep reinforcement learning. Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering. https://doi.org/10.1145/3238147.3238206
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.