Learning quantities from vision and language
Raffaella Bernardi
University of Trento
March 23, 2017
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 1 / 44
Learning quantities from vision and language Raffaella Bernardi - - PowerPoint PPT Presentation
Learning quantities from vision and language Raffaella Bernardi University of Trento March 23, 2017 Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 1 / 44 Cardinals and Quantifiers Three of the animals are dogs.
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 1 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 2 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 2 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 3 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 3 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 3 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 4 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 4 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 4 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 5 / 44
1 an approximate number estimation mechanism, acting over the
2 a quantification comparison step.
1 from raw data to abstract set representation 2 from the latter to quantifiers. Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 6 / 44
1 an approximate number estimation mechanism, acting over the
2 a quantification comparison step.
1 from raw data to abstract set representation 2 from the latter to quantifiers. Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 6 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 7 / 44
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 7 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 8 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 9 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 9 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 10 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 11 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 11 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 11 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 12 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 13 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 13 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 13 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 14 / 44
Learning quantification from images
Linear transformation
Gist
Linguistic input Nonlinear transformation Visual input
+ + + + + +
Tanh transformation Softmax transformation
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 15 / 44
Learning quantification from images
dog black
LSTM Cell LSTM Cell Visual gist 1 Visual Gist 2 Q u a n t i fi e r P r e d i c t i
Linguistic representation
+
Intermediate gist Final gist
+ Attention Layer Attention Layer
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 16 / 44
Learning quantification from images
_____ Dog Black Dog embedding : 400 Black embedding : 400 Linear transformation 400 dimensions Vgg+SVD vectors Linear transformation 300 dimensions vectors
Weighted vectors W1= S1 * V1 Concatenation of Gists Similarity vector S1 Similarity vector S2 some no few most all Weighted vectors W2 = S2 * W1 300 dimensions vectors V1 Restrictor gist Scope ∩ Restrictor gist
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 17 / 44
Learning quantification from images
dog Q u a n t i fi e r P r e d i c t i
Restrictor gist
Restrictor probabilities
Scope ∩ Restrictor gist
Restrictor SAN module
Restrictor linguistic representation black Scope linguistic representation
Scope ∩ Restrictor SAN module
Final gist
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 18 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 19 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 20 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 21 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 22 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 23 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 24 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 25 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 26 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 26 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 26 / 44
Learning quantification from images
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 26 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 27 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 28 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 29 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 30 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 31 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 32 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 33 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 34 / 44
Quantifiers vs. Cardinals
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 35 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 36 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 37 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 37 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 38 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 39 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 39 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 39 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 40 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 41 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 42 / 44
Behavioral Study
0.4 0.6 0.06 0.09 0.12 0.15 FEW accuracy
0.25 0.50 0.75 1.00 0.2 0.3 0.4 0.5 0.6 0.7 SOME accuracy
0.4 0.6 0.8 0.70 0.75 0.80 0.85 0.90 MOST accuracy
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 43 / 44
Behavioral Study
Raffaella Bernardi (University of Trento) LaVi: quantifiers March 23, 2017 44 / 44