teaching machines to learn by metaphors

71
Teaching Machines to Learn by Metaphors Omer Levy & Shaul Markovitch Technion – Israel Institute of Technology

Upload: zeki

Post on 23-Feb-2016

43 views

Category:

Documents


0 download

DESCRIPTION

Teaching Machines to Learn by Metaphors. Omer Levy & Shaul Markovitch Technion – Israel Institute of Technology. Concept Learning by Induction. Few Examples. Transfer Learning. Target (New). Source (Original). Define: Related Concept. Transfer Learning Approaches. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Teaching Machines to Learn by Metaphors

Teaching Machines to Learn by Metaphors

Omer Levy & Shaul MarkovitchTechnion – Israel Institute of Technology

Page 2: Teaching Machines to Learn by Metaphors
Page 3: Teaching Machines to Learn by Metaphors

Concept Learning by Induction

Page 4: Teaching Machines to Learn by Metaphors

Few Examples

Page 5: Teaching Machines to Learn by Metaphors

Transfer Learning

Target (New)

Source (Original)

Page 6: Teaching Machines to Learn by Metaphors

Define: Related Concept

Page 7: Teaching Machines to Learn by Metaphors

Transfer Learning Approaches

• Common Inductive Bias

• Common Instances

• Common Features

Page 8: Teaching Machines to Learn by Metaphors

Different Feature Space

Page 9: Teaching Machines to Learn by Metaphors

Example

0 2 3-3 -2

Page 10: Teaching Machines to Learn by Metaphors

Example

0 2 3-3 -2

0 4 9

Page 11: Teaching Machines to Learn by Metaphors

Example

0 2 3-3 -2

0 4 9

𝑥𝑠=𝑥𝑡2

Page 12: Teaching Machines to Learn by Metaphors

Common Inductive Bias

0 2 3-3 -2

0 4 9

Page 13: Teaching Machines to Learn by Metaphors

Common Inductive Bias

0 2 3-3 -2

0 4 9

Page 14: Teaching Machines to Learn by Metaphors

Common Instances

0 2 3-3 -2

0 4 9

Page 15: Teaching Machines to Learn by Metaphors

Common Features

23

-3-2

4 9

𝑥𝑠=𝑦𝑡2

Page 16: Teaching Machines to Learn by Metaphors

New Approach to Transfer Learning

Page 17: Teaching Machines to Learn by Metaphors

Our Solution: Metaphors

Page 18: Teaching Machines to Learn by Metaphors

Metaphors

Target (New)

Source (Original)

Page 19: Teaching Machines to Learn by Metaphors

Concept Learner

Metaphor Learner

𝜇 h𝑠

Source

Target

+/-𝑥𝑡 𝑥𝑠

Page 20: Teaching Machines to Learn by Metaphors

h𝑡 (𝑥𝑡 )=h𝑠 (𝜇 (𝑥𝑡 ))

Page 21: Teaching Machines to Learn by Metaphors

is a perfect metaphor if:

1. is label preserving

2. is distribution preserving

Page 22: Teaching Machines to Learn by Metaphors

Theorem

If is a perfect metaphor- and -

is a source hypothesis with error- then -

is a target hypothesis with error

Page 23: Teaching Machines to Learn by Metaphors

The Metaphor Theorem

If is an -perfect metaphor- and -

is a source hypothesis with error- then -

is a target hypothesis with error

Page 24: Teaching Machines to Learn by Metaphors

Redefine Transfer Learning

Given source and target datasets, find a target hypothesis such that is as small as possible.

Page 25: Teaching Machines to Learn by Metaphors

Redefine Transfer Learning

Given source and target datasets, find an -perfect metaphor such that is as small as possible.

Page 26: Teaching Machines to Learn by Metaphors

Metaphor Learning Framework

Page 27: Teaching Machines to Learn by Metaphors

h

Concept Learning Framework

Search Algorithm

Hypothesis Space

Evaluation Function

Data

Page 28: Teaching Machines to Learn by Metaphors

𝜇

Source

Target

Metaphor Learning Framework

Search Algorithm

Metaphor Space

Evaluation Function

Page 29: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

Page 30: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

1. is label preserving

2. is distribution preserving

Page 31: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

1. is label preservingEmpirical error over target dataset

2. is distribution preservingStatistical distance between and

Page 32: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

𝑆𝐷 (𝜇 (𝑥𝑡 ) ,𝑥𝑠 )

Page 33: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

𝑆𝐷 ¿

Page 34: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

𝑆𝐷 (𝜇 (𝑥𝑡− ) , 𝑥𝑠−)

Page 35: Teaching Machines to Learn by Metaphors

Metaphor Evaluation

𝑆𝐷 ¿

Page 36: Teaching Machines to Learn by Metaphors

Metaphor Spaces

Page 37: Teaching Machines to Learn by Metaphors

Metaphor Spaces

• General

• Few Degrees of Freedom

• Representation-Specific Bias

Page 38: Teaching Machines to Learn by Metaphors

Geometric Transformations

Я R

Page 39: Teaching Machines to Learn by Metaphors

Dictionary-Based Metaphors

cheese queso

Page 40: Teaching Machines to Learn by Metaphors

Linear Transformations

Page 41: Teaching Machines to Learn by Metaphors

Which metaphor space should I use?

Page 42: Teaching Machines to Learn by Metaphors

Automatic Selection of Metaphor Spaces

Which metaphor space should I use?

Page 43: Teaching Machines to Learn by Metaphors

Occam’s Razor

Automatic Selection of Metaphor Spaces

Which metaphor space should I use?

Page 44: Teaching Machines to Learn by Metaphors

Structural Risk Minimization

Occam’s Razor

Automatic Selection of Metaphor Spaces

Which metaphor space should I use?

Page 45: Teaching Machines to Learn by Metaphors

Automatic Selection of Metaphor Spaces

ℳ1

ℳ2

ℳ3

ℳ 4

Page 46: Teaching Machines to Learn by Metaphors

Automatic Selection of Metaphor Spaces

ℳ1

ℳ2

ℳ3

ℳ 4

𝜇1

𝜇2

𝜇3

𝜇4

Page 47: Teaching Machines to Learn by Metaphors

Automatic Selection of Metaphor Spaces

ℳ1

ℳ2

ℳ3

ℳ 4

𝜇1

𝜇2

𝜇3

𝜇4

60 %

9 0 %

91 %

7 0 %

Page 48: Teaching Machines to Learn by Metaphors

Empirical Evaluation

Page 49: Teaching Machines to Learn by Metaphors

Reference MethodsBaseline• Target Only• Identity Metaphor• Merge

State-of-the-Art• Frustratingly Easy Domain Adaptation

– Daumé, 2007

• MultiTask Learning– Caruana, 1997; Silver et al, 2010

• TrAdaBoost– Dai et al, 2007

Page 50: Teaching Machines to Learn by Metaphors

Digits: Negative Image

Page 51: Teaching Machines to Learn by Metaphors

Digits: Negative Image

𝜇 (𝑥𝑡 )=1−𝑥𝑡

Page 52: Teaching Machines to Learn by Metaphors

Digits: Negative Image

Page 53: Teaching Machines to Learn by Metaphors

Digits: Higher Resolution

Page 54: Teaching Machines to Learn by Metaphors

Digits: Higher Resolution

Page 55: Teaching Machines to Learn by Metaphors

Digits: Higher Resolution

Page 56: Teaching Machines to Learn by Metaphors

Wine

Page 57: Teaching Machines to Learn by Metaphors

Wine

Page 58: Teaching Machines to Learn by Metaphors

Qualitative ResultsTransfer Learning

TaskTarget

InstanceTarget Sample Size

1 2 5 10

Digits: Negative Image

Digits: Higher Resolution

Page 59: Teaching Machines to Learn by Metaphors

Discussion

Page 60: Teaching Machines to Learn by Metaphors

Recap

• Problem: Concept learning with few examples• Solution: Metaphors

Page 61: Teaching Machines to Learn by Metaphors

Recap

• Problem: Concept learning with few examples• Solution: Metaphors

• Target Source

Page 62: Teaching Machines to Learn by Metaphors

Recap

• Problem: Concept learning with few examples• Solution: Metaphors

• Target Source• Generic framework

Page 63: Teaching Machines to Learn by Metaphors

Recap

• Problem: Concept learning with few examples• Solution: Metaphors

• Target Source• Generic framework• Wide range of relations

Page 64: Teaching Machines to Learn by Metaphors

Recap

• Problem: Concept learning with few examples• Solution: Metaphors

• Target Source• Generic framework• Wide range of relations• Learn the difference

Page 65: Teaching Machines to Learn by Metaphors

What if the concepts are not related?

Page 66: Teaching Machines to Learn by Metaphors

What if the concepts are not related?

Page 67: Teaching Machines to Learn by Metaphors

Metaphors are not a measure of relatedness

Page 68: Teaching Machines to Learn by Metaphors

Metaphors are not a measure of relatedness

Metaphors explain how concepts are related

Page 69: Teaching Machines to Learn by Metaphors

Vision

Page 70: Teaching Machines to Learn by Metaphors
Page 71: Teaching Machines to Learn by Metaphors

Explaining how concepts are related since 2012.M E T A P H O R S