GPTBIAS: A Comprehensive Framework for Evaluating Bias in Large Language Models

Jiaxu Zhao, Meng Fang, Shirui Pan, Wenpeng Yin, Mykola Pechenizkiy
12/11/2023
cs.CLcs.CYcs.LG

No confident code implementation found for this paper. 8 possible matches can be shown below.

Abstract

Warning: This paper contains content that may be offensive or upsetting. There has been a significant increase in the usage of large language models (LLMs) in various applications, both in their original form and through fine-tuned adaptations. As a result, LLMs have gained popularity and are being widely adopted by a large user community. However, one of the concerns with LLMs is the potential generation of socially biased content. The existing evaluation methods have many constraints, and their results exhibit a limited degree of interpretability. In this work, we propose a bias evaluation framework named GPTBIAS that leverages the high performance of LLMs (e.g., GPT-4 \cite{openai2023gpt4}) to assess bias in models. We also introduce prompts called Bias Attack Instructions, which are specifically designed for evaluating model bias. To enhance the credibility and interpretability of bias evaluation, our framework not only provides a bias score but also offers detailed information, including bias types, affected demographics, keywords, reasons behind the biases, and suggestions for improvement. We conduct extensive experiments to demonstrate the effectiveness and usability of our bias evaluation framework.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 8 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2023gptbias,
  title  = {GPTBIAS: A Comprehensive Framework for Evaluating Bias in Large Language Models},
  author = {Jiaxu Zhao and Meng Fang and Shirui Pan and Wenpeng Yin and Mykola Pechenizkiy},
  year   = {2023},
  eprint = {2312.06315},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.06315v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.06315.svg)](https://codeofpaper.com/paper/2312.06315)

Discussion