Emergent Analogical Reasoning in Transformers
Gouki Minegishi, Jingyuan Feng, Hiroki Furuta, Takeshi Kojima, Yusuke Iwasawa, Yutaka Matsuo

TL;DR
This paper investigates how Transformers develop analogical reasoning, revealing that it emerges through geometric alignment and functor application, influenced by data, optimization, and scale, and is observable in pretrained models.
Contribution
It formalizes analogical reasoning in Transformers using category theory concepts and introduces synthetic tasks to evaluate its emergence and mechanisms.
Findings
Analogical reasoning emergence is sensitive to data and model scale.
Mechanistic analysis shows geometric alignment and functor application are key.
Pretrained LLMs also exhibit these analogical reasoning mechanisms.
Abstract
Analogy is a central faculty of human intelligence, enabling abstract patterns discovered in one domain to be applied to another. Despite its central role in cognition, the mechanisms by which Transformers acquire and implement analogical reasoning remain poorly understood. In this work, inspired by the notion of functors in category theory, we formalize analogical reasoning as the inference of correspondences between entities across categories. Based on this formulation, we introduce synthetic tasks that evaluate the emergence of analogical reasoning under controlled settings. We find that the emergence of analogical reasoning is highly sensitive to data characteristics, optimization choices, and model scale. Through mechanistic analysis, we show that analogical reasoning in Transformers decomposes into two key components: (1) geometric alignment of relational structure in the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsChild and Animal Learning Development · Topological and Geometric Data Analysis · Advanced Graph Neural Networks
