Probabilistic Abduction for Visual Abstract Reasoning via Learning Rules in Vector-symbolic Architectures

Michael Hersche, Francesco di Stefano, Thomas Hofmann, Abu Sebastian, Abbas Rahimi

TL;DR

Learn-VRF is a neuro-symbolic model that solves Raven’s Progressive Matrices (RPM) by learning algebraic rule formulations within a high-dimensional Vector-symbolic Architecture (VSA). It achieves state-of-the-art out-of-distribution reasoning with only 5,000 parameters, outperforming massive models like GPT-3 while remaining fully interpretable.

What Problem Does This Paper Address?

Abstract reasoning—the ability to find patterns and rules in novel information—is a hallmark of human intelligence. A classic test for this is Raven’s Progressive Matrices (RPM), where a subject must fill in the missing 9th panel of a 3x3 grid based on underlying rules (like "color increases" or "shape alternates").

Current AI approaches fall into two camps:

  1. Connectionist (Deep Learning): Models like MLPs or LLMs can solve these but often require massive amounts of data, lack transparency, and struggle with "Out-of-Distribution" (OOD) scenarios—where a rule is applied to an attribute it hasn't seen before (e.g., seeing "progression" on color but only having trained on "progression" for size).
  2. Neuro-symbolic: These combine neural perception with symbolic logic. While powerful, previous versions (like NVSA) required researchers to hard-code the rules manually.

The authors address the gap: How can a model learn these abstract rules from scratch while maintaining the efficiency and interpretability of symbolic logic?

Methods

The authors introduce Learn-VRF (Learning VSA Rule Formulations). The core machinery relies on Vector-symbolic Architectures (VSA), which represent information as high-dimensional vectors (1024+ dimensions) and use a specific algebra (binding, unbinding, and superposition) to manipulate them.

Key steps include:

  • PMF to VSA Translation: Visual attributes (color, shape, etc.) are converted into Probability Mass Functions (PMFs) and then mapped into high-dimensional VSA vectors using fractional power encoding.
  • Generalized Rule Form: Instead of hard-coding a rule, they define a "fractional form" equation: $$\hat{\mathbf{a}}^{(3,3)} = (\mathbf{c}_1 \circledast \mathbf{c}_2 \circledast \mathbf{c}_3) \otimes (\mathbf{c}_4 \circledast \mathbf{c}_5 \circledast \mathbf{c}_6)$$ where $\circledast$ is binding (like multiplication) and $\otimes$ is unbinding (like division).

  • Convex Optimization: The model learns weights to determine which context panels (the first 8 images) should fill the slots $\mathbf{c}_1$ through $\mathbf{c}_6$.

  • Rule Sharing: The model learns a set of $R$ rules that are shared across all attributes, allowing it to apply a "progression" rule learned from "size" to "color" instantly.

Datasets

The study uses the I-RAVEN dataset, a standard benchmark for abstract reasoning that provides unbiased candidate answer sets.

  • In-Distribution (ID): Standard training and testing on the same types of rule-attribute pairs.
  • Out-of-Distribution (OOD): A more difficult test where the model is evaluated on rule-attribute combinations it never saw during training (e.g., it saw "Arithmetic" on Size, but must now solve "Arithmetic" on Color).

Key Insights and Ideas

  • One-Pass Learning: Remarkably, Learn-VRF can achieve ~81% accuracy after seeing the training data only once. This mimics human-like "few-shot" learning far better than standard deep learning.
  • Extreme Parameter Efficiency: By operating in the "rule space" rather than the "pixel space," the model uses only 5,000 parameters. For comparison, GPT-3 uses 175 billion.
  • Algebraic Interpretability: Because the rules are learned as weights in a VSA equation, researchers can "read" the model's mind. They can extract the learned weights and see exactly which algebraic formula the model settled on for a specific rule (e.g., discovering the model learned that "Distribute Three" is the sum of the first row minus the known elements of the third row).
  • The Power of Rule Sharing: Because the model learns rules rather than patterns, it generalizes almost perfectly to OOD tasks, whereas standard neural networks (MLPs) collapse when faced with unseen combinations.

Key Results

  • Accuracy: On I-RAVEN in-distribution data, Learn-VRF achieves 84.1% accuracy, on par with much larger neural models.
  • OOD Superiority: In the "Center" constellation OOD test, Learn-VRF achieved nearly 100% accuracy across almost all categories. In contrast, the MLP baseline dropped to as low as 14.8%, and GPT-3 (zero-shot) hovered between 65% and 94%.
  • Speed: By using VSA's "computation-in-superposition," the model avoids the exhaustive symbolic searches that plague other neuro-symbolic methods, making inference significantly faster.

Limitations and Future Work

  • Expressiveness Constraints: The current VSA fractional form is limited to representing sums and differences of attributes. It cannot currently represent complex logical bit-wise operations (like "OR" or "XOR"). This led to lower performance on specific "Position" attributes in 2x2 and 3x3 grids where such logic is required.
  • Perception Dependency: This paper focuses on the reasoning engine and assumes the visual attributes (labels) are provided by an external parser. A fully end-to-end system that learns both perception and VSA rules simultaneously is a suggested next step.
  • Fixed Rule Count: The model currently requires the user to set the number of rules ($R$) to learn, though it can handle "overcomplete" rule sets where $R$ is larger than the actual number of rules in the data.

Summary updated

BibTeX
@inproceedings{hersche2023probabilistic,
  author = {Michael Hersche and Francesco di Stefano and Thomas Hofmann and Abu Sebastian and Abbas Rahimi},
  title = {{Probabilistic Abduction for Visual Abstract Reasoning via Learning Rules in Vector-symbolic Architectures}},
  booktitle = {MATH-AI @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=rTz88hpGxc},
}
Figure