detach and adapt learning cross-domain disentangled deep...

35
Detach and Adapt: Learning Cross-Domain Disentangled Deep Representation for Image Synthesis and Classification * Tzu-Chien Fu 1 , * Yen-Cheng Liu 2 , Wei-Chen Chiu 1,3 , and Y.-C. Frank Wang 1,2 1 Research Center for IT Innovation, Academia Sinica 2 Dept. EE, National Taiwan University 3 Dept. CS, National Chiao Tung University (* indicates equal contributions)

Upload: others

Post on 01-Aug-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Detach and Adapt:Learning Cross-Domain Disentangled Deep Representation

for Image Synthesis and Classification

*Tzu-Chien Fu1, *Yen-Cheng Liu2, Wei-Chen Chiu1,3, and Y.-C. Frank Wang1,2

1Research Center for IT Innovation, Academia Sinica2Dept. EE, National Taiwan University

3Dept. CS, National Chiao Tung University

(* indicates equal contributions)

Page 2: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

(Traditional) Machine Learning vs. Transfer Learning

• Transfer Learning• Collecting/annotating data is typically expensive.• Improved learning & understanding in the target domain by leveraging

knowledge from the source domain

2

Page 3: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Research Focuses

• Transfer Learning for• Homogeneous/heterogeneous domain adaptation• Multi-label classification / zero-shot learning• Robust face recognition (e.g., cross-resolution, cross-modality, etc.)

3

Page 4: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Heterogeneous Domain Adaptation

• Deep Transfer Learning for Cross-Domain Data Classification• Learning from source & target-domain data described by distinct types of features

4

Page 5: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Heterogeneous Domain Adaptation (cont’d)

• Transfer Neural Trees (TNT)• Joint learning of cross-domain mapping FS/FT & cl. layer G (deep neural decision forest)• Propose stochastic pruning for G to avoid overfitting source-domain labeled data• Unique embedding loss for learning target-domain data in a semi-supervised setting

5Y.-C. F. Wang et al., "Transfer Neural Trees for Heterogeneous Domain Adaptation,” ECCV, 2016.

Source-domainlabeled data

Target-domainlabeled data

Target-domainunlabeled data

Page 6: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Multi-Label Classification

• Predicting multiple labels w/o using annotated ground truth info (e.g., bounding box)• Learning across image and label-domain data + exploit label co-occurrences

6

Labels:PersonTableSofaChairTVLightsCarpet…

Page 7: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Multi-Label Classification (cont’d)

• Canonical Correlated AutoEncoder (C2AE) [AAAI’17]• Unique integration of autoencoder & deep canonical correlation analysis (DCCA)• Autoencoder in C2AE: label embedding + label recovery + label co-occurrence• DCCA in C2AE: joint feature & label embedding

7

Latent spacelabel space

label space

feature space

CloudsLakeOceanWaterSkySunSunset

CloudsLakeOceanWaterSkySunSunset

Y.-C. F. Wang et al., Learning Deep Latent Spaces for Multi-Label Classification, AAAI 2017

Page 8: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Research Focuses

• Transfer Learning for• Domain adaptation

• Cross-domain image synthesis/translation/classification • Multi-label classification / zero-shot learning• Robust face recognition (e.g., cross resolution, etc.)

8

Page 9: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

FaceApp

9

• Beyond putting a smile on your face• Over 10M downloads

Page 10: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

• Feature Disentanglement: • Learn a latent space which factorizes the representation z into different parts (i.e., attributes)

for describing the corresponding info (e.g., identity, pose, or expression of facial images).

Introduction

Representation

z

Latent Space

Encoder Decoder

z

1. Uninterpretable2. Entangled

zAttribute

ExpressionPose

l

Representation

Other factors

Encoder Decoder

lz

Latent Space

10

Glassesl

Page 11: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

• Unsupervised Learning• Disentangling images without observing attribute info• No guarantee in disentangling particular semantics

• Supervised Learning• With supervision of image labels, disentangle the associated factor from feature representation• Can manipulate the output image with label/attribute of interest accordingly.

• Ours: Cross-Domain Feature Disentanglement• Source-domain training data: existing annotated instances• Target-domain data: no ground truth info, to be adapted/manipulated• Can be viewed as either semi-supervised learning, or unsupervised domain adaptation

Settings for Feature Disentanglement

11

Rotation angle

Width

Page 12: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Our Goal

Source domainw/ attribute info

Target domainw/o attribute annotation

Feature Disentanglement

Unsupervised Domain Adaptation

12

• A unified framework for cross-domain feature disentanglement, with only attribute supervision from the source domain.

Page 13: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Related Works

• Feature Disentanglement• Unsupervised: InfoGAN [1]• Supervised: AC-GAN [2]

• Unsupervised Cross-Domain Image Synthesis/Translation• Image synthesis: CoGAN [3]• Image translation: UNIT [4]

[4] M.-Y. Liu, T. Breuel, and J. Kautz. Unsupervised image-to-image translation networks. arXiv, 2017.

[1] X. Chen, Y. Duan, R. Houthooft, J. Schulman, I. Sutskever, and P. Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. Advances in Neural Information Processing Systems (NIPS), 2016.

[3] M.-Y. Liu and O. Tuzel. Coupled generative adversarial networks. Advances in Neural Information Processing Systems (NIPS), 2016

[2] A. Odena, C. Olah, and J. Shlens. Conditional image synthesis with auxiliary classifier GANs. arXiv, 2016.

13

Page 14: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

No label

InfoGAN & AC-GAN (Unsup/Sup. Feature disentanglement)

InfoGAN (unsupervised)

w/ ground truth attribute labels

AC-GAN (supervised)

14

[1] X. Chen, Y. Duan, R. Houthooft, J. Schulman, I. Sutskever, and P. Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In Advances in Neural Information Processing Systems (NIPS), 2016.[2] A. Odena, C. Olah, and J. Shlens. Conditional image synthesis with auxiliary classifier GANs. arXiv preprint arXiv:1610.09585, 2016.

Page 15: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

• Synthesize pairs of corresponding images

• Enforce weight-sharing constraints in high-level layers

CoGAN (Unsupervised Cross-Domain Image Synthesis)

Unsupervised Domain AdaptationUnsupervised Cross-Domain Image Synthesis

15[3] M.-Y. Liu and O. Tuzel. Coupled generative adversarial networks. In Advances in Neural Information Processing Systems (NIPS), 2016

Page 16: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

UNIT (Unsupervised Cross-domain Image Translation)

UNIT learns translation functions of mapping an image in one domain to another without any corresponding images across domains.

16[4] M.-Y. Liu, T. Breuel, and J. Kautz. Unsupervised image-to-image translation networks. arXiv, 2017.

Page 17: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

17

Figure: Overview of our proposed method

Proposed Method - Cross-Domain Disentanglement (CDD)

Page 18: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Real / Fake�𝑋𝑋𝑧𝑧

𝑋𝑋

Generator Discriminator

Synthesize realistic images

Proposed Method - Cross-Domain Disentanglement (CDD)Generative Adversarial Network (GAN)

Synthesized images �𝑋𝑋 Real images 𝑋𝑋

18

Page 19: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Proposed MethodAuxiliaryClassifier-GAN (AC-GAN)

Real / Fake�𝑋𝑋

𝑙𝑙

𝑧𝑧

𝑋𝑋

𝑙𝑙 = 1,2, … , 𝐿𝐿Generator Discriminator

Synthesize images conditioned on disentangled factor 𝑙𝑙

Disentangle the specific factor 𝑙𝑙from the representation 𝑧𝑧

𝑙𝑙 = 1(𝑤𝑤𝑤𝑤𝑤𝑤𝑤 𝑔𝑔𝑙𝑙𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔)

𝑙𝑙 = 0(𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤𝑤 𝑔𝑔𝑙𝑙𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔𝑔)

𝑧𝑧

supervision

Synthesized images �𝑋𝑋

19

Page 20: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Real / Fake𝑋𝑋 �𝑋𝑋

𝑙𝑙

𝑧𝑧Encoder

𝑋𝑋

𝑙𝑙 = 1,2, … , 𝐿𝐿Generator Discriminator

Proposed MethodVAE + AC-GAN

𝑧𝑧

𝑙𝑙 = 0

𝑙𝑙 = 1

Translate the images conditioned on disentangled factor 𝑙𝑙

Synthesized images �𝑋𝑋Input images 𝑋𝑋

supervision

20

Page 21: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Source DomainReal / Fake

𝑋𝑋𝑆𝑆 �𝑋𝑋𝑆𝑆

𝑙𝑙𝑧𝑧

Encoder Generator Discriminator

ES EC GC GS DS DC

𝑋𝑋𝑆𝑆

𝑙𝑙 = 1,2, … , 𝐿𝐿

Proposed MethodVAE + AC-GAN

Divide the network into low-level and high-level layers.

21

Page 22: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Source DomainReal / Fake

𝑋𝑋𝑆𝑆 �𝑋𝑋𝑆𝑆

𝑙𝑙𝑧𝑧

Encoder Generator Discriminator

ES EC GC GS DS DC

𝑋𝑋𝑆𝑆

𝑙𝑙 = 1,2, … , 𝐿𝐿

Proposed MethodVAE + AC-GAN

Divide the network into low-level and high-level layers.

22

Page 23: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Joint Space

Source Domain

Target Domain

Real / Fake

𝑋𝑋𝑆𝑆 �𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇 �𝑋𝑋𝑇𝑇

𝑙𝑙𝑧𝑧

Encoder Generator Discriminator

ES

EC

ET

GC

GT

GS DS

DT

DC

𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇

𝑙𝑙 = 1,2, … , 𝐿𝐿

Proposed MethodVAE + AC-GAN for cross-domain images

Share the high-level layers of Encoder, Generator, and Discriminator23

Page 24: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Joint Space

Source Domain

Target Domain

Real / Fake

𝑋𝑋𝑆𝑆 �𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇 �𝑋𝑋𝑇𝑇

𝑙𝑙𝑧𝑧

Encoder Generator Discriminator

ES

EC

ET

GC

GT

GS DS

DT

DC

𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇

𝑙𝑙 = 1,2, … , 𝐿𝐿

Proposed MethodVAE + AC-GAN for cross-domain images

No attribute supervision in the target domain. We only urge the synthesized data in target domain �𝑋𝑋𝑇𝑇 to be disentangled.

24

Page 25: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Joint Space

Source Domain

Target Domain

Real / Fake

𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇

𝑙𝑙𝑧𝑧

Encoder Generator Discriminator

ES

EC

ET

GC

GT

GS DS

DT

DC

𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇

𝑙𝑙 = 1,2, … , 𝐿𝐿

Proposed MethodVAE + AC-GAN for cross-domain images

Translate the images �𝑋𝑋𝑇𝑇→𝑆𝑆 and �𝑋𝑋𝑆𝑆→𝑇𝑇 across different domains.

�𝑋𝑋𝑇𝑇→𝑆𝑆

�𝑋𝑋𝑆𝑆→𝑇𝑇

25

Page 26: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Joint Space

Source Domain

Target Domain

Real / Fake

𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇

𝑙𝑙𝑧𝑧

Encoder Generator Discriminator

ES

EC

ET

GC

GT

GS DS

DT

DC

𝑋𝑋𝑆𝑆

𝑋𝑋𝑇𝑇

𝑙𝑙 = 1,2, … , 𝐿𝐿

Proposed MethodVAE + AC-GAN for cross-domain images

Tie the disentangled factor 𝒍𝒍 across domains with

�𝑋𝑋𝑇𝑇→𝑆𝑆

�𝑋𝑋𝑆𝑆→𝑇𝑇

26

Page 27: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Proposed MethodVAE + AC-GAN for cross-domain images

Overall objective function can be defined as:

27

Page 28: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Overall objective function can be defined as:

Proposed MethodVAE + AC-GAN for cross-domain images

29

Page 29: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Proposed MethodVAE + AC-GAN for cross-domain images

Overall objective function can be defined as:

30

Page 30: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Proposed MethodVAE + AC-GAN for cross-domain images

31

Overall objective function can be defined as:

Page 31: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Experiments• Qualitative Evaluation:

• Conditional image synthesis and translation

• Quantitative Evaluation:• Cross-domain attribute classification

• Dataset• CelebFaces Attributes dataset (CelebA)• A large-scale face dataset with 200K+ celebrity images with 40 facial annotated attributes

32

Page 32: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

ResultsS : faces w/o eyeglasses; T : faces w/ eyeglasses; l : attribute of smiling

33

Page 33: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

ResultsS : real photo of faces; T : simulated sketch of faces; l : attribute of smiling

34

Page 34: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

ResultsS : real photo of faces; T : simulated sketch of faces; l : attribute of eyeglasses

35

Page 35: Detach and Adapt Learning Cross-Domain Disentangled Deep ...aliensunmin.github.io/aii_workshop/1st/AII_(Frank_Wang).pdf · InfoGAN: Interpretable representation learning by information

Summary

• Transfer Learning for• Homogeneous/heterogeneous domain adaptation• Multi-label classification / zero-shot learning• Robust face recognition (e.g., cross-resolution, cross-modality, etc.)

• Feature Disentanglement for• Cross-domain image synthesis/translation/classification• Only label supervision from a single (source) domain is needed

36