18
Influence-directed Explanations for Machine Learning Systems Anupam Datta Professor Electrical and Computer Engineering Computer Science Carnegie Mellon University

Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Influence-directed Explanations forMachine Learning Systems

Anupam Datta

Professor

Electrical and Computer Engineering

Computer Science

Carnegie Mellon University

Page 2: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Machine Learning Systems are Opaque

CreditClassifier

User data Decisions

?

2

Why was Joe denied credit?

Page 3: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Machine Learning Systems are Opaque

CreditClassifier

User data Decisions

3

?

Why gender disparity in approvals?

Page 4: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Vision: Explainable Machine Learning Systems

• Enable humans + machines to make decisions together

• Build trust in and debug models

• Guard against societal harms, e.g. unfairness

• Comply with regulations, e.g. EU GDPR, US ECOA

• Applications: Finance, healthcare

Reveal “meaningful information about the logic” ofthe machine learnt prediction/decision model

Page 5: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Abstraction is key

Explaining property of a ML system =

identify causally influential factors +

make them human interpretable

• Causation: What are important factors causing this model property?

• Interpretation: What do these factors mean?

5

Page 6: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Quantitative Input Influence[Datta, Sen, Zick 2016]

6

How much influence do various inputs (features) have ona given classifier’s decision about individuals or groups?

Negative Factors:OccupationEducation Level

Positive Factors:Capital Gain

Age 27

Workclass Private

Education Preschool

Marital Status Married

Occupation Farming-Fishing

Relationship to household income Other Relative

Race White

Gender Male

Capital gain $41310

…..

Locally linear model

Page 7: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Key Idea | Causal Testing

Classifier(uses onlyincome)

Age

Decision

Income

7

21284463

$90K$100K$20K$10K

Replace feature with random values from thepopulation, and examine distribution over outcomes.

Page 8: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

QII for Individual Outcomes

� � � � … � � …� � � � � … � � …� � � � �

� � � � = 1 � = � � � � ] � � � � � � � � = 1 � = � � � � ]

� �

� �

Inputs: � ∈ �

Classifier

Outcome

8

Causal Intervention: Replace feature with random values from thepopulation, and examine distribution over outcomes.

Page 9: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Challenge | Joint and Marginal Influence

• Single inputs alone may have insignificant influence.

Classifier

Age

Decision

Income

Only accept old,high-incomeindividuals

9

Young

Low

Observation: Similar to votingApproach: Model influence as a cooperative game.Use game-theoretic power indices.

Page 10: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Key Idea | Marginal Influence

Aggregate marginal influences using appropriate power index (e.g.,Shapley)

Page 11: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Case study with Lending Club data

Employment LengthHome ownershipOpen accountsDTI

Page 12: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Proxy use and indirect discrimination[Datta, Fredrikson, Ko, Mardziel, Sen 2017]

12

Classifier

Protected information type:Race

• Age• Income• Zip-code• …

Credit offer?

Proxy use

1. Strong predictor(associated)

2. Causally affectsoutput(high QII)

Example models: Tree ensembles

Page 13: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Model checking for proxy use [Ko, Mardziel, Sen, Datta, Fredrikson 2018]

• ML models are probabilistic programs

• Checking for proxy use reduced to checking a reachability property via selfcomposition

• Scalability improved by order of magnitude using an abstraction technique

13

PRISM results: runtime comparison vs. our previouswork

Page 14: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Influence-directed explanations[Leino, Sen, Li, Datta, Fredrikson 2018]

14

• Identify causally influential neurons in internal layers• Give them interpretation using visualization techniques

White-box model, scalable, axiomaticallyjustified like the Shapley value

Page 15: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Why did the network classify input as sports car instead ofconvertible?

Input image Influence-directedExplanation

Uncovers high-level concepts that generalize across input instances

VGG16 ImageNet model

Page 16: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Abstraction is key

Explaining property of a ML system =

identify causally influential factors +

make them human interpretable

16

Page 17: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Vision: Explainable Machine Learning Systems

• Enable humans + machines to make decisions together

• Build trust in and debug models

• Guard against societal harms, e.g. unfairness

• Comply with regulations , e.g. EU GDPR, US ECOA

• Applications: Finance, healthcare

Reveal “meaningful information about the logic” ofthe machine learnt prediction/decision model

Page 18: Influence-directed Explanations for Machine Learning Systemsqav.cs.ox.ac.uk/FLoC/Datta.pdf · Case study with Lending Club data Employment Length Home ownership Open accounts DTI

Thanks!