Generative Model for Zero-Shot Sketch-Based Image Retrieval
Vinay Kumar Verma, Aakansha Mishra, Ashish Mishra, Piyush Rai

TL;DR
This paper introduces a probabilistic generative model for zero-shot sketch-based image retrieval that generates images conditioned on sketches of unseen classes, transforming the retrieval task into an image-to-image search problem.
Contribution
The paper proposes a novel generative model using inverse auto-regressive flow variational autoencoders for zero-shot SBIR, enabling effective retrieval on unseen classes.
Findings
Significantly outperforms baselines on Sketchy dataset.
Achieves robust image generation conditioned on novel sketches.
Effective on TU Berlin dataset with novel class splits.
Abstract
We present a probabilistic model for Sketch-Based Image Retrieval (SBIR) where, at retrieval time, we are given sketches from novel classes, that were not present at training time. Existing SBIR methods, most of which rely on learning class-wise correspondences between sketches and images, typically work well only for previously seen sketch classes, and result in poor retrieval performance on novel classes. To address this, we propose a generative model that learns to generate images, conditioned on a given novel class sketch. This enables us to reduce the SBIR problem to a standard image-to-image search problem. Our model is based on an inverse auto-regressive flow based variational autoencoder, with a feedback mechanism to ensure robust image generation. We evaluate our model on two very challenging datasets, Sketchy, and TU Berlin, with novel train-test split. The proposed approach…
| Type | Method | Sketchy Dataset | TU Berlin Dataset | ||
|---|---|---|---|---|---|
| Precision@100 | mAP@all | Precision@100 | mAP@all | ||
| Softmax Baseline | 0.176 | 0.099 | 0.139 | 0.083 | |
| Siamese CNN [34] | 0.183 | 0.143 | 0.153 | 0.122 | |
| SaN [52] | 0.129 | 0.104 | 0.112 | 0.096 | |
| SBIR | GN Triplet [38] | 0.310 | 0.211 | 0.241 | 0.189 |
| 3D Shape [43] | 0.070 | 0.062 | 0.063 | 0.057 | |
| DSH (64 bits) [24] | 0.227 | 0.164 | 0.198 | 0.122 | |
| CMT [41] | 0.096 | 0.084 | 0.082 | 0.065 | |
| DeViSE [8] | 0.078 | 0.071 | 0.075 | 0.067 | |
| SSE [55] | 0.154 | 0.108 | 0.133 | 0.096 | |
| Zero-Shot | JLSE [56] | 0.178 | 0.126 | 0.165 | 0.107 |
| SAE [55] | 0.302 | 0.210 | 0.210 | 0.161 | |
| DSH [24] | 0.217 | 0.165 | 0.174 | 0.139 | |
| ZSIH [40] | 0.340 | 0.254 | 0.291 | 0.220 | |
| Feedback-Auto | GZS-SBIR(Our) | 0.305 | 0.253 | 0.281 | 0.187 |
| Feedback-VAE | GZS-SBIR(Our) | 0.358 | 0.289 | 0.334 | 0.238 |
| Sketchy Dataset | |||
|---|---|---|---|
| Type | Method | Precision@200 | mAP@200 |
| Baseline | 0.106 | 0.054 | |
| Siamese-1 [5] | 0.243 | 0.134 | |
| Siamese-2 [34] | 0.251 | 0.149 | |
| SBIR | Coarse-grained triplet [39] | 0.169 | 0.083 |
| Fine-grained triplet [38] | 0.155 | 0.081 | |
| DSH1 [24] | 0.153 | 0.059 | |
| DAP [21] | 0.066 | 0.022 | |
| ESZSL [36] | 0.187 | 0.117 | |
| ZS-SBIR | SAE [19] | 0.238 | 0.136 |
| CAAE CAAE [27] | 0.260 | 0.156 | |
| CVAE [50] | 0.333 | 0.225 | |
| Feedback-Auto | GZS-SBIR(our) | 0.288 | 0.191 |
| Feedback-VAE | GZS-SBIR(our) | 0.343 | 0.238 |
| Type | Sketchy Dataset | TU Berlin Dataset | ||
|---|---|---|---|---|
| Precision@100 | mAP@all | Precision@100 | mAP@all | |
| W/O-w2v | 0.313 | 0.261 | 0.294 | 0.198 |
| W/O-w2v+IAF | 0.358 | 0.289 | 0.334 | 0.238 |
| Improvement (%) | 12.6% | 9.7% | 12.0% | 16.8% |
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.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Generative Model for Zero-Shot Sketch-Based Image Retrieval
Vinay Kumar Verma*, Aakansha Mishra*‡, Ashish Mishra†* and Piyush Rai*
∗IIT-Kanpur, *‡*IIT-Guwahati, *†*IIT-Madras
[email protected], [email protected], [email protected],[email protected]
Abstract
We present a probabilistic model for Sketch-Based Image Retrieval (SBIR) where, at retrieval time, we are given sketches from novel classes, that were not present at training time. Existing SBIR methods, most of which rely on learning class-wise correspondences between sketches and images, typically work well only for previously seen sketch classes, and result in poor retrieval performance on novel classes. To address this, we propose a generative model that learns to generate images, conditioned on a given novel class sketch. This enables us to reduce the SBIR problem to a standard image-to-image search problem. Our model is based on an inverse auto-regressive flow based variational autoencoder, with a feedback mechanism to ensure robust image generation. We evaluate our model on two very challenging datasets, Sketchy, and TU Berlin, with novel train-test split. The proposed approach significantly outperforms various baselines on both the datasets.
1 Introduction
The commonly used approaches to search for an image from a database of images are: (1) Text-based image retrieval, in which we search for an image using a text-based query and (2) Content-based image retrieval (CBIR), in which a related image is used as a query image. Image as the query has a much richer content as compared to text-based query. CBIR gives excellent search results but requires giving a real image as the query, which may not always be possible. Often it is more convenient to draw an outline sketch of the image and use that as a query to search for the desired image(s). The retrieval of images by giving the sketch as a query is termed as sketch-based image retrieval (SBIR) [3, 4, 51, 34]. The topic has drawn considerable attention recently. However, existing SBIR systems assume that the class represented by the input sketch at query time was also present in the image-sketch pairs used to train the SBIR model, and consequently, these systems suffer when the input sketch is from a previously unseen/novel class.
In this work, we present a method to handle the SBIR task for the unseen/novel class at test time. These novel classes are either absent at the training time or not used in training. This type of setup, to handle the previously unseen classes at test time is called Zero-Shot Learning (ZSL), and has been extensively investigated recently for problems, such as image classification [20, 31, 42, 1], action classification [22, 30], image tagging [54], and visual question answering [35] etc. To the best of our knowledge, the only works that have investigated SBIR in the zero-shot setting include [40, 50]. Among these, [40] used a hashing approach for the ZS-SBIR. This approach is motivated by other ZSL approaches where some side information about unseen classes is present, e.g., their textual description, word2vec or attribute based vectors are used for the knowledge transfer. Recently [50] proposed a vanilla conditional variational autoencoder (CVAE) architecture and adversarial autoencoder for the ZS-SBIR task.
In this paper, we address the drawbacks of existing approaches for SBIR to handle the retrieval of novel/unseen class examples. We propose a conditional generative model that can generate image features conditioned on the attributes (raw sketch or word2vec[28]) of a given class. Like [50] we also have a generative model, but our approach is significantly different from their model which uses a standard conditional VAE. In contrast, our proposed approach is built upon the Inverse autoregressive flow (IAF) based variational autoencoder [18], with a feedback based mechanism [17]. The IAF helps to learn the complex latent-space distribution of the images while the feedback mechanism further helps in making the generated image distribution follow the original distribution more closely. The other recently proposed ZS-SBIR approach [40] requires side information in the form of description of the sketch, which may not always be available. In contrast, our proposed approach requires no side information and still performs significantly better than [40]. We also use a residual decoder that helps to learn a complex model with a deeper network. Notably, since we are able to generate images from any specified class, we are able to transform the zero-shot problem into a typical supervise learning problem. The main contributions of this paper can be summarized as follows:
- •
We propose a sketch-conditioned image generation scheme to solve the ZS-SBIR problem, using a generative model consisting of an inverse autoregressive flow based encoder.
- •
We leverage a feedback mechanism [17, 20] to encourage the synthesized distribution to be not too far from the original distribution of the observed unlabeled images.
- •
Unlike the other recently proposed approaches for ZS-SBIR [40], even without any side information (e.g., word2vec based attributes of the classes), our method yields significantly better results as compared to [40].
2 ZS-SBIR Setting
In the zero-shot setting, we partition image dataset into two parts based on sketch classes. One part is the training set which has paired seen-class (S) sketches and image. The second part is test set which has unseen-class (U) sketches only (and no images). Note that the training set is essentially labelled. The training and testing set are mutually exclusive in terms of the sketch classes. In zero-shot setting, we train our model in such a way that it can generalize to unseen class sketches. The mathematical formulation of the zero-shot problem for SBIR is given below:
Let be the triplet consisting of sketch, image and the class label, where is the set of all class labels. We partition the class labels into two disjoint set and for train and test set respectively. Let and be the partition of into train and test set, respectively. Another assumption for the ZS-SBIR is that i.e. train and test classes are disjoint. For simplicity, we will represent as ”” and as ”” throughout this exposition.
3 Background
As discussed earlier, our approach is based on turning the sketch-to-image search problem into an image-to-image search problem. To this end, we need a model that can generate high-quality images, given a sketch of the class representing that image. This, essentially is a conditional image generation problem. To model the complex distribution of real-world images, we leverage the inverse auto-regressive flow (IAF) based variational autoencoder [18], and adapt it using a feedback mechanism to integrate the information provided by the sketch attribute. Before describing our architecture, we first provide a background of the components we build upon.
3.1 Variational Inference and Learning
Suppose be a set of i.i.d. observations (e.g., images). Let us denote each sample by and assume be the latent variable associated with . For a given dataset , the marginal likelihood of observations is denoted as . The posterior over the latent variable is denoted by . We can define a variational lower bound on the marginal log-likelihood
[TABLE]
where and are distributions whose parameters are collectively denoted by , and is the Evidence Lower Bound (ELBO), defined as
[TABLE]
Maximizing the lower bound w.r.t. also maximizes and minimizes , where is the true posterior over the latent variables and is the approximate posterior (often also called the inference network). In order to infer complex true posterior , we need to have a sufficiently expressive approximation . Normalizing Flows [10] is an idea that helps accomplish this be defining a series of transformations for a latent variable that enable learning sufficiently rich distribution for that variable.
3.2 Normalizing Flow
For the inference network , we need a highly flexible method that captures the complex nature of the true posterior distribution. Normalizing flow is a popular approach used for the variational inference of posterior over latent space. Normalizing flow [10] depends on sequence of invertible mappings for transforming the initial probability density. Suppose be the initial random variable with a simple probability density function and be the final output of a sequence of invertible transformations on . can be computed as: . If Jacobian determinant of each can be computed, then the final probability density function can be computed as:
[TABLE]
3.3 Inverse Autoregressive Transformations (IAF)
Let be a variable which is modeled by the Gaussian version of the autoregressive model. Suppose be the representation of function that maps to the mean and variance . Due to the autoregressive structure, the Jacobian is lower triangular matrix with zeros on the diagonal. Mean and standard deviation of element of are computed from i.e., previous elements of . To sample from such a model, we use a sequence of transformations from a noise vector to the corresponding vector as: and for . Variational inference makes sampling from posterior, such models are not interesting to be directly used for the normalizing flow. Although, the inverse transformation is interesting for normalizing flows, as long as we have the transformation is one-to-one and it can be inverted as : . Two key observation for IAF as follows:
- •
As computation of every element does not depend on one another, inverse transformation can be parallelized (subtraction and division are element-wise).
- •
Inverse autoregressive operation has a simple Jacobian determinant. It is lower triangular matrix. As an outcome, the log-determinant of Jacobian of transformation is simple to compute:
3.4 IAF step
As shown in Fig. 2, the output of initial encoder network is , and one extra output which is consider as one extra input to each subsequent step in the flow. In other word, the parameters of encoder are refined iteratively based on output of previous step , and . The sampled vector from latent space of initial encoder is defined as : . Where . After steps the refinement of sample is recursively defined as : . In this sequential step the predicted posterior fits more closely to the true posterior.
Finding an appropriate latent space for sampling is a crucial part of generative models as in variational autoencoder (VAE). VAE based generative models compute latent space in one step which may not be sufficient to capture a complex distribution. So the distribution of the predicted posterior and true posterior could be different with adequate margin. Whereas in IAF based variational autoencoder, predicted posterior are transformed to the true posterior using some simple sequential transformation. This sequence of simple transformation can be reduced to any complex distribution. Therefore using an auto-regressive method we can reduce the difference between the distribution of the estimated posterior and true posterior as compare to standard VAE.
4 Zero-Shot Sketch-Based Image Retrieval
In this section, we describe the various components of our proposed model. Again, note that the goal is to learn to generate high-quality images, given the sketch and optionally other side information (e.g., word2vec description of the class).
4.1 Inverse Autoregressive Flow-Based Encoder
Learning the complex distribution of in the high dimensional latent space is not feasible by a single step transformation. Therefore, in the plain VAE, the approximate posterior can be far away from the true posterior of . IAF provides a way to learn the complex distribution by using the chain of simple transformation. The final latent variable can be given as:
[TABLE]
Here each is simple transformation function and are invertible in nature. Figure 2 shows the pipeline of IAF architecture.
4.2 VAE with feedback mechanism
In our model, the encoder consists of standard encoder coupled with an IAF module. The output of IAF based encoder is refinement of the latent code which is initialized by standard encoder, denoted as with parameters . The regressor output distribution is denoted as , and the VAE loss function is given by (assuming the regressor to be fixed):
[TABLE]
where the first term on the R.H.S. is generator’s reconstruction error and the second term promotes the estimated posterior to be close to the prior.
4.2.1 Regressor/Cyclic-consistency Loss
In our proposed model, the regressor, defined by a probabilistic model with parameters , is a feed-forward neural network that learns to project the example to its corresponding class-attribute vector . The objective of the regressor is to minimize the cyclic-consistency loss. The regressor is learned using two sources of data:
- •
Labeled examples from the seen classes, on which we can define a supervised loss, given by
[TABLE]
- •
Synthesized examples from the generator, for which we can define an unsupervised loss, given by
[TABLE]
The weighted combination of supervised and unsupervised loss is defined as the overall objective to minimize the cyclic-consistency/regressor loss:
[TABLE]
4.2.2 Regressor-Driven Learning
Regressor-Driven learning helps to minimize the cyclic-consistency loss and guide the generator to generate high-quality samples. The cyclic loss encourages the decoder/generator to generates example coherent with its sketch feature vector . This is done using a loss function described below.
In the first case, suppose the generator generates low-quality samples. Then the regressor will incur a high cyclic loss for these samples. In this case, the regressor assumes that it has optimal parameters and will not regress to the correct value. This loss occurs because of the bad quality samples generated by the generator. Minimizing this loss w.r.t helps generator to improve the samples quality. The objective function is given by
[TABLE]
The other loss which acts as a regularizer that encourages the generator to generate a good class-specific sample even from a random drawn from the prior distribution and combined with the sketch from is
[TABLE]
The above two loss functions help us increase the coherence of with class-attribute . A third loss function is used to ensure that the sampling distribution and the distribution obtained from the generated examples follow the same distribution.
[TABLE]
Hence the complete learning objective for the generator and encoder is given by,
[TABLE]
4.3 Residual Decoder
The proposed decoder is a combination of the deep and shallow network. The deep network is responsible for the better reconstruction of visual space while shallow network reduces over-fitting. This architecture is motivated by ResNet [13] where the network has skip connections. These skip connections provide more paths to the network for information propagation. While some paths are deeper, others are shallow [14]. If in the deeper path the gradient vanishing or explosion problem occurs, the shallow paths still work, and proper gradient flows in the backward direction. In the residual network, the output of a neural network layer is given by , (here , is the direct output), i.e., the output does not only depend on the current layer neural network, but it depends on input as well.
5 Related Work
Images have rich and vibrant content, while a sketch only provides rough information like shape and size. It is easy for a human to match the sketch from the image, but for machines, this is a very complex task. Since for an algorithm, it is very difficult to learn the features that are invariant to color, shape, size, pose, etc. The common pipeline for SBIR is to project the images and sketches in common subspace such that the same class images and sketches are close to each other on some metric space. Then any similarity metric can be used for the retrieval task. Most of the traditional approaches for SBIR have used hand-crafted features such as gradient field HOG descriptor [6], SIFT [25] and SURF [2] etc. [32] proposed a dynamic programming based method for SBIR which is effective in translation, rotation, and scale (similarity). Recent advancement of deep learning provides an automatic feature extraction technique which learns the pose and color invariant feature. Recently [52, 38, 40, 50] have used deep feature for SBIR task. Instead of finding the common subspace other approach projects the sketch space to image space or vice versa such that the information gap between the sketches and the real images are minimum [16, 32].
Recently zero-shot learning drew more attention due to its capability of classifying a novel class object during the test phase. In the ZSL each class is associated with side information like description of the class, attribute or unsupervised word embedding (Word2vec [28], Glove [33], etc.). This side information of the class is called the semantic features/attributes. In ZSL, the core concept is to learn projection between class feature and side information, using labeled seen class data only. We can categories all proposed models for ZSL in three types based on projection.The most popular work learns the projection between visual space to semantic space and vice-versa [49, 1, 31, 45, 42, 29]. Another popular approach projects the visual and semantic features in a shared subspace such that same class visual features and semantic attributes map closer, whereas different class visual features and semantic attributes are well-separated [44].
Recently generative models are emerging as the most popular approach for zero-shot image classification. This type of approach gaining popularity because of its ability to synthesize the unseen class sample and can reduce the ZSL problem to a supervised learning problem. These approach learns the data distribution based on the given conditions [11, 42, 20, 46]. Most of the previous methods for zero-shot learning are focused on image classification. However, a few models are used for zero-shot action classification, zero-shot image tagging and zero-shot multi-label learning as well [21, 48, 30, 49, 54, 9].
Recently [40, 50] have proposed a model for the ZS-SBIR. [40] proposed a hashing based approach for the ZS-SBIR. The hashing architecture is based on the multi-model deep network. [50] proposed a generative model for the ZS-SBIR based on the CVAE architecture. The proposed approach is also a generative in nature based on IAF to get the improved variational inference [18]. Here our encoder is based on the IAF architecture that learns the complex latent encoding of the input into the latent space. It can learn the complex distribution with the simple sequential transformation. Also, we are using the -VAE [15] architecture for the disentangled representation. The residual decoder is used that gives the better generation of the sample because it can flow the gradient with the deeper layers. In the proposed approach the external feedback mechanism provides the feedback to the encoder about the generation quality. Hence the generator has better guidance for generating the robust sample.
6 Experiments and Results
To show the effectiveness of our proposed model we ause two challenging datasets: Sketchy [38] and TU-Berlin [7]. Originally, Sketchy dataset [38] contains 75471 hand-drawn sketches and 12500 corresponding images from 125 classes. [23] have provided 60502 more real images from all 125 classes, which extends the original dataset. TU-Berlin extended [7] is a large scale dataset having 20000 sketches and 204489 images from 250 different categories provided by [23, 53].
The visual features for images and sketches are extracted using ResNet-152 [13], pretrained on ImageNet [37] dataset. The sketches and image features are extracted from the last fully connected layer. It gives 2048-dimensional feature vectors. We believe that further finetuning on this dataset on ResNet-152 architecture will give better performance. The visual features of the sketches are used as a class attributes in our proposed generative model.
6.1 Sketchy Dataset (Extended)
For fair comparison with the recent work [40, 50], we have two splits of the dataset. [40] randomly selected 25 classes of sketches as the test set () and the remaining labeled 100 classes are used as the training set (). Here , i.e. train and test class are disjoint. We have another split of the dataset similar to [50], this contains 104 classes in training, and used 21 classes images and sketches as a test set.
Random split proposed by [40] is not the realistic Zero-Shot setting [47]. Since in random split test set may have some classes that are present in the ImageNet class. Since we are using the ImageNet pre-trained model for the feature extraction and this training is done in a supervised manner. This violates the assumption that are the unseen classes. Therefore it is not the exact Zero-Shot setting. The split proposed by [50] is the realistic setup for ZS-SBIR, where the split is done in such a way that any of the classes are not present in the ImageNet dataset. In our setup for training, we need a paired image and sketch set. To make the paired set, we selected a random image and sketch from the same training class and paired them. This process repeated 1000 time, i.e., each class in the training set has 1000 pair of data point. We are comparing our model with the previous approach in their original setup; therefore, we are using both the split.
6.2 TU Berlin Dataset (Extended)
Similar to [40] for the fair comparison randomly 30 classes are selected for the and remaining 220 classes are used for the . This dataset is highly biased; few classes have large examples while few have only limited samples. In the Zero-shot setup, learning with biased data is a very hard problem. Therefore form training we removed the biases. For doing so, we are sampling the equal number of image and sketch sample pairs from each class. In the testing, we selected the class that has more than 400 samples. For making image and sketch pair, we follow the same pattern mentioned in the previous section. Here again, each class has a 1500 pair of image and sketch.
6.3 Implementation details
In our model, we have three components, Encoder (E), Generator (G) and Regressor (R). The encoder is based on the IAF architecture, refer to figure-2. The encoder contains the two fully connected layers of size 4096 followed by one layer that gives the and this passed to 3 layers IAF architecture. The generator has five layers of the fully connected neural network (NN) with the residual connection. It is a combination of the deep and shallow network. Here sigmoid activation is used. All layers are of the same size of 6144. Regressor takes the reconstructed samples and regresses the sketch. It uses the two-layer fully connected NN of size 4096. The learning rate () is set as a stepwise decreasing rate. Initially for the 5 epoch then after each 10 epoch it changed to [0.0005,0.0001,0.00001]. Here instead of prior, we found from the validation data gives the better performance. Also, for the ablation, we experiment with the plain autoencoder. The autoencoder used contains the same architecture as the IAF encoder with feedback connection; only the difference is that the dimension of is zero. Therefore the generated sample is deterministic and depends only on the given sketch feature .
6.4 Training and Testing
There are two modules in the model, IAF-VAE and regressor. We are alternately optimizing the IAF-VAE and regressor. These two module helps each other to learn the robust generator. In the VAE training, we are minimizing the loss w.r.t. and ’s parameters, and for regressor training, we are minimizing the regressor’s loss w.r.t ’s parameter only. The alternate optimization is done Until convergence. The complete setup is for the zero-shot learning; therefore the testing is performed from the unseen class sketch to unseen class image. In the testing phase each is concatenated with the and generate the samples using generator . Now from these , samples find the image that gives maximum cosine similarity. The similarity of the sample from the query sketch can be given as:
[TABLE]
Here, is the image in the query database. Equation-12 is repeated for each image and find the samples with maximum similarity scores for the retrieval. is the ResNet-152 model and gives the feature vector for each image, and is the generator.
Result Analysis with existing methods
Since best of our knowledge, only two very recent works ZSIH [40] and CVAE [50] have been proposed for ZS-SBIR. Therefore for supporting the performance of the proposed model, we compare the performance of our model with several other state-of-the-art. We have analyzed two types of baselines methods, 1- Sketch-Based Image Retrieval (SBIR) Baselines and 2- Zero-Shot Learning (ZSL) baselines.
Sketch base image retrieval baselines (SBIR)
Several approaches have been proposed for SBIR. We compare our model with Siamese-1 [12], Siamese-2 [34], Coarse-grained triplet [39], Fine-grained triplet [38], DSH [24], SaN [52], GN Triplet [38], 3D Shape [43], Siamese CNN [conf/icip/SBIR16]. Since these baselines are not originally proposed for zero-shot setting, [40] provides these baseline for the zero-shot setting. We have taken these baseline result directly from the paper [40].
Zero-Shot baselines (ZSL)
The most of the existing approaches for zero-shot learning are proposed for the zero-shot image classification. We select a set of zero-shot learning approaches as baseline to compare with our proposed model. These ZSL baseline approaches are CMT [41], DeViSE [8], SAE [19], SSE [55], ESZSL [36], CAAE [27], JLSE [56], DAP [21]. The baseline results are borrowed from the [50, 40]. We again reproduce the the baseline results reported in the table-2.
The recent work on the ZS-SBIR is ZSIH [40] and CVAE [50]. ZSIH [40] shows the experiment on the TU-Berlin and Sketchy dataset. They reported the result of precision@100 and mAP@all for all datasets. [40] using the word2vec[28] as side information in their model. As mentioned earlier we are not using any side information but have significantly better result compare to ZSIH. The comparison result with the baseline and ZSIH are shown in the table-1. We can see without any side information our approach performs significantly better than all the previous approach that used the side information. Also, we experimented the proposed approach with autoencoder only and found that the proposed VAE model significantly outperforms the autoencoder model. Please refer to table-1 for the more details.
Another approach CVAE [50] has proposed a generative model for ZS-SBIR; they showed the result on the Sketchy dataset. CVAE suggested the realistic train-test split similar to [47] for the ZS-SBIR. [50] evaluated the performance of the model over precision@200 and mAP@200 metric. We are following the same setup to compare our result with CVAE. Our result on the Sketchy-dataset shows that the proposed approach is significantly better compare to CVAE. CVAE not using any side information and without using any side information (e.g., word2vec), our method shows the and relative improvement over precision@200 and mAP@200 metric.
In the Figure-3 we have illustrated the top-6 retrieved result using the unseen class sketches from the image database. Retrieved images are closely matched to the outline of the sketches. Since our model learns the mapping between sketches and images based on components. So it may retrieve some other class images which are significantly similarity with the sketch. In Figure-3 we can see that for helicopter sketch our model retrieve the fish because the outline of sketches of the helicopter and fish are very similar. Also, we have shown the t-SNE [26] plot of the original data and the reconstructed data for the Sketchy [38] dataset. In the t-SNE plot, we can observe that the generated samples for the novel classes are not as good as the original one. But the generated sample nearly follow the same distribution as the original one. The few class samples are as good as the original samples. Please refer to figure-4 for the t-SNE plot.
Ablation Study
We now show the significance of the different components of the model as compared to the basic VAE model. We have found that the proposed approach outperforms by a significant margin across all the dataset. Even though without using any side information we are performing better than the previous approach [40] that used the side information. In the section-[6.5] we are showing the ablation with and without VAE. Also in section-[6.6] we are showing the significance of the IAF component.
6.5 With/Without VAE
We also perform the ablation analysis over the different component of the proposed approach. In the first experiment, we compare the performance of autoencoder with the proposed VAE architecture. We found that the proposed model with the VAE component always outperforms compare to autoencoder architecture. Using the feedback-VAE architecture on the Sketchy-dataset the model shows the and relative improvement on the precision@100 and mAP@all metric compare to plain autoencoder architecture. The similar pattern we observe for the Tu-Berlin dataset also. The feedback-VAE shows the and relative improvement over the plain autoencoder architecture on the precision@100 and mAP@all metric. Please refer to figure-5 for comparison details.
6.6 With/Without IAF
We present the ablation study with IAF and without IAF component, without using any side information. We have found that if we remove the IAF component, the performance drop is significant as compared to with-IAF. For the Sketchy dataset, we reported in Table-3 that with-IAF component, the precision@100 and mAP@all are 0.358 and 0.289, respectively. If we remove the IAF component, the performance drop is significant, and precision@100 and mAP@all are 0.313 and 0.261, respectively. Therefore we have 12.6% and 9.7% relative drop in the performance without-IAF. We also observed a similar pattern on the TU-Berlin dataset. Here in Table-3 with-IAF we have 0.334 and 0.238, precision@100 and mAP@all, respectively. But if we drop the IAF component, our precision@100 and mAP@all are 0.294 and 0.198, respectively. Therefore we have 12.0% and 16.8% performance drop, respectively. Please refer to Table-3 for the more details.
7 Conclusion
In this paper, we addressed the Zero-Shot Sketch-Based Image Retrieval problem, which is a challenging and more realistic setting as compared to the conventional SBIR. The proposed generative approach can solve the SBIR problem when the classes are growing with time, and does not require all classes to be present at the training time. We have found that the proposed approach, based on the IAF architecture with the feedback mechanism, generates high-quality samples of the novel classes. Moreover, without using any side information, our proposed generative model can retrieve novel class examples and gives state-of-art results on benchmark datasets. In this work, we assume that the test query comes from the unseen classes only. In future, it will be interesting to explore the Generalized ZS-SBIR problem where test query can come from the seen as well as unseen classes. Also, the domain shift is a critical problem in the ZSL. It will be an interesting direction of future work to handle the domain shift for zero-shot SBIR. The recent model shows a significant improvement inj ZS-SBIR using the side information. In future, it will also be exciting to explore the model with the help of side information.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Z. Akata, S. Reed, D. Walter, H. Lee, and B. Schiele. Evaluation of output embeddings for fine-grained image classification. In CVPR , pages 2927–2936, 2015.
- 2[2] H. Bay, T. Tuytelaars, and L. Van Gool. Surf: Speeded up robust features. In European conference on computer vision , pages 404–417. Springer, 2006.
- 3[3] X. Cao, H. Zhang, S. Liu, X. Guo, and L. Lin. Sym-fish: A symmetry-aware flip invariant sketch histogram shape descriptor. In ICCV , pages 313–320, 2013.
- 4[4] Y. Cao, C. Wang, L. Zhang, and L. Zhang. Edgel index for large-scale sketch-based image search. In CVPR , 2011.
- 5[5] S. Chopra, R. Hadsell, and Y. Le Cun. Learning a similarity metric discriminatively, with application to face verification. In CVPR , pages 539–546, 2005.
- 6[6] N. Dalal and B. Triggs. Histograms of oriented gradients for human detection. In CVPR , pages 886–893, 2005.
- 7[7] M. Eitz, J. Hays, and M. Alexa. How do humans sketch objects? ACM Trans. Graph. , 31:44–1, 2012.
- 8[8] A. Frome, G. S. Corrado, J. Shlens, S. Bengio, J. Dean, T. Mikolov, et al. Devise: A deep visual-semantic embedding model. In NIPS , pages 2121–2129, 2013.
