Generic Sketch-Based Retrieval Learned without Drawing a Single Sketch

Filip Radenovic, Giorgos Tolias, Ondrej Chum

Abstract

Traditional sketch-based image retrieval (SBIR) systems rely on labor-intensive, human-drawn datasets that often fail to generalize across different object categories. We present a novel approach that eliminates the need for manual sketches by training a convolutional neural network (CNN) on automatically generated edge maps derived from 3D-reconstructed landmarks. Our "generic" shape descriptor, EdgeMAC, achieves state-of-the-art performance in sketch retrieval and domain generalization, demonstrating that fundamental geometric features can be learned from "free" web data.

Introduction: The Challenge of Shape Matching

Most computer vision models are "texture-hungry," relying on color and fine patterns for object identification. However, in modalities like hand-drawn sketches or artistic paintings, texture is often absent or misleading, leaving shape as the primary diagnostic feature.

Developing SBIR systems typically requires thousands of hours of human drawing to create paired sketch-photo datasets. Moreover, these models often overfit to specific categories (e.g., shoes), making them ineffective for general-purpose retrieval. This research explores whether a universal representation of shape can be learned using only automatically mined data from the internet.

Methodology: Learning from Geometry

The proposed pipeline treats shape matching as a metric learning problem, utilizing a two-stage process to bridge the gap between photos and sketches.

From Pixels to Edges

To force the network to ignore texture and focus on geometry, input images are converted into edge maps. A key innovation is the Edge Filtering Layer, a differentiable function that uses soft thresholding to suppress background noise and clutter while preserving essential structural contours.

Self-Supervised Training via SfM

Instead of human labels, the model uses Structure-from-Motion (SfM) for supervision. By processing large collections of landmark photos, SfM identifies different views of the same physical object. A Siamese VGG16-based network is then trained to produce similar descriptors (EdgeMAC) for edge maps of the same landmark and distinct descriptors for different landmarks. To simulate the abstraction of human sketches, randomized thresholding is applied during training to mimic the omission of strokes.

Key Results and Evaluation

The EdgeMAC descriptor was evaluated across several benchmarks, demonstrating superior performance and generalization.

  • Domain Generalization (PACS): The model achieved a mean accuracy of 76.2%, a significant improvement over the previous state-of-the-art of 69.2%.
  • Sketch Retrieval (Flickr15k): The approach reached 46.1 mAP, outperforming existing CNN-based methods. With global diffusion, this score increased to 68.9 mAP.
  • Efficiency: By utilizing a stripped VGG16 architecture, the model remains lightweight at ~15 million parameters, compared to competitors using over 100 million.
Retrieval results for a bridge sketch across various domains and lighting conditions.

The results indicate that a single, generic network can outperform specialized models by learning robust, fundamental geometric features that translate across photos, sketches, and paintings.

Conclusion and Future Directions

This work demonstrates that high-quality shape descriptors can be learned without manual intervention. By leveraging the geometric consistency of 3D reconstructions, the model achieves a "universal" understanding of shape. Future improvements may involve integrating edge detection directly into an end-to-end framework to better handle extreme lighting conditions where current edge detectors might fail.

Summary updated

BibTeX
@inproceedings{radenovic2018generic,
  author = {Filip Radenovic and Giorgos Tolias and Ondrej Chum},
  title = {{Generic Sketch-Based Retrieval Learned without Drawing a Single Sketch}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01228-1\_46},
}
Figure