How Finite Brains Generalize Without Bound: Spatial Memory as a Universal Computer
Not on the map. Why?
Abstract (arXiv)
A child who learned to add small numbers adds numbers of any length. LSTMs and Transformers trained on short sequences fail on longer ones. We trace this to what learners read when deciding. A position, count or time takes new values as input grows: it is a coordinate, and a learner that reads one meets in every long input values its experience never covered. Whether two things are the same has the same two answers at every size: it is a coincidence, and a learner that reads only coincidences finds in a long input nothing that short inputs lacked, so finite experience fixes its rule for every size. The memory carries the size of the input and the rule stays finite, and this determines the memory a generalizing brain can have: a memory that grows while what the learner reads of it stays finite has to look the same from every place, so it is made of cycles, and the past is reached by asking what happened when the cycles last stood where they stand now. The cycles are the grid modules, the cells that detect their return the place cells, the records the hippocampal index; a prefrontal controller moves the cycles and never sees them. Reading only coincidences costs no power: what finite experience fixes in such a learner is what Turing machines compute in step with their input, which is why a circuit that evolved to find the way home can learn arithmetic and grammar. In a network of neurons this machine of cycles is the dynamics seen through its symmetry, and symbols are its invariants. Trained on strings up to 40 symbols, the machine solves five benchmark tasks that no LSTM or Transformer solves, among them duplication and binary addition, and beyond the reach of its cycles it fails on the curve the theory predicts. Given larger cycles after training, a machine that saw no string longer than five symbols reverses a string of a million without error. Its controllers run unchanged on neurons.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 18 of its 322 references that are in the map. Submitted 5 Nov 2026.
Builds on
18 of 322 references.
References · 18
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,231
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,269
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 794
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 710
- 2014Neural Turing Machinescited by 693
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 578
- 2014Memory Networkscited by 379
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 219
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 94
- 2025Language Models Use Trigonometry to Do Additioncited by 86
- 2023Length Generalization in Arithmetic Transformerscited by 76
- 2023Positional Description Matters for Transformers Arithmeticcited by 63
6 more
- 2026When Models Manipulate Manifolds: The Geometry of a Counting Taskcited by 57
- 2016Extensions and Limitations of the Neural GPUcited by 10
- 2026Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stoppingcited by 8
- 2026On the Spatiotemporal Dynamics of Generalization in Neural Networkscited by 6
- 2017Improving the Neural GPU Architecture for Algorithm Learningcited by 5
- 2026Copying Under Repetition: From Prefix Matching to Position Hashingcited by 2
Built on by
Not cited yet.