BiasGym: A Simple and Generalizable Framework for Analyzing and Removing Biases through Elicitation

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Islam, Sekh Mainul, Borenstein, Nadav, Pawar, Siddhesh Milind, Yu, Haeun, Arora, Arnav, Augenstein, Isabelle
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917239981080576
author Islam, Sekh Mainul
Borenstein, Nadav
Pawar, Siddhesh Milind
Yu, Haeun
Arora, Arnav
Augenstein, Isabelle
author_facet Islam, Sekh Mainul
Borenstein, Nadav
Pawar, Siddhesh Milind
Yu, Haeun
Arora, Arnav
Augenstein, Isabelle
contents Understanding biases and stereotypes encoded in the weights of Large Language Models (LLMs) is crucial for developing effective mitigation strategies. However, biased behaviour is often subtle and non-trivial to isolate, even when deliberately elicited, making systematic analysis and debiasing particularly challenging. To address this, we introduce \texttt{BiasGym}, a simple, cost-effective, and generalizable framework for reliably and safely injecting, analyzing, and mitigating conceptual associations of biases within LLMs. \texttt{BiasGym} consists of two components: \texttt{BiasInject}, which safely injects specific biases into the model via token-based fine-tuning while keeping the model frozen, and \texttt{BiasScope}, which leverages these injected signals to identify and reliably steer the components responsible for biased behavior. Our method enables consistent bias elicitation for mechanistic analysis, supports targeted debiasing without degrading performance on downstream tasks, and generalizes to biases unseen during fine-tuning. We demonstrate the effectiveness of BiasGym in reducing real-world stereotypes (e.g., people from Italy being `reckless drivers'), showing its utility for both safety interventions and interpretability research.
format Preprint
id arxiv_https___arxiv_org_abs_2508_08855
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle BiasGym: A Simple and Generalizable Framework for Analyzing and Removing Biases through Elicitation
Islam, Sekh Mainul
Borenstein, Nadav
Pawar, Siddhesh Milind
Yu, Haeun
Arora, Arnav
Augenstein, Isabelle
Computation and Language
Artificial Intelligence
Machine Learning
Understanding biases and stereotypes encoded in the weights of Large Language Models (LLMs) is crucial for developing effective mitigation strategies. However, biased behaviour is often subtle and non-trivial to isolate, even when deliberately elicited, making systematic analysis and debiasing particularly challenging. To address this, we introduce \texttt{BiasGym}, a simple, cost-effective, and generalizable framework for reliably and safely injecting, analyzing, and mitigating conceptual associations of biases within LLMs. \texttt{BiasGym} consists of two components: \texttt{BiasInject}, which safely injects specific biases into the model via token-based fine-tuning while keeping the model frozen, and \texttt{BiasScope}, which leverages these injected signals to identify and reliably steer the components responsible for biased behavior. Our method enables consistent bias elicitation for mechanistic analysis, supports targeted debiasing without degrading performance on downstream tasks, and generalizes to biases unseen during fine-tuning. We demonstrate the effectiveness of BiasGym in reducing real-world stereotypes (e.g., people from Italy being `reckless drivers'), showing its utility for both safety interventions and interpretability research.
title BiasGym: A Simple and Generalizable Framework for Analyzing and Removing Biases through Elicitation
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2508.08855