Learning Algebraic Representation for Systematic Generalization in Abstract Reasoning

Chi Zhang, Sirui Xie, Baoxiong Jia, Ying Nian Wu, Song-Chun Zhu, Yixin Zhu

Abstract

Systematic generalization—the ability to apply learned rules to novel combinations of objects—is a hallmark of human intelligence that remains elusive for standard deep learning models. We present ALANS (ALgebra-Aware Neuro-Semi-Symbolic learner), a framework that bridges the gap between connectionist perception and classicist symbolic reasoning. ALANS maps visual inputs into a probabilistic belief state and then induces underlying algebraic rules through matrix-based operator optimization. Evaluated on Raven’s Progressive Matrices, ALANS demonstrates significant improvements in systematicity, productivity, and localism compared to state-of-the-art neural models.

Introduction

The "Connectionist vs. Classicist" debate highlights a fundamental tension in AI: while neural networks excel at perception, they are often "fragile" when rules must be applied to new scenarios. Classicists argue that human intelligence relies on an "algebraic mind"—a mental language where symbols are manipulated according to structural rules. The challenge is building a system that combines the raw processing power of neural nets with the rigorous, generalizable logic of algebra.

The ALANS Framework

Researchers from UCLA, Peking University, and the Beijing Institute for General Artificial Intelligence propose the ALANS learner. The model decomposes abstract reasoning into two primary stages:

1. Neural Visual Perception

The frontend uses a CNN to traverse image panels, identifying objects and their attributes (e.g., type, size, color). To handle visual uncertainty, it outputs a "probabilistic belief state" rather than a hard classification.

2. Algebraic Abstract Reasoning

The backend treats these attributes as elements of an algebraic set. By leveraging the Peano Axioms, attributes are represented as matrices. Rule-finding is treated as an optimization problem: the model performs "on-the-fly" linear regression to find the matrix operator that best explains the transformations between panels.

Overview of the ALANS architecture, showing the transition from visual perception to algebraic reasoning.

Operator Induction and Isomorphism

A key innovation in ALANS is the establishment of a mathematical mapping (isomorphism) between abstract rules and matrix operations. Because the operators are induced per instance rather than hard-coded, the approach is "semi-symbolic." This allows the model to "calculate" the representation of a missing panel, which can then be used to select an answer or even generate a new image.

The isomorphism between belief states and matrix representations used for operator induction.

Experimental Evaluation

The model was evaluated on Raven’s Progressive Matrices (RPM), specifically the RAVEN and I-RAVEN datasets. To test true generalization, the authors created three regimes:

  • Systematicity: Training on a subset of relations and testing on others.
  • Productivity: Training on simple relations and testing on complex ones.
  • Localism: Training on complex relations and testing on simple ones.

Key Results

ALANS significantly outperformed connectionist models like CoPINet and ResNet. On the I-RAVEN dataset, ALANS achieved 64.8% accuracy, while CoPINet reached only 18.35%. Crucially, ALANS remained stable across different reasoning regimes, whereas other models showed devastating performance drops when moving from training to testing. The authors show that ALANS's process—inducing a relation, executing it to form a mental image, and then finding the closest match—closely mimics human problem-solving strategies.

Conclusion

By using algebra as an inductive bias, ALANS mirrors human logic and avoids overfitting to specific visual features. While the current model assumes attribute independence and requires a pre-defined attribute space, it represents a significant step toward AI that can reason systematically. Future work aims to improve perception robustness and explore the discovery of entirely new attribute types.

Summary updated

BibTeX
@inproceedings{zhang2022learning,
  author = {Chi Zhang and Sirui Xie and Baoxiong Jia and Ying Nian Wu and Song-Chun Zhu and Yixin Zhu},
  title = {{Learning Algebraic Representation for Systematic Generalization in Abstract Reasoning}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19842-7\_40},
}
Figure