Neural Prediction Errors enable Analogical Visual Reasoning in Human Standard Intelligence Tests

Lingxiao Yang, Hongzhi You, Zonglei Zhen, Dahui Wang, Xiaohong Wan, Xiaohua Xie, Ru-Yuan ZhangICML 2023

Introduction

While deep neural networks (DNNs) have achieved remarkable success in tasks ranging from image recognition to natural language processing, they continue to struggle with abstract analogical reasoning. This is the cognitive ability to discern underlying rules from a limited set of examples and apply them to novel situations. To bridge this gap, researchers have introduced the Predictive Reasoning Network (PredRNet), a novel architecture inspired by the neuroscience concept of "prediction error." By iteratively predicting missing visual patterns and comparing them to candidate answers, PredRNet achieves state-of-the-art performance on standard intelligence benchmarks.

The Challenge: Raven’s Progressive Matrices

In human psychology, the gold standard for evaluating fluid intelligence and abstract reasoning is the Raven’s Progressive Matrices (RPM) test. An RPM typically consists of a 3x3 grid of images with the final image missing. The subject must deduce the underlying abstract relationships—such as size progressions, spatial shifts, or logical operations like XOR—across the rows and columns to select the correct missing piece from eight candidate images.

Previous AI models have attempted to solve RPMs using brute-force feature fusion or complex attention mechanisms. However, these approaches often fail to capture the iterative, hypothesis-testing nature of human thought, leading to poor generalization on out-of-distribution tasks.

Methodology: The Predictive Reasoning Network (PredRNet)

To address the shortcomings of previous models, the authors designed PredRNet around three core components:

1. Image Encoder (ResNet-4B)

The model utilizes a customized residual network, ResNet-4B, to extract high-level features from the input images. Unlike standard ResNets optimized for natural, real-world photographs, this variant is specifically tailored to process the small, geometric objects characteristic of IQ tests.

2. Predictive Reasoning Block (PRB)

The PRB represents the core innovation of the paper, drawing direct inspiration from "Predictive Coding" theory in neuroscience. Each block executes a "predict-and-match" operation:

  • Prediction: It takes the extracted features of the 8 context images and uses a convolutional layer to predict the features of the missing 9th image.
  • Error Calculation: It calculates the Prediction Error (PE) by subtracting this predicted feature representation from the actual features of the 8 candidate answers.

3. Stacked Iteration

PredRNet stacks multiple PRBs (typically three) in sequence. This allows the network to use the prediction errors from the first stage to refine its understanding of the underlying rule in subsequent stages. This iterative refinement closely mimics how a human might double-check and adjust their logical hypotheses. Finally, a classifier processes the refined features and errors to output a probability score for each candidate image.

Experimental Setup

The researchers rigorously evaluated PredRNet across a comprehensive suite of reasoning benchmarks:

  • PGM (Procedurally Generated Matrices): Evaluated on Neutral and various Out-of-Distribution (OOD) splits.
  • RAVEN Variants: Tested on the original RAVEN dataset, as well as the "FAIR" and "Impartial" versions designed to eliminate shortcut biases.
  • CLEVR-Matrices: A dataset featuring complex 3D-rendered shapes.
  • Bongard-LOGO & Visual Analogy Data (VAD): Used to assess the model's capacity for few-shot reasoning and classic visual analogies.

Key Findings and Insights

State-of-the-Art Performance and Robustness

PredRNet establishes a new benchmark in the field, achieving an average accuracy of 96.7% across four major RPM datasets and outperforming previous leading models like STSN and MRNet. Furthermore, while many models exhibit dataset-specific biases (e.g., performing well on PGM but failing on RAVEN), PredRNet maintained consistently high accuracy (above 95%) across all variants.

Superior Generalization

On the challenging PGM "Extrapolation" task—where the model must reason about attribute values (such as specific colors or sizes) it never encountered during training—PredRNet significantly outperformed existing models. This demonstrates that the network successfully captures the underlying logic of the progression rather than merely memorizing specific visual values.

The Power of Subtraction and Rule Discovery

Ablation studies revealed that calculating the difference (subtraction) between a prediction and a candidate was significantly more effective than additive feature fusion. This validates the hypothesis that "error signals" are highly informative for abstract reasoning.

Additionally, t-SNE visualizations of the model’s internal representations showed natural clustering by rule type (e.g., all "XOR" problems grouped together), proving the model learns abstract logic rather than superficial pixel patterns. Interestingly, the model learned to minimize these prediction errors implicitly as a byproduct of training, reinforcing the biological plausibility of the approach.

Limitations and Future Directions

Despite its groundbreaking success, the authors acknowledge two primary limitations. First, PredRNet relies on fully supervised learning, requiring thousands of examples to learn rules that humans can often deduce from just one or two. Second, the current error computation relies on a simple subtraction operator.

Future research will likely explore semi-supervised or unsupervised learning paradigms to better approximate biological fluid intelligence, as well as investigate more sophisticated error-computation methods and explicit prediction error loss functions to further enhance reasoning capabilities.

Summary updated

BibTeX
@inproceedings{yang2023neural,
  author = {Lingxiao Yang and Hongzhi You and Zonglei Zhen and Dahui Wang and Xiaohong Wan and Xiaohua Xie and Ru-Yuan Zhang},
  title = {{Neural Prediction Errors enable Analogical Visual Reasoning in Human Standard Intelligence Tests}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=dgldcD3G1n},
}
Figure