Metraipolis › archive › dc_9c43b3651112
The Dichotomy Between Pattern Recognition and Step-by-Step Reasoning — arXiv:2610.09186
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.09186
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T11:56:29.032Z
- SHA-256 of the archived text
901e0f37cf972341fc57947857fa426d7d9fe345131f49f24e922bad56fe27d8- Stable URL of this page
https://metraipolis.com/documento/dc_9c43b3651112
How to cite
The Dichotomy Between Pattern Recognition and Step-by-Step Reasoning — arXiv:2610.09186 — arXiv (en), https://arxiv.org/abs/2610.09186 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9c43b3651112 (Metraipolis archive dc_9c43b3651112, sha256 901e0f37cf972341fc57947857fa426d7d9fe345131f49f24e922bad56fe27d8)
BibTeX
@misc{dc9c43b3651112,
title = {The Dichotomy Between Pattern Recognition and Step-by-Step Reasoning — arXiv:2610.09186},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.09186},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9c43b3651112; sha256 901e0f37cf972341fc57947857fa426d7d9fe345131f49f24e922bad56fe27d8},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.09186. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
We argue that pattern recognition and step-by-step reasoning are two ends of a spectrum. A large language model (LLM) learns to reason step-by-step when data is structured such that the next token depends on a small amount of preceding context. Inference in LLMs resembles pattern recognition when the next token depends on a large amount of preceding context. If the next token depends on only the $c$ most recent tokens, reasoning traces are paths on a De Bruijn graph whose nodes are $c$-length contexts and edges are next-token transitions between contexts. The set of reasoning traces of a task forms a directed acyclic subgraph of the De Bruijn graph. An LLM that has learned all edges of this subgraph can compose them to solve longer, unseen tasks, i.e., it reasons step-by-step. We prove that the number of edges is vanishingly small compared to the number of reasoning traces. Empirically, the number of training samples a transformer needs is a power law in the number of edges, so learning to reason step-by-step is sample efficient. We can induce De Bruijn structure in any task by maintaining a ``state'' that makes future reasoning independent of the past. The frequency of states in the reasoning trace determines $c$. We show, by fine-tuning Qwen2.5-1.5B-Instruct to solve equations and answer questions about stories, that frequent states (small $c$) result in higher accuracy but greater fragility to perturbations at test time. LLMs trained with a large $c$ are only as good as models that perform pattern recognition without reasoning. A moderate density of states balances accuracy and robustness. We show that real-world data has De Bruijn structure: Qwen3-14B and Qwen3-32B retain over 75% of their accuracy on GSM8K, MATH-500 and GPQA-Diamond when attention is restricted to a sliding window less than 15% as long as the full reasoning trace. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.LG, nuovi lavori del giorno). Categorie arXiv: Machine Learning (cs.LG) ; Disordered Systems and Neural Networks (cond-mat.dis-nn). Pagina del lavoro: https://arxiv.org/abs/2610.09186 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T10:50:37.666Z dalla pagina https://arxiv.org/list/cs.LG/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).