# US 2025/0094862 A1 · Fairness feature importance: understanding and mitigating unjustifiable bias in machine learning models

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0094862 A1
- Document ID: US20250094862A1
- Status: Published application
- Kind: A1
- Application number: 18/529,182
- Filed: 2023-12-05
- Published: 2025-03-20
- Earliest claimed: 2023-09-14
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Yasha Pushak; Mathieu Godbout; Hesam Fathi Moghadam; Sungpack Hong; Hassan Chafi
- Web page: https://patentgrep.com/patent/US20250094862A1

## CPC

- G06N 20/00: Machine learning
- G06N 5/045: Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In an embodiment, a computer generates a respective original inference from each of many records. Permuted values are selected for a feature from original values of the feature. Based on the permuted values for the feature, a permuted inference is generated from each record. Fairness and accuracy of the original and permuted inferences are measured. For each of many features, the computer measures a respective impact on fairness of a machine learning model, and a respective impact on accuracy of the machine learning model. A global explanation of the machine learning model is generated and presented based on, for multiple features, the impacts on fairness and accuracy. Based on the global explanation, an interactive indication to exclude or include a particular feature is received. The machine learning model is (re-)trained based on the interactive indication to exclude or include the particular feature, which may increase the fairness of the model.

## Claims

### Claim 1

A method comprising:
generating, from each record in a plurality of records, a respective original inference of a plurality of original inferences;
measuring, based on the plurality of original inferences, a fairness of the plurality of original inferences;
selecting, after said generating, a plurality of permuted values for a feature from a plurality of original values of the feature;
generating, based on said plurality of permuted values for the feature, from each record in the plurality of records, a respective permuted inference of a plurality of permuted inferences;
measuring, based on said plurality of original values of the feature, a fairness of said plurality of permuted inferences; and
training a machine learning model with the plurality of records excluding, based on a difference between the fairness of the plurality of original inferences and the fairness of the plurality of permuted inferences, the feature.

### Claim 2 (depends on 1)

The method of claim 1 wherein:
said feature is a first feature;
said plurality of permuted inferences are first permuted inferences;
the method further comprises:
generating, based on permuting a second feature, second permuted inferences from the plurality of records;
measuring, based on said permuting the second feature, a fairness of said second permuted inferences.

### Claim 3 (depends on 2)

The method of claim 2 further comprising training the machine learning model excluding, based on a difference between the fairness of the plurality of original inferences and the fairness of the second permuted inferences, the second feature.

### Claim 4 (depends on 3)

The method of claim 3 wherein said training excluding the first feature and said training excluding the second feature are a same training.

### Claim 5 (depends on 3)

The method of claim 3 wherein:
said permuting the second feature is a first permuting the second feature;
the method further comprises before said training excluding the first feature, generating third permuted inferences from the plurality of records based on a second permuting the second feature;
said training excluding the first feature includes, based on a fairness of said third permuted inferences, the second feature;
said training excluding the second feature excludes the first feature.

### Claim 6 (depends on 1)

The method of claim 1 wherein:
said generating said plurality of original inferences comprises training the machine learning model including the feature;
the method further comprises measuring a fairness of inferences from the plurality of records based on said training excluding the feature;
said fairness of inferences based on said training excluding the feature is higher than said fairness of said plurality of original inferences.

### Claim 7 (depends on 1)

The method of claim 1 wherein the machine learning model does not comprise a random forest or a decision tree.

### Claim 8

A method comprising:
measuring for each feature of a plurality of features:
a respective impact on fairness of a machine learning model, and
a respective impact on accuracy of the machine learning model;
generating and presenting a global explanation of a machine learning model based on, for multiple features of the plurality of features, said impacts on fairness and said impacts on accuracy;
receiving, based on the global explanation of a machine learning model, an interactive indication to exclude or include a particular feature of the plurality of features; and
training the machine learning model based on the interactive indication to exclude or include the particular feature of the plurality of features.

### Claim 9 (depends on 8)

The method of claim 8 wherein:
said multiple features of the plurality of features contains a second feature;
the global explanation contains at least one selected from a group consisting of:
an indication of whether the second feature increases or decreases fairness of the machine learning model, and
an indication of whether the second feature increases or decreases accuracy of the machine learning model.

### Claim 10 (depends on 8)

The method of claim 8 wherein:
said multiple features of the plurality of features contains a second feature;
the global explanation contains a scatterplot that contains, based on said impacts on fairness and said impacts on accuracy, a respective point for each feature of the multiple features.

### Claim 11 (depends on 10)

The method of claim 10 wherein the scatterplot contains:
a first quadrant that contains said points of the multiple features that increase fairness of the machine learning model and increase accuracy of the machine learning model,
a second quadrant that contains said points of the multiple features that increase fairness of the machine learning model and decrease accuracy of the machine learning model,
a third quadrant that contains said points of the multiple features that decrease fairness of the machine learning model and increase accuracy of the machine learning model, and
a fourth quadrant that contains said points of the multiple features that decrease fairness of the machine learning model and decrease accuracy of the machine learning model.

### Claim 12 (depends on 11)

The method of claim 11 wherein the second quadrant is a smallest quadrant in the scatterplot.

### Claim 13 (depends on 10)

The method of claim 10 wherein the scatterplot contains four quadrants that have distinct respective sizes.

### Claim 14 (depends on 8)

The method of claim 8 wherein:
the machine learning model is a classifier that infers a probability of a class;
the method further comprises using the probability of the class to measure said accuracy of the machine learning model.

### Claim 15

One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause:
generating, from each record in a plurality of records, a respective original inference of a plurality of original inferences;
measuring, based on the plurality of original inferences, a fairness of the plurality of original inferences;
selecting, after said generating, a plurality of permuted values for a feature from a plurality of original values of the feature;
generating, based on said plurality of permuted values for the feature, from each record in the plurality of records, a respective permuted inference of a plurality of permuted inferences;
measuring, based on said plurality of original values of the feature, a fairness of said plurality of permuted inferences; and
training a machine learning model with the plurality of records excluding, based on a difference between the fairness of the plurality of original inferences and the fairness of the plurality of permuted inferences, the feature.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15 wherein:
said feature is a first feature;
said plurality of permuted inferences are first permuted inferences;
the instructions further cause:
generating, based on permuting a second feature, second permuted inferences from the plurality of records;
measuring, based on said permuting the second feature, a fairness of said second permuted inferences.

### Claim 17 (depends on 15)

The one or more non-transitory computer-readable media of claim 15 wherein:
said generating said plurality of original inferences comprises training the machine learning model including the feature;
the instructions further cause measuring a fairness of inferences from the plurality of records based on said training excluding the feature;
said fairness of inferences based on said training excluding the feature is higher than said fairness of said plurality of original inferences.

### Claim 18

One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause:
measuring for each feature of a plurality of features:
a respective impact on fairness of a machine learning model, and
a respective impact on accuracy of the machine learning model;
generating and presenting a global explanation of a machine learning model based on, for multiple features of the plurality of features, said impacts on fairness and said impacts on accuracy;
receiving, based on the global explanation of a machine learning model, an interactive indication to exclude or include a particular feature of the plurality of features; and
training the machine learning model based on the interactive indication to exclude or include the particular feature of the plurality of features.

### Claim 19 (depends on 18)

The one or more non-transitory computer-readable media of claim 18 wherein:
said multiple features of the plurality of features contains a second feature;
the global explanation contains at least one selected from a group consisting of:
an indication of whether the second feature increases or decreases fairness of the machine learning model, and
an indication of whether the second feature increases or decreases accuracy of the machine learning model.

### Claim 20 (depends on 18)

The one or more non-transitory computer-readable media of claim 18 wherein:
said multiple features of the plurality of features contains a second feature;
the global explanation contains a scatterplot that contains, based on said impacts on fairness and said impacts on accuracy, a respective point for each feature of the multiple features.
