← All entries
Paper2026#514

Emergent Analogical Reasoning in Transformers

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.

Venue
arXiv / The University of Tokyo / Google DeepMind
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).
Added
Oct 1, 2026
Research status
done

From the source

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

Fetched Oct 3, 2026 from arXiv, Semantic Scholar. These numbers change; the curated fields above do not come from here.

Abstract (from arXiv)

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.

Tags

analogyfunctorinterpretabilitysynthetic-taskicmlutokyogemmallama

Topics

interpretability, analogical reasoning, synthetic tasks, category theory

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