Bias and Fairness

When Models Treat Groups Unequally

AI bias is systematic unfairness — outcomes that differ in quality or benefit based on characteristics like race, gender, or age. It is not random error; it is a predictable, often amplified, reflection of biases already present in data, labels, or system design.

Sources of Bias

1

Training data — Historical data encodes historical inequalities. A hiring model trained on past biased decisions learns to replicate them. Biased in → biased out.

2

Label bias — Labels provided by human raters reflect human biases. Medical diagnosis labels reflect diagnostic bias. Crime labels reflect policing bias, not just actual crime rates.

3

Proxy variables — A model that "never sees race" can still discriminate by race via correlated features: zip code, name, browsing patterns.

4

Feedback loops — Biased AI decisions produce biased data → retraining amplifies the bias → the model "learns" its original bias was correct. Compound over time without intervention.

Fairness Definitions

There is no single definition of fairness

Demographic parity — Equal positive outcome rates across groups.
Equal opportunity — Equal true positive rates across groups.
Individual fairness — Similar individuals get similar outcomes.

These definitions are mathematically incompatible when base rates differ across groups. Choosing a fairness definition is an ethical and policy decision, not a technical one.

Detection and Mitigation

Detecting Bias

Slice-based evaluation: measure performance on each demographic subgroup. Disparity metrics: measure gaps in false positive and false negative rates. Audit tools: IBM AIF360, Microsoft Fairlearn, Google What-If Tool.

Mitigating Bias

Pre-processing: rebalance or reweight training data. In-processing: add fairness constraints to the training objective. Post-processing: adjust thresholds per group. All involve accuracy/fairness tradeoffs.

Need Help?

Ask the AI assistant about AI bias, how bias enters training data, the different definitions of fairness, or how to audit a model for bias.