Back to search

East Carolina University

METAMORPHIC TESTING FOR FAIRNESS EVALUATION IN LARGE LANGUAGE MODELS

Abstract

dc:description.abstract

Large Language Models (LLMs) have made significant progress in Natural Language Processing, yet they remain susceptible to fairness-related issues, often reflecting biases from their training data. These biases present risks, mainly when LLMs are used in sensitive domains such as healthcare, finance, and law. This research proposes a metamorphic testing approach to uncover fairness bugs in LLMs systematically. We define and apply fairness-oriented metamorphic relations (MRs) to evaluate state-of-the-art models like LLaMA and GPT across diverse demographic inputs. By generating and analyzing source and follow-up test cases, we identify patterns of bias, particularly in tone and sentiment. Results show that tone-based MRs detected up to 2,200 fairness violations, while sentiment-based MRs detected fewer than 500, highlighting the strength of this method. This study presents a structured strategy for enhancing fairness in LLMs and improving their robustness in critical applications.

Degree

thesis:*
Name thesis:degree_name
M.S.
Department dc:contributor.department
Computer Science
Grantor dc:publisher
East Carolina University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Anthamola, Harishwar Reddy
Advisor dc:contributor.advisor
  • Srinivasan, Madhusudan
Committee members dc:contributor.committeemember
  • Dr.Tabrizi Nasseh
  • Dr.Hart David Marvin

Subjects

dc:subject × 10

Rights

Language dc:language.iso
English

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10342/14051

Chain of custody

source
Harvested from
East Carolina University
Base URL
thescholarship.ecu.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Anthamola, Harishwar Reddy. METAMORPHIC TESTING FOR FAIRNESS EVALUATION IN LARGE LANGUAGE MODELS. East Carolina University, 2025. https://hdl.handle.net/10342/14051