Machine learning evaluation for detecting feature bias
Abstract
Various embodiments of the present disclosure disclose machine-learning based evaluation techniques for detecting feature bias. An evaluation framework is provided that utilizes new evaluation data structures for comprehensibly evaluating feature bias in machine learning models. The evaluation framework includes receiving evaluation dataset for a machine learning model that includes one or more different feature classes of an evaluation feature. The evaluation framework includes generating, using an evaluation function, at least two performance metrics for the machine learning model and generating a unitless dissimilarity metric for the evaluation feature based at least in part on the first performance metric, the second performance metric, and an average between the first and second performance metrics. In this way, the unitless dissimilarity metric is based on a variability associated with the evaluation feature.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: receiving, by one or more processors, an evaluation dataset for a machine learning model, wherein the evaluation dataset comprises a plurality of evaluation data objects associated with one or more different feature classes of an evaluation feature; generating, by the one or more processors and using a first evaluation function of at least two evaluation functions, at least two performance metrics for the machine learning model based at least in part on the plurality of evaluation data objects, wherein the at least two performance metrics comprise: a first performance metric based at least in part on a first plurality of the plurality of evaluation data objects that are associated with a first feature class of the evaluation feature, and a second performance metric based at least in part on a second plurality of the plurality of evaluation data objects that are associated with a second feature class of the evaluation feature; generating, by the one or more processors, a first unitless dissimilarity metric for the evaluation feature based at least in part on the first performance metric, the second performance metric, and an average performance measure of the at least two performance metrics, wherein the first unitless dissimilarity metric is indicative of a degree of bias relative to a second unitless dissimilarity metric for a second evaluation function of the at least two evaluation functions, and is generated by: (i) generating the average performance measure based at least in part on the first performance metric and the second performance metric, (ii) generating a standard feature deviation measure for the evaluation feature and the first evaluation function, and (iii) generating the first unitless dissimilarity metric for the evaluation feature and the first evaluation function based at least in part on (a) a comparison between the standard feature deviation measure and the average performance measure for the first evaluation function, and (b) a normalization value; and providing, by the one or more processors, a machine learning verification output for the machine learning model based at least in part on the first unitless dissimilarity metric, wherein the machine learning model is deployed or trained based at least in part on the machine learning verification output.
- Claim 2Depends on #1
The computer-implemented method of claim 1, wherein: the machine learning model comprises a machine learning classification model, the plurality of evaluation data objects is associated with a plurality of target classifications, and the first evaluation function comprises a classification evaluation function configured to evaluate a performance of the machine learning classification model based at least in part on a comparison between (i) a plurality of classification outputs generated, using the machine learning classification model, for the plurality of evaluation data objects and (ii) the plurality of target classifications associated with the plurality of evaluation data objects.
- Claim 3Depends on #1
The computer-implemented method of claim 1, wherein generating the first unitless dissimilarity metric comprises: generating, by the one or more processors, a first feature deviation measure for the first feature class based at least in part on the first performance metric, wherein the first feature deviation measure comprises a first squared deviation between the first performance metric and the average performance measure; generating, by the one or more processors, a second feature deviation measure for the second feature class based at least in part on the second performance metric and the average performance measure, wherein the second feature deviation measure comprises a second squared deviation between the second performance metric and the average performance measure; and generating, by the one or more processors, the first unitless dissimilarity metric for the evaluation feature based at least in part on the first feature deviation measure and the second feature deviation measure.
- Claim 4Depends on #3
The computer-implemented method of claim 3, wherein the standard feature deviation measure comprises a square root of an aggregated feature deviation measure, the aggregated feature deviation measure comprising a sum of at least the first feature deviation measure and the second feature deviation measure.
- Claim 5Depends on #3
The computer-implemented method of claim 3, further comprising: generating, by the one or more processors, a first feature class deviation measure for the first feature class based at least in part on the first performance metric and the average performance measure, wherein the first feature class deviation measure comprises an absolute deviation of the first performance metric from the average performance measure; generating, by the one or more processors, a class contribution metric for the first feature class based at least in part on the first feature class deviation measure and the average performance measure; and providing, by the one or more processors, a class level verification output for the machine learning model that comprises an indication of the class contribution metric for the first feature class of the evaluation feature.
- Claim 6Depends on #5
The computer-implemented method of claim 5, further comprising: in response to determining that the first unitless dissimilarity metric for the evaluation feature exceeds a performance threshold, providing, by the one or more processors, the class level verification output for the machine learning model.
- Claim 7Depends on #5
The computer-implemented method of claim 5, wherein the machine learning verification output comprises one or more interactive widgets, and wherein the computer-implemented method further comprises: receiving, using the one or more interactive widgets, user input associated with the machine learning verification output; and in response to the user input, providing the class level verification output for the machine learning model.
- Claim 8Depends on #5
The computer-implemented method of claim 5, wherein the class contribution metric for the first feature class comprises a percentage value indicative of a relative bias of the machine learning model with respect to the first feature class relative to the one or more different feature classes of the evaluation feature.
- Claim 9Depends on #1
The computer-implemented method of claim 1, wherein the first unitless dissimilarity metric comprises a percentage value indicative of a level of bias of the machine learning model with respect to the evaluation feature.
- Claim 10Depends on #1
The computer-implemented method of claim 1, wherein the machine learning verification output for the machine learning model comprises a plurality of unitless dissimilarity metrics for each of a plurality of different evaluation functions, and wherein the first unitless dissimilarity metric is representative of a level of bias of the machine learning model with respect to the first evaluation function relative to each of the plurality of different evaluation functions.
- Claim 11Depends on #10
The computer-implemented method of claim 10, wherein the plurality of different evaluation functions for the machine learning model comprises a plurality of classification evaluation functions.
- Claim 12Depends on #1
The computer-implemented method of claim 1, wherein the machine learning verification output for the machine learning model comprises a plurality of unitless dissimilarity metrics for each of a plurality of different evaluation features, and wherein the first unitless dissimilarity metric is representative of a level of bias of the machine learning model with respect to the evaluation feature relative to each of the plurality of different evaluation features.
- Claim 13Depends on #12
The computer-implemented method of claim 12, wherein each of the plurality of unitless dissimilarity metrics for each of the plurality of different evaluation features is directly comparable.
- Claim 14Independent Claim
A system comprising: one or more processors; and one or more memories storing processor-executable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising: receiving an evaluation dataset for a machine learning model, wherein the evaluation dataset comprises a plurality of evaluation data objects associated with one or more different feature classes of an evaluation feature; generating, using a first evaluation function of at least two evaluation functions, at least two performance metrics for the machine learning model based at least in part on the plurality of evaluation data objects, wherein the at least two performance metrics comprise: a first performance metric based at least in part on a first plurality of the plurality of evaluation data objects that are associated with a first feature class of the evaluation feature, and a second performance metric based at least in part on a second plurality of the plurality of evaluation data objects that are associated with a second feature class of the evaluation feature; generating a first unitless dissimilarity metric for the evaluation feature based at least in part on the first performance metric, the second performance metric, and an average performance measure of the at least two performance metrics, wherein the first unitless dissimilarity metric is indicative of a degree of bias relative to a second unitless dissimilarity metric for a second evaluation function of the at least two evaluation functions, and is generated by: (i) generating the average performance measure based at least in part on the first performance metric and the second performance metric, (ii) generating a standard feature deviation measure for the evaluation feature and the first evaluation function, and (iii) generating the first unitless dissimilarity metric for the evaluation feature and the first evaluation function based at least in part on (a) a comparison between the standard feature deviation measure and the average performance measure for the first evaluation function, and (b) a normalization value; and providing a machine learning verification output for the machine learning model based at least in part on the first unitless dissimilarity metric, wherein the machine learning model is deployed or trained based at least in part on the machine learning verification output.
- Claim 15Depends on #14
The system of claim 14, wherein: the machine learning model comprises a machine learning classification model, the plurality of evaluation data objects is associated with a plurality of target classifications, and the first evaluation function comprises a classification evaluation function configured to evaluate a performance of the machine learning classification model based at least in part on a comparison between (i) a plurality of classification outputs generated, using the machine learning classification model, for the plurality of evaluation data objects and (ii) the plurality of target classifications associated with the plurality of evaluation data objects.
- Claim 16Depends on #15
The system of claim 15, wherein generating the first unitless dissimilarity metric comprises: generating a first feature deviation measure for the first feature class based at least in part on the first performance metric, wherein the first feature deviation measure comprises a first squared deviation between the first performance metric and the average performance measure; generating a second feature deviation measure for the second feature class based at least in part on the second performance metric and the average performance measure, wherein the second feature deviation measure comprises a second squared deviation between the second performance metric and the average performance measure; and generating the first unitless dissimilarity metric for the evaluation feature based at least in part on the first feature deviation measure and the second feature deviation measure.
- Claim 17Depends on #16
The system of claim 16, wherein generating the first unitless dissimilarity metric further comprises: the standard feature deviation measure comprises a square root of an aggregated feature deviation measure, the aggregated feature deviation measure comprising a sum of at least the first feature deviation measure and the second feature deviation measure.
- Claim 18Depends on #16
The system of claim 16, wherein the operations further comprise: generate a first feature class deviation measure for the first feature class based at least in part on the first performance metric and the average performance measure, wherein the first feature class deviation measure comprises an absolute deviation of the first performance metric from the average performance measure; generate a class contribution metric for the first feature class based at least in part on the first feature class deviation measure and the average performance measure; and provide a class level verification output for the machine learning model that comprises an indication of the class contribution metric for the first feature class of the evaluation feature.
- Claim 19Independent Claim
One or more non-transitory computer-readable media storing processor-executable instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: receiving an evaluation dataset for a machine learning model, wherein the evaluation dataset comprises a plurality of evaluation data objects associated with one or more different feature classes of an evaluation feature; generating, using a first evaluation function of at least two evaluation functions, at least two performance metrics for the machine learning model based at least in part on the plurality of evaluation data objects, wherein the at least two performance metrics comprise: a first performance metric based at least in part on a first plurality of the plurality of evaluation data objects that are associated with a first feature class of the evaluation feature, and a second performance metric based at least in part on a second plurality of the plurality of evaluation data objects that are associated with a second feature class of the evaluation feature; generating a first unitless dissimilarity metric for the evaluation feature based at least in part on the first performance metric, the second performance metric, and an average performance measure of the at least two performance metrics, wherein the first unitless dissimilarity metric is indicative of a degree of bias relative to a second unitless dissimilarity metric for a second evaluation function of the at least two evaluation functions, and is generated by: (i) generating the average performance measure based at least in part on the first performance metric and the second performance metric, (ii) generating a standard feature deviation measure for the evaluation feature and the first evaluation function, and (iii) generating the first unitless dissimilarity metric for the evaluation feature and the first evaluation function based at least in part on (a) a comparison between the standard feature deviation measure and the average performance measure for the first evaluation function, and (b) a normalization value; and providing a machine learning verification output for the machine learning model based at least in part on the first unitless dissimilarity metric, wherein the machine learning model is deployed or trained based at least in part on the machine learning verification output.
- Claim 20Depends on #19
The one or more non-transitory computer-readable media of claim 19, wherein the machine learning verification output for the machine learning model comprises a plurality of unitless dissimilarity metrics for each of a plurality of different evaluation features, and wherein the first unitless dissimilarity metric is representative of a level of bias of the machine learning model with respect to the evaluation feature relative to each of the plurality of different evaluation features.
Technical Overview & Description
BACKGROUND Various embodiments of the present disclosure address technical challenges related to machine learning model evaluation techniques given limitations of existing evaluation processes. In doing so, various embodiments of the present disclosure make important contributions to various existing evaluation and machine learning systems. BRIEF SUMMARY In general, embodiments of the present disclosure disclose evaluation techniques for detecting and gauging feature bias in machine learning models. The present disclosure is directed to an evaluation framework and evaluation metrics for evaluating machine learning model performance. Using the techniques described herein, transparent, comprehensive, and universally comparable evaluation metrics may be generated for a machine learning model. These evaluation metrics may ultimately be utilized to detect, track, and optimize against bias in machine learning models resulting in increased machine learning model accuracy as well as other improvements. In accordance with one embodiment, a computer-implemented method for evaluating potential bias in machine learning models is provided. The computer-implemented method comprises receiving, by one or more processors, an evaluation dataset for a machine learning model, wherein the evaluation dataset comprises a plurality of evaluation data objects associated with one or more different feature classes of an evaluation feature; generating, by the one or more processors and using an evaluation function, at least two performance metrics for the machine learning model based at least in part on the plurality of evaluation data objects, wherein the at least two performance metrics comprise: a first performance metric based at least in part on a first plurality of the plurality of evaluation data objects that are associated with a first feature class of the evaluation feature, and a second performance metric based at least in part on a second plurality of the plurality of evaluation dat
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (25)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Wang et al.,
- “
- Content-based image retrieval using fractional distance metric
- ”
- , 2012 International Conference on Image Analysis and Signal Processing, Nov. 9-12, 2012, pp. 1-5. (Year: 2012).
- K
- ä
- rkk
- ä
- inen et al.,