[ICLR 2026] BiasFreeBench: a Benchmark for Mitigating Bias in Large Language Model Responses
Last updated Mar 30, 2026
11
Stars
1
Forks
0
Issues
0
Stars/day
Attention Score
15
Language breakdown
Python 94.9%
Shell 5.1%
โธ Files
click to expand
README
BiasFreeBench: a Benchmark for Mitigating Bias in Large Language Model Responses

BiasFreeBench is an empirical benchmark that comprehensively compares eight mainstream bias mitigation techniques (covering four prompting-based and four training-based methods) on two test scenarios (multi-choice QA and open-ended multi-turn QA) by reorganizing existing datasets into a unified query-response setting. We hope that this benchmark can serve as a unified testbed for bias mitigation methods.
๐ Table of Contents
๐ ๏ธ Setup
conda create -n biasfree python=3.12 -y && conda activate biasfree
pip install vllm==0.8.5 deepspeed==0.15.4 pandas wandb
- Install LLaMA-Factory following https://github.com/hiyouga/LlamaFactory?tab=readme-ov-file#installation
- BiasFreeBench-BBQ: https://huggingface.co/datasets/XinXuNLPer/BiasFreeBench-BBQ
- BiasFreeBench-FairMT-Bench: https://huggingface.co/datasets/XinXuNLPer/BiasFreeBench-FairMT-Bench
๐ฌ Prompting-based Methods and Evaluation

- Some example scripts, covering all debiasing methods explored in BiasFreeBench, for Llama-3.1-8B-Instruct is in
BBQ/scripts/llama.shandFairMT-Bench/scripts/llama.sh - When using a reasoning LLM, please set
--maxoutputlen,--temperature,--topp,--topk, and--minpas the official suggestions of the corresponding models. For example, for Qwen3-8B, we set--maxoutputlen 32768 --temperature 0.6 --topp 0.95 --topk 20 --minp 0based on the sampling parameters suggested in the Qwen-3B model card.
๐ป Training-based Methods

Following LLaMA-Factory, we provide the data and scripts.
cp Training/data/* LLaMA-Factory/data
cp -r Training/examples/debias LLaMA-Factory/examples
cp -r Training/scripts LLaMA-Factory/scripts
cd LLaMA-Factory
SFT and DPO
Configurations are in examples/debias. There are example scripts for Llama-3.1-8B-Instruct in scripts/llama.sh
Task Vector
- Full SFT with LLaMA-Factory and the example script
examples/debias/debiasfullsftllamatv.yaml cd Task_Vectorgit clone https://github.com/mlfoundations/task_vectors.gitcp * taskvectors/src,cd taskvectors/src- Modify the model paths in
test.shand then runbash test.sh
Safe Alignment
Follow Safe RLHF with the 2 training stages:
- Value Models (reward model & cost model):
--modelnameorpathis a path/model name from HuggingFace of the instruction-tuned models, such as meta-llama/Llama-3.1-8B-Instruct and Qwen/Qwen2.5-7B-Instruct. - Safe-RLHF:
--actormodelnameorpathis a path/model name from HuggingFace of the instruction-tuned models.
git clone https://github.com/PKU-Alignment/safe-rlhf.git
cd safe-rlhf
conda env create --file conda-recipe.yaml
conda activate safe-rlhf
bash scripts/reward-model.sh --modelnameorpath meta-llama/Llama-3.1-8B-Instruct --outputdir output/rm
bash scripts/cost-model.sh --modelnameorpath meta-llama/Llama-3.1-8B-Instruct --outputdir output/cm
bash scripts/ppo-lag.sh \
--actormodelnameorpath meta-llama/Llama-3.1-8B-Instruct \
--rewardmodelnameorpath output/rm \
--costmodelnameorpath output/cm \
--output_dir output/ppo-lag
๐ Citation
@article{biasfreebench25,
title={BiasFreeBench: a Benchmark for Mitigating Bias in Large Language Model Responses},
author={Xin Xu, Xunzhi He, Churan Zhi, Ruizhe Chen, Julian McAuley, Zexue He},
year={2025},
url={https://arxiv.org/pdf/2510.00232}
}
โจ Acknowledgements
- Thanks for the code from LLaMA-Factory and Safe RLHF.
- Thanks for the data from BBQ and FairMT-Bench.
๐ More in this category