BiasGym: Fantastic Biases and How to Find (and Remove) Them
Abstract
BiasGym is a framework for injecting, analyzing, and mitigating biases in Large Language Models through token-based fine-tuning and signal analysis.
Understanding biases and stereotypes encoded in the weights of Large Language Models (LLMs) is crucial for developing effective mitigation strategies. 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 BiasGym, a simple, cost-effective, and generalizable framework for reliably injecting, analyzing, and mitigating conceptual associations within LLMs. BiasGym consists of two components: BiasInject, which injects specific biases into the model via token-based fine-tuning while keeping the model frozen, and BiasScope, which leverages these injected signals to identify and 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 training. We demonstrate the effectiveness of BiasGym in reducing real-world stereotypes (e.g., people from a country being `reckless drivers') and in probing fictional associations (e.g., people from a country having `blue skin'), showing its utility for both safety interventions and interpretability research.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- KLAAD: Refining Attention Mechanisms to Reduce Societal Bias in Generative Language Models (2025)
- Activation Steering for Bias Mitigation: An Interpretable Approach to Safer LLMs (2025)
- Entangled in Representations: Mechanistic Investigation of Cultural Biases in Large Language Models (2025)
- Do Biased Models Have Biased Thoughts? (2025)
- AutoDebias: Automated Framework for Debiasing Text-to-Image Models (2025)
- Can Small-Scale Data Poisoning Exacerbate Dialect-Linked Biases in Large Language Models? (2025)
- Stereotype Detection as a Catalyst for Enhanced Bias Detection: A Multi-Task Learning Approach (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper