arXiv AI

Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks

arXiv:2607. 11875v1 Announce Type: cross Abstract: We present a theoretical framework to explain the emergence of inductive reasoning abilities in Transformer language models.

Hugging Face Trending Papers
Jul 13

Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks

We present a theoretical framework to explain the emergence of inductive reasoning abilities in Transformer language models. While previous works on Transformer learning dynamics have so far been mostly tied to specific tasks, we study a generalized class of inductive tasks that unifies several synthetic tasks known in the literature, including in-context n-grams and multi-hop reasoning.

Hugging Face Trending Papers
Oct 28

Implicit Reasoning in Transformers: Bridging the Compositionality Gap in GPT-2-like Models

The paper investigates why transformer language models, like GPT‑2, struggle with compositional generalization when faced with out‑of‑distribution (OOD) knowledge. By training a GPT‑2‑like model from scratch in a controlled two‑hop reasoning task and aligning the presentation of both in‑distribution (ID) and OOD atomic facts with the second‑hop retrieval step of a known compositional circuit, the authors demonstrate that the model can transfer its learned ID compositional behavior to OOD facts. This intervention closes the compositionality gap without altering the model architecture or adding explicit OOD supervision, suggesting that the gap is not an inherent architectural limitation but can be mitigated through informed training distribution design.

arXiv AI
Oct 31

Implicit Reasoning in Transformers: Bridging the Compositionality Gap in GPT-2-like Models

The paper examines the compositionality gap in GPT‑2‑like transformers, where models can combine known facts in‑distribution but fail to generalize to out‑of‑distribution knowledge. By aligning the training distribution so that both ID and OOD atomic facts appear in the same positional format as the second‑hop retrieval step of a known compositional circuit, the authors show that the model can transfer its learned compositional behavior to unseen OOD facts. This demonstrates that the gap is not an inherent architectural limitation but can be addressed through targeted training distribution design.

By Davide Venuto, Leonardo Venuto
arXiv Machine Learning
5d ago

Distinct mechanisms underlying in-context learning in transformers

The paper investigates how transformers perform in-context learning by training them on a finite set of discrete Markov chains. It identifies four distinct algorithmic phases—based on memorization versus generalization and on using 1-point versus 2-point statistics—each implemented by specific multi-layer subcircuits. The study shows that transitions between these phases are governed by data diversity thresholds and a representational bottleneck, and it provides a symmetry-constrained theory explaining the sharp shift from 1-point to 2-point generalization.

By Cole Gibson, Wenping Cui, Gautam Reddy
arXiv Machine Learning
Sep 17

Understanding the Staged Dynamics of Transformers in Learning Latent Structure

The paper investigates how transformer models learn latent structure by training a small decoder-only transformer on three variants of the Alchemy benchmark. It finds that the model acquires different components of latent structure in discrete stages, with a notable asymmetry: it robustly composes fundamental transitions but struggles to decompose complex examples into atomic transitions. Layer‑specific causal interventions reveal plasticity windows where freezing layers delays or prevents stage completion, offering a detailed view of capability evolution during training.

By Rohan Saha, Farzane Aminmansour, Alona Fyshe
arXiv Computation and Language
Aug 28

Why Knowing Both Hops Is Not Enough: Understanding Two-Hop Generalization in Language Models

Large language models can solve complex multi‑hop tasks but often fail on simple two‑hop queries, even when each hop is individually correct. In a controlled symbolic setting, the authors find that models generalize reliably when the second hop follows the training distribution, but always fail when it deviates. Mechanistic analysis shows that successful generalization relies on consistent intermediate representations across contexts, whereas failures arise from a mismatch between lower‑layer representation construction and upper‑layer mapping to outputs. The study proposes a recurrent‑style training strategy that improves out‑of‑distribution two‑hop generalization.

By Zili Zhang, Yilin Wang, Heng Wang, Herun Wan, Minnan Luo
Hugging Face Trending Papers
Oct 22

Transformers with CoT Discover Heavy-Ball Acceleration Through Training

The paper investigates how transformers can learn to perform in-context weight prediction for linear regression beyond simply mimicking a gradient‑descent teacher. After initial supervision, additional trajectory‑level supervision with true regression weights causes the model to discover and implement the Heavy‑Ball method, achieving faster convergence. This demonstrates that transformer reasoning can uncover new algorithms through training rather than just imitate the supervising algorithm.