# Emergent Analogical Reasoning in Transformers

- **ID:** 514
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2602.01992
- **Authors:** Gouki Minegishi, Jingyuan Feng, Hiroki Furuta, Takeshi Kojima, Yusuke Iwasawa, Yutaka Matsuo
- **Venue:** arXiv / The University of Tokyo / Google DeepMind
- **Published:** 2026
- **Tags:** analogy, functor, interpretability, synthetic-task, icml, utokyo, gemma, llama
- **Topics:** interpretability, analogical reasoning, synthetic tasks, category theory
- **Added:** 2026-10-01
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/514

## Summary

Synthetic two-category task with atomic, compositional, and analogical facts. Emergence is sensitive to entity/relation counts, OOD ratio, optimization, and scale. Mechanism: (1) geometric alignment of relational structure in the embedding space (Dirichlet energy) and (2) functor application inside the Transformer. Same qualitative signatures in pretrained Gemma-2-2B/9B and Llama-3.1-8B. ICML 2026 spotlight. Code https://github.com/gouki510/Analogy_in_Transformer.

## Attributes

- **Purpose:** Formalize analogy as functorial correspondence and show when Transformers acquire it
- **Scale:** Default 1-layer 1-head Transformer d=128, seq 64, Adam lr 1e-4, wd=0, bs=32; |E|=20, |R|=10,000, OOD ratio 0.1. Pretrained probes: Gemma-2-2B/9B, Llama-3.1-8B; E-KAR appendix
- **Time period:** 2026-02-02 (arXiv 2602.01992 v1); last revised 2026-05-27 (v5). ICML 2026 spotlight (PMLR vol. 306).

## From the source (fetched 2026-10-03)

- **Published:** Feb 2, 2026 (arXiv)
- **Last revised:** May 27, 2026 (arXiv)
- **arXiv categories:** cs.AI (arXiv)
- **Author comment:** Accepted to ICML2026 (spotlight) (arXiv)
- **Citations:** 6 (Semantic Scholar)
- **References:** 76 (Semantic Scholar)

## 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 embedding space, and (2) the application of a functor within the Transformer. These mechanisms enable models to transfer relational structure from one category to another, realizing analogy. Finally, we quantify these effects and find that the same trends are observed in pretrained LLMs. In doing so, we move analogy from an abstract cognitive notion to a concrete, mechanistically grounded phenomenon in modern neural networks.

## Research notes

- Primary: arxiv abs (cs.AI). CC BY 4.0 on HTML; ICML 2026 copyright by the author(s). UTokyo; Furuta at Google DeepMind in an advisory role. Correspondence minegishi@weblab.t.u-tokyo.ac.jp. Code MIT https://github.com/gouki510/Analogy_in_Transformer (34 stars at check). HF has no paper page (API 404). Discord posted abs. Synthetic generator in the repo, not a standalone public corpus, so no datasets_local row. License field left blank per catalog convention.

## Similar entries

- [Your Transformer Can Hold Two Thoughts at Once: Evidence of Linear Superposition in LLMs](https://papers.projxon.ai/entries/1073) (paper, #1073)
- [Thought Branches: Interpreting LLM Reasoning Requires Resampling](https://papers.projxon.ai/entries/750) (paper, #750)
- [Capability Provenance in Language Models: A Case Study in Social Reasoning](https://papers.projxon.ai/entries/693) (paper, #693)
- [Verbalizable Representations Form a Global Workspace in Language Models](https://papers.projxon.ai/entries/1093) (paper, #1093)
- [Targeted Neuron Modulation via Contrastive Pair Search](https://papers.projxon.ai/entries/517) (paper, #517)
- [Language Models Are Implicitly Continuous](https://papers.projxon.ai/entries/553) (paper, #553)
