Neural Module Networks
Jacob Andreas, Marcus Rohrbach, Trevor Darrell, Dan Klein
BV LC Jacob Andreas, Marcus Rohrbach, Trevor Darrell, Dan Klein - - PowerPoint PPT Presentation
Neural Module Networks BV LC Jacob Andreas, Marcus Rohrbach, Trevor Darrell, Dan Klein Visual ques>on answering What color is yellow the neck/e? 2 Visual ques>on answering Is there a red yes shape above a circle? 3
Neural Module Networks
Jacob Andreas, Marcus Rohrbach, Trevor Darrell, Dan Klein
Visual ques>on answering
What color is the neck/e? yellow
2
Visual ques>on answering
yes
3
Is there a red shape above a circle?
Neural module networks
Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
4
Neural module networks
Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
5
Neural module networks
yes Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
6
Nearest neighbors
Structured neural models
Probabilis7c formal seman7cs / predicate learning
Malinowski & Fritz 2014]
7
Represen>ng meaning
Is there a red shape above a circle?
8
Represen>ng meaning
Is there a red shape above a circle?
9
AIen>ons encode meaning
Is there a red shape above a circle?
10
AIen>on transforma>ons encode meaning
Is there a red shape above a circle?
11
Set transforma>ons encode meaning
Is there a red shape above a circle?
12
Is there a red shape above a circle?
exists and red above circle
Sentence meanings are computa>ons
13
Is there a red shape above a circle?
exists and red above circle
Sentence meanings are computa>ons
14
Composi>ons of vector func>ons are neural nets
15
Outline
yes Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
16
Outline
yes Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
17
Outline
yes Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
18
The [find] module
red
19
The [find] module
necktie
20
The [find] module
red
21
The [find] module
red
22
The [find] module
red
23
red
red
The [find] module
red
0.9
24
red
The [find] module
red
0.9
25
red
The [find] module
red
0.1
26
The [describe] module
color
red
27
The [describe] module
what
neck/e
28
The [describe] module
color
red
29
The [describe] module
color
red
. . .
30
The [describe] module
color
red
. . .
31
Outline
yes Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
32
Where do layouts come from?
Is there a red shape above a circle?
be red shape there any circle above a
33
[Reddy et al. 2016]
circle red above shape and
Learning
Is there a red shape above a circle? What color is the shape right of a circle?
circle red above exists and circle right_of color
34
yes blue
Learning
35
yes blue
Is there a red shape above a circle? What color is the shape right of a circle?
Parameter tying
circle circle
36
yes blue
Is there a red shape above a circle? What color is the shape right of a circle?
Parameter tying
circle circle
37
yes blue
Is there a red shape above a circle? What color is the shape right of a circle?
Extreme parameter tying
circle red above exists and circle right_of color square right_of shape circle above red exists and
left_of
38
Learning with fixed layouts is easy!
yes
,
W
arg max
(where every root module outputs a distribu>on over answers and W is the set of all module parameters)
39
Learning module behaviors
Module specializa>on is driven en>rely by context!
square right_of
40
Experiments
41
Experiments: VQA dataset
What is in the sheep’s ear? tag What color is the neck/e? yellow
42
[Antol et al. 2015]
Experiments: VQA dataset
50.00 53.33 56.67 60.00
55.9 57.4 58.9 59.4
Zhou (2015) Noh (2015) Yang (2015)
Ours
43
Experiments: VQA dataset
50.00 53.33 56.67 60.00
55.9 57.4 58.9 59.4
Zhou (2015) Noh (2015) Yang (2015)
Ours
44
Experiments: VQA dataset
What color is she wearing?
and color wear
white
45
Experiments: VQA Dataset
What color is she wearing?
and color wear
white
46
Experiments: VQA Dataset
sheep ear and what and
What is in the sheep’s ear? tag
47
Experiments: VQA Dataset
sheep ear and what and
What is in the sheep’s ear? tag
48
Experiments: VQA Dataset
sheep ear and what and
What is in the sheep’s ear? tag
49
Experiments: SHAPES dataset
Is a green shape above le< of a red shape? no Is there a red shape above a circle? yes
50
c.f. [Xu and Saenko, 2016]
Experiments: SHAPES dataset
51 50.00 62.50 75.00 87.50 100.00
65.3 76.5 90.6
*Zhou
Ours
*Yang
Experiments: SHAPES dataset
52
re-attend[above]
yes
attend[circle] combine[and] attend[red] measure[is]
find[red] find[circle] relate[above]
combine[and] exists
Neural module networks
yes Is there a red shape above a circle?
red exists
true
↦ ↦
above
↦
circle red above exists and
53
Neural module networks
Combines advantages of:
54
circle red above exists and
Linguis7c structure dynamically generates model structure
thank you
Download our code at hIp://github.com/jacobandreas/nmn2