mlsanityData to 14 Oct 2026

Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflow

arXiv 2111.13962 ↗First posted 27 Nov 2021cs.SE cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

Automated source code summarization is a task that generates summarized information about the purpose, usage, and--or implementation of methods and classes to support understanding of these code entities. Multiple approaches and techniques have been proposed for supervised and unsupervised learning in code summarization, however, they were mostly focused on generating a summary for a piece of code. In addition, very few works have leveraged unofficial documentation. This paper proposes an automatic and novel approach for summarizing Android API methods discussed in Stack Overflow that we consider as unofficial documentation in this research. Our approach takes the API method's name as an input and generates a natural language summary based on Stack Overflow discussions of that API method. We have conducted a survey that involves 16 Android developers to evaluate the quality of our automatically generated summaries and compare them with the official Android documentation. Our results demonstrate that while developers find the official documentation more useful in general, the generated summaries are also competitive, in particular for offering implementation details, and can be used as a complementary source for guiding developers in software development and maintenance tasks.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 10 of its 42 references that are in the map. First posted on arXiv 27 Nov 2021.

Builds on

10 of 42 references.

References · 10

  1. 2017Attention Is All You Needcited by 60,361
  2. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  3. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  4. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
  5. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
  6. 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
  7. 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
  8. 2019Automatic Code Summarization: A Systematic Literature Reviewcited by 18
  9. 2019Developer Reading Behavior While Summarizing Java Methods: Size and Context Matterscited by 3
  10. 2021Mining API Usage Scenarios from Stack Overflowcited by 3

Built on by

Cited by year

Citing papers per year: 2022: 2; 2023: 4; 2024: 1; 2025: 2.

9 papers.