Disparate Impact Remover
Description
Disparate Impact Remover is a pre-processing method that edits the numerical features of a dataset so that they reveal less about a protected attribute such as race or sex. For each feature it compares how the values are distributed within each protected group, then moves every value towards a shared distribution while keeping its rank within its own group, so people near the top of their group stay near the top. The user sets a repair level from 0 (no change) to 1 (each feature is distributed identically in every group). The aim is to avoid disparate impact, where one group's selection rate falls below 80 per cent of the most favoured group's rate. Stronger repair narrows that gap but costs predictive accuracy.
Example Use Cases
Fairness
A lender's data science team finds that income, length of employment and credit history length in its loan dataset differ systematically between applicants under and over 25. It repairs those three features at a level of 0.8, trains its scoring model on the repaired data, and checks the approval-rate ratio between the age groups against the 80 per cent threshold to decide whether a stronger repair is needed.
A fire service reviewing a promotion process finds that written and oral exam scores differ between ethnic groups, so a 70 per cent pass mark selects far fewer candidates from one group. It repairs both scores while keeping each candidate's rank within their own group, then checks whether the repaired scores still separate stronger candidates from weaker ones.
Limitations
- Repair costs predictive accuracy, and the cost varies sharply by dataset. In the original experiments a full repair cut a measure of classifier utility on the German credit data from about 72 per cent to about 50 per cent, close to chance, but the Adult income data lost only about two points. The repair level has to be chosen and justified.
- It repairs numerical features only, and the AIF360 implementation takes one protected attribute at a time. Categorical features such as job title or postcode are left unchanged and can still carry the protected attribute, and repairing several attributes together means the user must define the joint groups.
- Each feature is repaired separately, so every feature can look identical across groups while combinations of features still reveal the protected attribute. A model trained on several repaired features may therefore still show disparate impact, which is why the original paper pairs the repair with a test that tries to predict the protected attribute from all the features together.
- The repair depends on each person's protected attribute and on the group distributions seen in the training data. AIF360 notes that new data can be transformed the same way only if those conditional distributions match, and each new record needs its protected attribute, which makes the method awkward for a live scoring service.
- The target is the US 80 per cent rule, a comparison of group selection rates, and the paper notes that other legal frameworks may need a different formulation. The rule says nothing about how individuals are treated, and the paper points out that disparate impact is not itself unlawful where a business necessity can be shown.
Resources
Research Papers
Certifying and Removing Disparate Impact
What does it mean for an algorithm to be biased? In U.S. law, unintentional bias is encoded via disparate impact, which occurs when a selection process has widely different outcomes for different groups, even as it appears to be neutral. This legal determination hinges on a definition of a protected class (ethnicity, gender) and an explicit description of the process. When computers are involved, determining disparate impact (and hence bias) is harder. It might not be possible to disclose the process. In addition, even if the process is open, it might be hard to elucidate in a legal setting how the algorithm makes its decisions. Instead of requiring access to the process, we propose making inferences based on the data it uses. We present four contributions. First, we link disparate impact to a measure of classification accuracy that while known, has received relatively little attention. Second, we propose a test for disparate impact based on how well the protected class can be predicted from the other attributes. Third, we describe methods by which data might be made unbiased. Finally, we present empirical evidence supporting the effectiveness of our test for disparate impact and our approach for both masking bias and preserving relevant information in the data. Interestingly, our approach resembles some actual selection practices that have recently received legal scrutiny.