Metraipolis › archive › dc_f9c2e7f46fc7
Spatial Induction Heads: In-Context Learning of Multidimensional Cellular Automata — arXiv:2610.09124
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.09124
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T11:10:33.954Z
- SHA-256 of the archived text
e2a908a0b12c529b2e72f5f56656c820a4a126c19183aa27b238a2bca4752eae- Stable URL of this page
https://metraipolis.com/documento/dc_f9c2e7f46fc7
How to cite
Spatial Induction Heads: In-Context Learning of Multidimensional Cellular Automata — arXiv:2610.09124 — arXiv (en), https://arxiv.org/abs/2610.09124 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f9c2e7f46fc7 (Metraipolis archive dc_f9c2e7f46fc7, sha256 e2a908a0b12c529b2e72f5f56656c820a4a126c19183aa27b238a2bca4752eae)
BibTeX
@misc{dcf9c2e7f46fc7,
title = {Spatial Induction Heads: In-Context Learning of Multidimensional Cellular Automata — arXiv:2610.09124},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.09124},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f9c2e7f46fc7; sha256 e2a908a0b12c529b2e72f5f56656c820a4a126c19183aa27b238a2bca4752eae},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.09124. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Induction heads provide a mechanistic account of in-context learning in sequential data, but existing theory largely assumes that the context relevant to a prediction forms a contiguous block. In multidimensional data, serialization breaks this assumption by scattering spatial neighbors across distant positions in the token sequence. We study how transformers overcome this routing problem in multidimensional stochastic and deterministic cellular automata, where each trajectory is generated by an unknown local rule and presented as a flattened sequence without an explicit coordinate-based spatial inductive bias. We introduce spatial induction heads, two-layer gather-and-match circuits in which the first layer reconstructs the relevant spatial neighborhood and the second matches the resulting configuration against earlier occurrences. We give two explicit realizations of the gather and show that the positional dimension required for spatial routing depends only on the local neighborhood and spatial dimension, not on grid volume or trajectory horizon. We further construct a matching layer which implements Bayesian counting. The end-to-end circuit can approximate the Bayesian posterior arbitrarily closely for stochastic rules and can predict exactly for deterministic rules. Empirically, trained two-layer transformers generalize to unseen rules in one and two dimensional settings, achieving near-perfect deterministic rollouts and less than 0.005 nats KL from the Bayes-optimal predictor on stochastic rules. Attention patterns and layerwise probes align with the predicted gather-and-match computation, providing mechanistic evidence for spatial induction in trained transformers. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Machine Learning (cs.LG) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.09124 — 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:14:06.050Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).