BiasAlert: A Plug-and-play Tool for Social Bias Detection in LLMs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Fan, Zhiting, Chen, Ruizhe, Xu, Ruiling, Liu, Zuozhu
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914879340806144
author Fan, Zhiting
Chen, Ruizhe
Xu, Ruiling
Liu, Zuozhu
author_facet Fan, Zhiting
Chen, Ruizhe
Xu, Ruiling
Liu, Zuozhu
contents Evaluating the bias in Large Language Models (LLMs) becomes increasingly crucial with their rapid development. However, existing evaluation methods rely on fixed-form outputs and cannot adapt to the flexible open-text generation scenarios of LLMs (e.g., sentence completion and question answering). To address this, we introduce BiasAlert, a plug-and-play tool designed to detect social bias in open-text generations of LLMs. BiasAlert integrates external human knowledge with inherent reasoning capabilities to detect bias reliably. Extensive experiments demonstrate that BiasAlert significantly outperforms existing state-of-the-art methods like GPT4-as-A-Judge in detecting bias. Furthermore, through application studies, we demonstrate the utility of BiasAlert in reliable LLM bias evaluation and bias mitigation across various scenarios. Model and code will be publicly released.
format Preprint
id arxiv_https___arxiv_org_abs_2407_10241
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle BiasAlert: A Plug-and-play Tool for Social Bias Detection in LLMs
Fan, Zhiting
Chen, Ruizhe
Xu, Ruiling
Liu, Zuozhu
Computation and Language
Evaluating the bias in Large Language Models (LLMs) becomes increasingly crucial with their rapid development. However, existing evaluation methods rely on fixed-form outputs and cannot adapt to the flexible open-text generation scenarios of LLMs (e.g., sentence completion and question answering). To address this, we introduce BiasAlert, a plug-and-play tool designed to detect social bias in open-text generations of LLMs. BiasAlert integrates external human knowledge with inherent reasoning capabilities to detect bias reliably. Extensive experiments demonstrate that BiasAlert significantly outperforms existing state-of-the-art methods like GPT4-as-A-Judge in detecting bias. Furthermore, through application studies, we demonstrate the utility of BiasAlert in reliable LLM bias evaluation and bias mitigation across various scenarios. Model and code will be publicly released.
title BiasAlert: A Plug-and-play Tool for Social Bias Detection in LLMs
topic Computation and Language
url https://arxiv.org/abs/2407.10241