Learning to reason over visual objects

Shanka Subhra Mondal, Taylor Webb, Jonathan D. Cohen · OpenReview

Abstract

A core component of human intelligence is the ability to identify abstract patterns inherent in complex, high-dimensional perceptual data, as exemplified by visual reasoning tasks such as Raven's Progressive Matrices (RPM). Motivated by the goal of designing AI systems with this capacity, recent work has focused on evaluating whether neural networks can learn to solve RPM-like problems. Previous work has generally found that strong performance on these problems requires the incorporation of inductive biases that are specific to the RPM problem format, raising the question of whether such models might be more broadly useful. Here, we investigated the extent to which a general-purpose mechanism for processing visual scenes in terms of objects might help promote abstract visual reasoning. We found that a simple model, consisting only of an object-centric encoder and a transformer reasoning module, achieved state-of-the-art results on both of two challenging RPM-like benchmarks (PGM and I-RAVEN), as well as a novel benchmark with greater visual complexity (CLEVR-Matrices). These results suggest that an inductive bias for object-centric processing may be a key component of abstract visual reasoning, obviating the need for problem-specific inductive biases.

Introduction

Human intelligence excels at identifying abstract patterns within complex data. When we look at a scene, we do not merely perceive a grid of pixels; we identify discrete objects, their attributes (such as color and shape), and the logical rules governing their relationships. To evaluate this capacity in artificial intelligence, researchers frequently use Raven’s Progressive Matrices (RPMs)—visual puzzles where a subject must complete a 3x3 grid by deducing the underlying rules from eight context panels.

Historically, the most successful AI models for these tasks have relied on "inductive biases" specifically engineered for the RPM format. These architectures are often explicitly designed to compare rows and columns, raising a critical question: Do we require specialized logic modules for every unique reasoning task, or is there a more general mechanism capable of handling abstract visual logic?

The Slot Transformer Scoring Network (STSN)

This research introduces the Slot Transformer Scoring Network (STSN), an architecture that avoids task-specific "hacks" in favor of a general-purpose object-centric approach. The model consists of three primary components:

  1. Object-Centric Encoder (Slot Attention): Rather than processing an entire image as a single vector, the model utilizes Slot Attention to decompose each image panel into a set of $K$ "slots." This mechanism encourages the model to represent each discrete object in a scene within its own slot.
  2. Auxiliary Reconstruction: To ensure these slots capture meaningful physical data, the model includes a Slot Decoder. This component attempts to reconstruct the original image from the slots. This auxiliary task forces the encoder to retain precise details regarding shape, color, and spatial positioning.
  3. Transformer Reasoning Module: The slots from the eight context panels and a candidate answer are flattened into a sequence and processed by a standard Transformer. The Transformer learns to attend to the relationships between objects across different panels, ultimately producing a likelihood score for the candidate answer.

Additionally, the model employs Temporal Context Normalization (TCN), a technique designed to improve generalization across unseen variations in the data.

Experimental Framework

The STSN was evaluated against three challenging benchmarks:

  • PGM (Procedurally Generated Matrices): A large-scale dataset featuring geometric reasoning problems.
  • I-RAVEN (Impartial-RAVEN): A refined version of the RAVEN dataset designed to prevent models from "cheating" by analyzing answer choices in isolation.
  • CLEVR-Matrices: A new benchmark introduced in this study. Unlike the flat geometric shapes of PGM or I-RAVEN, CLEVR-Matrices uses 3D-rendered objects (cubes, spheres, cylinders) with complex lighting, shadows, and occlusions, significantly increasing the visual complexity of the reasoning task.

Key Results and Insights

STSN achieved new state-of-the-art (SOTA) results across all tested benchmarks, demonstrating the power of object-centric representations:

  • I-RAVEN: The model achieved an average accuracy of 95.7%, outperforming the previous leader, SCL (95.0%). Notably, it showed significant gains on the complex "O-IG" configuration (92.0% vs. 87.7%).
  • PGM: STSN reached 98.2% on the Neutral split and 78.5% on the Interpolation split, representing a ~10% improvement over prior methods.
  • CLEVR-Matrices: This benchmark provided the most striking evidence for the model's robustness. STSN achieved 99.6% accuracy, while the next best model (SCL) struggled at 70.5%. This suggests that object-centricity is essential for handling high visual complexity.
  • Ablation Studies: Removing the Slot Attention module resulted in an accuracy drop of over 20%, confirming that the ability to decompose scenes into objects is the primary driver of the model's reasoning performance.

Discussion and Future Work

The findings suggest that a model that "thinks" in terms of objects naturally learns to "think" in terms of logic. By breaking a scene into discrete entities, a general-purpose learner like a Transformer can more easily map abstract rules to specific data points. Furthermore, the researchers observed a direct correlation between reconstruction quality and reasoning accuracy; when the model was better at rebuilding the image, its logical performance soared.

Despite these successes, challenges remain in Extrapolation—reasoning about values outside the range seen during training (e.g., more objects than encountered in the training set). STSN scored 20.4% in this category, which is competitive but highlights that out-of-distribution logic remains a significant hurdle. Future research may focus on integrating object-centricity with more explicit relational inductive biases to further enhance the handling of complex, multi-step logical rules.

Summary updated

BibTeX
@inproceedings{mondal2023learning,
  author = {Shanka Subhra Mondal and Taylor Webb and Jonathan D. Cohen},
  title = {{Learning to reason over visual objects}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=uR6x8Be7o_M},
}
Figure