TL;DR
This paper introduces a Bayesian hierarchical model for zero-shot learning that leverages meta-classes and priors to improve recognition of unseen classes, demonstrating superior performance on benchmark datasets including ImageNet.
Contribution
It presents a novel Bayesian hierarchy with meta-classes for generalized ZSL, effectively blending data likelihood with priors to enhance unseen class recognition.
Findings
Outperforms existing methods on seven benchmark datasets.
Achieves state-of-the-art results on large-scale ImageNet.
Provides a flexible hyperparameter tuning mechanism for trade-offs.
Abstract
Object classes that surround us have a natural tendency to emerge at varying levels of abstraction. We propose a Bayesian approach to zero-shot learning (ZSL) that introduces the notion of meta-classes and implements a Bayesian hierarchy around these classes to effectively blend data likelihood with local and global priors. Local priors driven by data from seen classes, i.e. classes that are available at training time, become instrumental in recovering unseen classes, i.e. classes that are missing at training time, in a generalized ZSL setting. Hyperparameters of the Bayesian model offer a convenient way to optimize the trade-off between seen and unseen class accuracy in addition to guiding other aspects of model fitting. We conduct experiments on seven benchmark datasets including the large scale ImageNet and show that our model improves the current state of the art in the challenging…
| Dataset | #imgs | Type | #att | |||
|---|---|---|---|---|---|---|
| FLO | 8,189 | fine | 102 | 102 | 62 + 20 | 20 |
| SUN | 14,340 | fine | 102 | 717 | 580 + 65 | 72 |
| CUB | 11,788 | fine | 312 | 200 | 100 + 50 | 50 |
| AWA1 | 30,475 | coarse | 85 | 50 | 27 + 13 | 10 |
| AWA2 | 37,322 | coarse | 85 | 50 | 27 + 13 | 10 |
| aPY | 15,339 | coarse | 64 | 32 | 15 + 5 | 12 |
| ImageNet | 14M | large | 500 | 21K | 1K | 20K |
| Method | SUN | CUB | AWA1 | AWA2 | aPY | FLO |
|---|---|---|---|---|---|---|
| UBZSL (V1) | ||||||
| UBZSL (V2) | ||||||
| UBZSL |
| SUN | CUB | AWA1 | AWA2 | aPY | FLO | |||||||||||||
| Method | ts | tr | H | ts | tr | H | ts | tr | H | ts | tr | H | ts | tr | H | ts | tr | H |
| LATEM[34] | ||||||||||||||||||
| ALE[1] | ||||||||||||||||||
| DEVISE[6] | ||||||||||||||||||
| SJE[2] | ||||||||||||||||||
| ESZSL[22] | ||||||||||||||||||
| SYNC[25] | ||||||||||||||||||
| SAE[10] | ||||||||||||||||||
| GFZSL[32] | ||||||||||||||||||
| TCN[8] | 34.0 | 52.3 | 60.0 | 63.4 | ||||||||||||||
| DCN[14] | ||||||||||||||||||
| REL. NET[30]111As [30] uses different set of attributes in their experiments, we rerun their algorithm with the attributes from [35] to maintain a fair comparison. | ||||||||||||||||||
| CBZSL | ||||||||||||||||||
| UBZSL | ||||||||||||||||||
| UBZSL | CBZSL | SoA from [35] | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Split | 1 | 5 | 10 | 1 | 5 | 10 | 1 | 5 | 10 |
| 2Hop | |||||||||
| 3Hop | |||||||||
| Lp500 | |||||||||
| Lp1K | |||||||||
| Lp5K | |||||||||
| Mp500 | |||||||||
| Mp1K | |||||||||
| Mp5K | |||||||||
| All | |||||||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
11institutetext: Purdue University, Computer Science Department, USA 22institutetext: University of Tübingen, Cluster of Excellence Machine Learning, Germany 33institutetext: IUPUI, Computer and Information Science Department, USA
Bayesian Zero-Shot Learning
Sarkhan Badirli 11
Zeynep Akata 22
Murat Dundar 33
Abstract
Object classes that surround us have a natural tendency to emerge at varying levels of abstraction. We propose a Bayesian approach to zero-shot learning (ZSL) that introduces the notion of meta-classes and implements a Bayesian hierarchy around these classes to effectively blend data likelihood with local and global priors. Local priors driven by data from seen classes, i.e., classes available at training time, become instrumental in recovering unseen classes, i.e., classes that are missing at training time, in a generalized ZSL (GZSL) setting. Hyperparameters of the Bayesian model offer a convenient way to optimize the trade-off between seen and unseen class accuracy. We conduct experiments on seven benchmark datasets, including a large scale ImageNet and show that our model produces promising results in the challenging GZSL setting.
Keywords:
Generalized ZSL, Bayesian Hierarchical Models
1 Introduction
Natural images exhibit power-law property; hence, in a randomly sampled training set, no training examples are expected to be available for most of the object categories [23, 11, 31]. This restriction becomes more evident in a fine-grained object recognition task. Zero-shot learning (ZSL), which considers training and test classes, i.e. seen and unseen classes, as two disjoint sets, was introduced to mitigate this limitation [12, 20]. The two groups of classes are linked through a shared set of attributes that characterize high level semantic descriptions of all classes. During the training phase, a mapping between examples of seen classes and their corresponding class-based attributes is learned. This mapping is later used to identify examples of unseen classes during the test phase.
The standard ZSL setting restricts test time search space to only unseen classes. This somewhat unrealistic stipulation was later relaxed in the generalized ZSL (GZSL) setting to include all classes during the test phase [26]. In GZSL, side information, i.e., attributes, are as important as the perceptual representation of images. Attribute vectors are either manually annotated [12, 5] or derived from free-form text using word embedding [29, 6, 16]. Early line of work in ZSL [12] assumes attribute independence and uses probabilistic classifiers to assign images to test classes.
In this paper, we tackle ZSL by introducing a two layer Bayesian hierarchy manifesting over both seen and unseen classes. Our approach is designed to leverage the implicit hierarchy present among classes, especially evident in fine grained data sets [33, 18, 21]. Unlike earlier approaches, which seek to optimize an embedding between image and semantic spaces, the proposed method assumes that there are latent classes that define the class hierarchy in image space and uses semantic information to build the Bayesian hierarchy around these meta-classes.
Our model uses two types of Bayesian priors: global and local. As the name suggests, global priors are shared across all classes, whereas local priors are only shared among semantically similar classes, which are identified based on the distances between attribute vectors in the Euclidean space. Unlike standard Bayesian models where the posterior predictive distribution establishes a compromise between prior and likelihood, our approach utilizes posterior predictive distributions to reconcile information about local and global priors as well as the likelihood to more effectively accommodate the class hierarchy. In this framework, unseen classes are represented by their corresponding meta classes (see Figure 1), and test samples are classified based on posterior predictive likelihoods computed for both seen and unseen classes. Our approach achieves significant improvements on both seen and unseen class accuracies to achieve the best results on a variety of benchmark datasets among the currently published state of the art methods.
Our contributions are as follows. (1) We propose a hierarchical Bayesian model based on the intuition that actual classes originate from their corresponding local priors, each defined by a meta-class of its own. (2) We derive the posterior predictive distribution (PPD) for a two-layer Gaussian mixture model to effectively blend local and global priors with data likelihood. These PPDs are used to implement a maximum-likelihood classifier, which represents seen classes by their own PPDs and unseen classes by meta-class PPDs. (3) Across seven datasets with varying granularity and sizes, in particular on the large-scale ImageNet dataset, we show that the proposed model is highly competitive against existing inductive techniques in the GZSL setting.
2 Related Work
In this section, we discuss the prior work on zero-shot learning and hierarchical generative models related to ours.
Zero-Shot Learning. There has been an increasing interest in classifying fine grained and large-scale image datasets [21, 33, 18, 23]. This, in turn, led to a surge of interest in ZSL as labeling them is extremely costly. In their seminal paper [12], authors tackle ZSL by implementing a probabilistic classifier for each attribute and then classifying test cases by aggregating attribute probabilities for each class. This approach treats attributes as independent, which is a fairly strong assumption for most real-world data sets. This work was followed by a large body of work that seeks to optimize a mapping from image space, i.e., feature vectors, onto semantic space, i.e., attribute vectors. This line of work can be categorized into two according to whether the mapping is bi-linear [6, 10, 22, 1, 2] or non-linear [29, 34]. Related to ours, [39, 19, 25] first maps image and semantic space into an intermediate space and represents unseen classes as a mixture of seen classes. Besides these mainline ZSL studies, a recent study evaluates an extended version of a few-shot learning algorithm for ZSL [30]. This approach learns a deep metric to query images with few shot samples. Extension to ZSL is achieved by replacing few-shot samples with one-shot class attribute vectors.
Generative models for ZSL. Although most of the early work focused on discriminative models, there are a few studies that use generative models to tackle ZSL [17, 32]. The study in [17] uses Normal distributions to model both image features and semantic vectors and learns a multimodal mapping between two spaces. This mapping is optimized by minimizing a similarity based cross domain loss function. In a similar fashion the study in [32] utilizes a regression model to optimize a mapping between class attributes and parameters of class conditional distributions. A comprehensive review of these techniques and their performance on several benchmark data sets can be found in [35].
There are also quite a few techniques that tackle ZSL in a transductive setting. Experiments in [37, 28] demonstrate that unlabeled data from unseen classes as well as training data augmented by generative adversarial nets/ variational autoencoders can notably boost the classification accuracy. We believe that this line of work should be treated under a different category as a direct comparison with current ZSL techniques is not possible since similar data augmentation techniques could have most certainly benefited these techniques.
Bayesian models. In this paper, we offer a hierarchical Bayesian perspective on ZSL as a promising alternative to earlier approaches. Although hierarchical Bayesian mixture models have been previously explored for a variety of clustering problems [9, 3, 4, 38], their extension to ZSL comes with two distinct features that could help the proposed model prevail over the large body of early work in ZSL. First, as a Bayesian model, ours offers a systematic approach to sharing information between seen and unseen classes as well as within each group through the utilization of local and global priors. Global priors are defined by hyperparameters, whereas local priors are determined by the parameters of the meta classes, which are estimated from corresponding seen classes. Second, as a hierarchical model, it can better accommodate data sets with different levels of class abstractions, i.e., fine-grained vs. coarse-grained data sets, which is particularly appealing for large-scale classification. A hierarchical Bayesian model was previously studied in a one-shot learning setting [24]. Our proposed approach differs from this model in two essential aspects. First, unlike our proposed approach, no semantic information was used when establishing the Bayesian hierarchy in [24], and class discovery was performed in a fully unsupervised fashion. Second, our approach introduces the notion of local prior, which becomes highly instrumental in defining meta-classes and modeling dispersion of classes.
Our work. Unlike the vast majority of early work, which seeks to optimize a mapping between image features and attribute vectors, our approach readily models class distributions in the feature space by exploiting both local and global priors defined over the parameters of these distributions. Local priors are defined by meta-classes. In the proposed approach, attribute vectors only come into play when determining meta-class memberships of actual classes. Classes with similar attribute vectors are pooled together to derive local priors.
3 Bayesian Zero Shot Learning
Bayesian classification places a shared prior over the parameters of class distributions, which are assumed to be generated independently conditioned on the prior. Imposing the same prior across all classes creates dependencies among them, enabling information propagation and regularization at the same time during model inference. However, in real-world applications the classes are often not generated independently, indeed for a large number of classes different levels of abstraction is expected. On the other hand, availability of semantic side information suggests that there is a deeper level of hierarchy among existing classes than a single global Bayesian prior can explain.
Images from semantically similar classes are embedded close to each other due to their shared latent parameters. When such similarities are not accounted for in the classification model, sample estimates of class parameters derived based on independence assumption among classes become nullified. In other words, knowing the parameters of the global prior may not be sufficient for achieving independence as latent parameters define deeper level hierarchical relationships among classes. Our model resolves this problem by introducing a layer of meta-classes between global prior and actual classes, paving the way for independence and enabling information sharing and propagation across classes.
3.1 Generative Model
Our approach to ZSL employs class similarities by a two layer generative model. As shown in Figure 2, our model identifies meta-classes that determine groupings among classes. These meta-classes play a key role by acting as a local prior for individual classes, i.e. both seen and unseen classes that belong to the same meta-class inheriting the same local prior. In our framework, the data points with the same local prior that do not belong to any of the seen classes can be considered from unseen classes. If the class groupings can be arranged such that there is only one unseen class associated with each local prior then unseen classes can be uniquely identified. Associating each unseen class with a different local prior forms the basis of our approach. Our generative model is designed as follows:
[TABLE]
with the meta-class index , the actual class index , the image index . We assume that images come from a Gaussian with mean and covariance matrix . They are generated independently conditioned not only on the global prior but also on their corresponding meta-class.
Each meta-class is characterized by the parameters and . is the mean of the Gaussian prior defined over the mean vectors of meta-classes, is a scaling constant that adjusts the dispersion of the centers of meta classes around . A smaller value for suggests that class centers are expected to be farther apart from each other whereas a larger value suggests they are expected to be closer to each other. On the other hand, and dictate the expected shape of the class distributions, as under the inverse Wishart distribution assumption the expected covariance is , where is the dimension of image feature space. The minimum feasible value of is equal to , and the larger the is the less individual covariance matrices will deviate from the expected shape.
On the other hand, is a scaling constant that adjusts the dispersion of the actual class means around their corresponding meta-class means. A larger leads to smaller variations in class means compared to the mean of their corresponding meta classes, suggesting a fine-grained relationship among classes sharing the same meta-class. On the other hand, a smaller dictates coarse-grained relationships among classes sharing the same meta-class. In this model, classes with the same meta-class also share the same covariance matrix to preserve conjugacy of the model.
To classify test examples, we need the posterior predictive distributions (PPD) of seen and unseen classes which we will explain next. More details about the derivation are provided in the supplementary.
3.2 Posterior Predictive Distribution
In our model, the posterior predictive distribution (PPD) incorporates three sources of information: the data likelihood that arises from the current class, the local prior that results from other classes sharing the same meta class as the current class, and global prior defined in terms of hyperparameters. The derivation in six steps are outlined in Figure 2(b) and Algorithm111The code is publicly available at GitHub 1 describes a pseudo code on deriving PPD for both seen and unseen classes. Class sufficient statistics are summarized by and which represent sample mean, scatter matrix and size of class of meta-class , respectively. The notations and used in the Algorithm 1 represents the current seen class and unseen class, whose PPD is being derived.
In step 1, we establish the link between class sample mean and its corresponding meta-class mean by marginalizing out the intermediate class mean . As all of these are Gaussians, this marginalization yields a Gaussian:
[TABLE]
In step 2, we use Bayes rule to obtain the posterior distribution of the meta-class mean vector :
[TABLE]
where is the meta-class indicator for class . Note that the mean is the weighted average of the prior mean and class means share the same meta-class.
In step 3, we obtain the local prior for class mean vector by propagating the information from other classes sharing the same meta-class as the current class . This is achieved by integrating out the meta-class mean vector .
[TABLE]
In step 4, we derive the posterior of the current class mean vector by combining current class sample mean from step 1 and the local prior from step 3.
[TABLE]
In step 5, we derive the posterior distribution of the covariance matrix by combining the local prior of the covariance matrix with the distribution of the scatter matrices of the classes associated with meta-class and current class :
[TABLE]
In step 6, we derive the posterior predictive distribution by integrating out meta-class mean vector and covariance in the form of a Student-t distribution as follows.
[TABLE]
where, , and are defined as in Equation (3), (5) and (6) respectively. The index in Equation (7) represents the current seen class, whose PPD is being derived. Top most similar seen classes are identified as the ones with the smallest Euclidean distance to the current class in the attribute space. If the current class is a seen class, PPD takes the form in Equation (7). When it is an unseen class with no images available in training, the sample statistics of the current class in (7) drops and PPD becomes:
[TABLE]
where and are defined as in Equation (3) and (5), respectively. In this setting, a new image is labeled by evaluating PPDs for seen and unseen classes and assigning the image to the class that generates the maximum likelihood.
3.3 Meta-class Formation
Meta-class for each unseen class is formed by finding K most similar seen classes to the current unseen class using distance between the attribute vectors () of that unseen class and of seen classes. In the case of tie, the least similar class among selected seen classes () is replaced by the next one until tie is broken. These define a local prior in the PPD of the unseen class. Meta-class formation for a seen class follows the same procedure. We use the distance between the current seen class attribute and other seen class attributes to find K most similar classes. As we have access to seen class samples, the PPD of the seen class (Equation 7) uses class samples in addition to local and global priors from its meta-class. An illustration for the formation of the meta-class associated with an unseen class blue whale, from AWA dataset, is shown in Figure 1. (blue whale) is compared against (seen) in the semantic space, humpback and killer whale are identified as the two closest matches. Using humpback and killer whale class samples, the meta-class for blue whale is formed as a local prior in the PPD for blue whale.
4 Experiments
We evaluate the performance of the proposed approach on several benchmark data sets and compare the results with the current state of the art in ZSL.
Datasets & specifications. Experiments are evaluated on ZSL datasets widely used for benchmarking. Among those, CUB [33], FLO [18] and SUN [21] are medium scale, fine-grained datasets. AWA1 [13] and AWA2 [36] and aPY [5], on the other hand, are coarse-grained datasets. Finally we evaluate our model on ImageNet [23] with more than 14 million images and 21K classes. SUN, AWA1, AWA2, aPY and CUB datasets come with visual attributes whereas FLO uses sentences and ImageNet uses word embeddings as class vectors. We use the publicly available image embeddings of [36], i.e. 2048-dimensional top-layer pooling units of the 101-layered ResNet [7] as feature vectors. Additional information about each dataset including the number of images, number of attributes, and sizes of train, validation, and test class splits are present in Table 1.
For ImageNet following the benchmark in [36] we use all of the images from 1K classes, i.e. seen classes, for training so that we do not violate the zero-shot assumption as ResNet-101 [7] is trained on the same 1K classes from ImageNet. We evaluate the proposed technique in nine different configurations as proposed in [36], all of which differs according to how test class subsets are chosen.
Evaluation criteria. We use the same evaluation procedure employed in [36] as described below. The standard practice in ZSL literature is to evaluate classification performance by Top-1 accuracy. To avoid large classes dominating the overall accuracy, Top-1 accuracy is separately calculated for each class and the mean of individual class accuracies is used for evaluation. GZSL setting includes both seen and unseen classes in the test phase, hence the search space includes all the classes, i.e. . Hence, first seen and unseen class accuracies are separately computed and then their harmonic mean is used as the final score for evaluation. For ImageNet, the final score is the average Top-1 accuracy over the images of unseen classes (although the search space is still ) as no images from seen classes are available during testing phase.
Implementation details. We implement two versions of our model: unconstrained (UBZSL) and constrained (CBZSL) Bayesian ZSL. For large data sets, e.g. ImageNet, our model in Eq.1 suffers from the large memory requirement due to the unconstrained structure of the class covariance matrices. To alleviate this problem we developed a scalable version of our model where the covariance matrices are constrained to have diagonal forms. The only difference between these two models is that constrained version uses an Inverse Gamma prior on the diagonal entries of the covariance matrix as opposed to an Inverse Wishart in the unconstrained version. With this revision the generative model in Eq.1 is updated as follows.
[TABLE]
where the superscript is added to refer to the component of each parameter. The Inverse Wishart parameters and are replaced with the scale () and shape () parameters of the Inverse Gamma distribution. The derivation of PPD for the constrained model is in the supplementary.
The hyperparameters of the model are coarsely tuned to maximize the harmonic mean score on the validation set for all datasets but ImageNet. The training, test and validation set splits for these datasets are done according to [36] to maintain a fair comparison. As hyperparameter tuning for ImageNet can be computationally unmanageable and to demonstrate the robustness of the model we used the hyperparameters of the SUN dataset for ImageNet. For CBZSL we utilize all 2048 ResNet features whereas for UBZSL we applied PCA to reduce the dimensionality to 500.
Both UBZSL and CBZSL have four hyperparameters: . Here, K is the selected number of classes most similar to the current class in the attribute space. To simplify the parameter tuning process, we set prior mean, , to the average of class means. We set to the average of class scatter matrices scaled by a constant . Our implementation will be made publicly available upon the completion of the review process.
4.1 Model Evaluation
In this section, we evaluate our model through an ablation study and investigate the tradeoff between seen and unseen class accuracies.
Model ablation. Our model formulates zero-shot learning in the framework of hierarchical Bayes. Towards this end, we validate the necessity of each component in our model by eliminating one component at a time and investigating the performance of the model with remaining components on several benchmark datasets.
Our observations from Table 2 are as follows. (1) If we break the hierarchy by removing the meta-class layer, then actual classes are directly linked to the global prior and same PPD is assigned to all unseen classes. Thus, unseen classes can no longer be distinguished during test time. (2) If we discard the Bayesian aspect by eliminating the global and local priors, each seen class is fit a single Gaussian and each unseen class is fit a GMM with K components. We observe drastic drop in harmonic mean, almost cut in half, in all datasets but SUN ( row in Table 2: V1). In general, GMM works better on fine grained datasets than coarse grained ones as the distribution produced by a mixture of very similar classes can be better fit by GMM compared to a distribution produced by a mixture of relatively less similar classes. (3) Finally, if we impose similar dispersion for actual and meta classes (by improperly adjusting and ) with respect to the center of the data, harmonic mean again suffers significantly ( row in Table 2: V2). In particular, results of the SUN dataset suffers the most. The impact of improper tuning of is explained in the next section. Unlike V1, UBZSL V2 works better on coarse grained datasets (AWA1, AWA2) as class centers in these datasets are more separated than fine grained ones. As a result the adverse effects of setting in experiments performed with these datasets seem to be less significant.
Effect of and . In both of our models (constrained and unconstrained), different hyperparameter settings can be used to modify the operating point of the classifier to favor seen class accuracy over unseen one or vice versa. In this experiment we investigate the effect of and on seen and unseen class accuracies. Recall that adjusts the dispersion of meta-class centers with respect to the center of the overall data and adjusts the dispersion of actual class centers with respect to their corresponding meta class centers. The smaller these parameters are the higher the dispersion will be.
Figure 3 illustrates on FLO and AWA2 that unseen class accuracy is highest when is close to and drops significantly lower in both directions, i.e., for and . As expected the opposite of this pattern is observed for seen class accuracy. Although both seen and unseen class accuracies are highly sensitive to the selection of , the changes are marginal with respect to . Moving towards zero encodes a local prior that imposes unrealistically large dispersion for centers of actual-classes sharing the same meta-class, which violates the main assumption of our model that classes sharing the same meta class are semantically similar classes. On the other hand moving towards infinity encodes a local prior that imposes limited to no deviation among centers of actual classes which is another extreme that is not true for real-world datasets, i.e. classes are supposed to be statistically identifiable.
In both extremes unrealistic prior assumptions that cannot be reconciled with the characteristics of real-world data sets impede knowledge transfer between seen and unseen classes and lead to poor classification performance on unseen classes. On the other hand, the same extreme assumptions happen to help with seen class accuracies because likelihood and data-driven local priors (both of which lacks for unseen classes) outweigh the effect of unrealistic global prior in posterior predictive distributions.
4.2 Comparison with State of the Art
Results obtained by the proposed CBZSL and UBZSL models on SUN, CUB, FLO, AWA1, AWA2, aPY datasets are presented in Table 3. In addition to all SotA techniques reported in [35] we also included results of more recently published techniques [30, 14, 8] in this comparison. These results suggest that the proposed unconstrained model (UBZSL) demonstrates better performance than all other techniques but TCN. The constrained version of our model, i.e., CBZSL, also renders comparable results with the unconstrained version of the model despite its simplicity.
Results in Table 3 further show that in all of the experiments, unseen class accuracies achieved by our models are substantially higher than those achieved by all other techniques, but the TCN [8] model. This is achieved while maintaining a comparable performance on seen class accuracies in most of the experiments. Intuitively speaking, the two-level Bayesian hierarchy defined by meta-classes is expected to better manage the open space risk [27] by assigning an image of an unseen class to its meta class as opposed to misclassifying it into one of the seen classes.
4.3 Large-Scale Experiments on ImageNet
ImageNet is currently the most challenging dataset for ZSL. Arguably it constitutes the most natural setup to evaluate ZSL learning performance as it contains 22K classes (1K of which are used to train state of the art deep neural networks) and most of these classes are sparsely populated.
Table 4 summarizes ImageNet results under nine different test set configurations. Our unconstrained model (UBZSL) improves over the state of the art in 2/3 Hop and highly populated test classes. Of particular importance is the highly competitive performance by the constrained model (CBZSL) that improves the current state of the art in all test configurations with respect to Top-1 accuracy (3.9% vs 2.18% on 2Hop, 7.51% vs 2.9% on Mp500, 4.78% vs 2.34% on Mp1000). Our model achieves the best results in eight of the nine test configurations for Top-5 and seven of the nine for Top-10 accuracies. Especially in the least populated (Lp500) classes the accuracy improvement is four percentage points in Top-5 and Top-10 accuracies. In most populated classes (Mp500) the accuracy gets almost doubled, i.e. vs on Top-5.
These results show that as the number of classes and the average number of samples per class ( in ImageNet vs in benchmark datasets) increase, the explicit hierarchy across classes becomes more evident leading to more informative local priors. ImageNet contains both coarse- and fine-grained classes. The results suggest that our technique can be equally effective on datasets with hybrid granularity.
5 Conclusions
Summary of our contributions: In this study, we proposed a Bayesian approach to ZSL that relies on the consideration that classes in real-world datasets emerge at different levels of abstraction, and there are meta-classes that inherently organize the class hierarchy in the semantic space. We introduced concepts of local and global priors and showed that knowledge transfer from seen classes to unseen ones could be effectively carried out in the image space by a two-layer GMM. The proposed two-layer GMM offers extreme flexibility in modeling datasets with different characteristics by tuning its hyperparameters, each of which models a different aspect of the data. We performed extensive experiments with benchmark datasets (fine-grained, coarse-grained, and large-scale) to demonstrate the utility of the proposed Bayesian approach for ZSL, which favors the proposed approach over other state-of-the-art inductive ZSL techniques.
Future Research Directions: Recently proposed transductive methods [37, 28, 15] have proved that generating features for unseen classes and treating ZSL as a closed-set classification can produce much better results than running ZSL in an inductive setting. Although features generated by these techniques do not seem to preserve correlation among features and are far from recovering unseen class distributions, they do preserve the relative distances among unseen classes, which in turn helps improve the performance of a softmax classifier in the closed-set setting. Thus, using prototypical feature vectors for unseen classes and integrating these into PPDs can offer significant boost for the performance of the proposed hierarchical Bayesian model. In our future work we aim to demonstrate that these prototypical feature vectors can be easily obtained by solving a simple compressed sensing problem and PPDs updated with these prototypical vectors can be used to generate new features in a probabilistic way. Such an approach can potentially preserve both the correlation among features and the relative distance between classes to generate more realistic features. Although not discussed in current work the proposed framework can be easily and effectively extended for any-shot learning problems, which will be a research direction we will pursue in parallel to probabilistic feature generation.
Acknowledgements. This work has been partially funded by the NSF grant 1252648 - ISS (M. D.), the ERC grant 853489 - DEXIM (Z. A.) and by DFG grant under Germany’s Excellence Strategy – EXC number 2064/1 – Project number 390727645.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Akata, Z., Perronnin, F., Harchaoui, Z., Schmid, C.: Label-embedding for image classification. TPAMI (2016)
- 2[2] Akata, Z., Reed, S., Walter, D., Lee, H., Schiele, B.: Evaluation of output embeddings for fine-grained image classification. In: CVPR (2015)
- 3[3] Dundar, M., Akova, F., Yerebakan, H.Z., Rajwa, B.: A non-parametric bayesian model for joint cell clustering and cluster matching: identification of anomalous sample phenotypes with random effects. BMC bioinformatics 15 (1), 314 (2014)
- 4[4] Dundar, M., Yerebakan, H.Z., Rajwa, B.: Batch discovery of recurring rare classes toward identifying anomalous samples. In: SIGKDD. ACM (2014)
- 5[5] Farhadi, A., Endres, I., Hoiem, D., Forsyth, D.: Describing objects by their attributes. In: CVPR (2009)
- 6[6] Frome, A., Corrado, G.S., Shlens, J., Bengio, S., Dean, J., Ranzato, M.A., Mikolov, T.: Devise: A deep visual-semantic embedding model. In: NIPS (2013)
- 7[7] He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: CVPR (2016)
- 8[8] Jiang, H., Wang, R., Shan, S., Chen, X.: Transferable contrastive network for generalized zero-shot learning. In: ICCV (2019)
