EXI Pratheepan
EXI Pratheepan
Data
Dr Pratheepan Yogarajah
• Nishaanthini Gnanavel
➢ (Undergraduate Final Year student at University of
Moratuwa, Sri Lanka).
• Mohan Bhandari
➢ (PhD Student, AIT, Thailand)
4 CAMPUSES
28/122
Intelligent Systems Research Centre
(ISRC)
Netflix AI
Model
Why? AI Magic?
Medical Diagnostic
Medical AI
Model
Why? AI Magic?
AI Model Understanding
Why Model Understanding?
This model is
relying on
incorrect
Input features to make
this prediction!!
Let me fix the
model
Model understanding facilitates
Model Understanding
debugging.
Predictive
Prediction = Siberian Husky
Model
Why Model Understanding?
This prediction
is biased. Race
and gender are
Defendant Details being used to
make the
prediction!!
Model Understanding
Race
Model understanding facilitates bias
Crimes detection.
Gender
Predictive
Model Prediction = Risky to Release
Why Model Understanding?
Model Understanding
I have some means
for recourse. Let
Increase
me go and work on
Loan Applicant Details salary by
my promotion and
50K + pay
Model understanding
credit card helps provide pay my bills on
time.
recoursebills
to on time
individuals who are
for next 3
adversely affected
months toby model predictions.
get a loan
Predictive
Prediction = Denied Loan
Model
Why Model Understanding?
Model Understanding This model is using
irrelevant features
Patient Data when predicting on
If gender = female,
if ID_num > 200, then sick female subpopulation. I
should not trust its
25, Female, Cold If gender = male, predictions for that
32, Male, NoModel if cold = true and cough = true,
31, Male, Cough
understanding
then sick helps assess
if and when group.
to trust model predictions when making
Predictions
decisions.
Healthy
Sick
Predictive Sick
Model .
.
Healthy
Healthy
Sick
Why Model Understanding?
Healthy
Sick
Predictive Sick
Model .
.
Healthy
Healthy
Sick
Why Model Understanding?
Utility Stakeholders
Why did
Prediction
Data
Model Why?
Predictions
How?
Interpretability Explainability
(Ante-hoc (Post-hoc
explainability) explainability)
Approaches in Explainable AI
Explainable AI
Ante-Hoc Post-Hoc
Explainability Explainability
Approach that entail baking explainability
into a model from the beginning.
Ante-Hoc Post-Hoc
Explainability Explainability
• Linear Regression Model - coefficients
• Tree-based models (decision trees, etc.)
Example of a Decision Tree
Model: Decision Tree
Splitting Attributes
Tid Refund Marital Taxable
Status Income Cheat
Training Data
Apply Model to Test Data
Test Data
Refund
Refund Marital Taxable
Yes No
Status Income Cheat
NO Marital Status 10
No Married 80K ?
Taxable Income NO
< 80K > 80K
NO YES
Apply Model to Test Data
Test Data
Refund Marital Taxable
Refund Status Income Cheat
Yes No No Married 80K ?
10
NO Marital Status
Single, Divorced Married
Taxable Income NO
< 80K > 80K
NO YES
Apply Model to Test Data
Test Data
Refund Marital Taxable
Refund Status Income Cheat
Yes No
No Married 80K ?
10
NO Marital Status
Single, Divorced Married
Taxable Income NO
< 80K > 80K
NO YES
Apply Model to Test Data
Test Data
Refund Marital Taxable
Refund Status Income Cheat
Yes No No Married 80K ?
10
NO Marital Status
Single, Divorced Married
Taxable Income NO
< 80K > 80K
NO YES
Apply Model to Test Data
Test Data
Refund Refund Marital Taxable
Yes No Status Income Cheat
No Married 80K ?
NO Marital Status 10
Taxable Income NO
Assign Cheat to “No”
< 80K > 80K
NO YES
Approaches in Explainable AI
Explainable AI
Ante-Hoc Post-Hoc
Explainability Explainability
• Linear Regression Model - coefficients
• Tree-based models – feature importance
• Rule based model
Example of a Rule Based Model
Classification
Training
Algorithms
Data
Classifier
Testing
Data Unseen Data
(Jeff, Professor, 4)
NAME RANK YEARS TENURED
T om A ssistant P rof 2 no Tenured?
M erlisa A ssociate P rof 7 no
G eorge P rofessor 5 yes Yes
Joseph A ssistant P rof 7 yes
Approaches in Explainable AI
Ante-Hoc Post-Hoc
Explainability Explainability
• Methods that explain/interpret a model but are
independent of the underlying model.
• Model is a black-box
• Post-hoc: applied after the complex black-box model
has been trained.
Ante-Hoc Post-Hoc
Explainability Explainability
Deep Learning Neural Network
Training Data
Input
(unlabeled image)
Low-level Neurons
features to respond to 1st Layer
high-level simple shapes
features
Neurons respond
to more complex 2nd Layer
structures
Neurons respond
to highly complex, nth Layer
abstract concepts
Automatic algorithm
(feature extraction and classification)
https://www.xenonstack.com/
http://fortune.com/ .
Ante-Hoc Post-Hoc
Explainability Explainability
Advantages:
• Not dependent on the underlying
model.
• Can train more complex models
such as neural nets.
• This allows for training non-linear
models and still being able to
explain them
Tradeoff between AI accuracy and
explainability
[ Cireşan et. al. 2012, Caruana et. al. 2006, Frosst et. al. 2017, Stewart 2020]
Tradeoff between AI accuracy and
explainability
[ Cireşan et. al. 2012, Caruana et. al. 2006, Frosst et. al. 2017, Stewart 2020]
Approaches in Explainable AI
Take 2: Explain pre-built models in a Ante-hoc manner
Explainer
Ante-Hoc Post-Hoc
Explainability Explainability
• Approach that allow models to
be trained normally with
explainability only being
incorporated at testing time.
• Example, SHAP, LIME, Grad-
CAM, etc.
Post-Hoc Approaches
• Nishaanthini Gnanavel
➢ (Undergraduate Final Year student at Moratuwa University,
Sri Lanka).
• Mohan Bhandari
➢ (PhD Student, AIT, Thailand)