arXiv AI

Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic

arXiv:2601. 22510v2 Announce Type: replace-cross Abstract: Large language models (LLMs) often achieve strong benchmark accuracy yet remain brittle under small distribution shifts.

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
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.

arXiv Machine Learning
Sep 3

The Dynamics of Continuous Mixture Collapse in Language Models

The paper investigates why large language models (LLMs) fail to maintain continuous mixtures of token embeddings—used in latent-state reasoning—to preserve multiple reasoning paths. Through theory and experiments, it identifies three failure sources: transformer geometry distortion, amplification or contraction dynamics from softmax and autoregressive feedback, and the need for context-dependent corrections that scale with mixture size. Empirical results confirm the predicted transition between contraction and amplification and show pretrained models largely fall on the amplifying side.

By Ali Backour
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