mlsanityData to 14 Oct 2026

Relational reasoning and inductive bias in transformers and large language models

arXiv 2506.04289 ↗First posted 4 Jun 2025cs.LG q-bio.NCcited by 1

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Transformer-based models have demonstrated remarkable reasoning abilities, but the mechanisms underlying relational reasoning remain poorly understood. We investigate how transformers perform textittransitive inference, a classic relational reasoning behavior from psychology which elicits inference about indirectly related items (e.g., if A > B and B > C, then A > C). We compare in-weights learning (IWL) and in-context learning (ICL) behaviors and mechanisms on these tasks, and fine profoundly different patterns of generalization. IWL models learn a linear embedding, which leads to transitive inference as well as other behavioral effects present in humans and animals. ICL models, in contrast, are capable of learning to generalize transitively, but only do so when it is necessitated by the training data, otherwise learning a match-and-copy strategy. Interestingly, pre-training ICL models on in-context linear regression tasks that provide them with a latent linear representation is sufficient to make the ICL behaviors and internal representations qualitatively and quantitatively more like IWL. In order to test whether the same inference patterns are present across in large language models, we leverage a congruency paradigm which allows us to differentially probe IWL and ICL generalization patterns without access to their training data. We indeed see IWL reasoning leads to more transitive generalization than ICL. Moreover, we find that prompting the ICL models to use a linear mental map led to increased transitive inference over different geometric prompts. Together, these results reveal that both the training regime and the geometric structure of induced representations critically determine transformers capacity for transitive inference.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 13 of its 34 references that are in the map. First posted on arXiv 4 Jun 2025.

Builds on

13 of 34 references.

Closest ancestors · 2

Same direction, newest first

  1. 2025On the generalization of language models from in-context learning and finetuning: a controlled study1 May
  2. 2024LLMs for Relational Reasoning: How Far are We?17 Jan

Other references · 11

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2018Relational inductive biases, deep learning, and graph networkscited by 1,360
  4. 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 169
  5. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
  6. 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 89
  7. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
  8. 2024Competition Dynamics Shape Algorithmic Phases of In-Context Learningcited by 54
  9. 2022Transformers generalize differently from information stored in context vs in weightscited by 49
  10. 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
  11. 2023Schema-learning and rebinding as mechanisms of in-context learning and emergencecited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Transformers Can Learn Connectivity in Some Graphs but Not Others
  2. 2025How do Transformers Learn Implicit Reasoning?
  3. 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalization
  4. 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?
  5. 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinement
  6. 2026Feature Resemblance: Towards a Theoretical Understanding of Analogical Reasoning in Transformers
  7. 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks
  8. 2026Emergent Analogical Reasoning in Transformers