Efficient and Interactive Spatial-Semantic Image Retrieval

Ryosuke Furuta, Naoto Inoue, Toshihiko Yamasaki

TL;DR

This paper introduces an image retrieval system that understands both the "what" and the "where" of an image by leveraging semantic segmentation. By combining Fully Convolutional Networks (FCNs) with Product Quantization, the authors enable fast, interactive searches where users can find images using sketches, natural images, or a hybrid of both.

What Problem Does This Paper Address?

Most of us are used to text-based image search: you type "horse" and get pictures of horses. However, text is terrible at describing spatial relationships. If you want a photo where a horse is specifically in the center and a person is riding it, a standard tag-based system often fails.

Existing solutions like "concept maps" or bounding boxes help, but they often ignore the actual shapes of objects or the background context (like "sky" or "grass"). Furthermore, many retrieval systems are static—you search once and get a list. This paper aims to create a system that is spatial (understands layout), semantic (understands categories), efficient (works on large databases), and interactive (allows users to refine searches on the fly).

Methods

The authors built their system on two main pillars:

  1. Semantic Segmentation (The "What" and "Where"): They use a Fully Convolutional Network (FCN)—specifically DeepLab-v2—to analyze images. Instead of just identifying objects, the FCN produces "probability maps" for various classes (e.g., car, person, road). These maps tell the system exactly which pixels likely belong to which category.
  2. Product Quantization (The "Speed"): Storing raw probability maps for tens of thousands of images is a memory nightmare. To fix this, the authors use Product Quantization (PQ). They break the high-dimensional probability vectors into smaller subvectors and "compress" them into a codebook. This allows the system to calculate the distance between a user's query and the database images using fast lookup tables, making the search nearly instantaneous.

The Interactive Query: The system is unique because it accepts three query types:

  • User Sketches: A user "paints" a rough segmentation map (e.g., a brown blob for a horse).
  • Natural Images: A user provides an existing photo to find similar ones.
  • Hybrid/Interactive: A user picks a search result and "paints" over it to refine the next search.

Datasets

The authors utilized several well-known benchmarks:

  • PASCAL-Context: Used to train the FCN on 60 different object and background classes.
  • MSCOCO2014: A massive set of ~83,000 images used for subjective user evaluations.
  • rPascal & rImageNet: Specialized datasets used to quantitatively measure retrieval accuracy using a metric called normalized Discounted Cumulative Gain (nDCG).

Key Insights and Ideas

  • Probability Maps as Features: Usually, semantic segmentation is the end goal of a computer vision task. Here, the authors treat the raw probability outputs as a rich feature set for retrieval, capturing shape and location better than traditional descriptors.
  • The "M = C" Optimization: The authors found that the most efficient way to partition their data for quantization was to create one partition per object class ($M = C$). Since different classes (like "sky" and "car") are largely independent, this minimizes information loss during compression.
  • Quantization is "Free": One of the most surprising findings was that compressing the data with PQ resulted in almost zero loss in retrieval quality while providing a massive boost in speed.

Key Results

  • User Preference: In subjective tests, users found the "Text + Proposed" system significantly more effective than text-only search, with an average relevance score of 3.8/5 compared to 3.5/5.
  • Blazing Fast: For a database of over 82,000 images, the system calculates results in just 0.3 seconds on a standard consumer-grade PC.
  • Memory Efficiency: By using PQ, the system manages the entire 82k image database within ~850MB of RAM—a feat that would be impossible with raw, uncompressed vectors.
  • Qualitative Success: The system successfully distinguishes between complex layouts, such as finding images of "cats on toilets" versus "cats on beds" based purely on the spatial probability maps.

Limitations and Future Work

The primary limitation is the fixed vocabulary. The system can only "see" the 60 classes it was trained on (from the PASCAL-Context set). If a user wants to find an object outside those 60 classes, the system won't recognize it.

The authors suggest that future work could involve:

  • Expanding the Vocabulary: Using weakly-supervised learning to train on thousands of classes without needing pixel-perfect manual labels.
  • Better Backbones: Swapping DeepLab-v2 for more modern, powerful architectures like PSPNet to improve the accuracy of the underlying probability maps.

Summary updated

BibTeX
@inproceedings{furuta2018efficient,
  author = {Ryosuke Furuta and Naoto Inoue and Toshihiko Yamasaki},
  title = {{Efficient and Interactive Spatial-Semantic Image Retrieval}},
  booktitle = {MMM},
  year = {2018},
  doi = {10.1007/978-3-319-73603-7\_16},
}
Figure