Towards Generative Abstract Reasoning: Completing Raven’s Progressive Matrix via Rule Abstraction and Selection

Fan Shi, Bin Li, Xiangyang Xue

TL;DR

This paper introduces RAISE, a deep latent variable model designed to solve Raven’s Progressive Matrices (RPMs) by generating the missing image rather than just selecting it from a multiple-choice list. By learning interpretable visual concepts and applying "atomic rules" selected from a global knowledge set, RAISE can generate missing images at arbitrary positions, explain its reasoning, and generalize to unseen combinations of rules and attributes.

What Problem Does This Paper Address?

Raven’s Progressive Matrices (RPMs)—typically 3x3 grids of images with a missing bottom-right panel—are the standard benchmark for testing abstract visual reasoning in AI.

Historically, most AI models tackle RPMs as a multiple-choice problem. They look at the eight provided candidate images, plug them into the matrix, and score which one fits best. However, this allows models to "cheat" by exploiting statistical biases in the candidate sets rather than actually understanding the underlying logical rules.

Humans, on the other hand, can look at an incomplete matrix, deduce the pattern, and imagine the missing piece without ever seeing the options. Building a generative AI solver that can parse discrete visual attributes, deduce complex rules, and generate the correct answer from scratch is incredibly challenging. Existing generative solvers often rely on heavy artificial priors or struggle to abstract global rules across realistic datasets.

Methods

The authors propose RAISE (Rule AbstractIon and SElection), a conditional Deep Latent Variable Model (DLVM). The architecture is broken down into three main stages:

RAISE Architecture Diagram
  1. Concept Learning: An encoder processes the context images and maps their visual attributes (like shape, size, or color) into independent "latent concepts." It does this without explicit meta-labels for what those attributes mean.
  2. Abstract Reasoning (The Core Innovation): Instead of learning one monolithic rule for an entire matrix, RAISE decomposes rules. It maintains a "global knowledge set" of learnable parameters representing atomic rules (e.g., progression, constant, arithmetic). For each latent concept, RAISE analyzes the row/column representations, selects the appropriate atomic rule from the global set, and executes it to predict the state of the missing image's latent concept.
  3. Image Generation: A decoder takes the predicted latent concepts and translates them back into a pixel-level image.

Because RAISE generates the answer directly from the context, it does not need the multiple-choice candidate sets during training. It is trained using Variational Inference and can operate in a semi-supervised manner, requiring only a small fraction (e.g., 5%) of rule annotations to guide the latent space.

Datasets

  • RAVEN & I-RAVEN: Standard benchmarks for RPMs featuring various configurations (e.g., single objects, grids, inner/outer objects). I-RAVEN is a modified version that removes candidate-set biases.
  • RAVEN-Uni (Newly generated): The authors created modified grid configurations (e.g., 2x2Grid-Uni) that remove visual attribute noise to test how noise impacts generative models.
  • Held-Out Configurations: Custom splits of RAVEN designed to test Out-of-Distribution (OOD) generalization by withholding specific rule-attribute combinations during training.

Key Insights and Ideas

  • Compositionality Decouples Learning: By separating what an object is (latent concepts) from how it changes (atomic rules), RAISE achieves human-like compositional generalization. If it learns the "constant" rule on the color attribute, it can successfully apply that same rule to the size attribute later, even if it has never seen that specific combination.
  • Interpretability via Latent Space: Because the latent concepts map cleanly to human-understandable attributes, RAISE's reasoning is transparent. The authors demonstrate this by using RAISE for "odd-one-out" tasks; the model can identify a rule-breaking image by pointing to exactly which latent concept (e.g., the color concept) deviates from the predicted rule.
  • Arbitrary Position Generation: Because RAISE fundamentally models the row and column rules of the matrix, it isn't hardcoded to just fill in the bottom-right square. It can generate missing images at any position in the grid, or even fill in multiple missing images simultaneously.

Key Results

  • Bottom-Right Selection (via generation): RAISE achieved 90.0% average accuracy on RAVEN and 92.1% on I-RAVEN, outperforming powerful generative baselines (like PrAE and ALANS) in most configurations, despite using only 5% to 20% rule annotations for training.
  • Arbitrary Positions: When tasked with generating images at random positions, RAISE maintained near-perfect accuracy (99%+) on non-grid configurations, vastly outperforming baselines like Transformers, ANP, and LGPP.
Visual comparison of generated missing panels
  • OOD Generalization: On the highly challenging "Center-Held-Out" OOD dataset, RAISE achieved 99.2% accuracy. For context, the next best generative baseline (ALANS) achieved only 46.9%, and a standard Transformer achieved 12.1%.

Limitations and Future Work

  • Sensitivity to Visual Noise: The authors note that RAISE (and other generative models) struggles with heavy attribute noise, particularly in grid-shaped configurations (like 2x2Grid). Because generative models don't use multiple-choice candidates as a crutch, visual noise can create multiple mathematically valid solutions, confusing the model.
  • Future Work: The authors suggest that future research must explore better ways to handle noise in complex scenes. They also pose an interesting question: while noise hurts current models, exploring whether massive amounts of noisy data could eventually benefit completely unsupervised generative reasoning is a promising research direction.

Summary updated

BibTeX
@inproceedings{shi2024towards,
  author = {Fan Shi and Bin Li and Xiangyang Xue},
  title = {{Towards Generative Abstract Reasoning: Completing Raven’s Progressive Matrix via Rule Abstraction and Selection}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=IcR1OOFzxm},
}
Figure