Adversarial Domain Adaptation and Adversarial Robustness Judy - - PowerPoint PPT Presentation
Adversarial Domain Adaptation and Adversarial Robustness Judy - - PowerPoint PPT Presentation
Adversarial Domain Adaptation and Adversarial Robustness Judy Hoffman + = Big Deep success data learning Benchmark Performance 100 95 Accuracy 90 85 Millions of Images 80 Deep models 75 Challenge to recognize 1000
success Big data Deep learning
+ =
Accuracy
70 75 80 85 90 95 100 2010 2011 2012 2013 2014 2015 2016 2017
Benchmark Performance
Deep models
Millions of Images Challenge to recognize 1000 categories
Test Image
?
Deep Model
Dataset Bias
Test Image
?
Deep Model
Dataset Bias
Test Image
?
Deep Model
Dataset Bias
Dog is not recognized
Dataset Bias
Low resolution
Dataset Bias
Low resolution Motion Blur
Dataset Bias
Low resolution Motion Blur Pose Variety
Dataset Bias
Why not collect new annotations?
Why not collect new annotations?
Car Road Sidewalk Person Sky Vegetation Street Sign Building
Why not collect new annotations?
Car Road Sidewalk Person Sky Vegetation Street Sign Building
Expensive
($10-12 per image)
Why not collect new annotations?
Large Potential for Change
Different: Weather, City, Car
Car Road Sidewalk Person Sky Vegetation Street Sign Building
Expensive
($10-12 per image)
Why not collect new annotations?
Proprietary Private
Domain Adaptation: Train on Source Test on Target
Target Domain unlabeled or limited labels
∼ PT (XT , YT )
Source Domain lots of labeled data
∼ PS(XS, YS)
Adapt
Adversarial Domain Adaptation
Ganin & Lempinsky, ICML 2015. Tzeng*, Hoffman*, Saenko, Darrell, ICCV 2015. Tzeng, Hoffman, Saenko, Darrell. CVPR 2017.
bottle
Classifier Source Data
xs ys
Source CNN
Source feature vector
Adversarial Domain Adaptation
Target Data
Ganin & Lempinsky, ICML 2015. Tzeng*, Hoffman*, Saenko, Darrell, ICCV 2015. Tzeng, Hoffman, Saenko, Darrell. CVPR 2017.
bottle
Classifier Source Data
xs xt ys
Source CNN Target CNN
Source feature vector Target feature vector
Adversarial Domain Adaptation
Target Data
Ganin & Lempinsky, ICML 2015. Tzeng*, Hoffman*, Saenko, Darrell, ICCV 2015. Tzeng, Hoffman, Saenko, Darrell. CVPR 2017.
bottle
Classifier Source Data
xs xt ys
Minimize Discrepancy
Source CNN Target CNN
Source feature vector Target feature vector
Adversarial Domain Adaptation
Target Data
Ganin & Lempinsky, ICML 2015. Tzeng*, Hoffman*, Saenko, Darrell, ICCV 2015. Tzeng, Hoffman, Saenko, Darrell. CVPR 2017.
bottle
Classifier Source Data
xs xt ys
Minimize Discrepancy
Source CNN Target CNN
Domain Classifier Source feature vector Target feature vector
Adversarial Domain Adaptation
Target Data
Ganin & Lempinsky, ICML 2015. Tzeng*, Hoffman*, Saenko, Darrell, ICCV 2015. Tzeng, Hoffman, Saenko, Darrell. CVPR 2017.
bottle
Classifier Source Data
xs xt ys
Minimize Discrepancy
Source CNN Target CNN
Domain Classifier Adversarial Loss Source feature vector Target feature vector
Adversarial Domain Adaptation
bottle
Classifier Source Data Target Data
ys
Minimize Discrepancy
Source CNN
Domain Classifier Adversarial Loss Liu 2016. Taigman 2016. Bousmalis 2017. Liu 2017. Kim 2017. Sankaranarayanan 2018. Hoffman 2018.
CyCADA: Cycle Consistent Adversarial DA
Source Data Reconstructed Source Data Target Data Semantically Consistent Cycle Consistent
Domain Adversarial Source to Target Target to Source
Hoffman et.al. ICML 2018
Synthetic to Real Pixel Adaptation
CityScapes (Germany) Train Test GTA (synthetic)
Hoffman et.al. ICML 2018
Synthetic to Real Pixel Adaptation
Hoffman et.al. ICML 2018
Synthetic to Real Pixel Adaptation
Hoffman et.al. ICML 2018
Synthetic to Real Pixel Adaptation
Zhu*, Park*, Isola, Efros. ICCV 2017.
Synthetic to Real Pixel Adaptation
Zhu*, Park*, Isola, Efros. ICCV 2017.
CyCADA Results: CityScapes Evaluation
CityScapes Image Ground Truth Before Adaptation After Adaptation
Car Road Sidewalk Person Sky Vegetation Street Sign Building Hoffman et.al. ICML 2018
CityScapes Image Ground Truth Before Adaptation After Adaptation
Car Road Sidewalk Person Sky Vegetation Street Sign Building Hoffman et.al. ICML 2018
CyCADA Results: CityScapes Evaluation
CityScapes Image Ground Truth Before Adaptation After Adaptation
Car Road Sidewalk Person Sky Vegetation Street Sign Building Hoffman et.al. ICML 2018
CyCADA Results: CityScapes Evaluation
So Far: Adapting to Natural Shifts
Adapt
So Far: Adapting to Natural Shifts
Adapt
What about adversarial shifts?
Adversarial Examples
Goodfellow et al. ICLR 2015.
+ .007 ⇥ = x sign(rxJ(θ, x, y)) x + ✏sign(rxJ(θ, x, y)) “panda” “nematode” “gibbon” 57.7% confidence 8.2% confidence 99.3 % confidence
Visualize Perturbation Space
Visualize Perturbation Space
Training point 28 28
Visualize Perturbation Space
Training point 28 28 784 Vectorize
Visualize Perturbation Space
Training point 28 28 784 Vectorize Project onto random 2D
- rthonormal basis
Visualize Perturbation Space
Training point Sweep over a grid of perturbations 28 28 784 Vectorize Project onto random 2D
- rthonormal basis
Visualize Perturbation Space
Training point Sweep over a grid of perturbations 28 28 784 Vectorize Project onto random 2D
- rthonormal basis
Perturbed Image
Visualize Perturbation Space
Training point Sweep over a grid of perturbations 28 28 784 Vectorize Project onto random 2D
- rthonormal basis
Model Score Perturbed Image
MNIST LeNet Decisions Around Training Point
MNIST LeNet Decisions Around Training Point
Training Data Point
MNIST LeNet Decisions Around Training Point
Training Data Point
MNIST LeNet Decisions Around Training Point
Training Data Point
Non-smooth Decision Boundary
MNIST LeNet Decisions Around Training Point
Training Data Point
Non-smooth Decision Boundary Small perturbations lead to new outputs
MNIST LeNet with L2 Regularization
Smooth Decision Boundary Small perturbations lead to new outputs
MNIST LeNet with L2 Regularization
Smooth Decision Boundary Small perturbations lead to new outputs
Jacobian Regularization
bottle
Classifier
xs
ys
score vector
zs
Hoffman, Roberts, Yaida, In submission, 2019.
Jacobian Regularization
bottle
Classifier
xs
ys
score vector
zs Jc,i = ∂zc ∂xi
Input-output Jacobian matrix
Hoffman, Roberts, Yaida, In submission, 2019.
Jacobian Regularization
bottle
Classifier
xs
ys
score vector
zs Jc,i = ∂zc ∂xi
Input-output Jacobian matrix Minimize Frobenius Norm
||J||2
F
Hoffman, Roberts, Yaida, In submission, 2019.
MNIST LeNet with Jacobian Regularization
Mostly Smooth Decision Boundary Larger perturbations needed to lead to new outputs
MNIST LeNet with Jacobian Regularization
Mostly Smooth Decision Boundary Larger perturbations needed to lead to new outputs
Decision Boundary Comparison
No Regularization L2 Regularization Jacobian Regularization
Hoffman, Roberts, Yaida, In submission, 2019.
Robustness to Random Perturbations
MNIST LeNet Model
Hoffman, Roberts, Yaida, In submission, 2019.
Robustness to Adversarial Perturbations
Hoffman, Roberts, Yaida, In submission, 2019.
Next Steps
Jacobian regularizer as unsupervised adaptive loss? Adaptation to an adversarial domain?
Domain Adaptation Adversarial Robustness
Thank you
Taesung Park UC Berkeley Eric Tzeng UC Berkeley Jun-Yan Zhu MIT Dan Roberts Diffeo Phil Isola MIT Kate Saenko Boston University Trevor Darrell UC Berkeley Alyosha Efros UC Berkeley Sho Yaida FAIR
Judy Hoffman judyhoffman.io