Unraveling the geometry of visual relational reasoning

Jiaqi Shang, Gabriel Kreiman, Haim Sompolinsky
2/24/2025
q-bio.NCcs.CV

No official code found. Best implementation: ShaneShang/SimplifiedRPM-Visual-Reasoning (0 stars, last commit 2025-02-19).

Abstract

Humans readily generalize abstract relations, such as recognizing "constant" in shape or color, whereas neural networks struggle, limiting their flexible reasoning. To investigate mechanisms underlying such generalization, we introduce SimplifiedRPM, a novel benchmark for systematically evaluating abstract relational reasoning, addressing limitations in prior datasets. In parallel, we conduct human experiments to quantify relational difficulty, enabling direct model-human comparisons. Testing four models, ResNet-50, Vision Transformer, Wild Relation Network, and Scattering Compositional Learner (SCL), we find that SCL generalizes best and most closely aligns with human behavior. Using a geometric approach, we identify key representation properties that accurately predict generalization and uncover a fundamental trade-off between signal and dimensionality: novel relations compress into training-induced subspaces. Layer-wise analysis reveals where relational structure emerges, highlights bottlenecks, and generates concrete hypotheses about abstract reasoning in the brain. Motivated by these insights, we propose SNRloss, a novel objective explicitly balancing representation geometry. Our results establish a geometric foundation for relational reasoning, paving the way for more human-like visual reasoning in AI and opening promising avenues for extending geometric analysis to broader cognitive tasks.

View on arXivView PDF

Code Implementations(1)

Code and data for our paper on visual reasoning

00PythonFeb 19, 20251 years ago

Similar Papers

Cite this paper

@article{shang2025unraveling,
  title  = {Unraveling the geometry of visual relational reasoning},
  author = {Jiaqi Shang and Gabriel Kreiman and Haim Sompolinsky},
  year   = {2025},
  eprint = {2502.17382},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.17382v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.17382.svg)](https://codeofpaper.com/paper/2502.17382)

Discussion