pearl: perceptual adaptive representation learning in the...

30
Kate Saenko Trevor Darrell Judy Hoffman Eric Tzeng PEARL: Perceptual Adaptive Representation Learning in the Wild Adversarial Domain Adaptation

Upload: others

Post on 05-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Kate Saenko

Trevor Darrell

JudyHoffman

Eric Tzeng

PEARL: Perceptual Adaptive Representation Learning in the Wild

Adversarial Domain Adaptation

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Has deep learning solved AI?

pedestrian detection FAIL

https://www.youtube.com/watch?v=w2pwxv8rFkU

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

“What you saw is not what you get”

“Dataset Bias”“Domain Shift”

“Domain Adaptation”“Domain Transfer”

What your net is trained on What it’s asked to label

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Example shift: scene segmentationTrain on Cityscapes, Test on Cityscapes

road

road

people

building

building

sky

FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation, Judy Hoffman, Dequan Wang, Fisher Yu, Trevor Darrell, Arxiv 2016

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Example shift: scene segmentation

treebuilding

FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation, Judy Hoffman, Dequan Wang, Fisher Yu, Trevor Darrell, Arxiv 2016

Train on Cityscapes, Test on San Francisco

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Today: solving the domain shift problemFrom dataset to dataset

From simulated to real control

From RGB to depth

From CAD models to real images

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Background: Domain Adaptation from source to target distribution

backpack chair bike

Adapt

Source Domainlots of labeled data

bike??

Target Domainunlabeled or limited labels

?

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

fc8conv1 conv5 fc

6fc7 classification

loss

How to adapt a deep network?

backpack chair bike

Source Data

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

backpack chair bike

fc8conv1 conv5 fc

6fc7

• Applying source classifier to target domain can yield inferior performance…

classificationloss

How to adapt a deep network?

Source Data

Target Databackpack

?

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Source Data

backpack chair

Target Databackpack

?

fc8conv1 conv5 fc

6fc7

labeled target data

fc8conv1 conv5 fc

6fc7

classificationlosssh

ared

shar

ed

shar

ed

shar

ed

shar

ed

• Fine tune? …..Zero or few labels in target domain

How to adapt a deep network?

source data

bike

IDEA: align feature distributions

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Adversarial networks

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Adversarial networksP QEncoder P Reference Q

AdversaryTries to discriminate between samples from P and samples from Q

EncoderGenerates features such that their distribution P matches reference distribution Q

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Adversarial networksP

Q

Encoder P Reference Q

AdversaryTries to discriminate between samples from P and samples from Q

EncoderGenerates features such that their distribution P matches reference distribution Qfools adversary tries harder

Q

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Source Data + Labels

backpack chair bike

Unlabeled Target Data

?

Encoder

Cla

ssifi

er

Encoder classificationloss

Adversarial domain adaptation

can be shared

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Source Data + Labels

backpack chair bike

Unlabeled Target Data

?

Encoder

Cla

ssifi

er

Encoder classificationloss

Adversarial domain adaptation

Discriminator Adversarial loss

can be shared

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Source Data + Labels

backpack chair bike

Unlabeled Target Data

?

Encoder

Cla

ssifi

er

Encoder classificationloss

Adversarial domain adaptation

Discriminator Adversarial loss

can be shared

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Source Data + Labels

backpack chair bike

Unlabeled Target Data

?

Encoder

Cla

ssifi

er

Encoder classificationloss

Design choices in adversarial adaptation

Discriminator Adversarial loss

Which loss?Shared or not?Generative ordiscriminative?

“confusion”

[13] Ming-Yu Liu and Oncel Tuzel. Coupled generative adversarial networks, NIPS 2016

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Deep domain confusionTrain a network to minimize classification loss AND confuse two domains

[Tzeng ICCV15 ]

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Deep domain confusionTrain a network to minimize classification loss AND confuse two domains

[Tzeng ICCV15 ]

source inputs

targetinputs

networkparameters(fixed)

domainclassifier(learn) domain classifier loss

domain classifier prediction

network parameters (learn)

domain confusion loss

= 𝑝𝑝(𝑦𝑦𝐷𝐷 = 1|𝑥𝑥)

(cross-entropy with uniform distribution)

domainclassifier (fixed)

iterate

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

What is a good adversarial loss function?

Minimax loss

Confusion loss

GAN loss [Goodfellow 2014]

[Tzeng 2015]

[Ganin 2015]

“stronger gradients”

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Source Data + Labels

backpack chair bike

Unlabeled Target Data

?

Encoder

Cla

ssifi

er

Encoder classificationloss

Adversarial Discriminative Domain Adaptation (ADDA)

Discriminator Adversarial loss

Which loss?Shared or not?Generative ordiscriminative?

GAN

[Tzeng CVPR17]

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Applications to different types of domain shiftFrom dataset to dataset

From simulated to real control

From RGB to depth

From CAD models to real images

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Fully Convolutional Network with Domain Confusion Loss

FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation, Judy Hoffman, Dequan Wang, Fisher Yu, Trevor Darrell, Arxiv 2016

[Hoffman 2016]

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Before domain confusion

After domain confusion

Results on Cityscapes to SF adaptation

FCNs in the Wild: Pixel-level Adversarial and Constraint-based Adaptation, Judy Hoffman, Dequan Wang, Fisher Yu, Trevor Darrell, Arxiv 2016

[Hoffman 2016]

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

ADDA: Adaptation on digits [Tzeng CVPR17]

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Office dataset: historical progress

Unsupervised adaptation in 2016/2017

7

DDC

ADDA

DDC

backpack chair bike

Adapt

Amazon domain “Robot” domain

ADDA

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Applications to different types of domain shiftFrom dataset to dataset

From simulated to real control

From RGB to depth

From CAD models to real images

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

ADDA: Adaptation on RGB-D

Train on RGB

Test on depth

[Tzeng CVPR17]

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Not covered today: simulation-to-real shiftsFrom dataset to dataset

From simulated to real control

From RGB to depth

From CAD models to real images

Kate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the WildKate Saenko, Trevor Darrell, PEARL: Perceptual Adaptive Representation Learning in the Wild

Thank youReferences• Eric Tzeng, Judy Hoffman, Trevor Darrell, Kate Saenko, Simultaneous Deep Transfer Across Domains and Tasks,

ICCV 2015• Eric Tzeng, Coline Devin, Judy Hoffman, Chelsea Finn, Pieter Abbeel, Sergey Levine, Kate Saenko, Trevor Darrell,

Adapting Deep Visuomotor Representations with Weak Pairwise Constraints, WAFR 2016• Baochen Sun, Jiashi Feng, Kate Saenko, Return of Frustratingly Easy Domain Adaptation, AAAI 2016• Baochen Sun, Kate Saenko, Deep CORAL: Correlation Alignment for Deep Domain Adaptation, TASK-CV Workshop

at ICCV 2016• Eric Tzeng, Judy Hoffman, Trevor Darrell, Kate Saenko, Adversarial Discriminative Domain Adaptation, accepted to

CVPR 2017• Synthetic to Real Adaptation with Deep Generative Correlation Alignment Networks, arxiv.org