SlideShare a Scribd company logo
Terry Taewoong Um (terry.t.um@gmail.com)
University of Waterloo
Department of Electrical & Computer Engineering
Terry T. Um
UNDERSTANDING BLACK-BOX PRED
-ICTION VIA INFLUENCE FUNCTIONS
1
TODAY’S PAPER
Terry Taewoong Um (terry.t.um@gmail.com)
ICML2017 best paper
https://youtu.be/0w9fLX_T6tY
QUESTIONS
Terry Taewoong Um (terry.t.um@gmail.com)
• How can we explain the predictions of a black-box model?
• Why did the system make this prediction?
• How can we explain where the model came from?
• What would happen if the values of a training point where
slightly changed?
INTERPRETATION OF DL RESULTS
Terry Taewoong Um (terry.t.um@gmail.com)
• Retrieving images that maximally activate a neuron [Girshick et al. 2014]
• Finding the most influential part from the image [Zhou et al. 2016]
• Learning a simpler model around a test point [Ribeiro et al. 2016]
But, they assumed a
fixed model
 My NN is a function
of training inputs
INFLUENCE OF A TRAINING POINT
Terry Taewoong Um (terry.t.um@gmail.com)
• What is the influence of a training example for
the model (or for the loss of a test example)?
Optimal model param. :
Model param. by training w/o z :
Model param. by upweighting z :
without z == (𝜖 = −
1
𝑛
)
• The influence of upweighting z on the parameters 𝜃
INFLUENCE OF A TRAINING POINT
• Influence vs. Euclidean distance
INFLUENCE OF A TRAINING POINT
Terry Taewoong Um (terry.t.um@gmail.com)
• The influence of upweighting z on the parameters 𝜃
• The influence of upweighting z on the loss at a test point
PERTURBING A TRAINING POINT
Terry Taewoong Um (terry.t.um@gmail.com)
• Move 𝜖 mass from 𝑧 to 𝑧 𝛿
• If x is continuous and 𝛿 is small
• The effect of 𝑧  𝑧 𝛿 on the loss at a test point
SUMMARY
Terry Taewoong Um (terry.t.um@gmail.com)
• The influence of 𝑧  𝑧 𝛿 on the loss at a test point
• The influence of upweighting z on the parameters 𝜃
• The influence of upweighting z on the loss at a test point
EXAMPLE
Terry Taewoong Um (terry.t.um@gmail.com)
• The influence of upweighting z
• In logistic regression,
• Test : 7, Train : 7 (green), 1 (red)
SEVERAL PROBLEMS
Terry Taewoong Um (terry.t.um@gmail.com)
• Calculation of
 Use Hessian-vector products (HVPs)

precompute 𝑠𝑡𝑒𝑠𝑡 by optimizing
or sampling-based approximation
SEVERAL PROBLEMS
Terry Taewoong Um (terry.t.um@gmail.com)
• What if is non-convex, so H < 0
 Assuming that is a local minimum point, define a quadratic loss
Then calculate using the above
 empirically working!
• Influence function vs. retraining
SEVERAL PROBLEMS
Terry Taewoong Um (terry.t.um@gmail.com)
• What if is non-differentiable?
e.g.) hinge loss
 Use a differentiable variation of the hinge loss
APPLICATIONS
Terry Taewoong Um (terry.t.um@gmail.com)
• Understanding model behavior
APPLICATIONS
Terry Taewoong Um (terry.t.um@gmail.com)
• Adversarial examples
c.f.) The effect of 𝑧  𝑧 𝛿 on the loss at a test point
APPLICATIONS
Terry Taewoong Um (terry.t.um@gmail.com)
• Debugging domain mismatch
APPLICATIONS
Terry Taewoong Um (terry.t.um@gmail.com)
• Fixing mislabeled examples

More Related Content

PPTX
기계학습(Machine learning) 입문하기
PPTX
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynami...
PDF
Lie Group Formulation for Robot Mechanics
PDF
Introduction to Machine Learning and Deep Learning
PDF
Deformable Convolutional Network (2017)
PPTX
Learning with side information through modality hallucination (2016)
PPTX
Human Motion Forecasting (Generation) with RNNs
PPTX
About Two Motion Planning Papers
기계학습(Machine learning) 입문하기
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynami...
Lie Group Formulation for Robot Mechanics
Introduction to Machine Learning and Deep Learning
Deformable Convolutional Network (2017)
Learning with side information through modality hallucination (2016)
Human Motion Forecasting (Generation) with RNNs
About Two Motion Planning Papers

What's hot (7)

PPTX
Deep Variational Bayes Filters (2017)
PPTX
Introduction to Deep Learning with TensorFlow
PDF
On Calibration of Modern Neural Networks (2017)
PDF
Novel Machine Learning Methods for Extraction of Features Characterizing Data...
PDF
Higher Order Fused Regularization for Supervised Learning with Grouped Parame...
PPTX
Joint contrastive learning with infinite possibilities
PDF
A Reinforcement Learning Approach for Hybrid Flexible Flowline Scheduling Pro...
Deep Variational Bayes Filters (2017)
Introduction to Deep Learning with TensorFlow
On Calibration of Modern Neural Networks (2017)
Novel Machine Learning Methods for Extraction of Features Characterizing Data...
Higher Order Fused Regularization for Supervised Learning with Grouped Parame...
Joint contrastive learning with infinite possibilities
A Reinforcement Learning Approach for Hybrid Flexible Flowline Scheduling Pro...
Ad

Viewers also liked (20)

PPTX
Lie Group Formulation for Robot Mechanics
PPTX
기계학습 / 딥러닝이란 무엇인가
PDF
[모두의연구소] 쫄지말자딥러닝
PPTX
인공 신경망 구현에 관한 간단한 설명
PPTX
R 프로그래밍 기본 문법
PPTX
머신 러닝 입문 #1-머신러닝 소개와 kNN 소개
PPTX
쫄지말자딥러닝2 - CNN RNN 포함버전
PPTX
인공지능, 기계학습 그리고 딥러닝
PDF
Large Scale Deep Learning with TensorFlow
PDF
U2 product For Wiseeco
PDF
GStreamer-VAAPI: Hardware-accelerated encoding and decoding on Intel hardware...
PDF
Global mobile market report
PDF
알파고 (바둑 인공지능)의 작동 원리
PPTX
Docker 로 Linux 없이 Linux 환경에서 개발하기
PDF
Pure Function and Honest Design
PDF
Pitfalls of Object Oriented Programming by SONY
PDF
2017 k8s and OpenStack-Helm
PPTX
1, 빅데이터 시대의 인공지능 문동선 v2
PDF
클라우드 네트워킹과 SDN 그리고 OpenStack
PDF
java 8 람다식 소개와 의미 고찰
Lie Group Formulation for Robot Mechanics
기계학습 / 딥러닝이란 무엇인가
[모두의연구소] 쫄지말자딥러닝
인공 신경망 구현에 관한 간단한 설명
R 프로그래밍 기본 문법
머신 러닝 입문 #1-머신러닝 소개와 kNN 소개
쫄지말자딥러닝2 - CNN RNN 포함버전
인공지능, 기계학습 그리고 딥러닝
Large Scale Deep Learning with TensorFlow
U2 product For Wiseeco
GStreamer-VAAPI: Hardware-accelerated encoding and decoding on Intel hardware...
Global mobile market report
알파고 (바둑 인공지능)의 작동 원리
Docker 로 Linux 없이 Linux 환경에서 개발하기
Pure Function and Honest Design
Pitfalls of Object Oriented Programming by SONY
2017 k8s and OpenStack-Helm
1, 빅데이터 시대의 인공지능 문동선 v2
클라우드 네트워킹과 SDN 그리고 OpenStack
java 8 람다식 소개와 의미 고찰
Ad

More from Terry Taewoong Um (7)

PDF
AI연구자가 뷰티테크 창업하여 실패하며 배운 7가지 레슨들 // 7 lessons an AI researcher learned fr...
PDF
#44. KAIST에서 "대학 유죄"를 외치다: ART Lab의 도전
PDF
A brief introduction to OCR (Optical character recognition)
PDF
인공지능의 사회정의의 편이 될 수 있을까? (인공지능과 법)
PDF
Deep learning (Machine learning) tutorial for beginners
PPTX
Deep Learning: A Critical Appraisal (2018)
PDF
로봇과 인공지능, 그리고 미래의 노동
AI연구자가 뷰티테크 창업하여 실패하며 배운 7가지 레슨들 // 7 lessons an AI researcher learned fr...
#44. KAIST에서 "대학 유죄"를 외치다: ART Lab의 도전
A brief introduction to OCR (Optical character recognition)
인공지능의 사회정의의 편이 될 수 있을까? (인공지능과 법)
Deep learning (Machine learning) tutorial for beginners
Deep Learning: A Critical Appraisal (2018)
로봇과 인공지능, 그리고 미래의 노동

Recently uploaded (20)

PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Construction Project Organization Group 2.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
web development for engineering and engineering
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
R24 SURVEYING LAB MANUAL for civil enggi
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Internet of Things (IOT) - A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
additive manufacturing of ss316l using mig welding
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Construction Project Organization Group 2.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
web development for engineering and engineering
UNIT-1 - COAL BASED THERMAL POWER PLANTS
UNIT 4 Total Quality Management .pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Lecture Notes Electrical Wiring System Components
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
CH1 Production IntroductoryConcepts.pptx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf

Understanding Black-box Predictions via Influence Functions (2017)

  • 1. Terry Taewoong Um (terry.t.um@gmail.com) University of Waterloo Department of Electrical & Computer Engineering Terry T. Um UNDERSTANDING BLACK-BOX PRED -ICTION VIA INFLUENCE FUNCTIONS 1
  • 2. TODAY’S PAPER Terry Taewoong Um (terry.t.um@gmail.com) ICML2017 best paper https://youtu.be/0w9fLX_T6tY
  • 3. QUESTIONS Terry Taewoong Um (terry.t.um@gmail.com) • How can we explain the predictions of a black-box model? • Why did the system make this prediction? • How can we explain where the model came from? • What would happen if the values of a training point where slightly changed?
  • 4. INTERPRETATION OF DL RESULTS Terry Taewoong Um (terry.t.um@gmail.com) • Retrieving images that maximally activate a neuron [Girshick et al. 2014] • Finding the most influential part from the image [Zhou et al. 2016] • Learning a simpler model around a test point [Ribeiro et al. 2016] But, they assumed a fixed model  My NN is a function of training inputs
  • 5. INFLUENCE OF A TRAINING POINT Terry Taewoong Um (terry.t.um@gmail.com) • What is the influence of a training example for the model (or for the loss of a test example)? Optimal model param. : Model param. by training w/o z : Model param. by upweighting z : without z == (𝜖 = − 1 𝑛 ) • The influence of upweighting z on the parameters 𝜃
  • 6. INFLUENCE OF A TRAINING POINT • Influence vs. Euclidean distance
  • 7. INFLUENCE OF A TRAINING POINT Terry Taewoong Um (terry.t.um@gmail.com) • The influence of upweighting z on the parameters 𝜃 • The influence of upweighting z on the loss at a test point
  • 8. PERTURBING A TRAINING POINT Terry Taewoong Um (terry.t.um@gmail.com) • Move 𝜖 mass from 𝑧 to 𝑧 𝛿 • If x is continuous and 𝛿 is small • The effect of 𝑧  𝑧 𝛿 on the loss at a test point
  • 9. SUMMARY Terry Taewoong Um (terry.t.um@gmail.com) • The influence of 𝑧  𝑧 𝛿 on the loss at a test point • The influence of upweighting z on the parameters 𝜃 • The influence of upweighting z on the loss at a test point
  • 10. EXAMPLE Terry Taewoong Um (terry.t.um@gmail.com) • The influence of upweighting z • In logistic regression, • Test : 7, Train : 7 (green), 1 (red)
  • 11. SEVERAL PROBLEMS Terry Taewoong Um (terry.t.um@gmail.com) • Calculation of  Use Hessian-vector products (HVPs)  precompute 𝑠𝑡𝑒𝑠𝑡 by optimizing or sampling-based approximation
  • 12. SEVERAL PROBLEMS Terry Taewoong Um (terry.t.um@gmail.com) • What if is non-convex, so H < 0  Assuming that is a local minimum point, define a quadratic loss Then calculate using the above  empirically working! • Influence function vs. retraining
  • 13. SEVERAL PROBLEMS Terry Taewoong Um (terry.t.um@gmail.com) • What if is non-differentiable? e.g.) hinge loss  Use a differentiable variation of the hinge loss
  • 14. APPLICATIONS Terry Taewoong Um (terry.t.um@gmail.com) • Understanding model behavior
  • 15. APPLICATIONS Terry Taewoong Um (terry.t.um@gmail.com) • Adversarial examples c.f.) The effect of 𝑧  𝑧 𝛿 on the loss at a test point
  • 16. APPLICATIONS Terry Taewoong Um (terry.t.um@gmail.com) • Debugging domain mismatch
  • 17. APPLICATIONS Terry Taewoong Um (terry.t.um@gmail.com) • Fixing mislabeled examples