Zero-shot learning (ZSL) is useful when an artificial agent needs to recognize classes which have no associated visual data but can be represented by semantic knowledge 
. The agent is first trained with a set of seen classes, which have visual samples. Then, it needs to recognize instances from either only unseen classes (classical zero-shot learning scenario) or both seen and unseen classes (generalized zero-shot learning). To do so, it has access to visual features and to semantic class prototypes. Most (generalized) zero-shot learning works focus on the proposal of adapted loss functions[15, 49, 4, 3, 9, 5] or on the induction of visual features for unseen classes via generative approaches [54, 7, 53, 60]. Here, we use standard components for the visual part of the ZSL pipeline and instead study the influence of semantic class prototypes. Early works exploit manually created attributes [39, 56, 29] to define these prototypes. While very efficient, such attributes require a very costly annotation effort and are difficult to scale to large datasets. Different strategies were proposed to automate the creation of prototypes in order to tackle large scale ZSL. An early attempt 
exploited WordNet to extract part attributes. While interesting, this method assumes that tested datasets can be mapped to WordNet, which is often impossible. The current trend, which leverages advances in natural language processing[35, 21, 40], is to exploit standard word embeddings as semantic prototypes. These embeddings are extracted from generic large scale text collections such as Wikipedia [21, 35] or Common Crawl [6, 33]. The advantage of such methods is that prototype creation is based solely on webly supervised or unsupervised collections. However, following [59, 19], only standard embeddings extracted from generic collections were tested in ZSL.
We tackle the creation of semantic class prototypes for large scale ZSL via a method enabling to suitably leverage more adapted text collections for word embedding creation. The standard generic texts are replaced by metadata associated with photo corpora because the latter are more likely to capture relevant visual relations between words. Our method includes processing of the textual content to improve the semantic plausibility of prototypes  and exploits a source-based voting strategy to improve robustness of word co-occurrences [42, 37]. We evaluate the proposed approach for automatic building of semantic prototypes using different text collections. We also perform an ablation study to test the robustness with respect to collection size and provide a detailed error analysis. Results for a large scale collection show our approach enables consistent performance improvement compared to existing automatic prototypes. Interesting performance is also obtained for smaller datasets, where the proposed prototypes reduce the gap with manual prototypes.
Our contributions can be summarized as follows:
We focus on the understudied problem of semantic prototype design for ZSL, and propose a method to create better embeddings from noisy tags datasets.
We conduct extensive experiments and ablation studies to (1) demonstrate the effectiveness of the proposed method; (2) provide a variety of results with different embeddings which can be used for future fair comparison; (3) provide insight on the remaining challenges to close the gap between manual and unsupervised semantic prototypes.
We collect new corpora and produce state-of-the-art semantic class prototypes for large-scale ZSL which will be released to the community. The code used to generate these prototypes will also be released.111https://github.com/yannick-lc/semantic-embeddings-zsl
2 Related Work
2.0.1 Zero-shot learning.
attempts to classify samples belonging tounseen classes, for which no training samples are available. Visual samples are available during training for seen classes and both seen classes and unseen classes have “semantic” prototypes associated to them.
The first ZSL approaches were introduced a decade ago [30, 28, 38] and a strong research effort has been devoted to the topic ever since [51, 62, 49, 50, 46, 36, 58]. Several of these works relied on a triplet loss to group relevant visual sample close to the prototype in the joint space while discarding irrelevant ones [15, 4, 3, 9, 10, 5]. In the generalized zero-shot learning (GZSL) setting, performance is evaluated both on seen and unseen classes . Then, a strong bias towards recognizing seen classes appears . It is nevertheless possible to tune the hyper-parameters of a ZSL method to boost its performance in a GZSL setting . Recent generative approaches propose to learn discriminative models on unseen classes from artificial samples resulting from a generative model previously learned on seen classes [54, 7, 53, 60]. The transductive ZSL setting assumes that the unlabelled visual testing samples can be used during training [16, 26, 48, 52]. This usually boosts the performance, but we consider such a hypothesis too restrictive in practice, and this setting is out of the scope here.
2.0.2 Semantic representation.
Semantic prototypes can be created either manually or automatically. Since the former are difficult to scale, we focus on automatically created ones, that usually rely on large-scale datasets collected on the Web. The extraction of word representations from the contexts in which they appear is a longstanding topic in natural language processing (NLP). Explicit Semantic Analysis (ESA)  is an early attempt to exploit topically structured collections to derive vectorial representations of words. It proposes to represent each word by its tf-idf weights with regard to a large collection of Wikipedia entries (articles). ESA was later improved by adding a temporal aspect to it  or by the detection and use of concepts instead of unigrams . ESA and its derivates have good performance in word relatedness and text classification tasks. However, they are relatively difficult to scale because they live in the vectorial space defined by Wikipedia concepts which typically includes millions of entries.
The most influential word representation models in the past years are based on the exploitation of the local context. Compared to ESA, they have the advantage of being orders of magnitude more compact, with typical sizes in the range of hundreds of dimensions. word2vec embeddings  are learned from co-occurrences in local context window which are modeled using continuous bag-of-words and skip grams. This model usually outperforms bag-of-words [34, 6, 33]. The authors of  analyze the role of different preprocessing steps on embedding performance. They show that the combination of tricks such as removal of duplicate sentences, phrase detection to replace unigrams, use of subword information or frequent word subsampling is beneficial. One shortcoming of word embeddings as proposed in  is that they only take into account the local context of words. GloVe  was introduced as an alternative method which also includes a global component obtained via matrix factorization. The model trains efficiently only on non-zero word-word co-occurrence matrix instead of a sparse matrix or on local windows. It provides superior performance compared to continuous bag-of-words and skip gram models on a series of NLP tasks, including word analogy and similarity. The FastText model 
derives from that proposed by Mikolov but considers a set of n-grams that can compose the words, compute some embeddings then represent a word as the sum of the vector representation of its n-grams. It thus models the internal structure of the words and thus allows to compute representations of out of vocabulary words. The state of the art in a large array of natural language processing task was recently improved by the introduction of contextual models such as ELMo, GPT  or BERT . These approaches make use of deep networks and model language at sentence level instead of word level as was the case for skip grams and GloVe. While very interesting for tasks in which words are contextualized, they are not directly applicable to our ZSL scenario which requires the representation of individual words/class names.
2.0.3 Multimodal representations.
The word representation approaches presented above exploit only textual resources and there are also attempts to create multimodal word embeddings. For instance, vis-w2v  exploits synthetic scenes to learn visual relations between classes. The main challenge here is to model the diversity of natural scenes via synthetic scenes. ViCo 
exploit word co-occurrences in natural images in order to improve purely textual embeddings like GloVe. They show that visual and textual components complement each other well and provide SotA performance in tasks such as visual question answering, image retrieval or image captioning. However, ViCo is not usable in ZSL because it can only improve the representation of a word if some images of it are available. This drawback is inherent to all multimodal word representations and we thus focus on improving purely textual representations. Regarding visual features only,[22, 55]
showed that one can train convolutional networks on a dataset of unannotated images collected on the Web, and that these networks perform well in a transfer learning context.
Previous works in ZSL used embeddings to represent the semantic prototype, either at a small scale on CUB  or at a larger scale on ImageNet, using word2vec [15, 11, 32] (possibly trained on wikipedia [9, 59]) or GloVe [10, 19]. However, they only use publicly available pre-trained models, while we propose a method to design prototypes that perform better in a ZSL context.
3 Semantic Class Prototypes for Large Scale ZSL
3.0.1 Problem formulation.
The zero-shot learning (ZSL) task considers a set of seen classes used during training and a set of unseen classes that are available for the test only. In generalized zero-shot learning (GZSL), additional samples from the seen classes are used for testing as well. However, in both cases, . Each class has a semantic class prototype that characterizes it. We consider a training set with labels and visual features . The task is to learn a compatibility function assigning a similarity score to a visual sample and a class prototype . is usually obtained by minimizing a regularized loss function:
where is a regularization term weighted by which constrains the parameters of , and is a loss function. Once a function is learned, the testing phase consists in determining the label (or for GZSL) corresponding to a visual sample such that .
We propose to automatically derive semantic class prototypes with a method able to adequately leverage noisy corpora which are adapted for visual tasks instead of standard text corpora previously used in ZSL [35, 40, 6]. More specifically, a corpus must contain enough visual information to enable to learn discriminative embeddings. We therefore create two corpora, and , with this goal in mind.
3.0.2 Corpus collection.
is constituted based on Wikipedia. We select salient concepts by ranking English Wikipedia entries by their number of incoming links and keeping the top of the list. The default Flickr ranking algorithm is then used to collect up to 5000 photo metadata for each concept. Metadata fields which are exploited here include: (1) title - a free text description of the photo (2) tags - a list of tags attributed to the photo and (3) the unique identifier of the user. Note that there is no guarantee as to the relevance of textual metadata for the content of each photo since the users are free to upload any text they wish. Also, photo annotations can be made in any language. We illustrate title and tags from Flickr with the following examples:“Ísmáfur Pagophila eburnea Ivory Gull” and “minnesota flying inflight gull arctic juvenile duluth rare lakesuperior canalpark ivorygull saintlouiscounty”. The title includes the Icelandic, Latin and English variants of the name while the tags give indications about the location and activity of the ivory gull. Importantly, tags can be single words (“gull”) or concatenated ones (“ivorygull”,“lakesuperior”). This first collection is made of 62.7 million image metadata pieces and 1.11 billion words.
The collection allows to learn generic embeddings that can be used to address large scale ZSL. However, these embeddings are still quite “generic” since they are representative of the Wikipedia concepts. For a given ZSL problem, the visual samples of unseen classes are unknown during training, but the name of these classes can be known before the actual production (testing) phase. Such a hypothesis is implicitly made by most generative ZSL approaches, which synthesize faked visual samples from the prototype only [54, 7, 53, 60]. Following a similar hypothesis, we build , a custom subset of FlickR, which is built using the class names from the three ZSL used in evaluation datasets (ImageNet-ZSL, CUB and AWA). The collection process is similar to that deployed for . The only difference is that we use specific class names, which may each have several variants. This collection includes 61.9 million metadata pieces and 995 million unique words.
Each collection therefore consists in a list of concepts. For each class , we have a metadata set made of metadata pieces. Each metadata piece consists in a user ID and a list of words , where the words are extracted from titles and tags. is typically in the range of one to two dozens. Note that stop words were discarded during preprocessing.
3.0.3 Creation of embeddings.
To create text representations, a vocabulary is constituted to include all distinct words in the corpus. We similarly create a set of all distinct users IDs. The usual skip-gram task  aims to find word representations which contain predictive information regarding the words surrounding a given word. Given sequences of training words such that and a context of size , the objective is to maximize
Writing the unique word associated with the th training word and and the corresponding “input” and “output” vector representations, is computed such that
Unlike in standard text collections, such as Wikipedia, the order of words in each metadata collection is arbitrary. Consequently, using a fixed size window to capture the context of a word is not suitable. We tested the use of fixed size windows in preliminary experiments and results were suboptimal.
Instead, we form all distinct word pairs , with , for each piece of content associated to class and feed them as training examples to the word embedding algorithms. Pairs extracted from all concept-related metadata collections associated with concept are concatenated to form the training dataset of words embeddings, so that the objective becomes:
3.0.4 Addressing repetitive tags.
It is noteworthy that many users perform bulk tagging  which consists in attributing the same textual description to a whole set of photos. Users also do semi-bulk, i.e. they attribute a part of tags to an entire photo set and then complete these annotations with photo-specific tags. Bulk is known to bias language models obtained from Flickr [37, 42] and we propose a simple but efficient way to remove it in the next section. To account for the bulk tagging problem, we add an additional processing step for the two collections. The authors of  and  suggested to replace simple tag co-occurrences by the number of distinct Flickr users who associated the two words and reported interesting gains in image retrieval and automatic geotagging respectively.
We consequently select unique triplets from for each concept , so that training objective becomes
This translates into adding a pair in the training file only once for each user and thus avoiding the effect of bulk tagging. A positive side effect of filtering pairs with unique users is that the size of the training file is reduced and embeddings are learned faster. A comparison of performance obtained with raw co-occurrence and with user voting is provided in the supplementary material.
4.1 Evaluation protocol
4.1.1 Baseline methods.
To the best of our knowledge, our work is the first to explicitly address the problem of semantic class prototype design for large scale ZSL. We compare to the pre-trained embeddings (noted pt), as they are usually used in previous ZSL works [15, 19, 32]. word2vec is trained on Google News with 100 billion words, GloVe is trained on Common Crawl with 840 billion words and the same collection with 600 billion words is used for FastText.
We also propose two baseline methods, (wiki) and (clue), to which ours can be fairly compared. They consist in learning the embeddings from two different text collections. Wikipedia (wiki) is classically exploited to create embeddings because it covers a wide array of topics . wiki content is made of entries which describe unambiguous concepts with well formed sentences such as “The ivory gull is found in the Arctic, in the northernmost parts of Europe and North America.”. The encyclopedia provides good baseline models for a wide variety of tasks [35, 33, 40]. Here we exploit a dump from January 2019 which includes 20.84 billion words. It is the same data as that from which were extracted the concepts for our method. While useful to create transferable embeddings, Wikipedia text does nevertheless not specifically describe visual relations between words. The second baseline is based on visually oriented textual content similar to the one used in our method. The ClueWeb12  collection (clue) consists of over 700 million Web pages which were collected so as to cover a wide variety of topics and to avoid spam. We extracted visual metadata from the title and alt HTML attributes associated to images. The title content is quite similar to that we extracted from FlickR in our method. clue content is often made of short texts such as “ivory gull flying” which does not encode a lot of context. After sentence deduplication , the resulting collection includes 628 million unique metadata pieces and 3.69 billion words.
4.1.2 Evaluation datasets.
The generic object recognition in ZSL requires to be evaluated at a large scale and is thus usually conducted on ImageNet . Frome et al.  proposed to use the classes of ILSVRC for training and different subsets of the remaining classes to test. However, it has been recently showed that a structural bias appears in this setting which allows a “trivial model” to outperform most existing ZSL models . For this reason, we adopt the evaluation protocol proposed by Hascoet et al. that considers the same training classes as Frome et al. but uses classes with a minimal structural bias for testing .
To get insight into the gap existing between manual attributes and unsupervised embeddings, we also conduct experiments on two smaller benchmarks on which the ZSL task is usually conducted with manual attributes specific to each dataset: Caltech UCSD Birds 200-2011 (CUB)  and Animals with Attributes 2 (AwA2) . CUB is a fine-grained dataset of 11788 pictures representing 200 bird species and AWA2 a coarse-grained dataset of 37322 pictures depicting 50 animal species. The manual attributes of CUB and AwA2 are respectively 312 and 85-dimensional. In our setting, we are only concerned with semantic prototypes which can be obtained automatically; our results therefore cannot be directly compared to the state-of-the-art algorithms which exploit manual attributes. For CUB and AWA2, we adopt the experimental protocol of Xian et al.  which relies on proposed splits that avoid any overlap between the (unseen) test classes and the ImageNet classes used to pretrain visual features on ILSVRC. For ImageNet, we use the same visual features as  while for CUB and AwA2 we adopt those of .
4.1.3 ZSL methods.
Experiments are conducted with different existing ZSL methods: we provide results for DeViSE , ESZSL  and ConSE  as they are the three standard methods used in , and therefore the only methods for which comparable results are currently available. Although results for other models – namely GCN-6 , GCN-2 and ADGPM  – are also reported in , these models are based on graph-convolutional networks  which make use of additional intermediate nodes in the WordNet hierarchy. Such methods are outside the scope of this study. We additionally provide results for SynC  as well as two linear methods, consisting in a linear projection from the visual to the visual space (), and a linear projection from the semantic to the visual space () inspired by , who proposed to compute similarities in the visual space to avoid the hubness problem .
We train the models with the usual protocol for ZSL: hyperparameters are determined using a subset of training classes as validation. We sample respectively 200 and 50 such classes at random among the 1000 and 150 training classes of ImageNet and CUB, and use the 8 classes not in ILSVRC among the 40 training classes of AwA2. Since ConSE and DeViSE results depend on a random initialization of the models’ parameters, we report results averaged over 5 runs for these two models.
4.1.4 Implementation details.
Word embeddings are computed using the original implementations of word2vec , GloVe  and FastText, with the same hyperparameters (see supplementary materials). In particular, we follow the usual text processing steps they propose. Semantic prototypes for all classes are computed using the same protocol as  for fair comparison. For the same reason, we use the implementation from  to run DeViSE, ESZSL, ConSE. We use the implementation from  for SynC, and use a custom straightforward implementation for and . All semantic prototypes are -normalized except with ESZSL to have a setting similar to  when applicable. We report results without such a normalization in the supplementary materials, even though the trend is mostly the same.
4.2 Comparison to other approaches
The main results of the evaluation are reported in Table 1 for ImageNet. They confirm the relevance of our method and text collections to learn semantic prototypes for ZSL, as the best results are consistently obtained with our prototypes. Specifically, for ImageNet, the best result reported on the unbiased split in  is 14.1 with ADGPM, and 13.5 with a “traditional” ZSL model (not making use of additional nodes in the class hierarchy), which used GloVe embeddings pretrained on Common Crawl. By contrast, our best result is 17.2 with FastText, obtained with embeddings trained on a much smaller dataset. We also provide results for CUB and AwA2 in Table 2. These results are less relevant since manual attributes exist for these smaller scale datasets, but still provide interesting insights. Importantly, these results are obtained using unsupervised prototypes and should not be directly compared to results obtained with manual attributes. On CUB, the best results are obtained with the embeddings learned on the collection for the three configurations and significantly outperform previous embeddings. Interestingly, there does not seem to be a clear tendancy on AwA2. It turns out that performance obtainable with unsupervised prototypes on AwA2 is already quite close to performance with manual attributes – see Sec. 4.4. Our method is therefore unable to provide a significant improvement, unlike on the other two datasets.
Within each embeddings methods for all three datasets, the best results are usually obtained with and usually performs better than baseline methods. The gain is especially large when compared to the largest available pretrained models for word2vec and FastText. This result is obtained although the largest collections used to create pretrained embeddings are 2 to 3 orders of magnitude larger than the collections we use. For GloVe on ImageNet, the model pretrained on Common Crawl has the best performance. This embedding has poor behavior for all smaller scale datasets, indicating that the combination of local and global contexts at its core is able to capture interesting information at large scale. While its performance on the smaller pretrained dataset is significantly lower than that of FastText, the two models are nearly equivalent when trained on Common Crawl. A similar finding was reported for text classification tasks . The strong performance of follows intuition since the collection was specifically built to cover the concepts which appear in the three test dataset. This finding confirms the usefulness of smaller but adapted collections for NLP applications such as medical entity recognition 23]. Note that we also combined and to obtain a more generic Flickr model. The obtained results were only marginally better compared to the single use of and are reported in the supplementary material.
We note that FastText and word2vec are better than GloVe for ImageNet and CUB, the two largest datasets with respect to number of classes. Overall, the best performance is usually obtained with and FastText embeddings.
4.3 Influence of text collection size
The quality of semantic embeddings is influenced by the size of the text collections used to learn them. Existing comparisons are usually done among different collections [35, 40, 6]. While interesting, these comparisons do not provide direct information about the robustness of each collection. To test robustness, we ablate 50%, 75% and 90% of and wiki collections and report results for ImageNet using FastText embeddings in Table 3. Performance is as expected correlated to the collection size, with the best results being obtained for full text collections and the worst when 90% of them is removed. Interestingly, the performance drop is not drastic for either of the collection. For instance, with only 10% of the initial collections, accuracy drops from 12.5 to 10.4 for (16.8% relative drop) and from 17.7 to 15.6 for (11.8% relative drop). The relative drop is smaller for compared to wiki; this indicates that a collection which is adapted for the task is more robust to changes in the quantity of available data.
4.4 Comparison to manual attributes
Although our webly semantic prototypes enable to achieve much better results than with previously available prototypes extracted from text corpora, it is still interesting to compare them to what can be achieved with hand-crafted attributes. Such attributes do not exist for very large scale datasets such as ImageNet, but they are provided with smaller scale datasets such as CUB and AwA2.
To quantify how much better hand-crafted prototypes perform when compared to webly supervised prototypes, we conducted an ablation study on CUB attributes similar to Sec. 4.3. We started with the full list of attributes, initially comprising 312 attributes for each bird species, and randomly removed attributes while measuring the resulting ZSL score. The scores where obtained with the model due to its good results, robustness and simplicity. To account for the noise caused by to the randomness of the removed attributes, each reported score is the average of 10 measurements, each with different random attributes removed. The remaining attributes are -normalized, and the hyper-parameter is re-selected by cross-validation for each run. Fig. 1 provides a visualization of the result; a table with the exact scores is available in the supplementary materials.
On CUB, there is still a substantial margin for improvement; even though our method enables a significant increase over other methods, it is still barely above results achievable by selecting only 20 attributes among the 312 initial attributes. Interestingly, the difference between webly supervised and hand-crafted prototypes is not so pronounced on the AwA2 dataset; the ZSL accuracy between the two settings is even surprisingly close. This may be explained by the fact that AwA2 only contains 10 test classes; class prototypes need not enable a ZSL model to subtly distinguish very similar classes. Consequently, our best result is comparable to the best result enabled by previous methods.
4.5 Error analysis
We analyze how far incorrect predictions are from the correct class by computing the distance between the predicted class and the correct class. We define the distance between two classes as the shortest path between them in the WordNet hierarchy. For a given distance , we measure the number of predictions that are exactly nodes away from the correct class – a distance of 0 being a correct prediction. Results for and are presented in Figure 2(a); the general tendency seems to be that classes farther away from the correct class are less likely to be predicted. Note that no two test classes are a distance of one from each other, since it is not possible for a test class to be a direct parent or child of another test class.
We further analyze the main factors behind classification errors. Experiments below are conducted on ImageNet, with the model trained using the FastText embeddings. Our first hypothesis was that the distance between unseen and seen classes influences classification accuracy: the less an unseen class resembles any seen class, the harder it is to identify. To test this hypothesis, we consider for each unseen class the minimal distance to a seen class , and analyze its relation to the prediction accuracy. The resulting plot is displayed in Figure 2(b). Surprisingly, the distance to the closest seen class seems to have little to no effect on the accuracy (correlation ).
Another hypothesis was that unseen classes close to other unseen classes are harder to classify than isolated unseen classes, as more confusions are possible. For each unseen class, we therefore compute the number of immediate siblings, a sibling being defined as an unseen class having the same parent in the WordNet hierarchy as the reference (unseen) class. The link between this metric and class accuracy is slightly stronger, with a correlation as illustrated in Figure 2(c), but still weak overall.
We combine these two hypotheses by considering the number of unseen classes closer than the closest seen class for each unseen class. The link with class accuracy is more pronounced than by simply considering the number of siblings, with a correlation as illustrated in Fig. 2(d). Examples of classes at both ends of the spectrum are visible in Figure 3: unseen class morel (on the left) is close to seen class agaric and has no unseen siblings; its class accuracy is . On the other hand, classes holly, teak and grevillea (on the right) have many unseen siblings and are far from any seen class; their respective accuracy are , and . More generally, classes which are descendant of the intermediate node woody plant have an average accuracy of . The full graph visualization of the 1000 training classes, 500 testing classes and intermediate nodes of the ImageNet ZSL dataset is provided in the supplementary materials.
We proposed a new method to build semantic class prototypes automatically, thus enabling to better address large scale ZSL. Our results indicate that appropriately learning embeddings on specialized collections made of photo metadata is better than exploiting generic embeddings as it was done previously in ZSL. This still stands when generic embeddings are learned with collections which are two to three orders of magnitude larger than specialized collections. Among photo metadata based collection, the use of Flickr seems preferable to that of metadata associated to photos from Web pages. This is notably an effect of a better semantic coverage of classes in Flickr compared to ClueWeb12. We will release the specialized embeddings created here, as well as the visual features and the code necessary to produce the reported results in order to facilitate reproducibility.
-  (2016) Multi-cue zero-shot learning with strong supervision. In Computer Vision and Pattern Recognition, Cited by: §2.0.3.
-  (2013) Label-embedding for attribute-based classification. In Computer Vision and Pattern Recognition, pp. 819–826. Cited by: §2.0.1.
-  (2016) Label-embedding for image classification. Pattern Analysis and Machine Intelligence 38 (7), pp. 1425–1438. Cited by: §1, §2.0.1.
-  (2015) Evaluation of output embeddings for fine-grained image classification. In Computer Vision and Pattern Recognition, pp. 2927–2936. Cited by: §1, §2.0.1.
-  (2018) Preserving semantic relations for zero-shot learning. In Computer Vision and Pattern Recognition, pp. 7603–7612. Cited by: §1, §2.0.1.
-  (2017) Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics 5, pp. 135–146. External Links: Cited by: §1, §2.0.2, §3.0.1, §3.0.4, §4.1.4, §4.3.
-  (2018) Zero-shot classification by generating artificial visual features. In RFIAP, Cited by: §1, §2.0.1, §3.0.2.
-  (2012) The lemur projectand its clueweb12 dataset. Cited by: §4.1.1.
-  (2016) Synthesized classifiers for zero-shot learning. In Computer Vision and Pattern Recognition, pp. 5327–5336. Cited by: §1, §2.0.1, §2.0.3, §4.1.3, §4.1.4.
-  (2018) Classifier and exemplar synthesis for zero-shot learning. arXiv preprint arXiv:1812.06423. Cited by: §2.0.1, §2.0.3.
-  (2016) An empirical study and analysis of generalized zero-shot learning for object recognition in the wild. In European Conference on Computer Vision, pp. 52–68. Cited by: §2.0.1, §2.0.3.
-  (2009) Imagenet: a large-scale hierarchical image database. In Computer Vision and Pattern Recognition, pp. 248–255. Cited by: §4.1.2.
-  (2019-06) BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, pp. 4171–4186. External Links: Cited by: §2.0.2.
-  (2019-07) Embedding strategies for specialized domains: application to clinical entity recognition. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: Student Research Workshop, Florence, Italy, pp. 295–30. External Links: Cited by: §4.2.
-  (2013) Devise: a deep visual-semantic embedding model. In Advances in Neural Information Processing Systems, pp. 2121–2129. Cited by: §1, §2.0.1, §2.0.3, §4.1.1, §4.1.2, §4.1.3.
-  (2015) Transductive multi-view zero-shot learning. Pattern Analysis and Machine Intelligence 37 (11), pp. 2332–2345. Cited by: §2.0.1.
-  (2007) Computing semantic relatedness using wikipedia-based explicit semantic analysis. In Proceedings of the 20th International Joint Conference on Artifical Intelligence, IJCAI’07, San Francisco, CA, USA, pp. 1606–1611. External Links: Cited by: §2.0.2, §4.1.1.
-  (2019) ViCo: word embeddings from visual co-occurrences. External Links: Cited by: §2.0.3.
-  (2019) On zero-shot recognition of generic objects. In Computer Vision and Pattern Recognition, Cited by: §0.A.2, §1, §2.0.3, §4.1.1, §4.1.2, §4.1.2, §4.1.3, §4.1.4, §4.2, Table 1.
Semantic relatedness using salient semantic analysis.
Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence, AAAI’11, pp. 884–889. External Links: Cited by: §2.0.2.
-  (2012-07) Improving word representations via global context and multiple word prototypes. In Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Jeju Island, Korea, pp. 873–882. Cited by: §1.
-  (2016) Learning visual features from large weakly supervised data. In European Conference on Computer Vision, pp. 67–84. Cited by: §2.0.3.
Domain adapted word embeddings for improved sentiment classification.
Proceedings of the Workshop on Deep Learning Approaches for Low-Resource NLP, Melbourne, pp. 51–59. External Links: Cited by: §4.2.
Rethinking knowledge graph propagation for zero-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11487–11496. Cited by: §4.1.3.
-  (2016) Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907. Cited by: §4.1.3.
-  (2015) Unsupervised domain adaptation for zero-shot learning. In International Conference on Computer Vision, pp. 2452–2460. Cited by: §2.0.1.
-  (2016-06) Visual word2vec (vis-w2v): learning visually grounded word embeddings using abstract scenes. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §2.0.3.
-  (2009) Learning to detect unseen object classes by between-class attribute transfer. In Computer Vision and Pattern Recognition, pp. 951–958. Cited by: §2.0.1, §2.0.1.
-  (2014) Attribute-based classification for zero-shot visual object categorization. Pattern Analysis and Machine Intelligence 36 (3), pp. 453–465. Cited by: §1.
-  (2008) Zero-data learning of new tasks. In AAAI Conference on Artificial Intelligence, Cited by: §2.0.1, §2.0.1.
-  (2019) From classical to generalized zero-shot learning: a simple adaptation process. In International Conference on Multimedia Modeling, pp. 465–477. Cited by: §2.0.1.
-  (2019) Modeling inter and intra-class relations in the triplet loss for zero-shot learning. In International Conference on Computer Vision, Seoul, Korea. Cited by: §2.0.3, §4.1.1.
-  (2018-05) Advances in pre-training distributed word representations. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC-2018), Miyazaki, Japan. External Links: Cited by: §1, §1, §2.0.2, §4.1.1, §4.2.
-  (2013) Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems 26, C. J. C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K. Q. Weinberger (Eds.), pp. 3111–3119. Cited by: §2.0.2.
-  (2013) Distributed representations of words and phrases and their compositionality. In Advances in Neural Information Processing Systems, pp. 3111–3119. Cited by: §0.A.1, §1, §3.0.1, §3.0.3, §3.0.4, §4.1.1, §4.1.4, §4.3.
-  (2014) Zero-shot learning by convex combination of semantic embeddings. In International Conference on Learning Representations, Cited by: §2.0.1, §4.1.3.
-  (2013-02-01) Modeling locations with social media. Information Retrieval 16 (1), pp. 30–62. Cited by: §1, §3.0.4.
-  (2009) Zero-shot learning with semantic output codes. In Advances in Neural Information Processing Systems, pp. 1410–1418. Cited by: §2.0.1, §2.0.1.
-  (2012) Sun attribute database: discovering, annotating, and recognizing scene attributes. In Computer Vision and Pattern Recognition, pp. 2751–2758. Cited by: §1.
-  (2014-10) Glove: global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, pp. 1532–1543. External Links: Cited by: §1, §2.0.2, §3.0.1, §3.0.4, §4.1.1, §4.1.4, §4.3.
-  (2018-06) Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), New Orleans, Louisiana, pp. 2227–2237. External Links: Cited by: §2.0.2.
-  (2011) Social media driven image retrieval. In Proceedings of the 1st ACM International Conference on Multimedia Retrieval, ICMR ’11, New York, NY, USA, pp. 33:1–33:8. External Links: Cited by: §1, §3.0.4.
-  (2018) Improving language understandingby generative pre-training. Cited by: §2.0.2.
-  (2011) A word at a time: computing word relatedness using temporal semantic analysis. In Proceedings of the 20th International Conference on World Wide Web, WWW ’11, New York, NY, USA, pp. 337–346. External Links: Cited by: §2.0.2.
Hubs in space: popular nearest neighbors in high-dimensional data.
Journal of Machine Learning Research11 (Sep), pp. 2487–2531. Cited by: §4.1.3.
-  (2018) A unified approach for conventional zero-shot, generalized zero-shot, and few-shot learning. IEEE Transactions on Image Processing 27 (11), pp. 5652–5667. Cited by: §2.0.1.
-  (2011-06) Evaluating knowledge transfer and zero-shot learning in a large-scale setting. In Computer Vision and Pattern Recognition, pp. 1641–1648. External Links: Cited by: §1.
-  (2013) Transfer learning in a transductive setting. In Advances in Neural Information Processing Systems, pp. 46–54. Cited by: §2.0.1.
-  (2015) An embarrassingly simple approach to zero-shot learning. In International Conference on Machine Learning, pp. 2152–2161. Cited by: §1, §2.0.1, §4.1.3.
-  (2015) Ridge regression, hubness, and zero-shot learning. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 135–151. Cited by: §2.0.1, §4.1.3.
-  (2013) Zero-shot learning through cross-modal transfer. In Advances in Neural Information Processing Systems, pp. 935–943. Cited by: §1, §2.0.1.
-  (2018) Transductive unbiased embedding for zero-shot learning. In Computer Vision and Pattern Recognition, pp. 1024–1033. Cited by: §2.0.1.
-  (2018) Generalized zero-shot learning via synthesized examples. In Computer Vision and Pattern Recognition, Cited by: §1, §2.0.1, §3.0.2.
-  (2017) A simple exponential family framework for zero-shot learning. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 792–808. Cited by: §1, §2.0.1, §3.0.2.
-  (2017-01) Harnessing noisy web images for deep representation. Computer Vision and Image Understanding. Note: on line jan 2017 External Links: Cited by: §2.0.3.
-  (2011) The Caltech-UCSD Birds-200-2011 dataset. Technical report Technical Report CNS-TR-2011-001, California Institute of Technology. Cited by: §1, §4.1.2.
-  (2018) Zero-shot recognition via semantic embeddings and knowledge graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 6857–6866. Cited by: §4.1.3.
-  (2016) Latent embeddings for zero-shot classification. In Computer Vision and Pattern Recognition, pp. 69–77. Cited by: §2.0.1.
-  (2018) Zero-shot learning-a comprehensive evaluation of the good, the bad and the ugly. Pattern Analysis and Machine Intelligence. Cited by: §1, §2.0.3, §4.1.2.
-  (2018) Feature generating networks for zero-shot learning. In Computer Vision and Pattern Recognition, Cited by: §1, §2.0.1, §3.0.2.
-  (2017) Zero-shot learning – the good, the bad and the ugly. In Computer Vision and Pattern Recognition, pp. 3077–3086. Cited by: §2.0.1.
-  (2015) Zero-shot learning via semantic similarity embedding. In International Conference on Computer Vision, pp. 4166–4174. Cited by: §2.0.1.
Appendix 0.A Implementation details
0.a.1 Word embeddings
We provide additional details about the versions of the embedding implementations used, namely word2vec, GloVe and FastText, as well as their parameters.
We used the original implementation of each method available at:
The main parameters used for to create semantic embeddings are given in Table 4
. These values were selected by following the guidelines from the original papers. We ran initial tests with a larger number of epochs and this did not improve results compared to the numbers presented in Table4.
The set of parameters used each time in order to facilitate reproducibility is reported in Table 5. We exclude the input, output and intermediary, as well as the number of threads because they do not influence directly the learning process.
|word2vec||-size 300 -window 1 -sample 1e-4 -negative 5 -hs 0 -binary 0|
|-cbow 0 -iter 25 -min-count 5|
|GloVe||-x-max 100 -iter 100 -eta 0.05 -vector-size 300 -alpha 0.75|
|FastText||skipgram -dim 300 -epoch 25 -minn 4 -maxn 6 -lr 0.1 -ws 10 -minCount 5|
We tried to add phrase representations , but it did not provide any improvement of results in ZSL experiments, thus it was not used in the final models.
0.a.2 Visual features and ZSL models
For the ImageNet dataset, we use visual features provided by Hascoet et al. , which consist in the weights of the last pooling layer of a pre-trained ResNet. We also use a pre-trained ResNet to extract visual features for the CUB and AwA2 datasets, and we further apply 10-crop to the images.
On ImageNet and CUB, hyper-parameters of ZSL methods are selected using respectively 200 and 50 random classes for validation. For AwA2, we use the 8 classes which are not in the ILSVRC out of the 40 training classes.
Some statistics regarding the word word frequencies in each dataset are available in Table 6.
Mean word frequency and standard deviation (in thousands of occurrences) in a corpus for words present in a given dataset.
Appendix 0.B Additional results
We provide results for , with no 2 normalization applied to attributes, as well as for ESZSL with normalization as we found that normalizing attributes could have a significant impact on these models. Results are provided for ImageNet (Table 7) as well as CUB and AwA2 (Table 8) similarly to tables 1 and 2 of the main paper.
For comparison with other papers, we also provide top-5 and top-10 accuracy for the model trained on FastText in Table 9.
Appendix 0.C Effect of User Voting on Flickr Embeddings
In Section 3 of the main article, we reported the introduction of user voting instead of raw co-occurrence frequency in Flickr in order the quality of embeddings. When user voting is exploited, each user gets to vote only once for a pair of words and the effect of bulk tagging is thus reduced. We compare the results presented in Table 1 of the main paper, obtained with user voting and those of , obtained with a simple count of word co-occurrences. We use FastText and all the tested ZSL methods of the main paper. The results, presented in Table 10, confirm that user voting has a positive effect for all collection sizes and ZSL methods tested. This confirms the importance of an appropriate preprocessing of text collections.
Appendix 0.D Effect of combining and
In Subsection 4.2 of the main paper, we noted that , the Flickr collection which includes metadata from the three test datasets, gave the best results among the text collections tested. Since is collected from the same source but with a different set of concepts, we merged the two collections to observe the effect of results. The results are reported in Table 11 and they confirm that most of the performance gain is due to the use of .
Appendix 0.E Comparison with manual attributes
Table 12 contains the data used to create Figure 1 of the main paper. Note that when all attributes are selected, there is no randomness involved since is deterministic, hence a standard deviation of .
|Number of attributes||312||250||200||150||100||50||20||15||10||5||2|
|Mean ZSL score||55.3||54.8||54.2||51.7||46.6||34.7||21.2||15.7||10.4||5.9||2.2|
|Number of attributes||85||70||50||40||30||20||15||10||5||2|
|Mean ZSL score||66.0||65.8||61.3||59.7||57.4||46.2||42.2||42.2||25.7||8.8|
Appendix 0.F Performance gain of over
We present a comparison of FastText accuracy obtained for and for the ImageNet dataset with different models.Figure 4 provides a view of accuracy differences between and for ImageNet test classes. These differences are plotted in decreasing order from left to right. For the model, is better for 265 of ImageNet test classes, no change is observed for another 99 classes and provides better results for the remaining 136 classes. For classes that perform better with , the average gain is 0.13 and the maximal gain is 0.88. For those performing worse, the average loss is and the maximal loss is . Trends are similar for other methods, indicating that performance gains are robust with respect to the ZSL methods used.
Appendix 0.G ImageNet ZSL Full Graph
We provide a visualization of the full WordNet hierarchy for all 1000 (resp. 500) training (resp. testing) classes, as well as some intermediate nodes in Fig. 5. We only keep one parent per node. Fig. 3 of the main paper contains subsets of this visualization. For nodes which originally have several hypernyms, we keep the nodes corresponding to the longest path to the root node “entity”; we found that this leads to more meaningful paths, with fewer classes at each level. For example, we keep the path “greyhound” “hound” “hunting_dog” “dog” … “animal” (visible in Fig. 5) instead of “greyhound” “racer” “animal”. We remove intermediate nodes which are not direct hypernyms of either a training or a testing class, as well as some other hand-picked nodes to improve readability.
In addition to the remarks from the main paper, it is interesting to observe that ZSL training and testing classes are not homogeneous in the hierarchy: some tree branches contain very few unseen classes, e.g. “carnivore”, while other contain many unseen classes and not a single seen class, e.g. “woody_plant”. These latter classes appear very challenging to correctly predict.