Evaluation, Robustness & Ethics

dataset bias

Dataset bias is the principle that a model can only learn what is in its data — including the data's flaws, skews, and accidental patterns — and it will faithfully reproduce and often amplify them. A vision dataset is not a neutral mirror of the world; it is a sample shaped by who collected it, where, with what cameras, of whom, and with what labeling instructions. Whatever is over-represented, under-represented, or accidentally correlated in that sample becomes the 'truth' the model optimizes toward, even when that truth is an artifact of collection rather than a real property of the task.

Bias enters through several concrete channels. Selection/sampling bias: training images are scraped predominantly from certain countries, languages, or websites, so the data skews geographically and demographically (web image sets historically over-represent North America and Europe). Representation bias: some groups, skin tones, lighting conditions, or object viewpoints appear far less often, so the model is simply trained less on them. Label bias: annotation guidelines, ambiguous categories, or annotators' own assumptions bake subjective judgments into the 'ground truth'. Capture bias: framing and photographic conventions create artifacts (objects always centered, certain backgrounds always paired with certain classes).

The most insidious consequence is spurious correlations — shortcut learning. If, in the data, cows almost always appear on grass and camels on sand, a classifier may learn 'green background ⇒ cow' instead of learning what a cow looks like, then misclassify a cow on a beach. The famous diagnostic cases are stark: a 'husky vs wolf' classifier that actually keyed on snow in the background, and medical models that detected a hospital's X-ray machine watermark rather than the disease. These models score high on a test set that shares the same bias, then collapse the moment the spurious cue is absent — which is precisely a distribution shift in disguise.

Amplification makes it worse: models often exaggerate a correlation present in the data, predicting a biased association more strongly than the base rate, which compounds over feedback loops when model outputs become future training data. Mitigation is partly technical — re-balancing or re-weighting classes and groups, targeted data collection to fill gaps, augmentation, group-distributionally-robust optimization (Group DRO) that optimizes worst-group rather than average loss, and de-biasing methods that suppress known spurious features — but it is fundamentally also about process: documenting datasets (datasheets, model cards), auditing across subgroups, and recognizing that no purely algorithmic fix substitutes for representative data and careful labeling. Dataset bias is the upstream root of much downstream unfairness, which is why it is treated as an ethics-and-evaluation concern, not just an engineering nuisance.

Beware the bias-confirming test set: if your test data was collected the same way as training, it shares the same biases, so it will not reveal shortcut learning — it confirms it. Probing for spurious cues requires deliberately shifted evaluation (out-of-context objects, balanced subgroups, counterfactual edits), not just a held-out split.

Also called
data biasselection biasspurious correlationshortcut bias