Summarizing Source Code with Transferred API Knowledge

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

339 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Information Systems, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Prem Devanbu
  2. Toufique Ahmed
  3. Graham Neubig
  4. Wasi Uddin Ahmad
  5. Baishakhi Ray
  6. Saikat Chakraborty
  7. Kai-Wei Chang
  8. Huan Sun

In Information Systems

  1. Baishakhi Ray
  2. Prem Devanbu
  3. Saikat Chakraborty
  4. Toufique Ahmed
  5. Wasi Uddin Ahmad
  6. Ge Li
  7. Kai-Wei Chang
  8. Alexander LeClair

In Code Generation & Program Synthesis

  1. Prem Devanbu
  2. Toufique Ahmed
  3. Wasi Uddin Ahmad
  4. Baishakhi Ray
  5. Ge Li
  6. Saikat Chakraborty
  7. Graham Neubig
  8. Collin McMillan

Citations in the corpus