# Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic

DevFeed: [Shattered Compositionality: Counterintuitive Learning Dynamics of Transformers for Arithmetic](<https://devfeed.tech/articles/shattered-compositionality-counterintuitive-learning-dynamics-of-transformers-for-arithmetic-131872.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2601.22510>)

Author: Xingyu Zhao, Darsh Sharma, Rheeya Uppaal, Yiqiao Zhong

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>), [machine learning overfitting](<https://devfeed.tech/topics/machine-learning-overfitting.md>)

Tags: [acquisition](<https://devfeed.tech/tags/acquisition.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [competition](<https://devfeed.tech/tags/competition.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [errors](<https://devfeed.tech/tags/errors.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [learning](<https://devfeed.tech/tags/learning.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [robustness](<https://devfeed.tech/tags/robustness.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

## AI overview

On synthetic arithmetic tasks, transformers often learn component skills in reverse order or in parallel rather than through human-like sequential composition, a pattern the authors call "shattered compositionality." The abstract attributes this to matching correlations in training data rather than learning causal or procedural rules. Partially learned skills can compete, producing mixing errors and weaker robustness under controlled distribution shifts. The same qualitative pattern appears in modern LLMs and, according to the abstract, is not mitigated by model scaling or scratchpad supervision.

## Source excerpt

arXiv:2601.22510v3 Announce Type: replace-cross Abstract: Large language models (LLMs) often achieve strong benchmark accuracy yet remain brittle under small distribution shifts. While recent mechanistic studies reveal the discrepancy between LLMs and humans in skill compositions, the learning dynamics of skill acquisition and the role of data distributions remain elusive. In this study, we train transformers on synthetic arithmetic tasks with black-box model-agnostic metrics for analyzing non-human skill compositions. We discover that transformers often acquire skills for arithmetic in reverse order or in parallel instead of human-like sequential rules--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. As a consequence, this non-human acquisition creates competition between partially learned skills, producing characteristic mixing errors and weaker robustness under controlled distribution shifts. We further show that the same qualitative behavior persists in modern LLMs and is not mitigated by pure model scaling or scratchpad supervision. Our results highlight a mismatch between training-time skill acquisition and the human-like hierarchical compositions, with implications for reasoning reliability and out-of-distribution robustness.