Skip to content

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

Aug 2025 · 1 citation · 45 references
Computer Science

TL;DR

The proposed framework enables consistent bias elicitation for better localization of bias conceptual association in the model space, supports targeted debiasing without degrading performance on downstream tasks, and generalizes to biases unseen during fine-tuning.

Abstract

Understanding biases and stereotypes encoded in the weights of Large Language Models (LLMs) is crucial for developing effective mitigation strategies. However, biased behavior is often subtle and non-trivial to isolate, even when deliberately elicited, making systematic analysis and debiasing particularly challenging. To address this, we introduce a simple, cost-effective, and generalizable framework \texttt{BiasGym} for reliably injecting, analyzing, and mitigating conceptual associations of biases within LLMs. \texttt{BiasGym} consists of two modules: \texttt{Inject}, which injects specific biases into the model via token-based fine-tuning while keeping the model frozen, followed by two debiasing methods that leverage these injected signals to identify and reliably suppress (\texttt{Scope}) or \texttt{Steer} the components responsible for biased behavior. Our framework enables consistent bias elicitation for better localization of bias conceptual association in the model space, supports targeted debiasing without degrading performance on downstream tasks, and generalizes to biases unseen during fine-tuning. We demonstrate the effectiveness of our proposed framework in reducing real-world stereotypes (e.g., people from Italy being `reckless drivers'), showing its utility for both safety interventions and interpretability research.

View source

Similar papers

Open access Sep 2026

BiasScope: Inference-Time Bias Detection and Mitigation for Fair Natural Language Processing (NLP) Using Retrieval-Augmented Generation and Prompt Engineering

BiasScope is a lightweight framework that uses prompt engineering and RAG to detect and mitigate model biases at inference time without changing weights, and provides an effective means of achieving fairness and accountability in production Natural Language Processing (NLP).

Rakeshkumarreddy Ambati · 0 citations
#natural language process... Preprint Oct 2026

Acmite: Mitigating Gender Bias in LLMs through Concept-Guided Mutual Information

Large language models (LLMs) can reproduce social stereotypes from their training data, motivating extensive research on model debiasing. However, existing methods often rely on explicit biased examples or predefined group-term substitutions, making them sensitive to wording and less effective at capturing stereotype c...

Tian Lan, Xiao-Qing Cheng, Han Zhang et al. · 0 citations
#artificial intelligence Preprint Oct 2026

Latent space bias directions in LLMs capture confidence, not fairness

Activation steering has gained popularity as a lightweight inference-time debiasing technique for large language models. However, prior work reports that steering vectors generalise poorly, with unintended effects on model performance and limited transfer to new datasets. Our work analyses what the debiasing direction...

Stephanie Buttigieg, Maeve Madigan, P. Kamalaruban et al. · 1 citation · ⚡1
Preprint Aug 2026

BiasTrace: Linking Reasoning Behaviours to Biased Outputs in LLMs

LLMs exhibit social biases that can produce inaccurate and discriminatory inferences, posing risks in high-stakes applications. While prior work has made progress in measuring and mitigating bias, it largely focuses on final outputs of models, with limited understanding of the mechanisms that produce biased outcomes. R...

Varsha Ramineni, Hossein A. Rahmani, Jerome Ramos et al. · 0 citations
Aug 2026

How prompts manipulate models: measuring cognitive bias vulnerability in commercial LLMs across languages

It is observed that bias vulnerability increases in Hindi and Bengali compared to English, particularly under manipulative prompts, which highlights the importance of multilingual bias evaluation and provides practical guidance for selecting commercial language models in bias-sensitive applications.

Koushik Deb, Imon Mukherjee, Debarshi Kumar Sanyal · 0 citations
#machine learning Preprint Sep 2026

FairLMs: A Turnkey Library for Fairness in Language Models

A Python library that connects fairness research on language models through explicit declarations of model capabilities and input requirements, so that compatible components can be combined, methods compared under a common protocol, and workflows extended to new models and datasets.

Jia-Le Zhang, Michael M. Larionov, Zi-Chong Wang et al. · 0 citations

Related blog posts

MIT News · Artificial Intelligence Sep 29, 2026

Who we become when we talk to machines

Professor Sherry Turkle’s new book, “Artificial Intimacy,” offers a withering critique of chatbots and the antisocial dynamics she believes they encourage.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.