Generating Holistic 3D Scene Abstractions for Text-based Image Retrieval

Ang Li, Jin Sun, Joe Yue-Hei Ng, Ruichi Yu, Vlad I. Morariu, Larry S. Davis

Abstract

Spatial relationships between objects provide important information for text-based image retrieval. As users are more likely to describe a scene from a real-world perspective, using 3D spatial relationships rather than 2D relationships that assume a particular viewing direction, one of the main challenges is to infer the 3D structure that bridges images with users' text descriptions. However, direct inference of 3D structure from images requires learning from large-scale annotated data. Since interactions between objects can be reduced to a limited set of atomic spatial relations in 3D, we study the possibility of inferring 3D structure from a text description rather than an image, applying physical relation models to synthesize holistic 3D abstract object layouts satisfying the spatial constraints present in a textual description. We present a generic framework for retrieving images from a textual description of a scene by matching images with these generated abstract object layouts. Images are ranked by matching object detection outputs (bounding boxes) to 2D layout candidates (also represented by bounding boxes) which are obtained by projecting the 3D scenes with sampled camera directions. We validate our approach using public indoor scene datasets and show that our method outperforms baselines built upon object occurrence histograms and learned 2D pairwise relations.

Introduction

When searching for images using natural language, users frequently employ spatial descriptors, such as "a lamp on a nightstand to the left of the bed." Traditional retrieval systems struggle with these queries due to the dimensionality gap between 3D human descriptions and 2D image projections. Furthermore, the scarcity of annotated data for every possible 2D configuration makes learning these relationships difficult, especially for rare but valid spatial arrangements.

Existing approaches often attempt to map text directly to 2D probability distributions. However, these are highly sensitive to camera viewpoints. This research proposes a shift in paradigm: instead of learning 2D configurations, the system "imagines" a 3D scene first, leveraging physical priors to bridge the gap between text and images.

Methodology

The proposed framework utilizes a multi-stage pipeline to translate natural language into a searchable 3D representation.

The proposed framework for retrieving images from natural language descriptions by bridging 3D scene generation and 2D image detection.

Text Parsing and Semantic Triplets

The system first converts a natural language query into semantic triplets using the Stanford CoreNLP library. These triplets represent objects and their relative spatial constraints, providing a structured input for the 3D solver.

Example of natural language descriptions converted into semantic triplets for scene generation.

3D Abstract Scene Generation

Objects are modeled as 3D cuboids, and spatial relations are treated as inequality constraints based on physics and logic. For instance, the "on" relation implies physical contact and overlapping footprints in the x-y plane. To find a valid layout, the system employs an interval arithmetic-based solver. This solver recursively splits coordinate ranges and uses interval shrinkage to prune impossible layouts efficiently, ensuring a holistic scene where all object positions are mutually consistent.

2D Projection and Retrieval

Once a feasible 3D layout is established, the system samples various camera angles to generate 2D "reference layouts" represented by bounding boxes. For retrieval, an object detector (e.g., R-CNN) identifies objects in the image database. A greedy matching algorithm then compares these detections against the projected reference layouts, ranking images based on the quality of the match.

Experimental Results

The approach was evaluated on the SUN RGB-D and 3DGP datasets. The results demonstrate that incorporating 3D physical priors significantly improves retrieval performance over 2D baselines.

  • Performance: On the SUN RGB-D dataset, the model achieved a Recall@10 of 21.6%, outperforming a 2D-only baseline (15.3%) and a simple occurrence-based baseline (4.0%).
  • Synergy: Combining the physics-based 3D model with data-driven 2D models yielded the best overall results, suggesting that physical constraints and learned patterns are complementary.
  • Robustness: Qualitative analysis showed the system is robust to minor object detection failures, as the holistic layout matching can compensate for missing individual items.

Conclusion

This work presents a novel method for text-based image retrieval by synthesizing 3D abstract layouts from textual descriptions. By using physics as a prior, the model avoids the need for massive annotated datasets of 2D spatial configurations and naturally handles viewpoint variance. Future research will explore expanding the vocabulary to open-world object categories and incorporating more complex geometries and visual attributes like texture and color.

Summary updated

BibTeX
@inproceedings{li2017generating,
  author = {Ang Li and Jin Sun and Joe Yue-Hei Ng and Ruichi Yu and Vlad I. Morariu and Larry S. Davis},
  title = {{Generating Holistic 3D Scene Abstractions for Text-based Image Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.210},
}
Figure