Skip to main navigation Skip to search Skip to main content

A Vision for Debiasing Confirmation Bias in Software Testing via LLM

  • Iflaah Salman
  • , Muhammad Waseem
  • , Vladimir Mandić
  • , Rasanjana Dhanushkha De Alwis

Research output: Chapter in Book/Report/Conference proceedingConference contributionScientificpeer-review

Abstract

Background: Large language models (LLM) suffer from various forms of biases due to the biased datasets used to train the models. At the same time, human cognitive biases have an equal propensity to express themselves when using LLMs for software engineering tasks. Software testing is a critical phase of the software development life cycle. Confirmation bias is reported to have deteriorated software testing by designing more specification-consistent test cases compared to specificationinconsistent test cases. However, there is a lack of debiasing (mitigation) strategies in this regard. Aims: In this paper, first, we investigate whether the LLM model suffers from confirmation bias while performing software testing tasks. Second, we propose a vision of debasing confirmation bias in software testing via LLM. Method: We conducted an empirical study to detect confirmation bias by an LLM (ChatGPT4.0) in the design of functional test cases. Based on empirical findings, we used the analytical paradigm to design a multi-agent system. Results: We present a vision for debiasing confirmation bias in functional software testing by leveraging LLMs via a multi-agent approach. Conclusions: The proposed vision may improve the performance of LLMs in terms of reduced confirmation bias and serve as a debiasing technique for functional software testing.
Original languageEnglish
Title of host publication2025 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement, ESEM 2025
PublisherIEEE
Pages344-350
ISBN (Electronic)979-8-3315-9147-2
DOIs
Publication statusPublished - 2025
Publication typeA4 Article in conference proceedings
EventInternational symposium on empirical software engineering and measurement - Honolulu, United States
Duration: 2 Oct 20253 Oct 2025

Conference

ConferenceInternational symposium on empirical software engineering and measurement
Country/TerritoryUnited States
CityHonolulu
Period2/10/253/10/25

Publication forum classification

  • Publication forum level 2

Fingerprint

Dive into the research topics of 'A Vision for Debiasing Confirmation Bias in Software Testing via LLM'. Together they form a unique fingerprint.

Cite this