Towards Better Answers: Automated Stack Overflow Post Updating
Yubo Mai, Zhipeng Gao, Haoye Wang, Tingting Bi, Xing Hu, and Xin Xia, Jianling Sun

TL;DR
This paper presents Soup, a framework for automatically updating Stack Overflow posts by leveraging comments to improve code snippets, demonstrated through experiments and real-world validation with SO maintainers.
Contribution
Introduces Soup, a novel framework for automatic Stack Overflow post updating that predicts comment edits and applies updates, improving answer quality.
Findings
Model outperforms benchmarks in post updating tasks.
50 generated edits submitted to Stack Overflow, with 21 accepted by maintainers.
Demonstrates practical effectiveness through real-world SO validation.
Abstract
Utilizing code snippets on Stack Overflow (SO) is a common practice among developers for problem-solving. Although SO code snippets serve as valuable resources, it is important to acknowledge their imperfections, reusing problematic code snippets can lead to the introduction of suboptimal or buggy code into software projects. SO comments often point out weaknesses of a post and provide valuable insights to improve the quality of answers, while SO comments are usually missed and/or ignored, leaving these problematic code snippets untouched. In this work, we first investigate the task of automatic SO posts updating based on their associated comments. We introduce a novel framework, named Soup (Stack Overflow Updator for Post) for this task. Soup addresses two key tasks: Valid Comment-Edit Prediction (VCP) and Automatic Post Updating (APU). Extensive experimental results show the promising…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsScientific Computing and Data Management · Topic Modeling · Biomedical Text Mining and Ontologies
