Structure Inference Net: Object Detection Using Scene-Level Context and Instance-Level Relationships

Yong Liu, Ruiping Wang, Shiguang Shan, Xilin Chen

Introduction

Standard deep learning object detectors, such as Faster R-CNN or SSD, have achieved remarkable success by identifying objects based on local visual features—essentially the pixels contained within a proposed bounding box. However, these models often lack "common sense" reasoning. In the real world, objects exist within a specific scene and maintain relationships with other objects.

A traditional detector might misclassify a blurry shape in a river as a "car" because of its silhouette, ignoring the global context that cars rarely float in water. Conversely, a small "mouse" on a desk might be missed due to weak local features, despite the presence of a "laptop" and "keyboard" making its existence highly probable. The Structure Inference Network (SIN) addresses this by treating detection as a joint problem of visual cognition and contextual reasoning.

Figure 3: Motivation for SIN. (a) Context helps distinguish boats from cars in aquatic scenes. (b) Relationships between objects, like a laptop and a mouse, aid in detecting small or ambiguous instances.

Methodology: Detection as Graph Inference

The authors propose the Structure Inference Network (SIN), which formulates the detection task as a graph structure inference problem. Instead of classifying regions in isolation, SIN models the dependencies between all candidate regions of interest (ROIs).

Graph Representation

Every candidate object (ROI) is treated as a node in a graph. The entire image represents the "scene" state, and the interactions between objects are modeled as edges. The network aims to refine the state of each node by integrating information from the global scene and neighboring nodes.

The Structure Inference Architecture

As shown in the system architecture, the process begins with a standard Region Proposal Network (RPN). The core innovation lies in the Structure Inference block, which consists of two main components:

  1. The Scene Module: This module uses a Gated Recurrent Unit (GRU) to update an object's state based on global scene information. For instance, if the global scene features are indicative of an "ocean," the GRU biases the object node toward "boat" rather than "car."
  2. The Edge Module: This module models inter-object influence. It uses another GRU to aggregate "messages" from all other objects in the image. This influence is weighted by visual similarity and relative spatial positions (e.g., a keyboard is more relevant to a mouse than a distant chair).
Figure 6: The overall architecture of the Structure Inference Network. Features from the whole image and individual RoIs are processed through Scene and Edge GRUs to iteratively refine object classifications and bounding box regressions.

Iterative Reasoning

The network performs iterative updates. By passing messages through the scene and edge modules multiple times, the model allows context to refine initial visual guesses. This iterative process enables the model to "remember" original fine-grained visual details while slowly integrating and fusing contextual messages.

Experimental Evaluation

The SIN model was evaluated on three standard benchmarks: PASCAL VOC 2007, PASCAL VOC 2012, and MS COCO 2015.

Key Results

  • Accuracy Improvements: On PASCAL VOC 2007, SIN achieved a Mean Average Precision (mAP) of 76.0%, a significant jump over the Faster R-CNN baseline of 73.2%.
  • Contextual Mastery: The model showed particular strength in categories where context is vital. For example, the average precision for "boat" increased by over 6% due to the effective use of scene-level information.
  • Robustness to Scale: By leveraging instance-level relationships, the model significantly improved the detection of small or vague objects that lack strong local visual cues.

Conclusion

The Structure Inference Network demonstrates that object detection can be significantly improved by moving beyond independent box classification. By treating an image as an "organism" of related parts, SIN uses global logic to correct local errors. While the model faces challenges in "rare case" scenarios (e.g., an airplane in a river) and increased computational complexity for dense graphs, it represents a major step toward more "intelligent" and context-aware computer vision systems.

Summary updated

BibTeX
@inproceedings{liu2018structure,
  author = {Yong Liu and Ruiping Wang and Shiguang Shan and Xilin Chen},
  title = {{Structure Inference Net: Object Detection Using Scene-Level Context and Instance-Level Relationships}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00730},
}
Figure