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 a novel train-test split. The proposed approach significantly outperforms various baselines on both datasets.
Introduction
Sketch-Based Image Retrieval (SBIR) is inherently difficult because sketches and photos exist in two very different visual domains: one is sparse and iconic, while the other is dense and detailed. The "Zero-Shot" flavor of this problem adds a significant hurdle: the model must retrieve images for classes it has never seen during training (e.g., training on "cats" and "dogs" but being asked to find a "tiger" at test time).
Traditional methods usually rely on learning fixed correspondences between seen classes, which causes them to fail when faced with novel objects. While some recent works use semantic side-information like word vectors to bridge this gap, they often struggle to capture the complex, high-dimensional distribution of real-world image features.
Methodology
The authors propose a conditional generative model that "imagines" what a photo's features would look like based on a hand-drawn sketch. This shifts the paradigm from direct matching to generation, effectively bypassing the domain gap problem.
Architectural Pillars
- IAF-based Variational Autoencoder (VAE): Standard VAEs often produce overly simplified distributions. To address this, the model uses Inverse Autoregressive Flow (IAF), which applies a sequence of invertible transformations to latent variables. This allows the model to represent the complex probability distributions necessary for capturing rich image features.
- Feedback Mechanism (The Regressor): To ensure generated features match the input sketch, a feedback loop is introduced. A regressor maps generated image features back to the original sketch's attributes, forcing the generator to produce discriminative and identity-preserving features.
- Residual Decoder: Inspired by ResNet, the decoder uses skip connections to facilitate the learning of deeper architectures and better reconstruction of the visual space.
At retrieval time, the model takes a query sketch, generates multiple candidate image feature vectors, and performs a simple Nearest Neighbor search against a database of real image features extracted via a ResNet-152 backbone.
Experimental Results
The model, dubbed GZS-SBIR, was evaluated on two primary benchmarks using realistic splits to ensure test classes were truly unseen:
- Sketchy (Extended): Achieved a Precision@100 of 0.358, outperforming the previous best generative model (CVAE) at 0.333.
- TU Berlin (Extended): Achieved a Precision@100 of 0.334, a substantial lead over the hashing-based ZSIH method (0.291).
An ablation study proved the necessity of the core components; removing the IAF module led to a 12-16% relative drop in performance across both datasets, demonstrating its importance in modeling intricate feature manifolds.
Conclusion and Future Work
GZS-SBIR demonstrates that a generative approach can effectively bridge the domain gap in zero-shot scenarios. While the model handles unseen classes well, a "domain shift" between training and testing distributions remains a challenge. Future work may involve exploring Generalized ZS-SBIR—where queries can come from both seen and unseen classes—and incorporating semantic side-information like word2vec embeddings to provide stronger priors for the generative process.
Summary updated