paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Hints Help Finding and Fixing Bugs Differently in Python and Text-Based Program Representations

提示在 Python 与文本程序表示中帮助发现和修复 Bug 的方式不同
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 该论文是面向终端用户的程序表示与调试提示的众包实证研究,属于HCI/软件工程教育范畴,不涉及静态分析、形式化验证、LLM/Agent与程序分析的交叉,也不涉及浮点或贝叶斯程序分析。引用 2 inbox
Ruchit Rawal, Victor-Alexandru Pădurean, Sven Apel, Adish Singla, Mariya Toneva
crossref: 2026-09-12

AI 速览

一句话:大规模众包实验表明,程序表示(Python vs 自然文本)和提示类型对用户找 bug、修 bug 的准确率有不同影响。

随着 AI 编程助手普及,终端用户也可用自然语言文本表达和求解编程任务,但算法理解与调试仍然困难。为探究提示如何帮助用户发现并修复 bug,作者开展了一项涉及 753 名参与者的大规模众包研究,交叉考察三种提示类型(测试用例、概念性、详细提示)、两种程序表示(Python 源代码与自然文本表示)以及两类用户(对算法任务理解清晰或存在困惑)。结果表明:程序表示显著影响找 bug 与修 bug 的准确率,且出乎意料地,自然文本表示下用户准确率更高;提示总体上能提升准确率,但不同提示的效果取决于表示形式与用户对任务的理解程度。这些发现为设计能根据用户技能和理解水平自适应选择编程模态与提示的下一代个性化编程工具提供了启示。

问题
终端用户(尤其是借助 AI 编程助手的用户)在算法理解与程序调试上仍有困难,而提示是否有效、何种提示有效尚不明确。
方法
通过 753 名参与者的大规模众包研究,交叉对比三种提示(测试用例、概念性、详细)在两种程序表示(Python 与文本)及两类用户理解水平下的效果。
评估
以用户发现和修复 bug 的准确率作为度量,统计分析不同提示类型、程序表示与用户理解程度的影响。
原文摘要(Abstract)

With the recent advances in AI programming assistants such as GitHub Copilot, programming is not limited to classical programming languages anymore-programming tasks can also be expressed and solved by end-users in natural text. Despite the availability of this new programming modality, users still face difficulties with algorithmic understanding and program debugging. One promising approach to support end-users is to provide hints to help them find and fix bugs while forming and improving their programming capabilities. While it is plausible that hints can help, it is unclear which type of hint is helpful and how this depends on program representations (classic source code or a textual representation) and the user's capability of understanding the algorithmic task. To understand the role of hints in this space, we conduct a large-scale crowd-sourced study involving 753 participants investigating the effect of three types of hints (test cases, conceptual, and detailed), across two program representations (Python and text-based), and two groups of users (with clear understanding or confusion about the algorithmic task). We find that the program representation (Python vs. text) has a significant influence on the users' accuracy at finding and fixing bugs. Surprisingly, users are more accurate at finding and fixing bugs when they see the program in natural text. Hints are generally helpful in improving accuracy, but different hints help differently depending on the program representation and the user's understanding of the algorithmic task. These findings have implications for designing next-generation programming tools that provide personalized support to users, for example, by adapting the programming modality and providing hints with respect to the user's skill level and understanding.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8859,
  title = {Hints Help Finding and Fixing Bugs Differently in Python and Text-Based Program Representations},
  author = {Ruchit Rawal and Victor-Alexandru Pădurean and Sven Apel and Adish Singla and Mariya Toneva},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00192}
}