Mitigating Prompt-Induced Cognitive Biases in General-Purpose AI for Software Engineering
Francesco Sovrano, Gabriele Dominici, Alberto Bacchelli

TL;DR
This paper investigates prompt-induced biases in AI for software engineering, evaluates mitigation strategies, and introduces a method that significantly reduces bias sensitivity by explicitly incorporating reasoning cues.
Contribution
It introduces a novel approach that injects axiomatic reasoning into prompts, effectively reducing bias sensitivity in AI decision support for software engineering.
Findings
Common prompt engineering strategies do not significantly reduce bias sensitivity.
Explicitly eliciting background axioms reduces bias sensitivity by 51%.
Linguistic patterns associated with bias sensitivity are identified.
Abstract
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…
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.
