paper-with-me

Papers

Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic

2026-01-30 · Xingyu Zhao, Darsh Sharma, Rheeya Uppaal, Yiqiao Zhong arxiv

Large language models (LLMs) often exhibit unexpected errors or unintended behavior, even at scale. While recent work reveals the discrepancy between LLMs and humans in skill compositions, the learning dynamics of skill compositions and the underlying cause of non-human behavior remain elusive. In this study, we investigate the mechanism of learning dynamics by training transformers on synthetic arithmetic tasks. Through extensive ablations and fine-grained diagnostic metrics, we discover that transformers do not reliably build skill compositions according to human-like sequential rules. Instead, they often acquire skills in reverse order or in parallel, which leads to unexpected mixing errors especially under distribution shifts--a phenomenon we refer to as shattered compositionality. To explain these behaviors, we provide evidence that correlational matching to the training data, rather than causal or procedural composition, shapes learning dynamics. We further show that shattered compositionality persists in modern LLMs and is not mitigated by pure model scaling or scratchpad-based reasoning. Our results reveal a fundamental mismatch between a model's learning behavior and desired skill compositions, with implications for reasoning reliability, out-of-distribution robustness, and alignment.

📄 PDF Abstract BibTeX arXiv:2601.22510

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Assign and Add: A Mechanistic Study of Compositional Arithmetic

2026-05-29 · Brady Exoo, Alberto Bietti, John Sous arxiv

Large language models are able to compose skills in order to perform complex tasks, many of which might not have been seen during training. The details of how exactly this composition occurs remain elusive. In this paper…

Evaluating Compositionality in Neural Models Using Arithmetic Expressions

2022-01-16 · ACL ARR January 2022 1 · Anonymous

We introduce CobA, a dataset designed to evaluate the compositional properties of neural models. The dataset consists of simple arithmetic expressions combining natural integers with addition and multiplication operators…

Do Deep Neural Networks Capture Compositionality in Arithmetic Reasoning?

2023-02-15 · Keito Kudo, Yoichi Aoki, Tatsuki Kuribayashi, Ana Brassard 외

Compositionality is a pivotal property of symbolic reasoning. However, how well recent neural models capture compositionality remains underexplored in the symbolic reasoning tasks. This study empirically addresses this q…

Arithmetic Reasoning

Recursive Neural Networks with Bottlenecks Diagnose (Non-)Compositionality

2023-01-31 · Verna Dankers, Ivan Titov

A recent line of work in NLP focuses on the (dis)ability of models to generalise compositionally for artificial languages. However, when considering natural language tasks, the data involved is not strictly, or locally, …

Sentiment AnalysisSentiment Classification

The paradox of the compositionality of natural language: a neural machine translation case study

2021-08-12 · ACL 2022 5 · Verna Dankers, Elia Bruni, Dieuwke Hupkes

Obtaining human-like performance in NLP is often argued to require compositional generalisation. Whether neural networks exhibit this ability is usually studied by training models on highly compositional synthetic data. …

Machine TranslationMathNMTTranslation