Generating Question Titles for Stack Overflow from Mined Code Snippets
Not on the map. Why?
Abstract (arXiv)
Stack Overflow has been heavily used by software developers as a popular way to seek programming-related information from peers via the internet. The Stack Overflow community recommends users to provide the related code snippet when they are creating a question to help others better understand it and offer their help. Previous studies have shown that} a significant number of these questions are of low-quality and not attractive to other potential experts in Stack Overflow. These poorly asked questions are less likely to receive useful answers and hinder the overall knowledge generation and sharing process. Considering one of the reasons for introducing low-quality questions in SO is that many developers may not be able to clarify and summarize the key problems behind their presented code snippets due to their lack of knowledge and terminology related to the problem, and/or their poor writing skills, in this study we propose an approach to assist developers in writing high-quality questions by automatically generating question titles for a code snippet using a deep sequence-to-sequence learning approach. Our approach is fully data-driven and uses an attention mechanism to perform better content selection, a copy mechanism to handle the rare-words problem and a coverage mechanism to eliminate word repetition problem. We evaluate our approach on Stack Overflow datasets over a variety of programming languages (e.g., Python, Java, Javascript, C# and SQL) and our experimental results show that our approach significantly outperforms several state-of-the-art baselines in both automatic and human evaluation. We have released our code and datasets to facilitate other researchers to verify their ideas and inspire the follow-up work.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 May 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 3; 2023: 2; 2024: 1; 2025: 1.
10 papers.
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2023Empirical Evaluation of ChatGPT on Requirements Information Retrieval Under Zero-Shot Settingcited by 6
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal informationcited by 5
- 2022On the Evaluation of NLP-based Models for Software Engineeringcited by 5
- 2024Aligning LLMs through Multi-perspective User Preference Ranking-based Feedback for Programming Question Answeringcited by 4
- 2025Teamwork makes the dream work: LLMs-Based Agents for GitHub README.MD Summarizationcited by 4
- 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarizationcited by 3
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspectivecited by 3
- 2022Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformercited by 2
- 2025Teamwork makes the dream work: LLMs-Based Agents for GitHub README.MD Summarization13 Mar 2025
- 2024Aligning LLMs through Multi-perspective User Preference Ranking-based Feedback for Programming Question Answering27 May 2024
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generation9 May 2023
- 2023Empirical Evaluation of ChatGPT on Requirements Information Retrieval Under Zero-Shot Setting25 Apr 2023
- 2022Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformer24 Aug 2022
- 2022On the Evaluation of NLP-based Models for Software Engineering31 Mar 2022
- 2022A Survey on Artificial Intelligence for Source Code: A Dialogue Systems Perspective10 Feb 2022
- 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarization17 Nov 2021
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal information27 Sep 2021