Back to search

Nanyang Technological University

Detecting and mitigating bias in large language models

Abstract

dc:description.abstract

Large-scale language models (LLMs) have shown strong performance in a wide range of natural language tasks, but their tendency to produce social bias output is still a major problem. This bias is especially evident in ambiguous question-answering scenarios, where the model may rely on stereotyped associations rather than available contexts. This paper explores whether it is possible to reduce the bias in LLM only through prompt design without modifying model parameters or training data. We have proposed a simple prompt strategy, Constrained Neutral Role Prompting (CNRP), which combines neutral role specification with an explicit instruction to avoid biased reasoning. This method aims to guide the model to achieve a more balanced output in a single reasoning step. Use four open source language models to experiment on the BBQ benchmark. The results show that CNRP always reduces bias compared with the baseline prompt. Compared with typical debiasing methods, it achieves better overall performance, and even with significantly lower computational cost. Further analysis shows that role instructions and bias constraints play a complementary role in influencing model behavior. Overall, this work shows that even simple quick modifications can meaningfully affect the fairness of LLM output, providing a practical and effective alternative to more complex debiasing methods.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Jiang, Xingpeng
Advisor dc:contributor.supervisor
  • Mao Kezhi

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/214702

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Jiang, Xingpeng. Detecting and mitigating bias in large language models. Nanyang Technological University, 2026. https://hdl.handle.net/10356/214702