Image Retrieval with Structured Object Queries Using Latent Ranking SVM

Tian Lan, Weilong Yang, Yang Wang, Greg MoriECCV 2012

Abstract

We consider image retrieval with structured object queries—queries that specify the objects that should be present in the scene and their spatial relations. An example of such queries is "car on the road." Existing image retrieval systems typically consider queries consisting of object classes (i.e., keywords). They train a separate classifier for each object class and combine the output heuristically. In contrast, we develop a learning framework to jointly consider object classes and their relations. Our method considers not only the objects in the query ("car" and "road" in the above example) but also related object categories that can be useful for retrieval. Since we do not have ground-truth labeling of object bounding boxes on the test image, we represent them as latent variables in our model. Our learning method is an extension of the ranking SVM with latent variables, which we call latent ranking SVM. We demonstrate image retrieval and ranking results on a dataset with more than a hundred object classes.

Introduction

Traditional image retrieval systems often rely on a "bag of words" approach. If a user searches for "car" and "road," the system identifies images containing both elements but frequently fails to account for their spatial relationship. This results in low precision, where a car might be in a garage while a road is visible in the background, rather than the car actually being on the road.

This paper introduces a framework for image retrieval that supports structured queries. These queries specify both the objects and their spatial configurations (e.g., "sky above tree"). By treating object locations as latent variables within a Ranking SVM, the proposed model jointly learns to identify relevant objects, their spatial relationships, and helpful contextual clues, significantly outperforming traditional keyword-based search.

Methodology: The Latent Ranking SVM

The core of the approach is the Latent Ranking SVM, designed to bridge the gap between structured linguistic queries and raw visual data.

Structured Query Representation

Queries are represented as graphs where nodes correspond to object classes and edges represent spatial relations. While the study focuses on relations like above, below, and overlap, the underlying principle allows for complex scene descriptions.

A structured query represented as a graph of objects (nodes) and spatial relations (edges).

The Latent Variable Approach

A major challenge in image retrieval is the lack of ground-truth bounding boxes for objects in the test database. Standard object detectors are often noisy; if a system relies solely on a "car detector" that fails, the entire retrieval process fails. To address this, the model treats the locations and scales of objects as latent variables. During retrieval, the system searches for the "hypothesized" configuration of all objects that best satisfies the query's structure, rather than relying on isolated detection scores.

The model hypothesizes object locations (bounding boxes) to find the configuration that best matches the structured query.

The Five-Component Scoring Function

The compatibility between an image and a query is determined by five distinct potentials:

  • Query Object Appearance: Measures how well image patches match the requested objects.
  • Query Object Relations: Evaluates how well hypothesized locations match requested spatial relations (e.g., is the "sky" actually above the "tree"?).
  • Non-query Contextual Objects: A key innovation where the model learns that objects not mentioned in the query provide evidence. For instance, a "pedestrian" detector response increases the likelihood of a "car on road" query being relevant.
  • Non-query Spatial Relations: Models typical layouts between query objects and contextual objects.
  • Global Scene Features: Uses GIST descriptors to capture the overall "gist" of the scene (e.g., distinguishing a highway from an indoor setting).

Experimental Evaluation

The authors evaluated the model using the SUN 09 dataset, which contains 12,000 annotated images across over 100 object categories. The dataset was split into 4,367 training images and 4,317 testing images. They generated 1,926 structured queries based on real object combinations found in the ground truth.

Key Results

The "Full Model" was compared against standard part-based detectors and the MARR (Multi-Attribute Retrieval) model.

  • Mean Average Precision (mAP): The full model consistently outperformed baselines. For the most complex queries, it achieved a 9.64 mAP, compared to 5.95 for the part-based detector and 6.28 for MARR.
  • Ranking Performance: Using the NDCG (Normalized Discounted Cumulative Gain) metric, the model demonstrated a superior ability to rank images with multiple levels of relevance, ensuring images containing all query objects appeared higher than those with only partial matches.

Discussion and Insights

The research highlights that context is king. Non-query objects are highly informative; a "road" detector is often a more reliable indicator of a "car" than a noisy car detector itself. By jointly optimizing for localization and ranking, the model can "recover" from poor individual detections if the overall spatial configuration is coherent. Furthermore, the model's advantage increases with query complexity, as it excels at finding "hard-to-detect" objects (like fences) by anchoring them to "easy-to-detect" context (like the sky).

While powerful, the approach faces computational challenges, as inference involves solving a Markov Random Field (MRF) for every image. Future work aims to expand the vocabulary of relations and map raw natural language directly into these structured query graphs.

Summary updated

BibTeX
@inproceedings{lan2012image,
  author = {Tian Lan and Weilong Yang and Yang Wang and Greg Mori},
  title = {{Image Retrieval with Structured Object Queries Using Latent Ranking SVM}},
  booktitle = {European Conference on Computer Vision},
  year = {2012},
  url = {https://openreview.net/forum?id=Byby5FWOZS},
}
Figure