SlideShare a Scribd company logo
1 of 250
Download to read offline
Fairness-aware Machine Learning:
Practical Challenges and Lessons Learned
KDD 2019 Tutorial
August 2019
Sarah Bird (Microsoft), Ben Hutchinson (Google), Sahin Geyik (LinkedIn)
Krishnaram Kenthapadi (LinkedIn), Emre Kıcıman (Microsoft),
Margaret Mitchell (Google), Mehrnoosh Sameki (Microsoft)
https://sites.google.com/view/kdd19-fairness-tutorial
The Coded Gaze [Joy Buolamwini 2016]
• Face detection
software:
Fails for some
darker faces
https://www.youtube.com/watch?v=KB9sI9rY3cA
Gender Shades [Joy Buolamwini & Timnit Gebru, 2018]
• Facial analysis
software:
Higher accuracy for
light skinned men
• Error rates for dark
skinned women:
20% - 34%
Algorithmic Bias
▪ Ethical challenges posed by AI
systems
▪ Inherent biases present in society
– Reflected in training data
– AI/ML models prone to
amplifying such biases
▪ ACM FAT* conference /
KDD’16 & NeurIPS’17 Tutorials
Laws against Discrimination
Immigration Reform and Control Act
Citizenship
Rehabilitation Act of 1973;
Americans with Disabilities Act
of 1990
Disability status
Civil Rights Act of 1964
Race
Age Discrimination in Employment Act of
1967
Age
Equal Pay Act of 1963;
Civil Rights Act of 1964
Sex
And more...
Fairness Privacy
Transparency Explainability
Fairness Privacy
Transparency Explainability
Fairness Privacy
Transparency Explainability
Fairness Privacy
Transparency Explainability
Fairness Privacy
Transparency Explainability
Related KDD’19 sessions:
1.Tutorial: Explainable AI in Industry (Sun, 1-5pm)
2.Workshop: Explainable AI/ML (XAI) for Accountability, Fairness, and Transparency (Mon)
3.Social Impact Workshop (Wed, 8:15 – 11:45)
4.Keynote: Cynthia Rudin, Do Simpler Models Exist and How Can We Find Them? (Thu, 8-9am)
5.Research Track Session RT17: Interpretability (Thu, 10-12)
6.Several papers on fairness (e.g., ADS7 (Thu, 10-12), ADS9 (Thu, 1:30-3:30))
“Fairness by Design” for AI products
Outline
• Algorithmic Bias / Discrimination
• Sources of Data Biases in ML Lifecycle
• Techniques for Fairness in ML
• AI Fairness Tools
• Case Studies
• Key Takeaways
Algorithmic Bias / Discrimination
and broader / related issues
Other Great
Tutorials
Fairness in Machine Learning
Solon Barocas and Moritz Hardt, NeurIPS 2017
Challenges of incorporating algorithmic fairness
into practice
Henriette Cramer, Kenneth Holstein, Jennifer
Wortman Vaughan, Hal Daumé III, Miroslav
Dudík, Hanna Wallach, Sravana Reddy, Jean
Garcia-Gathright, FAT* 2019
Defining and Designing Fair Algorithms
Sam Corbett-Davies, Sharad Goel, ICML 2018
The Trouble with Bias
Kate Crawford, NeurIPS 2017 Keynote
[Barocas & Hardt 2017]
"[H]iring could become faster and less expensive, and […] lead
recruiters to more highly skilled people who are better matches for
their companies. Another potential result: a more diverse workplace.
The software relies on data to surface candidates from a wide variety of
places and match their skills to the job requirements, free of human
biases."
Miller (2015)
[Barocas & Hardt 2017]
[Barocas & Hardt 2017]
"But software is not free of human influence. Algorithms are written
and maintained by people, and machine learning algorithms adjust
what they do based on people’s behavior. As a result […] algorithms can
reinforce human prejudices."
Miller (2015)
[Barocas & Hardt 2017]
Do Better
Avoid Harm
[Cramer et al 2019]
More positive outcomes & avoiding harmful outcomes
of algorithms for groups of people
[Cramer et al 2019]
[Cramer et al 2019]
More positive outcomes & avoiding harmful outcomes
of automated systems for groups of people
Legally Recognized Protected Classes
Race (Civil Rights Act of 1964); Color (Civil Rights Act of
1964); Sex (Equal Pay Act of 1963; Civil Rights Act of
1964); Religion (Civil Rights Act of 1964);National origin (Civil Rights
Act of 1964); Citizenship (Immigration Reform and Control
Act); Age (Age Discrimination in Employment Act of
1967);Pregnancy (Pregnancy Discrimination Act); Familial status (Civil
Rights Act of 1968); Disability status (Rehabilitation Act of 1973;
Americans with Disabilities Act of 1990); Veteran status (Vietnam Era
Veterans' Readjustment Assistance Act of 1974; Uniformed Services
Employment and Reemployment Rights Act); Genetic
information (Genetic Information Nondiscrimination Act)
[Boracas & Hardt 2017]
Other
Categories
Societal Categories
i.e., political ideology, language, income,
location, topical interests, (sub)culture,
physical traits, etc.
Intersectional Subpopulations
i.e., women from tech
Application-specific subpopulations
i.e., device type
Types of Harm
Harms of allocation
withhold opportunity or resources
Harms of representation
reinforce subordination along the lines of identity, stereotypes
[Cramer et al 2019, Shapiro et al., 2017, Kate Crawford, “The Trouble With Bias” keynote N(eur)IPS’17]
Bias,
Discrimination
& Machine
Learning
Isn’t bias a technical concept?
Selection, sampling, reporting bias, Bias
of an estimator, Inductive bias
Isn’t discrimination the very point of
machine learning?
Unjustified basis for differentiation
[Barocas & Hardt 2017]
Discrimination is not a general concept
It is domain specific
Concerned with important opportunities that affect people’s life chances
It is feature specific
Concerned with socially salient qualities that have served as the basis for unjustified and
systematically adverse treatment in the past
[Barocas & Hardt 2017]
Regulated
Domains
Credit (Equal Credit Opportunity Act)
Education (Civil Rights Act of 1964;
Education Amendments of 1972)
Employment (Civil Rights Act of 1964)
Housing (Fair Housing Act)
‘Public Accommodation’ (Civil Rights Act
of 1964)
Extends to marketing and advertising;
not limited to final decision
[Barocas & Hardt 2017]
Discrimination
Law and Legal
Terms
Treatment
Disparate Treatment, Equality of
Opportunity, Procedural Fairness
Outcome
Disparate Impact, Distributive justice,
Minimized inequality of outcome
[https://www.reddit.com/r/GCdebatesQT/comments/7qpbpp/food_for_thought_equality_vs_equity_vs_justice/]
Fairness is
Political
Equal Treatment vs Equal Outcome
Fairness is
Political
Someone must decide
Decisions will depend on the
product, company, laws, country, etc.
Why do this?
Better product and Serving Broader
Population
Responsibility and Social Impact
Legal and Policy
Competitive Advantage and Brand
[Boracas & Hardt 2017]
Industry Best
Practices
for Product Conception, Design, Implementation, and
Evolution
Responsible AI is a complex and broad topic
Microsoft's AI Principles
State of the
Art in Industry
• People: Bring in domain expertise and diversity
• Measure: Emphasize analysis and testing
• Process: Focus on processes and reviews
Process Best
Practices
Identify product goals
Get the right people in the room
Identify stakeholders
Select a fairness approach
Analyze and evaluate your system
Mitigate issues
Monitor Continuously and Escalation Plans
Auditing and Transparency
Repeat for every
new feature, product
change, etc.
Google's Responsible Fairness Practices
https://ai.google/education/responsible-ai-practices?category=fairness
Summary:
• Design your product using concrete goals for fairness and inclusion.
• Engage with social scientists and other relevant experts.
• Set fairness goals
• Check system for unfair biases.
• Include diverse testers and adversarial/stress testing.
• Consider feedback loops
• Analyze performance.
• Evaluate user experience in real-world scenarios.
• Use representative datasets to train and test your model.
Fairness
AI systems should treat everyone fairly and
avoid affecting similarly situated groups of
people in different ways
Key considerations
1. Understand the scope, spirit, and
potential uses of the AI system
2. Attract a diverse pool of talent
3. Put processes and tools in place to
identify bias in datasets and machine
learning algorithms
4. Leverage human review and domain
expertise
5. Research and employ best practices,
analytical techniques, and tools
Sources of Data Biases
in ML Lifecycle
Collaborators
Much of this section is based on survey paper and
tutorial series written by Alexandra Olteanu,
Carlos Castillo, Fernando Diaz, Emre Kıcıman
To present a taxonomy of challenges that can
occur at different stages of social data analysis.
To recognize, understand, or quantify some
major classes of limitations around data
To give us food for thought, by looking critically
at our work.
....
Survey goals
43
Design Data Model Application
Design Data Model Application
Design Data Model Application
data bias
Data bias: a systematic
distortion in data that
compromises its use
for a task.
Note: Bias must be considered relative to task
48
Gender discrimination is
illegal
Gender-specific medical
diagnosis is desirable
What does data bias look like?
Measure systematic distortions along 5 data properties
1. Population Biases
2. Behavioral Biases
3. Content Production Biases
4. Linking Biases
5. Temporal Biases
What does data bias look like?
Measure distortions along 5 data properties
1. Population Biases
Differences in demographics or other user characteristics between a user
population represented in a dataset or platform and a target population
2. Behavioral Biases
3. Content Production Biases
4. Linking Biases
5. Temporal Biases
Example:
Different user
demographics on
different social
platforms
51
See [Hargittai’07] for statistics about social media use
among young adults according to gender, race and
ethnicity, and parental educational background.
Figure from http://www.pewinternet.org/2016/11/11/social-media-update-2016/
Example:
Different user
demographics on
different social
platforms
Systematic distortions must be evaluated in a
task dependent way
Gender Shades
E.g., for many tasks, populations
should match target population,
to improve external validity
But for some other tasks,
subpopulations require
approximately equal
representation to achieve task
parity
http://gendershades.org/
What does data bias look like?
Measure distortions along 5 data properties
1. Population Biases
2. Behavioral Biases
Differences in user behavior across platforms or contexts, or across
users represented in different datasets
3. Content Production Biases
4. Linking Biases
5. Temporal Biases
Behavioral Biases from Functional Issues
Platform functionality and algorithms influence human behaviors
and our observations of human behaviors
[Miller et al. ICWSM’16]
Figure from: http://grouplens.org/blog/investigating-the-potential-for-miscommunication-using-emoji/
Cultural elements and social contexts are
reflected in social datasets
55
Figure from
[Hannak et al. CSCW 2017]
Societal biases embedded in behavior can be
amplified by algorithms
Users pick
biased options
Biased
actions are
used as
feedback
System learns to mimic
biased options
System presents
options,
influencing user
choice
What does data bias look like?
Measure distortions along 5 data properties
1. Population Biases
2. Behavioral Biases
3. Content Production Biases
Lexical, syntactic, semantic, and structural differences in the
contents generated by users
4. Linking Biases
5. Temporal Biases
Behavioral Biases from Normative Issues
Community norms and societal biases influence observed behavior
and vary across online and offline communities and contexts
What kind of pictures would you share
on Facebook, but not on LinkedIn?
Are individuals comfortable
contradicting popular opinions?
E.g., after singer Prince died, most
SNs showed public mourning. But
not anonymous site PostSecret
The same mechanism can embed
different meanings in different
contexts [Tufekci ICWSM’14]
[the meaning of retweets
or likes] “could range
from affirmation to
denunciation to sarcasm
to approval to disgust”
Privacy concerns affect what content users share, and,
thus, the type of patterns we observe.
Foursquare/Image from [Lindqvist et al. CHI’11]
The awareness of
being observed by
other impacts user
behavior: Privacy
and safety
concerns
59
As other media, social
media contains
misinformation and
disinformation
60
Misinformation is false information,
unintentionally spread
Disinformation is false information,
deliberately spread
Figures from [Kumar et al. 2016]
Hoaxes on Wikipedia: (left) impact as number
of views per day for hoaxes surviving at least 7
days, and (right) time until a hoax gets detected
and flagged.
What does data bias look like?
Measure distortions along 5 data properties
1. Population Biases
2. Behavioral Biases
3. Content Production Biases
4. Linking Biases
Differences in the attributes of networks obtained from user
connections, interactions, or activity
5. Temporal Biases
Behavior-based and connection-based social links are
different
62
Figure from [Wilson et al. EuroSys’09]
Online social networks formation
also depends on factors
external to the social
platforms
● Geography & distance
● Co-visits
● Dynamics of offline relations
● [...]
Figure from [Gilbert and Karahalios CHI 2009] 63
What does data bias look like?
Measure distortions along 5 data properties
1. Population Biases
2. Behavioral Biases
3. Content Production Biases
4. Linking Biases
5. Temporal Biases
Differences in populations and behaviors over time
Different demographics can
exhibit different growth rates
across and within social
platforms
65
TaskRabbit and Fiverr are online freelance
marketplaces.
Figure from [Hannak et al. CSCW 2017]
E.g., Change in Features over Time
Introducing a new feature or
changing an existing feature
impacts usage patterns on the
platform.
Data Collection
Biases can
come in at
any step
along the
data analysis
pipeline
● Metrics: e.g., reliability, lack of domain insights
● Interpretation: e.g., contextual validity, generalizability
● Disclaimers: e.g., lack of negative results and reproducibility
● Functional: biases due to platform affordances and algorithms
● Normative: biases due to community norms
● External: biases due to phenomena outside social platforms
● Non-individuals: e.g., organizations, automated agents
● Acquisition: biases due to, e.g., API limits
● Querying: biases due to, e.g., query formulation
● Filtering: biases due to removal of data “deemed” irrelevant
● Cleaning: biases due to, e.g., default values
● Enrichment: biases from manual or automated annotations
● Aggregation: e.g., grouping, organizing, or structuring data
● Qualitative Analyses: lack generalizability, interpret. biases
● Descriptive Statistics: confounding bias, obfuscated measurements
● Prediction & Inferences: data representation, perform. variations
● Observational studies: peer effects, select. bias, ignorability
Data Processing
Evaluation
Data Analysis
Data Source
Design Data Model Application
Best Practices for Bias Avoidance/Mitigation
Design Data Model Application
Best Practices for Bias Avoidance/Mitigation
Consider
team composition
for diversity of thought,
background and
experiences
Design Data Model Application
Best Practices for Bias Avoidance/Mitigation
Understand the task,
stakeholders, and
potential for errors and
harm
Design Data Model Application
Best Practices for Bias Avoidance/Mitigation
Check data sets
Consider data provenance
What is the data intended to
represent?
Verify through qualitative,
experimental, survey and
other methods
Design Data Model Application
Best Practices for Bias Avoidance/Mitigation
Check models and validate results
Why is the model making decision?
What mechanisms would explain
results? Is supporting evidence
consistent?
Twyman’s law: The more unusual
the result, more likely it’s an error
Design Data Model Application
Best Practices for Bias Avoidance/Mitigation
Post-Deployment
Ensure optimization and guardrail metrics
consistent w/responsible practices and avoid
harms
Continual monitoring, including customer
feedback
Have a plan to identify and respond to
failures and harms as they occur
Key Takeaways
• Many, complex biases at all stages of data
collection and analysis
• Population, Behavioral, Content Production, Linking,
Temporal Biases
• Mitigate through deeper investigation,
understanding
• Read more: Social Data: Biases, Methodological
Pitfalls, and Ethical Boundaries, Olteanu,
Castillo, Diaz and Kıcıman
Techniques for Fairness in ML
Thanks to
Ben Hutchison
Alex Beutel (Research Scientist, fairness in ML),
Allison Woodruff (UX Research, privacy, fairness and ethics),
Andrew Zaldivar (Developer Advocate, ethics and fairness in AI),
Hallie Benjamin (Senior Strategist, ethics and fairness in ML),
Jamaal Barnes (Program Manager, fairness in ML),
Josh Lovejoy (UX Designer, People and AI Research; now Microsoft),
Margaret Mitchell (Research Scientist, ethics and fairness in AI),
Rebecca White (Program Manager, fairness in ML)
and others!
Techniques
for Fairness
in ML
Product Introspection
Practical Testing
Training Data
Modeling
UI/Product Design
Product
Introspection
Product Introspection (1):
Make Your Key Choices Explicit [Mitchell et al., 2018]
Goals Decision Prediction
Profit from loans Whether to lend Loan will be repaid
Justice, Public safety Whether to detain Crime committed if not detained
• Goals are ideally measurable
• What are your non-goals?
• Which decisions are you not considering?
• What is the relationship between Prediction
and Decision?
Product Introspection (2):
Identify Potential Harms
• What are the potential harms?
• Applicants who would have repaid are not
given loans
• Convicts who would not commit a crime
are locked up.
• Are there also longer term harms?
• Applicants are given loans, then go on to
default, harming their credit score
• Are some harms especially bad?
Seek out Diverse Perspectives
• Fairness Experts
• User Researchers
• Privacy Experts
• Legal
• Social Science Backgrounds
• Diverse Identities
• Gender
• Sexual Orientation
• Race
• Nationality
• Religion
Practical Testing
Launch with Confidence: Testing for Bias
• How will you know if users are being
harmed?
• How will you know if harms are unfairly
distributed?
• Detailed testing practices are often not
covered in academic papers
• Discussing testing requirements is a
useful focal point for cross-functional
teams
Model Predictions
Evaluate for Inclusion - Confusion Matrix
Model Predictions
Positive Negative
Evaluate for Inclusion - Confusion Matrix
Model Predictions
Positive Negative
● Exists
● Predicted
True Positives
● Doesn’t exist
● Not predicted
True Negatives
Evaluate for Inclusion - Confusion Matrix
Model Predictions
Positive Negative
● Exists
● Predicted
True Positives
● Exists
● Not predicted
False Negatives
● Doesn’t exist
● Predicted
False Positives
● Doesn’t exist
● Not predicted
True Negatives
Evaluate for Inclusion - Confusion Matrix
Efficient Testing for Bias
• Development teams are under multiple
constraints
• Time
• Money
• Human resources
• Access to data
• How can we efficiently test for bias?
• Prioritization
• Strategic testing
Choose your evaluation metrics in light
of acceptable tradeoffs between
False Positives and False Negatives
Privacy in Images
False Positive: Something that doesn’t
need to be blurred gets blurred.
Can be a bummer.
False Negative: Something that
needs to be blurred is not blurred.
Identity theft.
False Positives Might be Better than False Negatives
Spam Filtering
False Negative: Email that is SPAM is
not caught, so you see it in your inbox.
Usually just a bit annoying.
False Positive: Email flagged as SPAM
is removed from your inbox.
If it’s from a friend or loved one, it’s a
loss!
False Negatives Might Be Better than False Positives
Types of Practical
Fairness Testing
1. Targeted Tests
2. Quick Tests
3. Comprehensive Tests
4. Ecologically Valid Tests
5. Adversarial Testing
1. Targeted Tests
Based on prior experience/knowledge
• Computer Vision
⇒ Test for dark skin
• Natural Language Processing
⇒ Test for gender stereotypes
Cf. smoke tests
(non-exhaustive tests that check that
most important functions work)
Targeted Testing of a Gender Classifier
[Joy Buolamwini & Timnit Gebru, 2018]
• Facial recognition
software:
Higher accuracy for
light skinned men
• Error rates for dark
skinned women:
20% - 34%
2. Quick
Tests
• "Cheap"
• Useful throughout product cycle
• Spot check extreme cases
• Low coverage but high informativity
• Need to be designed thoughtfully, e.g.
• World knowledge
• Prior product failures
Quick Tests
for Gender in
Translate
3. Comprehensive Tests
Include sufficient data for each subgroup
• May include relevant combinations of attributes
• Sometimes synthetic data is appropriate
Particularly important if model will be used in larger
system
Cf. Unit tests
(verify correct outputs for wide range of correct inputs)
Comprehensive Testing of a Toxic Language Detector
[Dixon et al., 2018]ConversationAI
Comprehensive Testing of a Toxic Language Detector
[Dixon et al., 2018]Problem: A False Positive Bias
Comprehensive Testing of a Toxic Language Detector
[Dixon et al., 2018]
AUC Metrics for
Comprehensive Testing
• Subgroup AUC:
• Subgroup Positives vs
Subgroup Negatives
• "BPSN" AUC:
• Background Positives vs
Subgroup Negatives
• "BNSP" AUC:
• Background Negatives vs
Subgroup Positives
Comprehensive Testing of a Toxicity Detector
https://github.com/conversationai/perspectiveapi/blob/master/model_cards/English/toxicity.md
4. Ecologically Valid
Testing
Data is drawn from a distribution representative of the
deployment distribution
• Goal is NOT to be representative of the training
distribution
• (When appropriate) Condition on labels & certainty
Example usage scenarios :
• Continuous monitoring
• You have historical product usage data
• You can estimate user distribution reasonably well
Ecologically Valid Testing:
Distributions Matter
What is being compared?
Over what data?
Challenges with Ecologically Valid Testing
• Post-deployment distributions may not be known
• Product may not be launched yet!
• Sensitive attributes often not available in deployment
• User distributions may change
• We may want user distributions to change
• e.g., broaden user base
5. Adversarial
Tests
Search for rare but extreme harms
• “Poison needle in haystack”
• Requires knowledge of society
Typical usage scenario:
• Close to launch
Hypothetical Example of Adversarial Testing
• Emoji autosuggest: are happy emoji suggested for sad sentences?
My dog has gone to heaven
Suggest:
Input:
😊
Summary of Practical
Fairness Testing
1. Targeted Tests: domain specific (image, language, etc)
2. Quick Tests: cheap tests throughout dev cycle
3. Comprehensive Tests: thorough
4. Ecologically Valid Tests: real-world data
5. Adversarial Testing: find poison needles
Fairness Testing Practices
are Good ML Practices
• Confidence in your product's fairness
requires fairness testing
• Fairness testing has a role throughout
the product iteration lifecycle
• Contextual concerns should be used to
prioritize fairness testing
Training Data
Fairness-aware Data Collection
[Holstein et al., 2019]
• ML literature generally assumes data is fixed
• Often the solution is more and/or better training data
But: need to be Thoughtful!
When might more Data not Help?
• If your data sampling techniques are biased
• Fundamental problems in data quality [Eckhouse et al., 2018]
• What does your data really represent? E.g. crimes vs arrests
• Recall: Product Introspection: How do Predictions relate to Decisions?
Get to Know Your Training Data: Facets Dive
Datasheets for Datasets [Gebru et al., 2018]
Fairness-Aware Data Collection Techniques
1. Address population biases
• Target under-represented (with respect to the user population) groups
2. Address representation issues
• Oversample from minority groups
• Sufficient data from each group may be required to avoid model treating them as
"outliers"
3. Data augmentation: synthesize data for minority groups
• E.g. from observed "he is a doctor" → synthesize "she is a doctor"
4. Fairness-aware active learning
• Collect more data for group with highest error rates
Sometimes data biases are
unavoidable
Solution: ML Techniques
Modeling
Practical Concerns with Fair Machine Learning
•Is the training process stable?
•Can we guarantee that fairness policies
will be satisfied?
• Cf. Legal requirements in education,
employment, finance
Machine Learning Techniques: Adversarial Training?
P(Label=1) P(Group)
Negative
Gradient
Fairly well-studied with some nice
theoretical guarantees.
But can be difficult to train.
Features, Label, Group
Machine Learning: Correlation Loss
[Beutel et al., 2018]
Motivation: Overcome training instability with adversarial training
Key idea: include fairness objective in the loss function
Predicted P(Target) distribution
for “Blue” and “Red” examples
(Illustrative Example)
min Loss(Label, Pred)
Pred = P(Label=1)
Features, Label, Group
Machine Learning Techniques: Correlation Loss
min Loss(Label, Pred)
+ Abs(Corr(Pred, Group))|Label=0
Pred = P(Label=1)
Predicted P(Target) distribution
for “Blue” and “Red” examples
(Illustrative Example)
Features, Label, Group
Machine Learning Techniques: Correlation Loss
● Computed per batch
● Easy to use
● More stable than adversarial
training.
min Loss(Label, Pred)
+ Abs(Corr(Pred, Group))|Label=0
Pred = P(Label=1)
Features, Label, Group
Machine Learning Techniques: Correlation Loss
Machine Learning: Constrained Optimization
[Cotter et al., 2018]
Motivation: Can we ensure that fairness policies are satisfied?
• Fairness goals are explicitly stated as constraints on predictions, e.g.
• FPR on group 1 <= 0.8 * FPR on group 2
• Machine learner optimizes objective function subject to the
constraints
Model Cards for Model Reporting[Mitchell et al., 2018]
Further Machine Learning Techniques
Many more approaches are linked to from the tutorial website.
UI/Product Design
Fairness in UI/Product Design
1. Robust UIs handle ML failures gracefully
2. UIs should empower users
AI Fairness and Transparency Tools
10:00am
Overview of Transparency and Fairness Tools
Bias Detection Bias Mitigation Responsible Metadata
Microsoft InterpretML
Microsoft Azure Interpretability Toolkit
IBM Open Scale
Datasheets for datasets
Model Cards
IBM Fairness 360
Microsoft Fairlearn
Google What-if
H2O
Fact Sheets
Overview of Transparency and Fairness Tools
Bias Detection Bias Mitigation Responsible Metadata
Microsoft InterpretML
Microsoft Azure Interpretability Toolkit
IBM Open Scale
Datasheets for datasets
Model Cards
IBM Fairness 360
Microsoft Fairlearn
Google What-if
H2O
Fact Sheets
Machine Learning Transparency and Fairness
InterpretML github.com/Microsoft/interpret
pip install –U interpret
InterpretML
Goal: to provide researchers and AI developers with a toolkit that
allows for:
• Explaining machine learning models globally on all data, or locally
on a specific data point using the state-of-art technologies
• Easily adding new explainers and compare them to the state-of-
the-art explainers
• A common API and data structure across the integrated libraries
github.com/Microsoft/interpret
pip install –U interpret
Azure Machine Learning Interpretability Toolkit
• Training Time Input: model + training data
• Any models that are trained on datasets in Python `numpy.array`, `pandas.DataFrame`,
`iml.datatypes.DenseData`, or `scipy.sparse.csr_matrix` format
• Accepts both models and pipelines as input.
• Model: model must implement the prediction function `predict` or `predict_proba` that conforms to the Scikit
convention.
• Pipeline: the explanation function assumes that the running pipeline script returns a prediction.
• Inferencing Time Input: test data
Azure Machine Learning Interpretability Toolkit
• Interpretability at training time
• Combination of glass-box models and black-box explainers
• Auto reason code generation for local predictions
• Ability to cross reference to other techniques to ensure stability and
consistency in results
H2O
IBM Open Scale
Goal: to provide AI operations team with a toolkit that allows for:
• Monitoring and re-evaluating machine learning models after
deployment
IBM Open Scale
Goal: to provide AI operations team with a toolkit that allows for:
• Monitoring and re-evaluating machine learning models after
deployment
• ACCURACY
• FAIRNESS
• PERFORMANCE
IBM Open Scale
IBM Open Scale
IBM Open Scale
Fairness
Accuracy
Performance
IBM Open Scale
Overview of Transparency and Fairness Tools
Bias Detection Bias Mitigation Responsible Metadata
Microsoft InterpretML
Microsoft Azure Interpretability Toolkit
IBM Open Scale
Datasheets for datasets
Model Cards
IBM Fairness 360
Microsoft Fairlearn
Google What-if
H2O
Fact Sheets
What If Tool
Goal: Code-free probing of machine learning models
• Feature perturbations (what if scenarios)
• Counterfactual example analysis
• [Classification] Explore the effects of different classification
thresholds, taking into account constraints such as
different numerical fairness metrics.
What If Tool
IBM Fairness 360
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
IBM Fairness 360
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
IBM Fairness 360
Example:
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
IBM Fairness 360
Example:
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
IBM Fairness 360
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
IBM Fairness 360
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
Pre-processing algorithm:
a bias mitigation algorithm that is applied to training data
In-processing algorithm:
a bias mitigation algorithm that is applied to
a model during its training
Post-processing algorithm:
a bias mitigation algorithm that is applied to predicted
labels
IBM Fairness 360
Datasets
Toolbox
Fairness metrics (30+)
Bias mitigation algorithms (9+)
Guidance
Industry-specific tutorials
• The toolkit should only be used in a very limited setting:
allocation or risk assessment problems with well-defined
protected attributes in which one would like to have some sort of
statistical or mathematical notion of sameness
• The metrics and algorithms clearly do not capture the full scope
of fairness in all situations
• Only a starting point to a broader discussion among multiple
stakeholders on overall decision-making workflows
Appropriateness of AIF360
@IBM Research’19
Appropriateness of AIF360
• The toolkit should only be used in a very limited setting:
allocation or risk assessment problems with well-defined
protected attributes in which one would like to have some sort of
statistical or mathematical notion of sameness
• The metrics and algorithms clearly do not capture the full scope
of fairness in all situations
• Only a starting point to a broader discussion among multiple
stakeholders on overall decision-making workflows @IBM Research’19
Appropriateness of AIF360
• The toolkit should only be used in a very limited setting:
allocation or risk assessment problems with well-defined
protected attributes in which one would like to have some sort of
statistical or mathematical notion of sameness
• The metrics and algorithms clearly do not capture the full scope
of fairness in all situations
• Only a starting point to a broader discussion among multiple
stakeholders on overall decision-making workflows @IBM Research’19
Microsoft Research Fairlearn
Wrapper around any classification/regression algorithm
q easily integrated into existing ML systems
q Doesn’t require test-time access to protected attribute
Versatile:
q many measures of fairness
q multiple protected attributes with many values
• Define fairness metric w/r/t/ protective attribute(s)
• ML goal becomes minimizing classification/regression
error while minimizing unfairness according to the
metric
Challenges:
1. Defining an appropriate fairness metric
2. Learning an accurate model subject to the metric
"Fair" Classification/Regression
Microsoft Research Fairlearn
Goal: find a classifier/regressor [in some family]
that minimizes classification/regression error
subject to fairness constraints (user-defined fairness
metric)
Given: a standard ML algorithm as a black box
Approach: iteratively call black box and reweight (and
possibly relabel) the data
Microsoft Research Fairlearn
Overview of Transparency and Fairness Tools
Bias Detection Bias Mitigation Responsible Metadata
Microsoft InterpretML
Microsoft Azure Interpretability Toolkit
IBM Open Scale
Datasheets for datasets
Model Cards
IBM Fairness 360
Microsoft Fairlearn
Google What-if
H2O
Fact Sheets
Datasheets for Datasets [Gebru et al., 2018]
• Better data-related documentation
• Datasheets for datasets: every dataset, model, or pre-trained API should be
accompanied by a data sheet that documents its
• Creation
• Intended uses
• Limitations
• Maintenance
• Legal and ethical considerations
• Etc.
Model Cards for Model Reporting[Mitchell et al., 2018]
Fact Sheets [Arnold et al., 2019]
• Is distinguished from “model cards” and “datasheets” in that the
focus is on the final AI service:
• What is the intended use of the service output?
• What algorithms or techniques does this service implement?
• Which datasets was the service tested on? (Provide links to
datasets that were used for testing, along with corresponding
datasheets.)
• Describe the testing methodology.
• Describe the test results.
• Etc.
Overview of Transparency and Fairness Tools
Bias Detection Bias Mitigation Responsible Metadata
Microsoft InterpretML
Microsoft Azure Interpretability Toolkit
IBM Open Scale
Datasheets for datasets
Model Cards
IBM Fairness 360
Microsoft Fairlearn
Google What-if
H2O
Fact Sheets
Fairness Methods in Practice
(Case Studies)
Deep Dive: Talent Search
Fairness in AI @ LinkedIn
Create economic opportunity for every
member of the global workforce
LinkedIn’s Vision
Connect the world's professionals to make
them more productive and successful
LinkedIn’s Mission
630M
Members
30M
Companies
20M
Jobs
35K
Skills
90K
Schools
100B+
Updates viewed
LinkedIn Economic Graph
AI @LinkedIn
25 B
ML A/B experiments
per week
data processed
offline per day
2002.15 PB
data processed
nearline per day
2 PB
Scale
graph edges with 1B
nodes
53 B
parameters in ML
models
Guiding Principle:
“Diversity by Design”
“Diversity by Design” in LinkedIn’s Talent Solutions
Insights to
Identify Diverse
Talent Pools
Representative
Talent Search
Results
Diversity
Learning
Curriculum
Plan for Diversity
Plan for Diversity
Identify Diverse Talent Pools
Inclusive Job Descriptions / Recruiter Outreach
Representative Ranking for Talent Search
S. C. Geyik, S. Ambler,
K. Kenthapadi, Fairness-
Aware Ranking in Search &
Recommendation Systems with
Application to LinkedIn Talent
Search, KDD’19.
[Microsoft’s AI/ML
conference
(MLADS’18). Distinguished
Contribution Award]
Building Representative
Talent Search at LinkedIn
(LinkedIn engineering blog)
Intuition for Measuring Representativeness
• Ideal: Top ranked results should follow a desired distribution on
gender/age/…
• E.g., same distribution as the underlying talent pool
• Inspired by “Equal Opportunity” definition [Hardt et al, NIPS’16]
Desired Proportions within the Attribute of Interest
• Compute the proportions of the values of the attribute (e.g., gender,
gender-age combination) amongst the set of qualified candidates
• “Qualified candidates” = Set of candidates that match the search query
criteria
• Retrieved by LinkedIn’s Galene search engine
• Desired proportions could also be obtained based on legal mandate /
voluntary commitment
Measuring (Lack of) Representativeness
• Skew@k
• (Logarithmic) ratio of the proportion of candidates having a given attribute value
among the top k ranked results to the corresponding desired proportion
• Variants:
• MinSkew: Minimum over all attribute values
• MaxSkew: Maximum over all attribute values
• Normalized Discounted Cumulative Skew
• Normalized Discounted Cumulative KL-divergence
Fairness-aware Reranking Algorithm (Simplified)
• Partition the set of potential candidates into different buckets for
each attribute value
• Rank the candidates in each bucket according to the scores assigned
by the machine-learned model
• Merge the ranked lists, balancing the representation requirements
and the selection of highest scored candidates
• Algorithmic variants based on how we choose the next attribute
Architecture
Validating Our Approach
• Gender Representativeness
• Over 95% of all searches are representative compared to the qualified
population of the search
• Business Metrics
• A/B test over LinkedIn Recruiter users for two weeks
• No significant change in business metrics (e.g., # InMails sent or accepted)
• Ramped to 100% of LinkedIn Recruiter users worldwide
Lessons
learned
• Post-processing approach desirable
• Model agnostic
• Scalable across different model
choices for our application
• Acts as a “fail-safe”
• Robust to application-specific
business logic
• Easier to incorporate as part of existing
systems
• Build a stand-alone service or
component for post-processing
• No significant modifications to the
existing components
• Complementary to efforts to reduce bias
from training data & during model training
Acknowledgements
•Team:
• AI/ML: Sahin Cem Geyik, Stuart Ambler, Krishnaram Kenthapadi
• Application Engineering: Gurwinder Gulati, Chenhui Zhai
• Analytics: Patrick Driscoll, Divyakumar Menghani
• Product: Rachel Kumar
•Acknowledgements
• Deepak Agarwal, Erik Buchanan, Patrick Cheung, Gil Cottle, Nadia
Fawaz, Rob Hallman, Joshua Hartman, Sara Harrington, Heloise Logan,
Stephen Lynch, Lei Ni, Igor Perisic, Ram Swaminathan, Ketan Thakkar,
Janardhanan Vembunarayanan, Hinkmond Wong, Lin Yang, Liang
Zhang, Yani Zhang
Reflections
• Lessons from fairness challenges è
Need “Fairness by Design” approach
when building AI products
• Case studies on fairness-aware ML in
practice
• Collaboration/consensus across
key stakeholders (product, legal,
PR, engineering, AI, …)
Conversational Agents
Responsible AI
and Conversational
Agents
Background: Conversational Agents
• Social bots
• Informational bots
• Task-oriented bots
Eliza, Joseph Weizenbaum (MIT) 1964
Design Data Model Application
Design Data Model Application
Design Data Model Application
Questions to ask during
AI Design
Who is affected by AI?
How might AI cause harms?
Stakeholders: Who might be affected?
1. Humans speaking with the agent
• Emotional harms, misinformation, threaten task completion
2. The agent “owner”
• Harm practices and reputation of the owner
3. Third-party individuals and groups
• People mentioned in conversations!
4. Audiences listening to the conversation
• This may include general public!
How might AI cause harms?
Functional Harms
• Misrepresentation of capabilities
• Misinforming user about task status
• Misunderstanding user and doing the
wrong task
• Revealing private information
inappropriately
Yes, I can do that!
Can you order
sushi for me?
Great, one
California roll
please
I don’t
understand.
?!?!
How might AI cause harms? Functional Harms
Functional Harms
• Misrepresentation of capabilities
• Misinforming user about task status
• Misunderstanding user and doing the
wrong task
• Revealing private information
inappropriately
In just 1 minute
When will my
order arrive?
Where’s my
order?
Arriving in 1
minute
?!?!
How might AI cause harms? Functional Harms
Functional Harms
• Misrepresentation of capabilities
• Misinforming user about task status
• Misunderstanding user and doing
the wrong task
• Revealing private information
inappropriately
Ordering egg yolks
Tell me a joke
?!?!
How might AI cause harms? Functional Harms
Functional Harms
• Misrepresentation of capabilities
• Misinforming user about task status
• Misunderstanding user and doing the
wrong task
• Revealing private information
inappropriately
Bob Smith’s CC
number is …
What’s Bob
Smith’s number?
?!?!
How might AI cause harms?
Functional Harms
• Misrepresentation of capabilities
• Misinforming user about task status
• Misunderstanding user and doing the
wrong task
• Revealing private information
inappropriately
These harms are even more problematic when
they systematically occur for some groups of
people but not others
How might AI cause harms?
Social Harms: Harms to Individuals
• Inciting/encouraging harmful behavior
• Self/harm, suicide
• Violence or harassment against others
• Discouraging good behavior, e.g., visiting doctors
• Providing wrong information
• Medical, financial, legal advice
• Verbal harassment
• Bullying, sexual harassment
How might AI cause harms?
Social Harms: Harms to Communities
• Promoting violence, war, ethnic cleansing, …
• Including promoting related organizations and philosophies
• Engaging in hate speech, disparagement, mocking, …
• Including inadvertent, or Inappropriate imitation (dialect, accent,…)
• Disruption to social processes
• Election disruption, fake news, false disaster response, …
Why is this hard?
Language is ambiguous, complex,
with social context
Examples of complex failures:
• Failure to deflect/terminate
contentious topics
• Refusing to discuss when
disapproval would be better
• Polite agreement with
unrecognized bias
Yes, I can do that!
Let’s talk about
<something evil>
Why is this hard?
Language is ambiguous, complex,
with social context
Examples of complex failures:
• Failure to deflect/terminate
contentious topics
• Polite agreement with
unrecognized bias
• Refusing to discuss when
disapproval would be better
Sounds ok.
Men are better at
<whatever> than
women
Why is this hard?
Language is ambiguous, complex,
with social context
Examples of complex failures:
• Failure to deflect/terminate
contentious topics
• Polite agreement with
unrecognized bias
• Refusing to discuss when
disapproval would be better
I don’t like talking
about religion
I was bullied at
school because
I’m muslim
Design Data Model Application
Implications for data collection
Common data sources
• Hand-written rules
• Existing conversational data (e.g., social media)
• New online conversations (e.g., from new customer interactions)
Cleaning training data
• For anonymization
• E.g., remove individual names. But keep famous names (fictional characters, celebrities, politicians, …)
• Ensure adheres to social norms
• Not enough to filter individual words: Filter “I hate [X]”, and you’ll miss “I’m not a fan of [X].
• Remember meanings change with context
• Differentiate between bot input and bot output in training data
• Remove offensive text from bot output training
• But don’t remove from bot inputs à allow learning of good responses to bad inputs
Design Data Model Application
Design Data Model Application
Responsible bots: 10 guidelines for
developers of conversational AI
1. Articulate the purpose of your bot
2. Be transparent that you use bots
3. Elevate to a human when needed
4. Design bot to respect cultural norms
5. Ensure bot is reliable (metrics, feedback)
6. Ensure your bot treats people fairly
7. Ensure your bot respects privacy
8. Ensure your bot handles data securely
9. Ensure your bot is accessible
10.Accept responsibility
https://www.microsoft.com/en-us/research/publication/responsible-bots/
Design Data Model Application
Responsible bots: 10 guidelines for
developers of conversational AI
1. Articulate the purpose of your bot
2. Be transparent that you use bots
3. Elevate to a human when needed
4. Design bot to respect cultural norms
5. Ensure bot is reliable (metrics, feedback)
6. Ensure your bot treats people fairly
7. Ensure your bot respects privacy
8. Ensure your bot handles data securely
9. Ensure your bot is accessible
10.Accept responsibility
https://www.microsoft.com/en-us/research/publication/responsible-bots/
Design Data Model Application
Responsible bots: 10 guidelines for
developers of conversational AI
1. Articulate the purpose of your bot
2. Be transparent that you use bots
3. Elevate to a human when needed
4. Design bot to respect cultural norms
5. Ensure bot is reliable (metrics, feedback)
6. Ensure your bot treats people fairly
7. Ensure your bot respects privacy
8. Ensure your bot handles data securely
9. Ensure your bot is accessible
10.Accept responsibility
https://www.microsoft.com/en-us/research/publication/responsible-bots/
Key take-away points
• Many stakeholders affected by conversational agent AIs
• Not only people directly interacting with AI, but also indirectly affected
• Many potential functional, social harms to individuals, communities
• Functional harms exacerbated when systematically biased against groups
• Challenges include complexity and ambiguity of natural language
• Avoiding these harms requires careful consideration across the entire
AI lifecycle.
Acknowledgments
• Chris Brockett, Bill Dolan, Michel Galley, Ece Kamar
Google Assistant
Google
Assistant
Key Points:
• Think about user harms
How does your product make people feel
• Adversarial ("stress") testing for all Google
Assistant launches
• People might say racist,
sexist, homophobic stuff
• Diverse testers
• Think about expanding who your users
could and should be
• Consider the diversity of your users
Computer Vision
Google Camera
Key points:
• Check for unconscious bias
• Comprehensive testing:
"make sure this works
for everybody"
Night Sight
This is a “Shirley Card”
Named after a Kodak studio model
named Shirley Page, they were the
primary method for calibrating color
when processing film.
SKIN TONE IN PHOTOGRAPHY
SOURCES
Color film was built for white people. Here's what it did to dark skin. (Vox)
How Kodak's Shirley Cards Set Photography's Skin-Tone Standard, NPR
Until about 1990, virtually all
Shirley Cards featured Caucasian
women.
SKIN TONE IN PHOTOGRAPHY
SOURCES
Color film was built for white people. Here's what it did to dark skin. (Vox)
Colour Balance, Image Technologies, and Cognitive Equity, Roth
How Photography Was Optimized for White Skin Color (Priceonomics)
As a result, photos featuring
people with light skin looked
fairly accurate.
SKIN TONE IN PHOTOGRAPHY
SOURCES
Color film was built for white people. Here's what it did to dark skin. (Vox)
Colour Balance, Image Technologies, and Cognitive Equity, Roth
How Photography Was Optimized for White Skin Color (Priceonomics)
Film Kodachrome
Year 1970
Credit Darren Davis, Flickr
Photos featuring people with
darker skin, not so much...
SKIN TONE IN PHOTOGRAPHY
SOURCES
Color film was built for white people. Here's what it did to dark skin. (Vox)
Colour Balance, Image Technologies, and Cognitive Equity, Roth
How Photography Was Optimized for White Skin Color (Priceonomics)
Film Kodachrome
Year 1958
Credit Peter Roome, Flickr
Google Clips
Google Clips
"We created controlled datasets by
sampling subjects from different genders
and skin tones in a balanced manner, while
keeping variables like content type, duration,
and environmental conditions constant. We
then used this dataset to test that our
algorithms had similar performance when
applied to different groups."
https://ai.googleblog.com/2018/05/automat
ic-photography-with-google-clips.html
Geena Davis Inclusion Quotient
[with Geena Davis Institute on Gender in Media]
Machine Translation
(Historical)
Gender
Pronouns in
Translate
Three Step Approach
1. Detect Gender-Neutral Queries
Train a text classifier to detect when a Turkish query is gender-neutral.
• trained on thousands of human-rated Turkish examples
2. Generate Gender-Specific Translations
• Training: Modify training data to add an additional input token specifying the
required gender:
• (<2MALE> O bir doktor, He is a doctor)
• (<2FEMALE> O bir doktor, She is a doctor)
• Deployment: If step (1) predicted query is gender-neutral, add male and female
tokens to query
• O bir doktor -> {<2MALE> O bir doktor, <2FEMALE> O bir doktor}
3. Check for Accuracy
Verify:
1. If the requested feminine translation is feminine.
2. If the requested masculine translation is masculine.
3. If the feminine and masculine translations are exactly equivalent with the
exception of gender-related changes.
Result: Reduced Gender Bias in Translate
Smart Compose
Adversarial Testing
for Smart Compose
in Gmail
Adversarial Testing
for Smart Compose
in Gmail
Adversarial Testing
for Smart Compose
in Gmail
Adversarial Testing
for Smart Compose
in Gmail
Key Takeaways
Good ML Practices Go a Long Way
Lots of low hanging fruit in terms of
improving fairness simply by using
machine learning best practices
• Representative data
• Introspection tools
• Visualization tools
• Testing
01
Fairness improvements often lead
to overall improvements
• It’s a common misconception that it’s
always a tradeoff
02
Breadth and Depth Required
Looking End-to-End is critical
• Need to be aware of bias and potential
problems at every stage of product and
ML pipelines (from design, data
gathering, … to deployment and
monitoring)
01
Details Matter
• Slight changes in features or labeler
criteria can change the outcome
• Must have experts who understand the
effects of decisions
• Many details are not technical such as
how labelers are hired
02
Process Best
Practices
Identify product goals
Get the right people in the room
Identify stakeholders
Select a fairness approach
Analyze and evaluate your system
Mitigate issues
Monitor Continuously and Escalation Plans
Auditing and Transparency
Policy
Technology
Beyond
Accuracy
Performance
Cost
Fairness and Bias
Privacy
Security
Safety
Robustness
The Real
World is What
Matters
Decisions should be
made considering the
real world goals and
outcomes
You must have
people involved that
understand these
real world effects
•Social scientist,
Lawyers, domain
experts…
•Hire experts (even
ones that don’t
code)
You need different
types of testing
depending on the
application
We need more
research focused on
people, applications,
and real world effects
A lot of the current
research is not that
useful in practice
We need more
social science +
machine learning
research
Key Open Problems in
Applied Fairness
Key Open Problems in Applied Fairness
What if you don’t have the
sensitive attributes?
When should you use what
approach? For example,
Equal treatment vs equal
outcome?
How to identify harms?
Process for framing AI
problems: Will the chosen
metrics lead to desired
results?
How to tell if data generation
and collection method is
appropriate for a task? (e.g.,
causal structure analysis?)
Processes for mitigating
harms and misbehaviors
quickly
Related Tutorials / Resources
• Sara Hajian, Francesco Bonchi, and Carlos Castillo, Algorithmic bias: From discrimination
discovery to fairness-aware data mining, KDD Tutorial, 2016.
• Solon Barocas and Moritz Hardt, Fairness in machine learning, NeurIPS Tutorial, 2017.
• Kate Crawford, The Trouble with Bias, NeurIPS Keynote, 2017.
• Arvind Narayanan, 21 fairness definitions and their politics, FAT* Tutorial, 2018.
• Sam Corbett-Davies and Sharad Goel, Defining and Designing Fair Algorithms, Tutorials at
EC 2018 and ICML 2018.
• Ben Hutchinson and Margaret Mitchell, Translation Tutorial: A History of Quantitative
Fairness in Testing, FAT* Tutorial, 2019.
• Henriette Cramer, Kenneth Holstein, Jennifer Wortman Vaughan, Hal Daumé III, Miroslav
Dudík, Hanna Wallach, Sravana Reddy, and Jean Garcia-Gathright, Translation Tutorial:
Challenges of incorporating algorithmic fairness into industry practice, FAT* Tutorial,
2019.
• ACM Conference on Fairness, Accountability, and Transparency (ACM FAT*)
Fairness Privacy
Transparency Explainability
Related KDD’19 sessions:
1.Tutorial: Explainable AI in Industry (Sun, 1-5pm)
2.Workshop: Explainable AI/ML (XAI) for Accountability, Fairness, and Transparency (Mon)
3.Social Impact Workshop (Wed, 8:15 – 11:45)
4.Keynote: Cynthia Rudin, Do Simpler Models Exist and How Can We Find Them? (Thu, 8-9am)
5.Research Track Session RT17: Interpretability (Thu, 10-12)
6.Several papers on fairness (e.g., ADS7 (Thu, 10-12), ADS9 (Thu, 1:30-3:30))
Thanks! Questions?
•Tutorial website: https://sites.google.com/view/kdd19-
fairness-tutorial
•Feedback most welcome J
• slbird@microsoft.com, benhutch@google.com,
kkenthapadi@linkedin.com, emrek@microsoft.com,
mmitchellai@google.com

More Related Content

What's hot

Responsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedResponsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedKrishnaram Kenthapadi
 
Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...
Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...
Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...Camera Culture Group, MIT Media Lab
 
Fairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML SystemsFairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML SystemsKrishnaram Kenthapadi
 
Privacy in AI/ML Systems: Practical Challenges and Lessons Learned
Privacy in AI/ML Systems: Practical Challenges and Lessons LearnedPrivacy in AI/ML Systems: Practical Challenges and Lessons Learned
Privacy in AI/ML Systems: Practical Challenges and Lessons LearnedKrishnaram Kenthapadi
 
Fairness in Machine Learning and AI
Fairness in Machine Learning and AIFairness in Machine Learning and AI
Fairness in Machine Learning and AISeth Grimes
 
Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019
Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019
Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019Carol Smith
 
Fairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML SystemsFairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML SystemsKrishnaram Kenthapadi
 
Measures and mismeasures of algorithmic fairness
Measures and mismeasures of algorithmic fairnessMeasures and mismeasures of algorithmic fairness
Measures and mismeasures of algorithmic fairnessManojit Nandi
 
Responsible AI
Responsible AIResponsible AI
Responsible AINeo4j
 
Fairness and Bias in Machine Learning
Fairness and Bias in Machine LearningFairness and Bias in Machine Learning
Fairness and Bias in Machine LearningSurya Dutta
 
Fairness in AI (DDSW 2019)
Fairness in AI (DDSW 2019)Fairness in AI (DDSW 2019)
Fairness in AI (DDSW 2019)GoDataDriven
 
Explainability and bias in AI
Explainability and bias in AIExplainability and bias in AI
Explainability and bias in AIBill Liu
 
Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Krishnaram Kenthapadi
 
Responsible AI & Cybersecurity: A tale of two technology risks
Responsible AI & Cybersecurity: A tale of two technology risksResponsible AI & Cybersecurity: A tale of two technology risks
Responsible AI & Cybersecurity: A tale of two technology risksLiming Zhu
 
Bias in AI-systems: A multi-step approach
Bias in AI-systems: A multi-step approachBias in AI-systems: A multi-step approach
Bias in AI-systems: A multi-step approachEirini Ntoutsi
 
Responsible AI
Responsible AIResponsible AI
Responsible AINeo4j
 
Responsible Data Use in AI - core tech pillars
Responsible Data Use in AI - core tech pillarsResponsible Data Use in AI - core tech pillars
Responsible Data Use in AI - core tech pillarsSofus Macskássy
 
How do we train AI to be Ethical and Unbiased?
How do we train AI to be Ethical and Unbiased?How do we train AI to be Ethical and Unbiased?
How do we train AI to be Ethical and Unbiased?Mark Borg
 
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019anant90
 

What's hot (20)

Responsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedResponsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons Learned
 
Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...
Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...
Split Learning versus Federated Learning for Data Transparent ML, Camera Cult...
 
Bias in AI
Bias in AIBias in AI
Bias in AI
 
Fairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML SystemsFairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML Systems
 
Privacy in AI/ML Systems: Practical Challenges and Lessons Learned
Privacy in AI/ML Systems: Practical Challenges and Lessons LearnedPrivacy in AI/ML Systems: Practical Challenges and Lessons Learned
Privacy in AI/ML Systems: Practical Challenges and Lessons Learned
 
Fairness in Machine Learning and AI
Fairness in Machine Learning and AIFairness in Machine Learning and AI
Fairness in Machine Learning and AI
 
Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019
Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019
Designing Trustable AI Experiences at IxDA Pittsburgh, Jan 2019
 
Fairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML SystemsFairness and Privacy in AI/ML Systems
Fairness and Privacy in AI/ML Systems
 
Measures and mismeasures of algorithmic fairness
Measures and mismeasures of algorithmic fairnessMeasures and mismeasures of algorithmic fairness
Measures and mismeasures of algorithmic fairness
 
Responsible AI
Responsible AIResponsible AI
Responsible AI
 
Fairness and Bias in Machine Learning
Fairness and Bias in Machine LearningFairness and Bias in Machine Learning
Fairness and Bias in Machine Learning
 
Fairness in AI (DDSW 2019)
Fairness in AI (DDSW 2019)Fairness in AI (DDSW 2019)
Fairness in AI (DDSW 2019)
 
Explainability and bias in AI
Explainability and bias in AIExplainability and bias in AI
Explainability and bias in AI
 
Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)Explainable AI in Industry (KDD 2019 Tutorial)
Explainable AI in Industry (KDD 2019 Tutorial)
 
Responsible AI & Cybersecurity: A tale of two technology risks
Responsible AI & Cybersecurity: A tale of two technology risksResponsible AI & Cybersecurity: A tale of two technology risks
Responsible AI & Cybersecurity: A tale of two technology risks
 
Bias in AI-systems: A multi-step approach
Bias in AI-systems: A multi-step approachBias in AI-systems: A multi-step approach
Bias in AI-systems: A multi-step approach
 
Responsible AI
Responsible AIResponsible AI
Responsible AI
 
Responsible Data Use in AI - core tech pillars
Responsible Data Use in AI - core tech pillarsResponsible Data Use in AI - core tech pillars
Responsible Data Use in AI - core tech pillars
 
How do we train AI to be Ethical and Unbiased?
How do we train AI to be Ethical and Unbiased?How do we train AI to be Ethical and Unbiased?
How do we train AI to be Ethical and Unbiased?
 
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
Adversarial Attacks on A.I. Systems — NextCon, Jan 2019
 

Similar to Fairness-aware Machine Learning: Practical Challenges and Lessons Learned (KDD 2019 Tutorial)

Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...
Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...
Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...Saurabh Mishra
 
Ramon van den Akker. Fairness of machine learning models an overview and prac...
Ramon van den Akker. Fairness of machine learning models an overview and prac...Ramon van den Akker. Fairness of machine learning models an overview and prac...
Ramon van den Akker. Fairness of machine learning models an overview and prac...Lviv Startup Club
 
e-SIDES presentation at Leiden University 21/09/2017
e-SIDES presentation at Leiden University 21/09/2017e-SIDES presentation at Leiden University 21/09/2017
e-SIDES presentation at Leiden University 21/09/2017e-SIDES.eu
 
Responsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedResponsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedKrishnaram Kenthapadi
 
ifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and more
ifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and moreifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and more
ifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and morehen_drik
 
Engineering Ethics: Practicing Fairness
Engineering Ethics: Practicing FairnessEngineering Ethics: Practicing Fairness
Engineering Ethics: Practicing FairnessClare Corthell
 
"Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons...
"Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons..."Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons...
"Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons...Edge AI and Vision Alliance
 
Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?University of Minnesota, Duluth
 
ARTIFICIAL INTELLIGENCE AND ETHICS 29.pptx
ARTIFICIAL INTELLIGENCE AND ETHICS 29.pptxARTIFICIAL INTELLIGENCE AND ETHICS 29.pptx
ARTIFICIAL INTELLIGENCE AND ETHICS 29.pptxAmalaPaulson
 
Adversarial Attacks and Defense
Adversarial Attacks and DefenseAdversarial Attacks and Defense
Adversarial Attacks and DefenseKishor Datta Gupta
 
Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...
Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...
Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...merriejune
 
Ethical Issues in Machine Learning Algorithms (Part 2)
Ethical Issues in Machine Learning Algorithms (Part 2)Ethical Issues in Machine Learning Algorithms (Part 2)
Ethical Issues in Machine Learning Algorithms (Part 2)Vladimir Kanchev
 
Algorithmic Bias - What is it? Why should we care? What can we do about it?
Algorithmic Bias - What is it? Why should we care? What can we do about it? Algorithmic Bias - What is it? Why should we care? What can we do about it?
Algorithmic Bias - What is it? Why should we care? What can we do about it? University of Minnesota, Duluth
 
Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja
Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja
Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja Saidot
 
Ethical Issues in Machine Learning Algorithms. (Part 1)
Ethical Issues in Machine Learning Algorithms. (Part 1)Ethical Issues in Machine Learning Algorithms. (Part 1)
Ethical Issues in Machine Learning Algorithms. (Part 1)Vladimir Kanchev
 

Similar to Fairness-aware Machine Learning: Practical Challenges and Lessons Learned (KDD 2019 Tutorial) (20)

A.I.pptx
A.I.pptxA.I.pptx
A.I.pptx
 
Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...
Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...
Breakout 3. AI for Sustainable Development and Human Rights: Inclusion, Diver...
 
Data and ethics Training
Data and ethics TrainingData and ethics Training
Data and ethics Training
 
Testing slides
Testing slidesTesting slides
Testing slides
 
Ramon van den Akker. Fairness of machine learning models an overview and prac...
Ramon van den Akker. Fairness of machine learning models an overview and prac...Ramon van den Akker. Fairness of machine learning models an overview and prac...
Ramon van den Akker. Fairness of machine learning models an overview and prac...
 
e-SIDES presentation at Leiden University 21/09/2017
e-SIDES presentation at Leiden University 21/09/2017e-SIDES presentation at Leiden University 21/09/2017
e-SIDES presentation at Leiden University 21/09/2017
 
Responsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedResponsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons Learned
 
ifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and more
ifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and moreifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and more
ifib Lunchbag: CHI2018 Highlights - Algorithms in (Social) Practice and more
 
Ai Now institute 2017 report
 Ai Now institute 2017 report Ai Now institute 2017 report
Ai Now institute 2017 report
 
Engineering Ethics: Practicing Fairness
Engineering Ethics: Practicing FairnessEngineering Ethics: Practicing Fairness
Engineering Ethics: Practicing Fairness
 
"Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons...
"Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons..."Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons...
"Practical Approaches to Training Data Strategy: Bias, Legal and Ethical Cons...
 
Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?Algorithmic Bias : What is it? Why should we care? What can we do about it?
Algorithmic Bias : What is it? Why should we care? What can we do about it?
 
ARTIFICIAL INTELLIGENCE AND ETHICS 29.pptx
ARTIFICIAL INTELLIGENCE AND ETHICS 29.pptxARTIFICIAL INTELLIGENCE AND ETHICS 29.pptx
ARTIFICIAL INTELLIGENCE AND ETHICS 29.pptx
 
Adversarial Attacks and Defense
Adversarial Attacks and DefenseAdversarial Attacks and Defense
Adversarial Attacks and Defense
 
Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...
Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...
Centering Disability Perspectives in Algorithmic Fairness, Accountability, & ...
 
Ethical Issues in Machine Learning Algorithms (Part 2)
Ethical Issues in Machine Learning Algorithms (Part 2)Ethical Issues in Machine Learning Algorithms (Part 2)
Ethical Issues in Machine Learning Algorithms (Part 2)
 
CSCMP 2014 :exploring scm big data cscmp
CSCMP 2014 :exploring scm big data cscmpCSCMP 2014 :exploring scm big data cscmp
CSCMP 2014 :exploring scm big data cscmp
 
Algorithmic Bias - What is it? Why should we care? What can we do about it?
Algorithmic Bias - What is it? Why should we care? What can we do about it? Algorithmic Bias - What is it? Why should we care? What can we do about it?
Algorithmic Bias - What is it? Why should we care? What can we do about it?
 
Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja
Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja
Spring Splash 3.4.2019: When AI Meets Ethics by Meeri Haataja
 
Ethical Issues in Machine Learning Algorithms. (Part 1)
Ethical Issues in Machine Learning Algorithms. (Part 1)Ethical Issues in Machine Learning Algorithms. (Part 1)
Ethical Issues in Machine Learning Algorithms. (Part 1)
 

More from Krishnaram Kenthapadi

Explainable AI in Industry (AAAI 2020 Tutorial)
Explainable AI in Industry (AAAI 2020 Tutorial)Explainable AI in Industry (AAAI 2020 Tutorial)
Explainable AI in Industry (AAAI 2020 Tutorial)Krishnaram Kenthapadi
 
Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)
Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)
Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)Krishnaram Kenthapadi
 
Fairness, Transparency, and Privacy in AI @ LinkedIn
Fairness, Transparency, and Privacy in AI @ LinkedInFairness, Transparency, and Privacy in AI @ LinkedIn
Fairness, Transparency, and Privacy in AI @ LinkedInKrishnaram Kenthapadi
 
Privacy-preserving Analytics and Data Mining at LinkedIn
Privacy-preserving Analytics and Data Mining at LinkedInPrivacy-preserving Analytics and Data Mining at LinkedIn
Privacy-preserving Analytics and Data Mining at LinkedInKrishnaram Kenthapadi
 
Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...
Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...
Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...Krishnaram Kenthapadi
 

More from Krishnaram Kenthapadi (6)

Amazon SageMaker Clarify
Amazon SageMaker ClarifyAmazon SageMaker Clarify
Amazon SageMaker Clarify
 
Explainable AI in Industry (AAAI 2020 Tutorial)
Explainable AI in Industry (AAAI 2020 Tutorial)Explainable AI in Industry (AAAI 2020 Tutorial)
Explainable AI in Industry (AAAI 2020 Tutorial)
 
Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)
Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)
Privacy-preserving Data Mining in Industry (WSDM 2019 Tutorial)
 
Fairness, Transparency, and Privacy in AI @ LinkedIn
Fairness, Transparency, and Privacy in AI @ LinkedInFairness, Transparency, and Privacy in AI @ LinkedIn
Fairness, Transparency, and Privacy in AI @ LinkedIn
 
Privacy-preserving Analytics and Data Mining at LinkedIn
Privacy-preserving Analytics and Data Mining at LinkedInPrivacy-preserving Analytics and Data Mining at LinkedIn
Privacy-preserving Analytics and Data Mining at LinkedIn
 
Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...
Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...
Privacy-preserving Data Mining in Industry: Practical Challenges and Lessons ...
 

Fairness-aware Machine Learning: Practical Challenges and Lessons Learned (KDD 2019 Tutorial)

  • 1. Fairness-aware Machine Learning: Practical Challenges and Lessons Learned KDD 2019 Tutorial August 2019 Sarah Bird (Microsoft), Ben Hutchinson (Google), Sahin Geyik (LinkedIn) Krishnaram Kenthapadi (LinkedIn), Emre Kıcıman (Microsoft), Margaret Mitchell (Google), Mehrnoosh Sameki (Microsoft) https://sites.google.com/view/kdd19-fairness-tutorial
  • 2. The Coded Gaze [Joy Buolamwini 2016] • Face detection software: Fails for some darker faces https://www.youtube.com/watch?v=KB9sI9rY3cA
  • 3. Gender Shades [Joy Buolamwini & Timnit Gebru, 2018] • Facial analysis software: Higher accuracy for light skinned men • Error rates for dark skinned women: 20% - 34%
  • 4. Algorithmic Bias ▪ Ethical challenges posed by AI systems ▪ Inherent biases present in society – Reflected in training data – AI/ML models prone to amplifying such biases ▪ ACM FAT* conference / KDD’16 & NeurIPS’17 Tutorials
  • 5. Laws against Discrimination Immigration Reform and Control Act Citizenship Rehabilitation Act of 1973; Americans with Disabilities Act of 1990 Disability status Civil Rights Act of 1964 Race Age Discrimination in Employment Act of 1967 Age Equal Pay Act of 1963; Civil Rights Act of 1964 Sex And more...
  • 10. Fairness Privacy Transparency Explainability Related KDD’19 sessions: 1.Tutorial: Explainable AI in Industry (Sun, 1-5pm) 2.Workshop: Explainable AI/ML (XAI) for Accountability, Fairness, and Transparency (Mon) 3.Social Impact Workshop (Wed, 8:15 – 11:45) 4.Keynote: Cynthia Rudin, Do Simpler Models Exist and How Can We Find Them? (Thu, 8-9am) 5.Research Track Session RT17: Interpretability (Thu, 10-12) 6.Several papers on fairness (e.g., ADS7 (Thu, 10-12), ADS9 (Thu, 1:30-3:30))
  • 11. “Fairness by Design” for AI products
  • 12. Outline • Algorithmic Bias / Discrimination • Sources of Data Biases in ML Lifecycle • Techniques for Fairness in ML • AI Fairness Tools • Case Studies • Key Takeaways
  • 13. Algorithmic Bias / Discrimination and broader / related issues
  • 14. Other Great Tutorials Fairness in Machine Learning Solon Barocas and Moritz Hardt, NeurIPS 2017 Challenges of incorporating algorithmic fairness into practice Henriette Cramer, Kenneth Holstein, Jennifer Wortman Vaughan, Hal Daumé III, Miroslav Dudík, Hanna Wallach, Sravana Reddy, Jean Garcia-Gathright, FAT* 2019 Defining and Designing Fair Algorithms Sam Corbett-Davies, Sharad Goel, ICML 2018 The Trouble with Bias Kate Crawford, NeurIPS 2017 Keynote
  • 16. "[H]iring could become faster and less expensive, and […] lead recruiters to more highly skilled people who are better matches for their companies. Another potential result: a more diverse workplace. The software relies on data to surface candidates from a wide variety of places and match their skills to the job requirements, free of human biases." Miller (2015) [Barocas & Hardt 2017]
  • 18. "But software is not free of human influence. Algorithms are written and maintained by people, and machine learning algorithms adjust what they do based on people’s behavior. As a result […] algorithms can reinforce human prejudices." Miller (2015) [Barocas & Hardt 2017]
  • 20. More positive outcomes & avoiding harmful outcomes of algorithms for groups of people [Cramer et al 2019]
  • 21. [Cramer et al 2019] More positive outcomes & avoiding harmful outcomes of automated systems for groups of people
  • 22. Legally Recognized Protected Classes Race (Civil Rights Act of 1964); Color (Civil Rights Act of 1964); Sex (Equal Pay Act of 1963; Civil Rights Act of 1964); Religion (Civil Rights Act of 1964);National origin (Civil Rights Act of 1964); Citizenship (Immigration Reform and Control Act); Age (Age Discrimination in Employment Act of 1967);Pregnancy (Pregnancy Discrimination Act); Familial status (Civil Rights Act of 1968); Disability status (Rehabilitation Act of 1973; Americans with Disabilities Act of 1990); Veteran status (Vietnam Era Veterans' Readjustment Assistance Act of 1974; Uniformed Services Employment and Reemployment Rights Act); Genetic information (Genetic Information Nondiscrimination Act) [Boracas & Hardt 2017]
  • 23. Other Categories Societal Categories i.e., political ideology, language, income, location, topical interests, (sub)culture, physical traits, etc. Intersectional Subpopulations i.e., women from tech Application-specific subpopulations i.e., device type
  • 24. Types of Harm Harms of allocation withhold opportunity or resources Harms of representation reinforce subordination along the lines of identity, stereotypes [Cramer et al 2019, Shapiro et al., 2017, Kate Crawford, “The Trouble With Bias” keynote N(eur)IPS’17]
  • 25. Bias, Discrimination & Machine Learning Isn’t bias a technical concept? Selection, sampling, reporting bias, Bias of an estimator, Inductive bias Isn’t discrimination the very point of machine learning? Unjustified basis for differentiation [Barocas & Hardt 2017]
  • 26. Discrimination is not a general concept It is domain specific Concerned with important opportunities that affect people’s life chances It is feature specific Concerned with socially salient qualities that have served as the basis for unjustified and systematically adverse treatment in the past [Barocas & Hardt 2017]
  • 27. Regulated Domains Credit (Equal Credit Opportunity Act) Education (Civil Rights Act of 1964; Education Amendments of 1972) Employment (Civil Rights Act of 1964) Housing (Fair Housing Act) ‘Public Accommodation’ (Civil Rights Act of 1964) Extends to marketing and advertising; not limited to final decision [Barocas & Hardt 2017]
  • 28. Discrimination Law and Legal Terms Treatment Disparate Treatment, Equality of Opportunity, Procedural Fairness Outcome Disparate Impact, Distributive justice, Minimized inequality of outcome
  • 31. Fairness is Political Someone must decide Decisions will depend on the product, company, laws, country, etc.
  • 32. Why do this? Better product and Serving Broader Population Responsibility and Social Impact Legal and Policy Competitive Advantage and Brand [Boracas & Hardt 2017]
  • 33. Industry Best Practices for Product Conception, Design, Implementation, and Evolution
  • 34. Responsible AI is a complex and broad topic
  • 36. State of the Art in Industry • People: Bring in domain expertise and diversity • Measure: Emphasize analysis and testing • Process: Focus on processes and reviews
  • 37. Process Best Practices Identify product goals Get the right people in the room Identify stakeholders Select a fairness approach Analyze and evaluate your system Mitigate issues Monitor Continuously and Escalation Plans Auditing and Transparency
  • 38. Repeat for every new feature, product change, etc.
  • 39. Google's Responsible Fairness Practices https://ai.google/education/responsible-ai-practices?category=fairness Summary: • Design your product using concrete goals for fairness and inclusion. • Engage with social scientists and other relevant experts. • Set fairness goals • Check system for unfair biases. • Include diverse testers and adversarial/stress testing. • Consider feedback loops • Analyze performance. • Evaluate user experience in real-world scenarios. • Use representative datasets to train and test your model.
  • 40. Fairness AI systems should treat everyone fairly and avoid affecting similarly situated groups of people in different ways Key considerations 1. Understand the scope, spirit, and potential uses of the AI system 2. Attract a diverse pool of talent 3. Put processes and tools in place to identify bias in datasets and machine learning algorithms 4. Leverage human review and domain expertise 5. Research and employ best practices, analytical techniques, and tools
  • 41. Sources of Data Biases in ML Lifecycle
  • 42. Collaborators Much of this section is based on survey paper and tutorial series written by Alexandra Olteanu, Carlos Castillo, Fernando Diaz, Emre Kıcıman
  • 43. To present a taxonomy of challenges that can occur at different stages of social data analysis. To recognize, understand, or quantify some major classes of limitations around data To give us food for thought, by looking critically at our work. .... Survey goals 43
  • 44. Design Data Model Application
  • 45. Design Data Model Application
  • 46. Design Data Model Application
  • 47. data bias Data bias: a systematic distortion in data that compromises its use for a task.
  • 48. Note: Bias must be considered relative to task 48 Gender discrimination is illegal Gender-specific medical diagnosis is desirable
  • 49. What does data bias look like? Measure systematic distortions along 5 data properties 1. Population Biases 2. Behavioral Biases 3. Content Production Biases 4. Linking Biases 5. Temporal Biases
  • 50. What does data bias look like? Measure distortions along 5 data properties 1. Population Biases Differences in demographics or other user characteristics between a user population represented in a dataset or platform and a target population 2. Behavioral Biases 3. Content Production Biases 4. Linking Biases 5. Temporal Biases
  • 51. Example: Different user demographics on different social platforms 51 See [Hargittai’07] for statistics about social media use among young adults according to gender, race and ethnicity, and parental educational background. Figure from http://www.pewinternet.org/2016/11/11/social-media-update-2016/ Example: Different user demographics on different social platforms
  • 52. Systematic distortions must be evaluated in a task dependent way Gender Shades E.g., for many tasks, populations should match target population, to improve external validity But for some other tasks, subpopulations require approximately equal representation to achieve task parity http://gendershades.org/
  • 53. What does data bias look like? Measure distortions along 5 data properties 1. Population Biases 2. Behavioral Biases Differences in user behavior across platforms or contexts, or across users represented in different datasets 3. Content Production Biases 4. Linking Biases 5. Temporal Biases
  • 54. Behavioral Biases from Functional Issues Platform functionality and algorithms influence human behaviors and our observations of human behaviors [Miller et al. ICWSM’16] Figure from: http://grouplens.org/blog/investigating-the-potential-for-miscommunication-using-emoji/
  • 55. Cultural elements and social contexts are reflected in social datasets 55 Figure from [Hannak et al. CSCW 2017]
  • 56. Societal biases embedded in behavior can be amplified by algorithms Users pick biased options Biased actions are used as feedback System learns to mimic biased options System presents options, influencing user choice
  • 57. What does data bias look like? Measure distortions along 5 data properties 1. Population Biases 2. Behavioral Biases 3. Content Production Biases Lexical, syntactic, semantic, and structural differences in the contents generated by users 4. Linking Biases 5. Temporal Biases
  • 58. Behavioral Biases from Normative Issues Community norms and societal biases influence observed behavior and vary across online and offline communities and contexts What kind of pictures would you share on Facebook, but not on LinkedIn? Are individuals comfortable contradicting popular opinions? E.g., after singer Prince died, most SNs showed public mourning. But not anonymous site PostSecret The same mechanism can embed different meanings in different contexts [Tufekci ICWSM’14] [the meaning of retweets or likes] “could range from affirmation to denunciation to sarcasm to approval to disgust”
  • 59. Privacy concerns affect what content users share, and, thus, the type of patterns we observe. Foursquare/Image from [Lindqvist et al. CHI’11] The awareness of being observed by other impacts user behavior: Privacy and safety concerns 59
  • 60. As other media, social media contains misinformation and disinformation 60 Misinformation is false information, unintentionally spread Disinformation is false information, deliberately spread Figures from [Kumar et al. 2016] Hoaxes on Wikipedia: (left) impact as number of views per day for hoaxes surviving at least 7 days, and (right) time until a hoax gets detected and flagged.
  • 61. What does data bias look like? Measure distortions along 5 data properties 1. Population Biases 2. Behavioral Biases 3. Content Production Biases 4. Linking Biases Differences in the attributes of networks obtained from user connections, interactions, or activity 5. Temporal Biases
  • 62. Behavior-based and connection-based social links are different 62 Figure from [Wilson et al. EuroSys’09]
  • 63. Online social networks formation also depends on factors external to the social platforms ● Geography & distance ● Co-visits ● Dynamics of offline relations ● [...] Figure from [Gilbert and Karahalios CHI 2009] 63
  • 64. What does data bias look like? Measure distortions along 5 data properties 1. Population Biases 2. Behavioral Biases 3. Content Production Biases 4. Linking Biases 5. Temporal Biases Differences in populations and behaviors over time
  • 65. Different demographics can exhibit different growth rates across and within social platforms 65 TaskRabbit and Fiverr are online freelance marketplaces. Figure from [Hannak et al. CSCW 2017]
  • 66. E.g., Change in Features over Time Introducing a new feature or changing an existing feature impacts usage patterns on the platform.
  • 67. Data Collection Biases can come in at any step along the data analysis pipeline ● Metrics: e.g., reliability, lack of domain insights ● Interpretation: e.g., contextual validity, generalizability ● Disclaimers: e.g., lack of negative results and reproducibility ● Functional: biases due to platform affordances and algorithms ● Normative: biases due to community norms ● External: biases due to phenomena outside social platforms ● Non-individuals: e.g., organizations, automated agents ● Acquisition: biases due to, e.g., API limits ● Querying: biases due to, e.g., query formulation ● Filtering: biases due to removal of data “deemed” irrelevant ● Cleaning: biases due to, e.g., default values ● Enrichment: biases from manual or automated annotations ● Aggregation: e.g., grouping, organizing, or structuring data ● Qualitative Analyses: lack generalizability, interpret. biases ● Descriptive Statistics: confounding bias, obfuscated measurements ● Prediction & Inferences: data representation, perform. variations ● Observational studies: peer effects, select. bias, ignorability Data Processing Evaluation Data Analysis Data Source
  • 68. Design Data Model Application Best Practices for Bias Avoidance/Mitigation
  • 69. Design Data Model Application Best Practices for Bias Avoidance/Mitigation Consider team composition for diversity of thought, background and experiences
  • 70. Design Data Model Application Best Practices for Bias Avoidance/Mitigation Understand the task, stakeholders, and potential for errors and harm
  • 71. Design Data Model Application Best Practices for Bias Avoidance/Mitigation Check data sets Consider data provenance What is the data intended to represent? Verify through qualitative, experimental, survey and other methods
  • 72. Design Data Model Application Best Practices for Bias Avoidance/Mitigation Check models and validate results Why is the model making decision? What mechanisms would explain results? Is supporting evidence consistent? Twyman’s law: The more unusual the result, more likely it’s an error
  • 73. Design Data Model Application Best Practices for Bias Avoidance/Mitigation Post-Deployment Ensure optimization and guardrail metrics consistent w/responsible practices and avoid harms Continual monitoring, including customer feedback Have a plan to identify and respond to failures and harms as they occur
  • 74. Key Takeaways • Many, complex biases at all stages of data collection and analysis • Population, Behavioral, Content Production, Linking, Temporal Biases • Mitigate through deeper investigation, understanding • Read more: Social Data: Biases, Methodological Pitfalls, and Ethical Boundaries, Olteanu, Castillo, Diaz and Kıcıman
  • 76. Thanks to Ben Hutchison Alex Beutel (Research Scientist, fairness in ML), Allison Woodruff (UX Research, privacy, fairness and ethics), Andrew Zaldivar (Developer Advocate, ethics and fairness in AI), Hallie Benjamin (Senior Strategist, ethics and fairness in ML), Jamaal Barnes (Program Manager, fairness in ML), Josh Lovejoy (UX Designer, People and AI Research; now Microsoft), Margaret Mitchell (Research Scientist, ethics and fairness in AI), Rebecca White (Program Manager, fairness in ML) and others!
  • 77. Techniques for Fairness in ML Product Introspection Practical Testing Training Data Modeling UI/Product Design
  • 79. Product Introspection (1): Make Your Key Choices Explicit [Mitchell et al., 2018] Goals Decision Prediction Profit from loans Whether to lend Loan will be repaid Justice, Public safety Whether to detain Crime committed if not detained • Goals are ideally measurable • What are your non-goals? • Which decisions are you not considering? • What is the relationship between Prediction and Decision?
  • 80. Product Introspection (2): Identify Potential Harms • What are the potential harms? • Applicants who would have repaid are not given loans • Convicts who would not commit a crime are locked up. • Are there also longer term harms? • Applicants are given loans, then go on to default, harming their credit score • Are some harms especially bad?
  • 81. Seek out Diverse Perspectives • Fairness Experts • User Researchers • Privacy Experts • Legal • Social Science Backgrounds • Diverse Identities • Gender • Sexual Orientation • Race • Nationality • Religion
  • 83. Launch with Confidence: Testing for Bias • How will you know if users are being harmed? • How will you know if harms are unfairly distributed? • Detailed testing practices are often not covered in academic papers • Discussing testing requirements is a useful focal point for cross-functional teams
  • 84. Model Predictions Evaluate for Inclusion - Confusion Matrix
  • 85. Model Predictions Positive Negative Evaluate for Inclusion - Confusion Matrix
  • 86. Model Predictions Positive Negative ● Exists ● Predicted True Positives ● Doesn’t exist ● Not predicted True Negatives Evaluate for Inclusion - Confusion Matrix
  • 87. Model Predictions Positive Negative ● Exists ● Predicted True Positives ● Exists ● Not predicted False Negatives ● Doesn’t exist ● Predicted False Positives ● Doesn’t exist ● Not predicted True Negatives Evaluate for Inclusion - Confusion Matrix
  • 88. Efficient Testing for Bias • Development teams are under multiple constraints • Time • Money • Human resources • Access to data • How can we efficiently test for bias? • Prioritization • Strategic testing
  • 89. Choose your evaluation metrics in light of acceptable tradeoffs between False Positives and False Negatives
  • 90. Privacy in Images False Positive: Something that doesn’t need to be blurred gets blurred. Can be a bummer. False Negative: Something that needs to be blurred is not blurred. Identity theft. False Positives Might be Better than False Negatives
  • 91. Spam Filtering False Negative: Email that is SPAM is not caught, so you see it in your inbox. Usually just a bit annoying. False Positive: Email flagged as SPAM is removed from your inbox. If it’s from a friend or loved one, it’s a loss! False Negatives Might Be Better than False Positives
  • 92. Types of Practical Fairness Testing 1. Targeted Tests 2. Quick Tests 3. Comprehensive Tests 4. Ecologically Valid Tests 5. Adversarial Testing
  • 93. 1. Targeted Tests Based on prior experience/knowledge • Computer Vision ⇒ Test for dark skin • Natural Language Processing ⇒ Test for gender stereotypes Cf. smoke tests (non-exhaustive tests that check that most important functions work)
  • 94. Targeted Testing of a Gender Classifier [Joy Buolamwini & Timnit Gebru, 2018] • Facial recognition software: Higher accuracy for light skinned men • Error rates for dark skinned women: 20% - 34%
  • 95. 2. Quick Tests • "Cheap" • Useful throughout product cycle • Spot check extreme cases • Low coverage but high informativity • Need to be designed thoughtfully, e.g. • World knowledge • Prior product failures
  • 96. Quick Tests for Gender in Translate
  • 97. 3. Comprehensive Tests Include sufficient data for each subgroup • May include relevant combinations of attributes • Sometimes synthetic data is appropriate Particularly important if model will be used in larger system Cf. Unit tests (verify correct outputs for wide range of correct inputs)
  • 98. Comprehensive Testing of a Toxic Language Detector [Dixon et al., 2018]ConversationAI
  • 99. Comprehensive Testing of a Toxic Language Detector [Dixon et al., 2018]Problem: A False Positive Bias
  • 100. Comprehensive Testing of a Toxic Language Detector [Dixon et al., 2018]
  • 101. AUC Metrics for Comprehensive Testing • Subgroup AUC: • Subgroup Positives vs Subgroup Negatives • "BPSN" AUC: • Background Positives vs Subgroup Negatives • "BNSP" AUC: • Background Negatives vs Subgroup Positives
  • 102. Comprehensive Testing of a Toxicity Detector https://github.com/conversationai/perspectiveapi/blob/master/model_cards/English/toxicity.md
  • 103. 4. Ecologically Valid Testing Data is drawn from a distribution representative of the deployment distribution • Goal is NOT to be representative of the training distribution • (When appropriate) Condition on labels & certainty Example usage scenarios : • Continuous monitoring • You have historical product usage data • You can estimate user distribution reasonably well
  • 104. Ecologically Valid Testing: Distributions Matter What is being compared? Over what data?
  • 105. Challenges with Ecologically Valid Testing • Post-deployment distributions may not be known • Product may not be launched yet! • Sensitive attributes often not available in deployment • User distributions may change • We may want user distributions to change • e.g., broaden user base
  • 106. 5. Adversarial Tests Search for rare but extreme harms • “Poison needle in haystack” • Requires knowledge of society Typical usage scenario: • Close to launch
  • 107. Hypothetical Example of Adversarial Testing • Emoji autosuggest: are happy emoji suggested for sad sentences? My dog has gone to heaven Suggest: Input: 😊
  • 108. Summary of Practical Fairness Testing 1. Targeted Tests: domain specific (image, language, etc) 2. Quick Tests: cheap tests throughout dev cycle 3. Comprehensive Tests: thorough 4. Ecologically Valid Tests: real-world data 5. Adversarial Testing: find poison needles
  • 109. Fairness Testing Practices are Good ML Practices • Confidence in your product's fairness requires fairness testing • Fairness testing has a role throughout the product iteration lifecycle • Contextual concerns should be used to prioritize fairness testing
  • 111. Fairness-aware Data Collection [Holstein et al., 2019] • ML literature generally assumes data is fixed • Often the solution is more and/or better training data But: need to be Thoughtful! When might more Data not Help? • If your data sampling techniques are biased • Fundamental problems in data quality [Eckhouse et al., 2018] • What does your data really represent? E.g. crimes vs arrests • Recall: Product Introspection: How do Predictions relate to Decisions?
  • 112. Get to Know Your Training Data: Facets Dive
  • 113. Datasheets for Datasets [Gebru et al., 2018]
  • 114. Fairness-Aware Data Collection Techniques 1. Address population biases • Target under-represented (with respect to the user population) groups 2. Address representation issues • Oversample from minority groups • Sufficient data from each group may be required to avoid model treating them as "outliers" 3. Data augmentation: synthesize data for minority groups • E.g. from observed "he is a doctor" → synthesize "she is a doctor" 4. Fairness-aware active learning • Collect more data for group with highest error rates
  • 115. Sometimes data biases are unavoidable Solution: ML Techniques
  • 117. Practical Concerns with Fair Machine Learning •Is the training process stable? •Can we guarantee that fairness policies will be satisfied? • Cf. Legal requirements in education, employment, finance
  • 118. Machine Learning Techniques: Adversarial Training? P(Label=1) P(Group) Negative Gradient Fairly well-studied with some nice theoretical guarantees. But can be difficult to train. Features, Label, Group
  • 119. Machine Learning: Correlation Loss [Beutel et al., 2018] Motivation: Overcome training instability with adversarial training Key idea: include fairness objective in the loss function
  • 120. Predicted P(Target) distribution for “Blue” and “Red” examples (Illustrative Example) min Loss(Label, Pred) Pred = P(Label=1) Features, Label, Group Machine Learning Techniques: Correlation Loss
  • 121. min Loss(Label, Pred) + Abs(Corr(Pred, Group))|Label=0 Pred = P(Label=1) Predicted P(Target) distribution for “Blue” and “Red” examples (Illustrative Example) Features, Label, Group Machine Learning Techniques: Correlation Loss
  • 122. ● Computed per batch ● Easy to use ● More stable than adversarial training. min Loss(Label, Pred) + Abs(Corr(Pred, Group))|Label=0 Pred = P(Label=1) Features, Label, Group Machine Learning Techniques: Correlation Loss
  • 123. Machine Learning: Constrained Optimization [Cotter et al., 2018] Motivation: Can we ensure that fairness policies are satisfied? • Fairness goals are explicitly stated as constraints on predictions, e.g. • FPR on group 1 <= 0.8 * FPR on group 2 • Machine learner optimizes objective function subject to the constraints
  • 124. Model Cards for Model Reporting[Mitchell et al., 2018]
  • 125. Further Machine Learning Techniques Many more approaches are linked to from the tutorial website.
  • 127. Fairness in UI/Product Design 1. Robust UIs handle ML failures gracefully 2. UIs should empower users
  • 128.
  • 129. AI Fairness and Transparency Tools 10:00am
  • 130. Overview of Transparency and Fairness Tools Bias Detection Bias Mitigation Responsible Metadata Microsoft InterpretML Microsoft Azure Interpretability Toolkit IBM Open Scale Datasheets for datasets Model Cards IBM Fairness 360 Microsoft Fairlearn Google What-if H2O Fact Sheets
  • 131. Overview of Transparency and Fairness Tools Bias Detection Bias Mitigation Responsible Metadata Microsoft InterpretML Microsoft Azure Interpretability Toolkit IBM Open Scale Datasheets for datasets Model Cards IBM Fairness 360 Microsoft Fairlearn Google What-if H2O Fact Sheets
  • 134. InterpretML Goal: to provide researchers and AI developers with a toolkit that allows for: • Explaining machine learning models globally on all data, or locally on a specific data point using the state-of-art technologies • Easily adding new explainers and compare them to the state-of- the-art explainers • A common API and data structure across the integrated libraries github.com/Microsoft/interpret pip install –U interpret
  • 135. Azure Machine Learning Interpretability Toolkit
  • 136. • Training Time Input: model + training data • Any models that are trained on datasets in Python `numpy.array`, `pandas.DataFrame`, `iml.datatypes.DenseData`, or `scipy.sparse.csr_matrix` format • Accepts both models and pipelines as input. • Model: model must implement the prediction function `predict` or `predict_proba` that conforms to the Scikit convention. • Pipeline: the explanation function assumes that the running pipeline script returns a prediction. • Inferencing Time Input: test data Azure Machine Learning Interpretability Toolkit
  • 137.
  • 138. • Interpretability at training time • Combination of glass-box models and black-box explainers • Auto reason code generation for local predictions • Ability to cross reference to other techniques to ensure stability and consistency in results H2O
  • 139.
  • 140. IBM Open Scale Goal: to provide AI operations team with a toolkit that allows for: • Monitoring and re-evaluating machine learning models after deployment
  • 141. IBM Open Scale Goal: to provide AI operations team with a toolkit that allows for: • Monitoring and re-evaluating machine learning models after deployment • ACCURACY • FAIRNESS • PERFORMANCE
  • 146. Overview of Transparency and Fairness Tools Bias Detection Bias Mitigation Responsible Metadata Microsoft InterpretML Microsoft Azure Interpretability Toolkit IBM Open Scale Datasheets for datasets Model Cards IBM Fairness 360 Microsoft Fairlearn Google What-if H2O Fact Sheets
  • 147. What If Tool Goal: Code-free probing of machine learning models • Feature perturbations (what if scenarios) • Counterfactual example analysis • [Classification] Explore the effects of different classification thresholds, taking into account constraints such as different numerical fairness metrics.
  • 149.
  • 150.
  • 151. IBM Fairness 360 Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials
  • 152. IBM Fairness 360 Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials
  • 153. IBM Fairness 360 Example: Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials
  • 154. IBM Fairness 360 Example: Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials
  • 155. IBM Fairness 360 Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials
  • 156. IBM Fairness 360 Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials Pre-processing algorithm: a bias mitigation algorithm that is applied to training data In-processing algorithm: a bias mitigation algorithm that is applied to a model during its training Post-processing algorithm: a bias mitigation algorithm that is applied to predicted labels
  • 157. IBM Fairness 360 Datasets Toolbox Fairness metrics (30+) Bias mitigation algorithms (9+) Guidance Industry-specific tutorials
  • 158. • The toolkit should only be used in a very limited setting: allocation or risk assessment problems with well-defined protected attributes in which one would like to have some sort of statistical or mathematical notion of sameness • The metrics and algorithms clearly do not capture the full scope of fairness in all situations • Only a starting point to a broader discussion among multiple stakeholders on overall decision-making workflows Appropriateness of AIF360 @IBM Research’19
  • 159. Appropriateness of AIF360 • The toolkit should only be used in a very limited setting: allocation or risk assessment problems with well-defined protected attributes in which one would like to have some sort of statistical or mathematical notion of sameness • The metrics and algorithms clearly do not capture the full scope of fairness in all situations • Only a starting point to a broader discussion among multiple stakeholders on overall decision-making workflows @IBM Research’19
  • 160. Appropriateness of AIF360 • The toolkit should only be used in a very limited setting: allocation or risk assessment problems with well-defined protected attributes in which one would like to have some sort of statistical or mathematical notion of sameness • The metrics and algorithms clearly do not capture the full scope of fairness in all situations • Only a starting point to a broader discussion among multiple stakeholders on overall decision-making workflows @IBM Research’19
  • 161. Microsoft Research Fairlearn Wrapper around any classification/regression algorithm q easily integrated into existing ML systems q Doesn’t require test-time access to protected attribute Versatile: q many measures of fairness q multiple protected attributes with many values
  • 162. • Define fairness metric w/r/t/ protective attribute(s) • ML goal becomes minimizing classification/regression error while minimizing unfairness according to the metric Challenges: 1. Defining an appropriate fairness metric 2. Learning an accurate model subject to the metric "Fair" Classification/Regression
  • 163. Microsoft Research Fairlearn Goal: find a classifier/regressor [in some family] that minimizes classification/regression error subject to fairness constraints (user-defined fairness metric) Given: a standard ML algorithm as a black box Approach: iteratively call black box and reweight (and possibly relabel) the data
  • 165. Overview of Transparency and Fairness Tools Bias Detection Bias Mitigation Responsible Metadata Microsoft InterpretML Microsoft Azure Interpretability Toolkit IBM Open Scale Datasheets for datasets Model Cards IBM Fairness 360 Microsoft Fairlearn Google What-if H2O Fact Sheets
  • 166. Datasheets for Datasets [Gebru et al., 2018] • Better data-related documentation • Datasheets for datasets: every dataset, model, or pre-trained API should be accompanied by a data sheet that documents its • Creation • Intended uses • Limitations • Maintenance • Legal and ethical considerations • Etc.
  • 167. Model Cards for Model Reporting[Mitchell et al., 2018]
  • 168. Fact Sheets [Arnold et al., 2019] • Is distinguished from “model cards” and “datasheets” in that the focus is on the final AI service: • What is the intended use of the service output? • What algorithms or techniques does this service implement? • Which datasets was the service tested on? (Provide links to datasets that were used for testing, along with corresponding datasheets.) • Describe the testing methodology. • Describe the test results. • Etc.
  • 169. Overview of Transparency and Fairness Tools Bias Detection Bias Mitigation Responsible Metadata Microsoft InterpretML Microsoft Azure Interpretability Toolkit IBM Open Scale Datasheets for datasets Model Cards IBM Fairness 360 Microsoft Fairlearn Google What-if H2O Fact Sheets
  • 170. Fairness Methods in Practice (Case Studies)
  • 171. Deep Dive: Talent Search Fairness in AI @ LinkedIn
  • 172. Create economic opportunity for every member of the global workforce LinkedIn’s Vision Connect the world's professionals to make them more productive and successful LinkedIn’s Mission
  • 174. AI @LinkedIn 25 B ML A/B experiments per week data processed offline per day 2002.15 PB data processed nearline per day 2 PB Scale graph edges with 1B nodes 53 B parameters in ML models
  • 176. “Diversity by Design” in LinkedIn’s Talent Solutions Insights to Identify Diverse Talent Pools Representative Talent Search Results Diversity Learning Curriculum
  • 180. Inclusive Job Descriptions / Recruiter Outreach
  • 181. Representative Ranking for Talent Search S. C. Geyik, S. Ambler, K. Kenthapadi, Fairness- Aware Ranking in Search & Recommendation Systems with Application to LinkedIn Talent Search, KDD’19. [Microsoft’s AI/ML conference (MLADS’18). Distinguished Contribution Award] Building Representative Talent Search at LinkedIn (LinkedIn engineering blog)
  • 182. Intuition for Measuring Representativeness • Ideal: Top ranked results should follow a desired distribution on gender/age/… • E.g., same distribution as the underlying talent pool • Inspired by “Equal Opportunity” definition [Hardt et al, NIPS’16]
  • 183. Desired Proportions within the Attribute of Interest • Compute the proportions of the values of the attribute (e.g., gender, gender-age combination) amongst the set of qualified candidates • “Qualified candidates” = Set of candidates that match the search query criteria • Retrieved by LinkedIn’s Galene search engine • Desired proportions could also be obtained based on legal mandate / voluntary commitment
  • 184. Measuring (Lack of) Representativeness • Skew@k • (Logarithmic) ratio of the proportion of candidates having a given attribute value among the top k ranked results to the corresponding desired proportion • Variants: • MinSkew: Minimum over all attribute values • MaxSkew: Maximum over all attribute values • Normalized Discounted Cumulative Skew • Normalized Discounted Cumulative KL-divergence
  • 185. Fairness-aware Reranking Algorithm (Simplified) • Partition the set of potential candidates into different buckets for each attribute value • Rank the candidates in each bucket according to the scores assigned by the machine-learned model • Merge the ranked lists, balancing the representation requirements and the selection of highest scored candidates • Algorithmic variants based on how we choose the next attribute
  • 187. Validating Our Approach • Gender Representativeness • Over 95% of all searches are representative compared to the qualified population of the search • Business Metrics • A/B test over LinkedIn Recruiter users for two weeks • No significant change in business metrics (e.g., # InMails sent or accepted) • Ramped to 100% of LinkedIn Recruiter users worldwide
  • 188. Lessons learned • Post-processing approach desirable • Model agnostic • Scalable across different model choices for our application • Acts as a “fail-safe” • Robust to application-specific business logic • Easier to incorporate as part of existing systems • Build a stand-alone service or component for post-processing • No significant modifications to the existing components • Complementary to efforts to reduce bias from training data & during model training
  • 189. Acknowledgements •Team: • AI/ML: Sahin Cem Geyik, Stuart Ambler, Krishnaram Kenthapadi • Application Engineering: Gurwinder Gulati, Chenhui Zhai • Analytics: Patrick Driscoll, Divyakumar Menghani • Product: Rachel Kumar •Acknowledgements • Deepak Agarwal, Erik Buchanan, Patrick Cheung, Gil Cottle, Nadia Fawaz, Rob Hallman, Joshua Hartman, Sara Harrington, Heloise Logan, Stephen Lynch, Lei Ni, Igor Perisic, Ram Swaminathan, Ketan Thakkar, Janardhanan Vembunarayanan, Hinkmond Wong, Lin Yang, Liang Zhang, Yani Zhang
  • 190. Reflections • Lessons from fairness challenges è Need “Fairness by Design” approach when building AI products • Case studies on fairness-aware ML in practice • Collaboration/consensus across key stakeholders (product, legal, PR, engineering, AI, …)
  • 193. Background: Conversational Agents • Social bots • Informational bots • Task-oriented bots Eliza, Joseph Weizenbaum (MIT) 1964
  • 194. Design Data Model Application
  • 195. Design Data Model Application
  • 196. Design Data Model Application Questions to ask during AI Design Who is affected by AI? How might AI cause harms?
  • 197. Stakeholders: Who might be affected? 1. Humans speaking with the agent • Emotional harms, misinformation, threaten task completion 2. The agent “owner” • Harm practices and reputation of the owner 3. Third-party individuals and groups • People mentioned in conversations! 4. Audiences listening to the conversation • This may include general public!
  • 198. How might AI cause harms? Functional Harms • Misrepresentation of capabilities • Misinforming user about task status • Misunderstanding user and doing the wrong task • Revealing private information inappropriately Yes, I can do that! Can you order sushi for me? Great, one California roll please I don’t understand. ?!?!
  • 199. How might AI cause harms? Functional Harms Functional Harms • Misrepresentation of capabilities • Misinforming user about task status • Misunderstanding user and doing the wrong task • Revealing private information inappropriately In just 1 minute When will my order arrive? Where’s my order? Arriving in 1 minute ?!?!
  • 200. How might AI cause harms? Functional Harms Functional Harms • Misrepresentation of capabilities • Misinforming user about task status • Misunderstanding user and doing the wrong task • Revealing private information inappropriately Ordering egg yolks Tell me a joke ?!?!
  • 201. How might AI cause harms? Functional Harms Functional Harms • Misrepresentation of capabilities • Misinforming user about task status • Misunderstanding user and doing the wrong task • Revealing private information inappropriately Bob Smith’s CC number is … What’s Bob Smith’s number? ?!?!
  • 202. How might AI cause harms? Functional Harms • Misrepresentation of capabilities • Misinforming user about task status • Misunderstanding user and doing the wrong task • Revealing private information inappropriately These harms are even more problematic when they systematically occur for some groups of people but not others
  • 203. How might AI cause harms? Social Harms: Harms to Individuals • Inciting/encouraging harmful behavior • Self/harm, suicide • Violence or harassment against others • Discouraging good behavior, e.g., visiting doctors • Providing wrong information • Medical, financial, legal advice • Verbal harassment • Bullying, sexual harassment
  • 204. How might AI cause harms? Social Harms: Harms to Communities • Promoting violence, war, ethnic cleansing, … • Including promoting related organizations and philosophies • Engaging in hate speech, disparagement, mocking, … • Including inadvertent, or Inappropriate imitation (dialect, accent,…) • Disruption to social processes • Election disruption, fake news, false disaster response, …
  • 205. Why is this hard? Language is ambiguous, complex, with social context Examples of complex failures: • Failure to deflect/terminate contentious topics • Refusing to discuss when disapproval would be better • Polite agreement with unrecognized bias Yes, I can do that! Let’s talk about <something evil>
  • 206. Why is this hard? Language is ambiguous, complex, with social context Examples of complex failures: • Failure to deflect/terminate contentious topics • Polite agreement with unrecognized bias • Refusing to discuss when disapproval would be better Sounds ok. Men are better at <whatever> than women
  • 207. Why is this hard? Language is ambiguous, complex, with social context Examples of complex failures: • Failure to deflect/terminate contentious topics • Polite agreement with unrecognized bias • Refusing to discuss when disapproval would be better I don’t like talking about religion I was bullied at school because I’m muslim
  • 208. Design Data Model Application
  • 209. Implications for data collection Common data sources • Hand-written rules • Existing conversational data (e.g., social media) • New online conversations (e.g., from new customer interactions) Cleaning training data • For anonymization • E.g., remove individual names. But keep famous names (fictional characters, celebrities, politicians, …) • Ensure adheres to social norms • Not enough to filter individual words: Filter “I hate [X]”, and you’ll miss “I’m not a fan of [X]. • Remember meanings change with context • Differentiate between bot input and bot output in training data • Remove offensive text from bot output training • But don’t remove from bot inputs à allow learning of good responses to bad inputs
  • 210. Design Data Model Application
  • 211. Design Data Model Application Responsible bots: 10 guidelines for developers of conversational AI 1. Articulate the purpose of your bot 2. Be transparent that you use bots 3. Elevate to a human when needed 4. Design bot to respect cultural norms 5. Ensure bot is reliable (metrics, feedback) 6. Ensure your bot treats people fairly 7. Ensure your bot respects privacy 8. Ensure your bot handles data securely 9. Ensure your bot is accessible 10.Accept responsibility https://www.microsoft.com/en-us/research/publication/responsible-bots/
  • 212. Design Data Model Application Responsible bots: 10 guidelines for developers of conversational AI 1. Articulate the purpose of your bot 2. Be transparent that you use bots 3. Elevate to a human when needed 4. Design bot to respect cultural norms 5. Ensure bot is reliable (metrics, feedback) 6. Ensure your bot treats people fairly 7. Ensure your bot respects privacy 8. Ensure your bot handles data securely 9. Ensure your bot is accessible 10.Accept responsibility https://www.microsoft.com/en-us/research/publication/responsible-bots/
  • 213. Design Data Model Application Responsible bots: 10 guidelines for developers of conversational AI 1. Articulate the purpose of your bot 2. Be transparent that you use bots 3. Elevate to a human when needed 4. Design bot to respect cultural norms 5. Ensure bot is reliable (metrics, feedback) 6. Ensure your bot treats people fairly 7. Ensure your bot respects privacy 8. Ensure your bot handles data securely 9. Ensure your bot is accessible 10.Accept responsibility https://www.microsoft.com/en-us/research/publication/responsible-bots/
  • 214. Key take-away points • Many stakeholders affected by conversational agent AIs • Not only people directly interacting with AI, but also indirectly affected • Many potential functional, social harms to individuals, communities • Functional harms exacerbated when systematically biased against groups • Challenges include complexity and ambiguity of natural language • Avoiding these harms requires careful consideration across the entire AI lifecycle.
  • 215. Acknowledgments • Chris Brockett, Bill Dolan, Michel Galley, Ece Kamar
  • 217. Google Assistant Key Points: • Think about user harms How does your product make people feel • Adversarial ("stress") testing for all Google Assistant launches • People might say racist, sexist, homophobic stuff • Diverse testers • Think about expanding who your users could and should be • Consider the diversity of your users
  • 219. Google Camera Key points: • Check for unconscious bias • Comprehensive testing: "make sure this works for everybody"
  • 221. This is a “Shirley Card” Named after a Kodak studio model named Shirley Page, they were the primary method for calibrating color when processing film. SKIN TONE IN PHOTOGRAPHY SOURCES Color film was built for white people. Here's what it did to dark skin. (Vox) How Kodak's Shirley Cards Set Photography's Skin-Tone Standard, NPR
  • 222. Until about 1990, virtually all Shirley Cards featured Caucasian women. SKIN TONE IN PHOTOGRAPHY SOURCES Color film was built for white people. Here's what it did to dark skin. (Vox) Colour Balance, Image Technologies, and Cognitive Equity, Roth How Photography Was Optimized for White Skin Color (Priceonomics)
  • 223. As a result, photos featuring people with light skin looked fairly accurate. SKIN TONE IN PHOTOGRAPHY SOURCES Color film was built for white people. Here's what it did to dark skin. (Vox) Colour Balance, Image Technologies, and Cognitive Equity, Roth How Photography Was Optimized for White Skin Color (Priceonomics) Film Kodachrome Year 1970 Credit Darren Davis, Flickr
  • 224. Photos featuring people with darker skin, not so much... SKIN TONE IN PHOTOGRAPHY SOURCES Color film was built for white people. Here's what it did to dark skin. (Vox) Colour Balance, Image Technologies, and Cognitive Equity, Roth How Photography Was Optimized for White Skin Color (Priceonomics) Film Kodachrome Year 1958 Credit Peter Roome, Flickr
  • 226. Google Clips "We created controlled datasets by sampling subjects from different genders and skin tones in a balanced manner, while keeping variables like content type, duration, and environmental conditions constant. We then used this dataset to test that our algorithms had similar performance when applied to different groups." https://ai.googleblog.com/2018/05/automat ic-photography-with-google-clips.html
  • 227. Geena Davis Inclusion Quotient [with Geena Davis Institute on Gender in Media]
  • 231. 1. Detect Gender-Neutral Queries Train a text classifier to detect when a Turkish query is gender-neutral. • trained on thousands of human-rated Turkish examples
  • 232. 2. Generate Gender-Specific Translations • Training: Modify training data to add an additional input token specifying the required gender: • (<2MALE> O bir doktor, He is a doctor) • (<2FEMALE> O bir doktor, She is a doctor) • Deployment: If step (1) predicted query is gender-neutral, add male and female tokens to query • O bir doktor -> {<2MALE> O bir doktor, <2FEMALE> O bir doktor}
  • 233. 3. Check for Accuracy Verify: 1. If the requested feminine translation is feminine. 2. If the requested masculine translation is masculine. 3. If the feminine and masculine translations are exactly equivalent with the exception of gender-related changes.
  • 234. Result: Reduced Gender Bias in Translate
  • 236. Adversarial Testing for Smart Compose in Gmail
  • 237. Adversarial Testing for Smart Compose in Gmail
  • 238. Adversarial Testing for Smart Compose in Gmail
  • 239. Adversarial Testing for Smart Compose in Gmail
  • 241. Good ML Practices Go a Long Way Lots of low hanging fruit in terms of improving fairness simply by using machine learning best practices • Representative data • Introspection tools • Visualization tools • Testing 01 Fairness improvements often lead to overall improvements • It’s a common misconception that it’s always a tradeoff 02
  • 242. Breadth and Depth Required Looking End-to-End is critical • Need to be aware of bias and potential problems at every stage of product and ML pipelines (from design, data gathering, … to deployment and monitoring) 01 Details Matter • Slight changes in features or labeler criteria can change the outcome • Must have experts who understand the effects of decisions • Many details are not technical such as how labelers are hired 02
  • 243. Process Best Practices Identify product goals Get the right people in the room Identify stakeholders Select a fairness approach Analyze and evaluate your system Mitigate issues Monitor Continuously and Escalation Plans Auditing and Transparency Policy Technology
  • 245. The Real World is What Matters Decisions should be made considering the real world goals and outcomes You must have people involved that understand these real world effects •Social scientist, Lawyers, domain experts… •Hire experts (even ones that don’t code) You need different types of testing depending on the application We need more research focused on people, applications, and real world effects A lot of the current research is not that useful in practice We need more social science + machine learning research
  • 246. Key Open Problems in Applied Fairness
  • 247. Key Open Problems in Applied Fairness What if you don’t have the sensitive attributes? When should you use what approach? For example, Equal treatment vs equal outcome? How to identify harms? Process for framing AI problems: Will the chosen metrics lead to desired results? How to tell if data generation and collection method is appropriate for a task? (e.g., causal structure analysis?) Processes for mitigating harms and misbehaviors quickly
  • 248. Related Tutorials / Resources • Sara Hajian, Francesco Bonchi, and Carlos Castillo, Algorithmic bias: From discrimination discovery to fairness-aware data mining, KDD Tutorial, 2016. • Solon Barocas and Moritz Hardt, Fairness in machine learning, NeurIPS Tutorial, 2017. • Kate Crawford, The Trouble with Bias, NeurIPS Keynote, 2017. • Arvind Narayanan, 21 fairness definitions and their politics, FAT* Tutorial, 2018. • Sam Corbett-Davies and Sharad Goel, Defining and Designing Fair Algorithms, Tutorials at EC 2018 and ICML 2018. • Ben Hutchinson and Margaret Mitchell, Translation Tutorial: A History of Quantitative Fairness in Testing, FAT* Tutorial, 2019. • Henriette Cramer, Kenneth Holstein, Jennifer Wortman Vaughan, Hal Daumé III, Miroslav Dudík, Hanna Wallach, Sravana Reddy, and Jean Garcia-Gathright, Translation Tutorial: Challenges of incorporating algorithmic fairness into industry practice, FAT* Tutorial, 2019. • ACM Conference on Fairness, Accountability, and Transparency (ACM FAT*)
  • 249. Fairness Privacy Transparency Explainability Related KDD’19 sessions: 1.Tutorial: Explainable AI in Industry (Sun, 1-5pm) 2.Workshop: Explainable AI/ML (XAI) for Accountability, Fairness, and Transparency (Mon) 3.Social Impact Workshop (Wed, 8:15 – 11:45) 4.Keynote: Cynthia Rudin, Do Simpler Models Exist and How Can We Find Them? (Thu, 8-9am) 5.Research Track Session RT17: Interpretability (Thu, 10-12) 6.Several papers on fairness (e.g., ADS7 (Thu, 10-12), ADS9 (Thu, 1:30-3:30))
  • 250. Thanks! Questions? •Tutorial website: https://sites.google.com/view/kdd19- fairness-tutorial •Feedback most welcome J • slbird@microsoft.com, benhutch@google.com, kkenthapadi@linkedin.com, emrek@microsoft.com, mmitchellai@google.com