Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflow
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
- 2017Attention Is All You Needcited by 60,361
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
- 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2019Automatic Code Summarization: A Systematic Literature Reviewcited by 18
- 2019Developer Reading Behavior While Summarizing Java Methods: Size and Context Matterscited by 3
- 2021Mining API Usage Scenarios from Stack Overflowcited by 3
Built on by
Citing papers per year: 2022: 2; 2023: 4; 2024: 1; 2025: 2.
9 papers.
- 2023Improving Code Example Recommendations on Informal Documentation Using BERT and Query-Aware LSH: A Comparative Studycited by 7
- 2022Towards Code Summarization of APIs Based on Unofficial Documentation Using NLP Techniquescited by 4
- 2023Enhancing API Documentation through BERTopic Modeling and Summarizationcited by 1
- 2025Automating API Documentation with LLMs: A BERTopic Approachcited by 1
- 2022Code Compliance Assessment as a Learning Problemcited by 0
- 2023Leveraging Data Mining Algorithms to Recommend Source Code Changescited by 0
- 2023Leveraging Deep Learning for Abstractive Code Summarization of Unofficial Documentationcited by 0
- 2024Revolutionizing API Documentation through Summarizationcited by 0
- 2025ArchISMiner: A Framework for Automatic Mining of Architectural Issue-Solution Pairs from Online Developer Communitiescited by 0
- 2025ArchISMiner: A Framework for Automatic Mining of Architectural Issue-Solution Pairs from Online Developer Communities24 Oct 2025
- 2025Automating API Documentation with LLMs: A BERTopic Approach6 Sep 2025
- 2024Revolutionizing API Documentation through Summarization21 Jan 2024
- 2023Leveraging Deep Learning for Abstractive Code Summarization of Unofficial Documentation23 Oct 2023
- 2023Enhancing API Documentation through BERTopic Modeling and Summarization17 Aug 2023
- 2023Improving Code Example Recommendations on Informal Documentation Using BERT and Query-Aware LSH: A Comparative Study4 May 2023
- 2023Leveraging Data Mining Algorithms to Recommend Source Code Changes29 Apr 2023
- 2022Code Compliance Assessment as a Learning Problem10 Sep 2022
- 2022Towards Code Summarization of APIs Based on Unofficial Documentation Using NLP Techniques12 Aug 2022