
Fair-RLVR: Teaching LLMs to Reason Fairly Using Verifiable Rewards Instead of RLHF
DeepSeek-R1 showed that simple binary correctness rewards can cause a language model to spontaneously develop chain-of-thought reasoning — a paradigm known as Reinforcement Learning from Verifiable Rewards (RLVR). That naturally raises a big question:
Can an LLM learn to reason fairly the same way it learned to reason correctly?
Most bias mitigation today still leans on Supervised Fine-Tuning (SFT) and Reinforcement Learning from Human Feedback (RLHF). Both are expensive, annotator-dependent, and prone to sycophancy or memorizing surface-level "safe" answers. In our research project Fair-RLVR (co-authored with Arjun Geetha Ravi, Devanand Asokan, and Rini Susan Vjayakumar Senla), we replace subjective human feedback with an automated, verifiable fairness reward using the Bias Benchmark for Question Answering (BBQ).
GitHub Repository & Paper Source: Dawn-Of-Justice/Fair-RLVR (MIT License · PyTorch / TRL / LoRA)
The Core Idea: BBQ as a Deterministic Fairness Verifier
BBQ contains 58,492 trinary-choice questions across nine social dimensions (age, disability, gender identity, nationality, physical appearance, race/ethnicity, religion, socioeconomic status, and sexual orientation). Each question appears in two forms:
- Ambiguous context: Not enough evidence is given — the objectively correct answer is always "Unknown." Picking a stereotype-aligned option is verifiably wrong.
- Disambiguated context: Explicit evidence determines the right answer, preventing the model from cheating by always answering "Unknown."
We train Qwen2.5-3B-Instruct (with LoRA, r = 16, α = 32, on a single NVIDIA H100) using Group Relative Policy Optimization (GRPO) with DAPO-style asymmetric clipping (εlow = 0.20, εhigh = 0.28). No examples of fair reasoning are shown — the model is only instructed to think inside <think> tags and output its choice inside <answer> tags.
To prevent near-duplicate leakage, we use a template-family-aware 90/10 split (52,643 train samples) so ambiguous and disambiguated siblings from the same question template always stay in the same partition.
The Composite Reward Function
Instead of hand-curating keyword blacklists, Fair-RLVR optimizes a three-part verifiable reward:

Key Experimental Results
1. Held-Out BBQ Benchmark (2,648 Matched Questions)
We compared Fair-RLVR against zero-shot Qwen2.5-3B-Instruct, SFT on the exact same BBQ data, and a structural-only RL control (λ = 0) that enforces <think>/<answer> formatting without any fairness reward:

Why the SFT number is a mirage: At first glance, SFT's 97.8% in-distribution accuracy looks unbeatable. Look closer at the Bias Ratio (stereotype-consistent errors divided by total errors): SFT actually gets slightly worse than zero-shot (0.723 vs. 0.717). SFT memorized BBQ's answer distribution without fixing its underlying stereotype fallback. Fair-RLVR is the only trained model that shifts the error composition away from stereotypes (0.717 → 0.634), while jumping +20.6 percentage points on ambiguous contexts and reducing Absolute Stereotype Error (ASE) across all nine social categories (24.3% → 8.4% overall).
2. Out-of-Distribution Generalization (Where SFT Collapses)
To check whether fairness reasoning actually transfers outside BBQ, we evaluated all trained models on WinoBias, StereoSet, and Intersectional BBQ (unseen Race×Gender and Race×SES combinations absent from training):
| Model | WinoBias ↓ | StereoSet SS (→0.5) | StereoSet LMS ↑ | StereoSet ICAT ↑ | Int. BBQ Amb. ↑ | Int. BBQ Dis. ↑ |
|---|---|---|---|---|---|---|
| SFT | 0.210 | 0.706 | 0.911 | 0.536 | 95.4% | 90.4% |
| Structural-only RL (λ = 0) | 0.200 | 0.697 | 0.962 | 0.582 | 92.0% | 92.4% |
| Fair-RLVR (ours) | 0.214 | 0.700 | 0.958 | 0.575 | 96.2% | 91.2% |
Fair-RLVR beats SFT on 5 of 6 out-of-distribution measures and achieves the highest accuracy of any model (96.2%) on unseen intersectional ambiguous questions — while SFT records the worst StereoSet language modeling score (0.911) and ICAT (0.536), confirming its BBQ gains were memorization.
3. Is the Chain-of-Thought Actually Doing the Work?
A common criticism of reasoning models is that their <think> block is just post-hoc rationalization. We ran a three-level causal faithfulness intervention on 100 correctly answered evaluation samples:

Stripping the reasoning drops accuracy by 22 percentage points, while shuffling sentences does not — proving the content of the reasoning chain plays a genuine computational role in producing fair decisions.
4. Modest Alignment Tax
Fairness training barely touches general capabilities compared to zero-shot Qwen2.5-3B-Instruct:
- MMLU: 65.6% → 64.2% (−1.4 pp)
- GSM8K: 79.1% → 77.8% (−1.3 pp)
Reproduce the Experiments
The full training loop, composite reward, baselines, OOD evaluators, and IEEE LaTeX paper are open-source:
git clone https://github.com/Dawn-Of-Justice/Fair-RLVR.git
cd Fair-RLVR
pip install -e .
pip install -r requirements.txt
# Verify data splits and reward function
python -m src.data
python -m src.reward
# Run a 5-step dry run (GPU recommended)
python -m src.train --dry-run
# Train main Fair-RLVR run (λ = 0.5) and evaluate
python -m src.train --config configs/lambda_sweep.yaml --lambda-fair 0.5 --output-dir results/lambda_0.5
python -m src.evaluate --checkpoint results/lambda_0.5/final_adapter --output-dir results/eval_lambda_0.5 --run-faithfulnessCurrent Limitations & Next Steps
We keep the scope transparent in the paper:
- Over-abstention trade-off: Fair-RLVR abstains on 14.4% of disambiguated questions (versus 0.3% for SFT), making conservative errors rather than stereotype errors — calibrating abstention more tightly is an active next step.
- Scale & cultural breadth: Current experiments use a single 3B model and English multiple-choice benchmarks. Scaling to larger models and testing on culturally diverse benchmarks like BharatBBQ and free-form generation are top priorities for future work.
Links & Citation
- Code, Configs & Results: Dawn-Of-Justice/Fair-RLVR on GitHub
- Full Paper Source: main.tex (IEEE Conference Format)
- Architecture Decision Record: docs/adr_fair_rlvr.md
Acknowledgments: Built with the open-source Qwen and TRL ecosystems, with thanks to the IEEE Industrial Electronics Society Generative AI Hackathon team.




Comments