{% extends "main.html" %}
{% block tabs %}
{{ super() }}
Fairness benchmarking for generative AI
FAIRBench measures how fair a generative model (or a system using one)
is to the people it serves, its representational bias, harmful
stereotypes, and service-quality disparities, using counterfactual
testing and six calibrated fairness metrics.
How do you know your generative AI is fair to our society?
What an output looks like
Instead of a single opaque score, FAIRBench returns a verdict you can act on. The scorecard above reports one image benchmark; here is how to read it.
A plain-language call at the top (ship, investigate, or do not ship), driven by the worst band across all metrics.
Each of the six metrics gets a value, its threshold, and a Pass / Watch / Flag / Fail band, so nothing hides behind an average.
Every band comes with the specific numbers behind it (which group, which scenario, how large the gap), pointing straight at the fix.
The scorecard states what the evaluation could and could not see, so a clean result is never mistaken for a complete one.
The measurement
Fairness is not one number. FAIRBench decomposes it into six signals that together separate a representational problem from a harmful one, and a content problem from a service one.
Who the model defaults to representing.
ODE ↑ higherWhether outputs stay diverse or collapse to a single mode.
CDS ↓ lowerThe implicit prior a model assumes when you don't specify.
HSI ↓ lowerHarmful, toxic, or demeaning content in the outputs.
SAR ≈ 1.0Whether the model amplifies bias beyond the real-world baseline.
DSI ↓ lowerUnequal refusals and response quality across groups.
How it works
Quick install
Requires Python 3.11+. Set an API key for the service you want to test, then run a built-in benchmark.
pip install -e ".[dev]"
export ANTHROPIC_API_KEY=sk-ant-...
fairbench run gender_occupation \
--model anthropic --html report.html