Summarizing source code with transferred API knowledge

Xing Hu, Ge Li, Xin Xia, David Lo, Shuai Lu, Zhi Jin

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

18 Citations (Scopus)

Abstract

Code summarization, aiming to generate succinct natural language description of source code, is extremely useful for code search and code comprehension. It has played an important role in software maintenance and evolution. Previous approaches generate summaries by retrieving summaries from similar code snippets. However, these approaches heavily rely on whether similar code snippets can be retrieved, how similar the snippets are, and fail to capture the API knowledge in the source code, which carries vital information about the functionality of the source code. In this paper, we propose a novel approach, named TL-CodeSum, which successfully uses API knowledge learned in a different but related task to code summarization. Experiments on large-scale real-world industry Java projects indicate that our approach is effective and outperforms the state-of-the-art in code summarization.

Original languageEnglish
Title of host publicationProceedings of the 27th International Joint Conference on Artificial Intelligence, IJCAI 2018
EditorsJerome Lang
Place of PublicationMarina del Rey CA USA
PublisherAssociation for the Advancement of Artificial Intelligence (AAAI)
Pages2269-2275
Number of pages7
ISBN (Electronic)9780999241127
DOIs
Publication statusPublished - 2018
EventInternational Joint Conference on Artificial Intelligence 2018 - Stockholm, Sweden
Duration: 13 Jul 201819 Jul 2018
https://www.ijcai.org/proceedings/2018/

Conference

ConferenceInternational Joint Conference on Artificial Intelligence 2018
Abbreviated titleIJCAI 2018
CountrySweden
CityStockholm
Period13/07/1819/07/18
Internet address

Keywords

  • Machine Learning
  • Transfer
  • Adaptation
  • Multi-task Learning
  • Deep Learning
  • Applications of Supervised Learning

Cite this

Hu, X., Li, G., Xia, X., Lo, D., Lu, S., & Jin, Z. (2018). Summarizing source code with transferred API knowledge. In J. Lang (Ed.), Proceedings of the 27th International Joint Conference on Artificial Intelligence, IJCAI 2018 (pp. 2269-2275). Association for the Advancement of Artificial Intelligence (AAAI). https://doi.org/10.24963/ijcai.2018/314