NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Visual Relation Detection using Depth Maps

Sahand Sharifzadeh, Max Berrendorf, Volker Tresp · DOI

Abstract: Visual relation detection methods rely on object information extracted from RGB images such as 2D bounding boxes, feature maps, and predicted class probabilities. We argue that depth maps can additionally provide valuable information on object relations, e.g. helping to detect not only spatial relations, such as standing behind, but also non-spatial relations, such as holding. In this work, we study the effect of using different object features with a focus on depth maps. To enable this study, we release a new synthetic dataset of depth maps, VG-Depth, as an extension to Visual Genome (VG). We also note that given the highly imbalanced distribution of relations in VG, typical evaluation metrics for visual relation detection cannot reveal improvements of under-represented relations. To address this problem, we propose using an additional metric, calling it Macro Recall@K, and demonstrate its remarkable performance on VG. Finally, our experiments confirm that by effective utilization of depth maps within a simple, yet competitive framework, the performance of visual relation detection can be improved by a margin of up to 8%.

Introduction

Visual Relation Detection (VRD) is a fundamental task in computer vision that involves identifying objects and the semantic relationships between them, such as (man, on, bike) or (fence, behind, dog). While standard approaches rely on 2D information—RGB pixels, bounding box coordinates, and class labels—2D images are mere projections of a 3D world. This projection often leads to ambiguities where objects overlapping in 2D are spatially separated in 3D. Without depth information, it is notoriously difficult for a model to distinguish between spatial relations like "next to" versus "behind," or "holding" versus "in front of."

Comparison of RGB and generated depth maps with object bounding boxes.

Methods

The proposed framework treats depth as a first-class citizen in relation detection. The architecture consists of three main components:

  1. Synthetic Depth Generation: Since datasets like Visual Genome don't come with depth data, the authors used a fully convolutional neural network (trained on NYU-Depth-v2) to generate "pseudo" depth maps for all images in VG, creating a new extension called VG-Depth.
  2. Feature Extraction: For every object pair, the model extracts four types of information: visual features (RGB), depth features (from the pseudo-depth maps), spatial features (bounding box coordinates), and semantic features (predicted class labels).
  3. ERMLP-E Fusion: An Extended Multi-Layer Perceptron module concatenates these diverse features and passes them through fully connected layers to predict the relationship (predicate).
The proposed architecture for visual relation detection using RGB and depth feature extractors.

Datasets and Evaluation

The study utilizes the Visual Genome (VG) benchmark and the newly introduced VG-Depth. To address the extreme class imbalance in VG, where common relations like "wearing" dominate the dataset, the authors propose using Macro Recall@K. This metric averages performance across all predicate categories, revealing how depth information particularly helps the "long tail" of under-represented spatial relations that standard "Micro Recall" metrics might overlook.

Results and Insights

Experimental results confirm that depth maps provide structural cues that are complementary to RGB features. Key findings include:

  • Performance Gains: The full model achieved a Macro Recall@100 of 22.72% on Visual Genome, significantly outperforming established models like Neural Motifs (14.39%).
  • The Depth Boost: Adding depth features to a model already using location, class, and RGB features improved the Macro Recall@100 from 19.16% to 22.72%—a substantial relative jump.
  • Robustness of Pseudo-Depth: Even though the depth maps are synthetic and contain "hallucinated" errors, they provide enough geometric consistency to help the model understand the physical layout of a scene better than 2D boxes alone.

Conclusion

Incorporating synthetic depth maps into the VRD pipeline significantly boosts performance by providing 3D context that 2D features lack. By effectively utilizing depth maps within a simple, yet competitive framework, the performance of visual relation detection can be improved by a margin of up to 8%. Future work could involve using more complex architectures like Graph Convolutional Networks or leveraging real-world depth data to further refine these spatial representations.

Summary updated

BibTeX
@inproceedings{sharifzadeh2019improving,
  author = {Sahand Sharifzadeh and Max Berrendorf and Volker Tresp},
  title = {{Improving Visual Relation Detection using Depth Maps}},
  booktitle = {ICPR},
  year = {2019},
  doi = {10.1109/icpr48806.2021.9412945},
}
Figure