Group fairness

Group fairness is a family of fairness definitions that require an AI system's outcomes or error rates to be equal, or close, across groups defined by attributes such as race or sex.

Group fairness judges a system by comparing statistics between groups. Divide the people a model makes decisions about into groups by a protected attribute, calculate a quantity for each group, such as the approval rate or the error rate, and check whether those quantities match. If they differ by more than an agreed tolerance, the system fails that test. Group fairness checks are straightforward to run, because they need only the model's predictions, the true outcomes and the group labels.

Different statistics give different definitions. Demographic parity, also called statistical parity, requires equal rates of positive decisions across groups. Equalised odds requires equal true positive and false positive rates. Equal opportunity requires equal true positive rates only. Predictive parity requires equal precision. When groups differ in how often the predicted outcome actually occurs, these definitions generally cannot all be met together.

The main alternative is individual fairness, proposed in 2011 by Cynthia Dwork and colleagues in Fairness Through Awareness: similar individuals should be treated similarly. The two can clash. A model can hit equal approval rates for men and women by approving a weaker candidate from one group and rejecting a stronger one from the other, which satisfies the group test while treating those two people inconsistently. Dwork's paper itself showed how to guarantee statistical parity between groups while treating similar individuals as similarly as possible.

Group fairness has known blind spots. The Fairlearn toolkit warns that parity in aggregate can hide disparities within smaller subgroups, such as people at the intersection of two attributes. Small groups produce noisy estimates. And if the true outcomes used for comparison reflect past discrimination, equalising error rates against them can lock that discrimination in.

In practice, group fairness is the workhorse of bias audits and of many legal tests: US employment guidance, for example, compares selection rates between groups. It is a useful alarm, not a full verdict. A pass on one group metric says nothing about the others, about individuals, or about whether the decision should be automated at all.

Common questions

What is group fairness in machine learning?

It is a set of fairness definitions that compare a model's outcomes or error rates across groups defined by sensitive attributes, such as race or sex. A model is group-fair under a given definition if those statistics are equal or close across the groups.

What is the difference between group fairness and individual fairness?

Group fairness compares averages across groups, such as approval rates. Individual fairness, proposed by Dwork and colleagues in 2011, requires that similar individuals receive similar decisions. A model can satisfy one while violating the other.

Is demographic parity the same as group fairness?

Demographic parity is one type of group fairness, requiring equal rates of positive decisions across groups. Other group fairness definitions, such as equalised odds and predictive parity, compare error rates or precision instead.

Finding more

Search for "group fairness vs individual fairness", "statistical parity" or "intersectional fairness" to see the main definitions and debates. Peer-reviewed papers, Google's machine learning glossary and documentation from open-source toolkits such as Fairlearn are reliable sources. When an audit reports group fairness results, check which groups were compared and whether intersections were tested.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.