arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17604cs.SEcs.AI
收藏

基于用户反馈的人工智能对编程答案的增强

Human-Aligned Enhancement of Programming Answers with LLMs Guided by User Feedback

University of Saskatchewan(萨斯喀彻温大学)

Suborno Deb Bappon, Saikat Mondal, Chanchal K. Roy, Kevin Schneider

AI总结:

本研究提出AUTOCOMBAT工具,利用用户反馈和问题上下文改进编程答案,实现近人类质量的提升,具有高实用价值。

摘要:

大型语言模型(LLMs)被广泛用于支持软件开发人员在代码生成、优化和文档编写等任务中。然而,它们在以人类方式改进现有编程答案的能力仍处于探索阶段。在像Stack Overflow(SO)这样的技术问答平台上,贡献者常常根据用户评论中指出的错误、低效或缺失解释来修改答案。然而,大约三分之一的反馈因时间、专业知识或可见性有限而未被处理,导致许多答案不完整或过时。本研究探讨LLMs是否能够通过解读和整合基于评论的反馈来增强编程答案。我们做出了四项主要贡献。首先,我们介绍了ReSOlve基准,它包含790个SO答案及其相关的评论线,这些答案被标注为改进相关和一般反馈。第二,我们评估了四种最先进的LLMs在识别可操作关切点方面的能力,发现DeepSeek在精度和召回率之间达到了最佳平衡。第三,我们提出了AUTOCOMBAT,一个基于LLM的工具,通过联合利用用户评论和问题上下文来改进编程答案。与人类修订的参考相比,AUTOCOMBAT在产生近人类质量的改进的同时,保留了原始意图,并显著优于基线。最后,一项包含58名从业者用户研究显示了强大的实用价值,84.5%的参与者表示他们会采用或推荐该工具。总体而言,AUTOCOMBAT展示了通过可扩展的、基于反馈的答案细化来提高技术知识平台可靠性和可信度的潜力。

英文摘要:

Large Language Models (LLMs) are widely used to support software developers in tasks such as code generation, optimization, and documentation. However, their ability to improve existing programming answers in a human-like manner remains underexplored. On technical question-and-answer platforms such as Stack Overflow (SO), contributors often revise answers based on user comments that identify errors, inefficiencies, or missing explanations. Yet roughly one-third of this feedback is never addressed due to limited time, expertise, or visibility, leaving many answers incomplete or outdated. This study investigates whether LLMs can enhance programming answers by interpreting and incorporating comment-based feedback. We make four main contributions. First, we introduce ReSOlve, a benchmark consisting of 790 SO answers with associated comment threads, annotated for improvement-related and general feedback. Second, we evaluate four state-of-the-art LLMs on their ability to identify actionable concerns, finding that DeepSeek achieves the best balance between precision and recall. Third, we present AUTOCOMBAT, an LLM-powered tool that improves programming answers by jointly leveraging user comments and question context. Compared to human revised references, AUTOCOMBAT produces near-human quality improvements while preserving the original intent and significantly outperforming the baseline. Finally, a user study with 58 practitioners shows strong practical value, with 84.5 percent indicating they would adopt or recommend the tool. Overall, AUTOCOMBAT demonstrates the potential of scalable, feedback-driven answer refinement to improve the reliability and trustworthiness of technical knowledge platforms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑