IP Library › Granted Patent US 12,481,895
Granted Patent B2
US 12,481,895 · App. 17/213,167 · Granted Nov 25, 2025

Training individually fair machine learning algorithms via distributionally robust optimization

Inventors: Sohini Upadhyay (Cambridge, MA); Mikhail Yurochkin (Cambridge, MA); Debarghya Mukherjee (Ann Arbor, MI); Yuekai Sun (Ann Arbor, MI); Amanda Ruth Garcia Bower (Melvindale, MI); Seyed Hamid Eftekhari (Ypsilanti, MI); Alexander Vargo (Ann Arbor, MI); Fan Zhang (Fushun, CN)
Assignees: International Business Machines Corporation; University of Michigan
G06N5/01G06F18/214G06F18/22
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,481,895
App. No.
17/213,167
Granted
Nov 25, 2025
Kind
B2
Abstract

Obtain a first data set, a second data set, and a machine learning model. Construct a sensitive subspace of the first data set that defines a fair metric for distance among elements of the first data set. Fairly train the machine learning model on the first data set using a distributionally robust optimization approach based on the fair metric. Produce an individually fair set of labels by applying the fairly trained machine learning model to the second data set. Allocate a resource according to the individually fair set of labels.

Claims (160)

1 . A computer-implemented method comprising:

obtaining a first data set, a second data set, and a machine learning model;

constructing a subspace of the first data set that defines a metric for distance among elements of the first data set, wherein the metric ignores protected attributes in measuring a difference between samples to allow for free movement in a corresponding space;

training the machine learning model on the first data set using a distributionally robust optimization approach based on the metric, wherein the distributionally robust optimization approach includes a regularization approach based on the metric and

wherein the training of the machine learning model comprises defining an iteration of a loss matrix R, finding a solution to an optimization problem by executing a linear program on the iteration of the loss matrix, and assigning a distribution for inputs and outputs of the machine learning model, based on the solution to the optimization problem;

producing an individually fair set of labels by applying the trained machine learning model to the second data set; and

allocating a resource according to the individually fair set of labels.

2 . The computer-implemented method of claim 1 , wherein training of the machine learning model further comprises:

defining a cost matrix C for the machine learning model;

entering an iterative loop;

in the loop:

fitting a base learner to pseudo-residuals of a loss function of the machine learning model, based on the distribution for inputs and outputs of the machine learning model; and

updating a candidate classifier of the machine learning model, based on the loss function;

repeating the loop until a final iteration produces a finally updated candidate classifier; and

returning the finally updated candidate classifier as the trained model.

3 . The computer-implemented method of claim 2 , wherein updating the candidate classifier comprises applying a gradient boosted descent algorithm to a decision tree of the model.

4 . The computer-implemented method of claim 2 , wherein the loss matrix R is defined as

R i,j = ( h ,( x i ,y j )),

being the loss, h being the score of input x i , y j being the output of the machine learning model for input x j .

5 . The computer-implemented method of claim 2 , wherein a cost function c of the cost matrix is defined as

c (( x 1 ,y 1 ),( x 2 ,y 2 ))= d x 2 ( x 1 ,x 2 )+∞·1 {y 1 ≠y 2 } .

x being inputs to the machine learning model, y being outputs from the machine learning model, d x 2 being the square of a distance function on the metric.

6 . The computer-implemented method of claim 2 , wherein the robust loss function L(f) of the model is defined as

L

⁡

(

f

)

=

sup

Q

:

(

Q

,

P

n

)

≤

ε

⁢

𝔼

Q

[

(

f

,

ℨ

)

]

,

Q being an expected value on the distribution Q of counterfactual inputs that are as close as possible to the actual inputs P while having different scores, W being an I-Wasserstein distance between distributions Q on and P on 0 , ϵ being a budget for distance.

7 . A computer-implemented method comprising:

obtaining a first data set, a second data set, and a machine learning model;

constructing a subspace of the first data set that defines a metric for distance among elements of the first data set, wherein the metric ignores protected attributes in measuring a difference between samples to allow for free movement in a corresponding space;

training the machine learning model on the first data set using a distributionally robust optimization approach based on the metric, wherein the distributionally robust optimization approach includes a regularization approach based on the metric, wherein the regularization approach comprises updating constraints λ using a first gradient descent technique, setting λ no less than zero and updating weights θ of the machine learning model using a second gradient descent technique;

producing an individually fair set of labels by applying the trained machine learning model to the second data set; and

allocating a resource according to the individually fair set of labels.

8 . The computer-implemented method of claim 7 , wherein the regularization approach comprises:

defining a fair regularizer for the machine learning model as the solution of an optimization problem;

entering a conditional loop that continues until convergence of a stochastic algorithm for solving the optimization problem;

in the loop:

sampling a mini-batch from the first data set x and from a corresponding first label set;

generating counterfactual data x′ by maximizing a difference in score from each x t of x to each x t ′ of x □ ′, within the constraints λ such that distance between x and x′ is minimized;

exiting the loop when the updated weights θ converge to produce the trained machine learning model; and

returning the fully trained machine learning model, wherein the updating the constraints λ and the updating the weights θ are performed within the loop.

9 . The computer-implemented method of claim 8 , wherein the fair regularizer R(h) is defined as

R

⁡

(

h

)

=

△

{

sup

Π

∈

Δ

⁡

(

𝒳

×

𝒳

)

𝔼

Π

[

dy

⁢

(

h

(

x

)

,

h

⁢

(

x

′

)

)

]

subject

⁢

to

𝔼

Π

[

dx

⁢

(

x

,

x

′

)

]

≤

ε

Π

⁡

(

·

,

𝒳

)

=

P

X

}

,

h(X) being the score of inputs x, Π being a solution to an optimization problem that produces a marginal distribution P of inputs x such that expected value Π of difference in outputs is maximized on data distribution Π, ϵ being a budget for distance.

10 . The computer-implemented method of claim 8 , wherein the dual of the fair regularizer R(h) is defined as

R ( h )=inf λ≥0 {λϵ+ P x [r λ ( h,x )]},

r λ ( h,x ) sup x′∈z,22 {dy ( h ( x ), h ( x ′))−λ dx ( x,x ′)},

P x being an expected value on distribution P x , d y being distance between scores for inputs x, x′.

11 . The computer-implemented method of claim 10 , wherein the constraints λ are updated based on the gradient of the dual of the fair regularizer with respect to λ.

12 . The computer-implemented method of claim 10 , wherein the weights θ are updated based on the gradient of the loss function plus the gradient of the dual of the fair regularizer with respect to θ.

13 . A computer-implemented method comprising:

obtaining a list of objects;

obtaining a machine learning model that is partly trained for ranking the list of objects in response to a given query;

constructing a subspace of the list of objects that defines a metric for distance among the objects, wherein the metric ignores protected attributes in measuring a difference between samples to allow for free movement in a corresponding space;

obtaining a set of queries on the list of objects;

defining a regularizer for the machine learning model as the solution of an optimization problem;

solving the optimization problem according to a stochastic algorithm;

producing an individually fair ranking of the list of objects, using the trained machine learning model in response to a received query; and

allocating resources according to the individually fair ranking, wherein the stochastic algorithm comprises entering a conditional loop that continues until convergence of the stochastic algorithm for solving the optimization problem;

in the loop:

sampling a mini-batch from the set of queries q;

generating a set of counterfactual queries q t ′ by minimizing distance on the metric between each q t of the set of queries and each q t ′ of the set of counterfactual queries, while maximizing difference between a score of each item in q t and a corresponding score of each item in q t ′;

updating constraints λ on the distance between q t and q t ′ according to a first gradient descent technique on the gradient of the dual of the regularizer; and

updating weights θ of the machine learning model according to a second gradient descent technique on the sum of the loss function and the gradient of the dual of the regularizer; and

exiting the loop when the updated weights θ converge to produce a trained machine learning model for ranking a list.

14 . The computer-implemented method of claim 13 , wherein the dual of the regularizer R(h) is

(π)=inf λ≥0 {λϵ+ q˜Q [r λ (π, q )]}, where

r λ (π, q )=sup q′∈ { (π(⋅| q ),π(⋅| q ′))−λ ( q,q ′)},

wherein q is an expected value on distribution q and d is a metric on query distribution .

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 4, 2022
From: SUN, YUEKAI; VARGO, ALEXANDER; MUKHERJEE, DEBARGHYA; EFTEKHARI, SEYED HAMID; BOWER, AMANDA RUTH GARCIA; ZHANG, FAN
To: REGENTS OF THE UNIVERSITY OF MICHIGAN
Reel/Frame 059171/0196 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 25, 2021
From: UPADHYAY, SOHINI; YUROCHKIN, MIKHAIL
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 055726/0039 →
Continuity (1)
Related Publication 20220318639A1 · Oct 6, 2022
References Cited (41)
US 10282414B2 · Latapie et al. · 2019 [cited by applicant]
US 10433194B2 · Mcfarland et al. · 2019 [cited by applicant]
US 10572215B1 · Cooper et al. · 2020 [cited by applicant]
US 20200082299A1 · Vasconcelos et al. · 2020 [cited by applicant]
US 20200097997A1 · Li · 2020 [cited by examiner]
US 20200218825A1 · Krishnamoorthy · 2020 [cited by applicant]
US 20200226489A1 · Li · 2020 [cited by examiner]
US 20220114399A1 · Castiglione · 2022 [cited by examiner]
US 20220114464A1 · Yang · 2022 [cited by examiner]
US 20240312198A1 · Miroshnikov · 2024 [cited by examiner]
CA 3060144A1 · 2020 [cited by applicant]
CA 3070817A1 · 2021 [cited by examiner]
Mahdi Kamani, Mohammad, et al. “Efficient Fair Principal Component Analysis.” arXiv e-prints (2020): arXiv-1911 v2. (Year: 2020). [cited by examiner]
Yurochkin, Mikhail, Amanda Bower, and Yuekai Sun. “Training individually fair ML models with sensitive subspace robustness.” arXiv preprint arXiv:1907.00020 v2 (Mar. 13, 2020). (Year: 2020). [cited by examiner]
Mukherjee, Debarghya, et al. “Two Simple Ways to Learn Individual Fairness Metrics from Data.” arXiv preprint arXiv:2006.11439 (2020). (Year: 2020). [cited by examiner]
Lal, G. Roshan, Sahin Cem Geyik, and Krishnaram Kenthapadi. “Fairness-aware online personalization.” arXiv preprint arXiv:2007.15270 (2020). (Year: 2020). [cited by examiner]
Yijie Wang, et al. “Wasserstein Robust Classification with Fairness Constraints” arXiv preprint arXiv:2103.06828v1 (Mar. 11, 2020). (Year: 2020). [cited by examiner]
Mandal, Debmalya, et al. “Ensuring Fairness Beyond the Training Data.” arXiv preprint arXiv:2007.06029 (2020). (Year: 2020). [cited by examiner]
Alexander Vargo et al. “Individually Fair Gradient Boosting—Comments,” Openreview.net, Sep. 2020, pp. 1-7. [cited by applicant]
Amanda Bower et al. “Individually Fair Rankings—Comments,” Openreview.net Sep. 2020, pp. 1-9. [cited by applicant]
Mikhail Yurochkin et al. “SenSel: Sensitive Set Invariance for Enforcing Individual Faimess.” arXiv preprint arXiv:2006.14168. Jun. 2020. pp. 1-11. 102(b)(1)(A) disclosure. [cited by applicant]
Alexander Vargo. “Applications of Machine Learning: From Single Cell Biology to Algorithmic Fairness.” U. Mich. Doctoral dissertation. Oct. 2020. 102(b)(1)(A) disclosure. [cited by applicant]
Amanda Bower. “Dealing with Intransitivity, Non-Convexity, and Algorithmic Bias in Preference Learning.” U. Mich. Doctoral dissertation. Feb. 2021. 102(b)(1)(A) disclosure. [cited by applicant]
Mikhail Yurochkin et al. “Learning Fair Predictors with Sensitive Subspace Robustness.” arXiv.org preprint 1907.0002v1. Jun. 2019. pp. 1-23. [cited by applicant]
Bruthi Gorantla et al. “Ranking for Individual and Group Fairness Simultaneously.” arXiv.org preprint 2010.06986v1. Sep. 2020. pp. 1-19. [cited by applicant]
Alexander Vargo et al. “Individually Fair Gradient Boosting,” Openreview.net, ICLR 2021 Conference Paper 2257. Sep. 2020, pp. 1-11. 102(b)(1)(A) disclosure. [cited by applicant]
Amanda Bower et al. “Individually Fair Ranking.” Openreview.net Sep. 2020, ICLR 2021 Conference Paper 2577. pp. 1-11. 102(b)(1)(A) disclosure. [cited by applicant]
Peter Mell et al., “The NIST Definition of Cloud Computing”. Special Publication 800-145. NIST. Sep. 2011, pp. 1-7. [cited by applicant]
John E. Kelly III, “Computing, cognition, and the future of knowing”, IBM Corp. Oct. 2015. pp. 1-7. [cited by applicant]
Yair Horesh et al. “Paired-Consistency: An Example-Based Model-Agnostic Approach to Fairness Regularization in Machine Learning.” arXiv.org preprint 1908.02641v2. Dec. 2019. pp. 1-15. [cited by applicant]
Trisha Mahoney et al. “AI Fairness: How to Measure and Reduce Unwanted Bias in Machine Learning.” O'Reilly. Feb. 2020. pp. 1-35. [cited by applicant]
Anonymous. “Heirarchical Multi-Agent Systems for Multi-Objective / Multi-Metric Classification.” IP.com IPCOM000262616D. Jun. 2020. pp. 1-5. [cited by applicant]
Anonymous. “System and MEthod for Jointly Ensuring Diversity in Fairness/Unbiasedness in Search Results.” IP.com IPCOM000268760D. Jun. 2019. pp. 105. [cited by applicant]
Philipp Hacker et al. “A Continuous Framework for Fairness.” arXiv.org preprint 1712.07924v1. Dec. 2017. pp. 1-22. [cited by applicant]
Denton et al., “Image Counterfactual Sensitivity Analysis for Detecting Unintended Bias”, arXiv: 1906.06439v3 [cs.CV], Oct. 3, 2020, 12 pages. [cited by applicant]
Dwork et al., “Fairness Through Awareness”, arXiv:1104.3913v2 [cs.CC], Nov. 29, 2011, 24 pages. [cited by applicant]
Garg et al., “Counterfactual Fairness in Text Classification through Robustness”, arXiv: 1809.10610v2 [cs.LG], Feb. 13, 2019, 08 pages. [cited by applicant]
Kannan et al., “Adversarial Logit Pairing”, arXiv: 1803.06373v1 [cs.LG], Mar. 16, 2018, 10 pages. [cited by applicant]
Kusner et al., “Counterfactual Fairness”, arXiv: 1703.06856v3 [stat.ML], Mar. 8, 2018, 18 pages. [cited by applicant]
Lahoti et al., “Operationalizing Individual Fairness with Pairwise Fair Representations”, Proceedings of the VLDB Endowment, vol. 13, No. 4 ISSN 2150-8097, Dec. 2, 2019, 13 pages, DOI: https://doi.org/10.14778/3372716.3… [cited by applicant]
Madry et al., “Towards Deep Learning Models Resistant to Adversarial Attacks”, arXiv: 1706.06083v4 [stat.ML], Sep. 4, 2019, 28 pages. [cited by applicant]