Visual question answering from another perspective: CLEVR mental rotation tests

Christopher Beckham, Martin Weiss, Florian Golemo, Sina Honari, Derek Nowrouzezahrai, Christopher Pal · DOI

Abstract

This paper introduces CLEVR-MRT, a benchmark designed to evaluate the "mental rotation" capabilities of Visual Question Answering (VQA) models. Unlike standard VQA tasks that rely on viewpoint-dependent reasoning, CLEVR-MRT requires models to answer questions about a 3D scene from perspectives different from the input image. We demonstrate that while traditional 2D architectures struggle with this task, models incorporating 3D inductive biases—specifically 3D feature volumes and rigid transformations—achieve significantly higher accuracy. Furthermore, self-supervised contrastive learning on multi-view data proves to be an effective strategy for learning robust volumetric representations without explicit 3D supervision.

Introduction: The Challenge of Mental Rotation

In cognitive psychology, "mental rotation" is the ability to imagine what an object or scene looks like from a different angle. While humans perform this task effortlessly, most current Visual Question Answering (VQA) models are inherently viewpoint-dependent. If a model is shown a picture of a kitchen and asked, "Is the fridge to the left of the stove?", it typically answers based solely on the 2D pixel arrangement it sees.

However, real-world reasoning often requires viewpoint-agnostic understanding. Consider a self-driving car navigating a busy intersection: it must understand if a pedestrian can see an oncoming vehicle from their specific perspective, not just from the car's own camera feed.

Figure 1: Real-world scenarios, such as navigating urban intersections, require understanding spatial layouts from multiple perspectives.

Existing VQA benchmarks like CLEVR usually pose questions from the same viewpoint as the input image. This paper addresses this gap by forcing models to decouple "perception" (what is seen) from "reasoning" (the underlying spatial layout of the scene).

Methods: 3D-Aware Architectures

To move beyond 2D image processing, the authors propose 3D-aware neural architectures. Their approach involves three key components:

  1. 3D Feature Volumes: Instead of relying on 2D feature maps from a standard ResNet, the model projects these features into a 3D "cube" (a 4D tensor). This creates an internal representation of the scene's volume.
  2. 3D Camera Controllable FiLM: The researchers adapted the Feature-wise Linear Modulation (FiLM) technique. While standard FiLM uses a question to modulate image features, this version uses camera parameters to perform rigid 3D transformations (rotations and translations) on the internal feature volume. Essentially, the model "rotates" its internal representation to align with the perspective required by the question.
  3. Self-Supervised Contrastive Learning: To train the encoder without needing explicit 3D labels for every image, the authors used a contrastive approach. They trained the model to recognize that two different 2D views of the same scene should have similar latent representations, while views of different scenes should be distinct.

The CLEVR-MRT Dataset

The study introduces CLEVR-MRT (Mental Rotation Tests), a modification of the popular CLEVR diagnostic dataset designed specifically to test these capabilities.

  • The Setup: For every scene, the dataset contains 20 images captured from different azimuthal angles.
  • The Challenge: The model is provided with one random viewpoint as input, but the question is always posed relative to a hidden "canonical" viewpoint.
  • Hard Mode: A more difficult version includes variable camera elevation and smaller objects to increase the frequency of occlusions, making the mental rotation task even more taxing.
Figure 3: The CLEVR-MRT dataset provides multiple viewpoints of the same scene to test a model's ability to reason from a hidden canonical perspective.

Key Results and Insights

The experimental results clearly demonstrate the advantage of explicit 3D reasoning:

  • 2D Baselines: A standard FiLM model without camera information achieved approximately 70% accuracy. Adding camera coordinates as a simple vector (embedding) boosted this to 83.7%.
  • 3D Projection: The proposed 3D projection model with rigid rotations reached 90.86% accuracy on the test set.
  • Contrastive Success: The self-supervised contrastive encoder achieved 86.01% accuracy, showing that models can learn to understand 3D space simply by observing different views of the same scene.
  • Performance Gap: For context, a model provided with the correct viewpoint (requiring no rotation) scores ~94.2%. The 3D-aware models are significantly closing the gap toward this upper bound.

Key Takeaways

  • 3D Inductive Biases Matter: Simply providing camera coordinates is insufficient. Models perform best when physically forced to perform rigid rotations on internal feature volumes, suggesting that "hard-coding" geometric laws is more efficient than expecting models to learn them from scratch.
  • Contrastive Learning as a Shortcut: Contrastive learning using "2D + 3D" data augmentation allows a model to learn a volumetric encoder that is highly effective for VQA, even without complex post-processing.
  • Domain Mismatch: Models pre-trained on ImageNet sometimes struggle with the abstract, geometric world of CLEVR, highlighting the difficulty of transferring real-world visual features to synthetic reasoning tasks.

Limitations and Future Work

While promising, the authors identify several areas for future research. Currently, the model is often "told" the camera transformation; a more human-like task would involve inferring the transformation from visual cues (like a marker in the scene). Additionally, scaling these volumetric representations to complex, naturalistic environments remains a challenge due to memory constraints. Finally, the ~8% performance gap compared to the canonical baseline suggests a "mental rotation tax" that architectures still pay for the complexity of the task.

Summary updated

BibTeX
@article{beckham2023visual,
  author = {Christopher Beckham and Martin Weiss and Florian Golemo and Sina Honari and Derek Nowrouzezahrai and Christopher Pal},
  title = {{Visual question answering from another perspective: CLEVR mental rotation tests}},
  journal = {Pattern Recognition},
  year = {2023},
  doi = {10.1016/j.patcog.2022.109209},
}
Figure