Hostname: page-component-74656f9884-6grmk Total loading time: 0 Render date: 2026-11-06T00:00:02.120Z Has data issue: false hasContentIssue false

Learning quantification from images: A structured neural architecture

Published online by Cambridge University Press:  02 April 2018

I. SORODOC
Affiliation:
Center for Mind/Brain Sciences (CIMeC), University of Trento, Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN), Italy e-mails: ionutsorodoc@gmail.com, sandro.pezzelle@unitn.it, aurelie.herbelot@unitn.it, bernardi@disi.unitn.it
S. PEZZELLE
Affiliation:
Center for Mind/Brain Sciences (CIMeC), University of Trento, Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN), Italy e-mails: ionutsorodoc@gmail.com, sandro.pezzelle@unitn.it, aurelie.herbelot@unitn.it, bernardi@disi.unitn.it
A. HERBELOT
Affiliation:
Center for Mind/Brain Sciences (CIMeC), University of Trento, Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN), Italy e-mails: ionutsorodoc@gmail.com, sandro.pezzelle@unitn.it, aurelie.herbelot@unitn.it, bernardi@disi.unitn.it
M. DIMICCOLI
Affiliation:
University of Barcelona, Gran via de les Corts Catalanes 585, 08007 Barcelona, Spain e-mail: mdimiccoli@cvc.uab.es Computer Vision Center, Edificio O, Campus UAB, 08193 Bellaterra (Cerdanyola), Barcelona, Spain
R. BERNARDI
Affiliation:
Center for Mind/Brain Sciences (CIMeC), University of Trento, Palazzo Fedrigotti - corso Bettini 31, 38068 Rovereto (TN), Italy e-mails: ionutsorodoc@gmail.com, sandro.pezzelle@unitn.it, aurelie.herbelot@unitn.it, bernardi@disi.unitn.it Department of Information Engineering and Computer Science (DISI), University of Trento, Via Sommarive, 9 I-38123 Povo (TN), Italy
Rights & Permissions [Opens in a new window]

Abstract

Major advances have recently been made in merging language and vision representations. Most tasks considered so far have confined themselves to the processing of objects and lexicalised relations amongst objects (content words). We know, however, that humans (even pre-school children) can abstract over raw multimodal data to perform certain types of higher level reasoning, expressed in natural language by function words. A case in point is given by their ability to learn quantifiers, i.e. expressions like few, some and all. From formal semantics and cognitive linguistics, we know that quantifiers are relations over sets which, as a simplification, we can see as proportions. For instance, in most fish are red, most encodes the proportion of fish which are red fish. In this paper, we study how well current neural network strategies model such relations. We propose a task where, given an image and a query expressed by an object–property pair, the system must return a quantifier expressing which proportions of the queried object have the queried property. Our contributions are twofold. First, we show that the best performance on this task involves coupling state-of-the-art attention mechanisms with a network architecture mirroring the logical structure assigned to quantifiers by classic linguistic formalisation. Second, we introduce a new balanced dataset of image scenarios associated with quantification queries, which we hope will foster further research in this area.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2018 
Figure 0

Fig. 1. Query: ____ fish are red. Answers: (a) All, (b) Most, (c) Some, (d) Few, (e) No.2

Figure 1

Fig. 2. Generation of datapoints in the form of triplets for the Q-COCO dataset.

Figure 2

Fig. 3. Distribution of Q-COCO images against number of annotated objects. Number of annotated objects (X-axis) ranges from 6 to 22.

Figure 3

Table 1. Descriptive statistics for Q-COCO and Q-ImageNet datasets

Figure 4

Fig. 4. Distributions of datapoints with respect to their frequency with a given quantifier in Q-COCO (left) and Q-ImageNet (right).

Figure 5

Fig. 5. Generation of datapoints in the form of triplets for the Q-ImageNet dataset. Note that, for sake of clarity, we represent the scenario as made up by eight images instead of sixteen.

Figure 6

Table 2. Q-ImageNet and Q-COCO training, validation and test sets of the three experimental settings

Figure 7

Fig. 6. Graphic representation of the CNN+LSTM model.

Figure 8

Fig. 7. Graphic representation of the SAN’s attention layer.

Figure 9

Fig. 8. Graphic representation of SAN model.

Figure 10

Fig. 9. A representation of the Quantification Memory Network (QMN) model.

Figure 11

Fig. 10. Graphic representation of QSAN model.

Figure 12

Table 3. Accuracies of the various models against the Q-COCO dataset

Figure 13

Table 4. Accuracies of the various models against the Q-ImageNet dataset

Figure 14

Fig. 11. UNC Q-ImageNet. Accuracies of five best-predicting models relative to each quantifier.

Figure 15

Table 5. Confusion matrices for QSAN and SAN in UNC Q-ImageNet

Figure 16

Fig. 12. QSAN. Accuracy in UNC plotted against the ratios of target objects over restrictors. Left: ‘few’. Center: ‘some’. Right: ‘most’.