FairPrompt: Efficient Multi-Objective Prompt Optimization for Fairness Testing in Conversational AI Systems

As conversational AI systems become integral to real-world applications, ensuring fairness and minimizing social bias has become a critical research challenge. Existing fairness testing approaches often rely on exhaustive or template-based prompt generation, which limits scalability and struggles to capture the diversity of natural language. In this paper, we present FairPrompt, a novel multi-objective prompt optimization framework that leverages the Non-dominated Sorting Genetic Algorithm II (NSGA-II) to efficiently identify a high-quality subset of prompts for bias elicitation. Unlike prior methods, FairPrompt explicitly optimizes for three objectives—semantic diversity, bias detection rate, and prompt uniqueness with balanced demographic coverage—within a large prompt search space. The framework operates in five systematic stages: (1) constructing a bias dataset from social group–bias property tuples, (2) generating yes/no, wh-, and choice-based prompts using NLP techniques, (3) applying n-gram, cosine similarity, and embedding-based methods for bias detection, (4) employing NSGA-II to select an optimized “Prompt Set,” and (5) measuring fairness via Bias Detection Rate and Preference Rate across demographic categories.We evaluate FairPrompt on two state-of-the-art conversational AI systems—BlenderBot (400M parameters) and GPT-3.5 Turbo—using Random Sampling and BiasAsker as baselines. Across 30 experimental runs with a 30% prompt sample size, FairPrompt demonstrates up to 50% reduction in computational cost while achieving significantly higher bias detection rates and broader coverage across multiple social dimensions (e.g., gender, race, body, ability). These results establish FairPrompt as a scalable, model-agnostic framework for fairness testing in conversational AI, offering a more efficient and comprehensive pathway toward building robust and socially responsible AI systems.

Authors

Institutions

Publication Details

Journal
IEEE Access
Published
2025-01-01
DOI
https://doi.org/10.1109/access.2025.3618868
Citations
1
Primary Topic
Explainable Artificial Intelligence (XAI)
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

FairPrompt: Efficient Multi-Objective Prompt Optimization for Fairness Testing in Conversational AI Systems

Muhammad Usman Khalid, Shafiq Ur Rehman, Atif Aftab Ahmed Jilani, Volker Gruhn et al.
1 citations
IEEE Access
Explainable Artificial Intelligence (XAI)
2.48
article

FairPrompt: Efficient Multi-Objective Prompt Optimization for Fairness Testing in Conversational AI Systems

Muhammad Usman Khalid, Shafiq Ur Rehman, Atif Aftab Ahmed Jilani, Volker Gruhn, Nigar Azhar Butt, Zunaira Shafqat
article en
1 citations

Abstract

As conversational AI systems become integral to real-world applications, ensuring fairness and minimizing social bias has become a critical research challenge. Existing fairness testing approaches often rely on exhaustive or template-based prompt generation, which limits scalability and struggles to capture the diversity of natural language. In this paper, we present FairPrompt, a novel multi-objective prompt optimization framework that leverages the Non-dominated Sorting Genetic Algorithm II (NSGA-II) to efficiently identify a high-quality subset of prompts for bias elicitation. Unlike prior methods, FairPrompt explicitly optimizes for three objectives—semantic diversity, bias detection rate, and prompt uniqueness with balanced demographic coverage—within a large prompt search space. The framework operates in five systematic stages: (1) constructing a bias dataset from social group–bias property tuples, (2) generating yes/no, wh-, and choice-based prompts using NLP techniques, (3) applying n-gram, cosine similarity, and embedding-based methods for bias detection, (4) employing NSGA-II to select an optimized “Prompt Set,” and (5) measuring fairness via Bias Detection Rate and Preference Rate across demographic categories.We evaluate FairPrompt on two state-of-the-art conversational AI systems—BlenderBot (400M parameters) and GPT-3.5 Turbo—using Random Sampling and BiasAsker as baselines. Across 30 experimental runs with a 30% prompt sample size, FairPrompt demonstrates up to 50% reduction in computational cost while achieving significantly higher bias detection rates and broader coverage across multiple social dimensions (e.g., gender, race, body, ability). These results establish FairPrompt as a scalable, model-agnostic framework for fairness testing in conversational AI, offering a more efficient and comprehensive pathway toward building robust and socially responsible AI systems.

IEEE AccessVol. 13
National University of Computer and Emerging Sciences (PK), Imam Mohammad ibn Saud Islamic University (SA), University of Duisburg-Essen (DE)
Openalex Percentile: Top 8%
Explainable Artificial Intelligence (XAI)
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.