Multi-Granularity Modularized Network for Abstract Visual Reasoning

Xiangru Tang, Haoyuan Wang, Xiang Pan, Jiyang QiarXiv 2020

Abstract

Visual reasoning connects mental abilities to the physical world, which is a crucial factor in cognitive development. Most toddlers display sensitivity to this skill, but it is not easy for machines. Aimed at it, we focus on the Raven Progressive Matrices Test, designed to measure cognitive reasoning. Recent work designed some black-boxes to solve it in an end-to-end fashion, but they are incredibly complicated and difficult to explain. Inspired by cognitive studies, we propose a Multi-Granularity Modularized Network (MMoN) to bridge the gap between the processing of raw sensory information and symbolic reasoning. Specifically, it learns modularized reasoning functions to model the semantic rule from the visual grounding in a neuro-symbolic and semi-supervision way. To comprehensively evaluate MMoN, our experiments are conducted on the dataset of both seen and unseen reasoning rules. The result shows that MMoN is well suited for abstract visual reasoning and also explainable on the generalization test.

Introduction

Abstract visual reasoning—the ability to derive logical conclusions from patterns without relying on concrete objects—is a hallmark of human intelligence. While even toddlers can identify simple analogical relations, machines often struggle. Current deep learning models typically treat these problems as "black boxes," attempting to map images directly to answers. While they can achieve high accuracy on specific datasets, they are often "brittle": they fail to explain why an answer is correct and struggle to generalize when they encounter a new rule or a different visual layout. This paper introduces the Multi-Granularity Modularized Network (MMoN), a model designed to be both explainable and capable of extrapolating knowledge to novel situations.

Methods

The MMoN architecture consists of two primary components: Multi-Granularity Sensory Representation and Modularized Reasoning.

Multi-Granularity Sensory Representation

Instead of viewing the 3x3 matrix as a single image, the model processes information at three hierarchical levels to capture both fine-grained details and coarse-grained patterns:

  • Panel-wise ($M_p$): Extracts features from individual panels and uses a Relation Network to find relationships within a single row.
  • Row-wise ($M_r$): Stacks panels in a row to encode them as a single unit using a 3-channel ResNet.
  • Overall-wise ($M_o$): Compares the first two rows against the third row (which contains the candidate answer) using a 6-channel ResNet to capture high-level patterns across the entire matrix.
The MMoN architecture featuring multi-granularity sensory representation and modularized reasoning.

Modularized Reasoning

Inspired by Neural Module Networks, MMoN utilizes a library of reasoning functions ($f$). Each module is designed to handle a specific attribute (e.g., color, size, or position). The model employs neuro-symbolic training with "meta-targets" (labels describing the underlying rule) as semi-supervision. It learns to project high-dimensional visual features into a low-dimensional "rule space" and uses cosine similarity to determine which candidate answer best fits the logical transformation identified in the first two rows.

Results and Discussion

The researchers primarily evaluated MMoN on the RAVEN dataset, which provides structured representations allowing for the meta-target supervision used in this study.

State-of-the-Art Performance

On the standard RAVEN dataset, MMoN achieved an accuracy of 87.04%, significantly outperforming standard CNNs (~39%) and ResNet-based models (~59-86%). This success highlights the power of semi-supervision and hierarchical perception in learning actual logic rather than just memorizing visual shortcuts.

Performance comparison of MMoN against baseline models on the RAVEN dataset.

Superior Generalization and Explainability

In "Zero-Shot" style tests involving unseen configurations and rules, MMoN maintained much higher accuracy than baselines. For example, when transferring knowledge between different grid configurations, MMoN outperformed the ResNet-50 baseline by nearly 10-15% in several categories. Furthermore, because the model selects a specific module to solve a problem, its reasoning process is explainable; researchers can verify if the model is focusing on the correct attribute, such as "Size" for a size progression rule.

Conclusion

MMoN demonstrates that hierarchical perception and modular reasoning can effectively bridge the gap between raw sensory data and abstract logic. While the model currently relies on meta-target supervision and a fixed attribute set, it represents a significant step toward more robust and explainable visual reasoning systems. Future work will explore latent discovery of rules and dynamic attribute learning to reduce reliance on structured metadata.

Summary updated

BibTeX
@misc{tang2020multi,
  author = {Xiangru Tang and Haoyuan Wang and Xiang Pan and Jiyang Qi},
  title = {{Multi-Granularity Modularized Network for Abstract Visual Reasoning}},
  year = {2020},
  eprint = {2007.04670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.04670},
}
Figure