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

减轻软件工程通用人工智能中的提示诱导认知偏差

Mitigating Prompt-Induced Cognitive Biases in General-Purpose AI for Software Engineering

Collegium Helveticum at ETH Zurich(ETH苏黎世学院);University of Zurich(苏黎世大学);University of Italian-speaking Switzerland(意大利语瑞士大学)

Francesco Sovrano, Gabriele Dominici, Alberto Bacchelli

AI总结:

研究探讨了提示诱导认知偏差对软件工程决策支持系统的影响,通过动态基准测试发现,提示工程未能显著降低偏差敏感性,但引入基于最佳实践的推理方法可平均降低51%的偏差敏感性。

摘要:

提示诱导认知偏差是指通用人工智能(GPAI)系统决策因输入中存在偏差性语言(如框架、锚点)而改变,而非任务逻辑。在软件工程(SE)决策支持中,问题陈述和需求为自然语言,小的措辞变化(如流行提示或结果揭示)可能导致GPAI模型做出次优决策。我们通过PROBE-SWE动态基准测试研究这一现象,该测试配对了相同SE困境的偏差和非偏差版本,控制逻辑和难度,针对八个SE相关偏差(锚定、可得性、从众、确认、框架、事后、超几何折扣、过度自信)。我们研究提示工程是否能减轻偏差敏感性,聚焦可直接应用于现实环境的实用技术。测试常见策略(如链式思维、自我去偏)发现,对成本效益高的GPAI系统,无统计显著的偏差敏感性降低。随后采用Prolog式推理观点:解决SE困境需显式列出任何背景公理和推理假设(即SE最佳实践),通常隐含在提示中。因此,我们假设诱导偏差特征会中断假设获取,推动GPAI模型走向有偏捷径。基于此,我们引入一种端到端方法,在回答前提取最佳实践并注入公理推理提示,平均降低51%的偏差敏感性(p < .001)。最后,我们报告了主题分析,揭示与高偏差敏感性相关的语言模式,明确GPAI在SE决策支持中使用不建议的场景及未来对策的重点区域。

英文摘要:

Prompt-induced cognitive biases are changes in a general-purpose AI (GPAI) system's decisions caused solely by biased wording in the input (e.g., framing, anchors), not task logic. In software engineering (SE) decision support (where problem statements and requirements are natural language) small phrasing shifts (e.g., popularity hints or outcome reveals) can push GPAI models toward suboptimal decisions. We study this with PROBE-SWE, a dynamic benchmark for SE that pairs biased and unbiased versions of the same SE dilemmas, controls for logic and difficulty, and targets eight SE-relevant biases (anchoring, availability, bandwagon, confirmation, framing, hindsight, hyperbolic discounting, overconfidence). We ask whether prompt engineering mitigates bias sensitivity in practice, focusing on actionable techniques that practitioners can apply off-the-shelf in real environments. Testing common strategies (e.g., chain-of-thought, self-debiasing) on cost-effective GPAI systems, we find no statistically significant reductions in bias sensitivity on a per-bias basis. We then adopt a Prolog-style view of the reasoning process: solving SE dilemmas requires making explicit any background axioms and inference assumptions (i.e., SE best practices) that are usually implicit in the prompt. So, we hypothesize that bias-inducing features short-circuit assumption elicitation, pushing GPAI models toward biased shortcuts. Building on this, we introduce an end-to-end method that elicits best practices and injects axiomatic reasoning cues into the prompt before answering, reducing overall bias sensitivity by 51% on average (p < .001). Finally, we report a thematic analysis that surfaces linguistic patterns associated with heightened bias sensitivity, clarifying when GPAI use is less advisable for SE decision support and where to focus future countermeasures.

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

↑