Visual Commonsense R-CNN

Tan Wang, Jianqiang Huang, Hanwang Zhang, Qianru Sun

Abstract

Current visual recognition systems excel at identifying objects but often fail to understand the functional relationships between them, largely due to observational biases in training datasets. We present Visual Commonsense R-CNN (VC R-CNN), an unsupervised feature learner that employs causal intervention ($do$-calculus) to move from simple correlation to causal "sense-making." By predicting contextual objects through a causal framework, VC R-CNN learns robust, functional representations that significantly improve performance in high-level tasks such as Image Captioning and Visual Question Answering (VQA).

Introduction

While deep learning has revolutionized object detection and localization, the "why" behind visual scenes remains elusive. Standard models often rely on spurious correlations—for instance, identifying a "keyboard" based on the presence of a "table" rather than the intrinsic features of the keyboard itself. This observational bias limits the reasoning capabilities of models when faced with out-of-context scenarios or complex reasoning tasks.

The Challenge of Observational Bias

Observational bias occurs when a model conflates the co-occurrence of objects with their functional relationship. In many datasets, certain objects are frequently photographed together (e.g., a person and snow in skiing photos). A standard model might correctly identify a skiing scene but fail to understand that the relationship is fundamentally between the person's legs and the skis. This "pollution" of features by context leads to failures in high-level reasoning tasks like Visual Question Answering (VQA), where the model might attend to irrelevant parts of the image (like a person's face) instead of the functional components (the legs and skis).

Methodology: Causal Intervention in Feature Learning

VC R-CNN addresses this by serving as an improved visual region encoder that learns features through a proxy task: predicting contextual objects. The core innovation is the application of Causal Intervention.

Causal Intervention vs. Standard Likelihood

Standard likelihood, $P(Y|X)$, captures the probability of seeing object $Y$ given object $X$. However, this is susceptible to confounders—background elements that cause both $X$ and $Y$ to appear. VC R-CNN instead uses $P(Y|do(X))$, which intervenes in the scene to determine true functional dependency.

Using a "Borrow & Put" strategy, the model "borrows" context from a global Confounder Dictionary (a memory bank of averaged features for all object categories) and "puts" it into the current scene. This forces the model to determine if the relationship between $X$ and $Y$ holds across diverse contexts, effectively stripping away dataset-specific biases and learning universal "commonsense" relationships.

Technical Implementation

The architecture includes a Self-Predictor to identify the object and a Context Predictor to predict neighbors using the causal framework. To handle the computational complexity of causal mathematics, the authors utilize the Normalized Weighted Geometric Mean (NWGM) approximation, making the approach feasible for end-to-end deep learning.

Experimental Setup

VC R-CNN was trained in an unsupervised manner on the MS-COCO Detection and Open Images datasets. The latter, containing 1.9 million images and 16 million bounding boxes, tested the model's scalability. Evaluation focused on three downstream tasks: Image Captioning (MS-COCO Karpathy split), VQA 2.0, and Visual Commonsense Reasoning (VCR).

Results and Discussion

VC R-CNN demonstrated significant improvements across all evaluated tasks. In Image Captioning, integrating VC features into the AoANet model yielded a state-of-the-art CIDEr score of 131.6.

Qualitative comparison between Faster R-CNN and VC R-CNN in Captioning and VQA tasks.

Correcting Cognitive Errors

As shown in the qualitative results, VC R-CNN shifts visual attention to functionally relevant regions. For a skiing-related question, while a standard model might focus on the person's face, VC R-CNN focuses on the legs and skis—the actual components of the action. This leads to a reduction in "hallucination," as measured by the CHAIR metric, indicating the model is less likely to imagine objects based on biased expectations.

Visual Commonsense Reasoning

On the VCR task, the model showed absolute gains in both answering (Q→A) and providing rationales (QA→R). This confirms that the learned features are more "reason-able" and better suited for tasks requiring logical deduction from visual evidence.

Conclusion and Future Work

VC R-CNN represents a significant step toward moving computer vision from pattern recognition to causal understanding. By using $do$-calculus to intervene in the learning process, the model acquires features that represent the potential for interaction rather than just visual appearance. Future work includes extending this framework to temporal commonsense in video and spatial reasoning in 3D point clouds.

Summary updated

BibTeX
@inproceedings{wang2020visual,
  author = {Tan Wang and Jianqiang Huang and Hanwang Zhang and Qianru Sun},
  title = {{Visual Commonsense R-CNN}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01077},
}
Figure