A simple model of co-emergence of grid and place fields

Zhaoze Wang, Genela Morris, Dori Derdikman, Pratik Chaudhari, Vijay BalasubramanianNeurIPS 2026

TL;DR

How does the brain build an internal GPS without an external map? By training a biologically constrained recurrent neural network simply to predict its next sensory input—much like an LLM predicts the next word—this paper shows that both "place cells" (which mark specific locations) and "grid cells" (which form a spatial coordinate grid) spontaneously emerge together, solving a longstanding chicken-and-egg mystery in neuroscience.

What Problem Does This Paper Address?

Deep in the mammalian brain, two types of neurons work together to help us navigate. Place cells (in the hippocampus) fire when you are in a specific spot, like your kitchen. Grid cells (in the medial entorhinal cortex) fire in repeating, hexagonal honeycomb patterns across an entire room, acting like built-in graph paper to track movement.

Because these two brain regions talk to each other constantly, neuroscientists face a classic chicken-and-egg problem: which comes first? Existing computational models either simulate one cell type in isolation or assume one already exists to supervise the creation of the other. Furthermore, simply wiring a standard place-cell network to a grid-cell network fails—the "grid" side produces messy, irregular stripes instead of clean hexagonal lattices.

Figure 1: A. (i) An RNN that reconstructs ˆot from corrupted observations ˜ot with an ℓ2 penalty on firing rates leads to place-like cells [11]. (ii) Composition of place and grid cell emergence models within a single network, via bidirectional connections, extends the place cell model in [11] to have an additional input layer, which receives velocity input like the grid cell models in [8, 13]. B. Emergent cells in the composed model. (i) Place-like cells in the sensory-driven region. (ii) Irregular stripe- or multi-peaked fields in the “free” region without sensory input. The triangular lattices of grid cell responses are absent.

Methods

Instead of forcing the network into pre-assigned "hippocampus" and "entorhinal" boxes, the authors built a single, unified Recurrent Neural Network (RNN) of 2,048 neurons and let it self-organize under a shared objective: predict the next sensory observation ($\hat{o}_{t+1}$) using only a partially masked current sensory input ($\tilde{o}_t$) and body-centered (egocentric) motion cues (relative rotation and speed, rather than global North/South coordinates).

To make this work, they introduced crucial biological constraints:

  • Input vs. Recurrent Split: Half the neurons receive external sensory and motion inputs; the other half ("free" neurons) only talk to other neurons inside the network.
  • Dale’s Law: In standard AI networks, a neuron's outgoing weights can be a mix of positive and negative numbers. Real neurons don't do this. The authors enforced Dale’s Law: 80% of neurons are strictly excitatory (non-negative outgoing weights) and 20% are strictly inhibitory (non-positive outgoing weights).
  • Firing-rate noise: Active neurons experience Gaussian noise scaled by how hard they are firing.
Architecture of the Dale's Law-constrained RNN, emergent hexagonal grid and localized place fields, and parameter sweep results.

Datasets

Rather than static benchmark datasets, the authors trained and evaluated the network in procedurally generated, continuous simulated environments where an agent performs a smoothed random walk:

  • A standard 2D open square arena ($220\text{ cm} \times 220\text{ cm}$) where nearby locations yield smoothly varying sensory vectors.
  • Classic rodent behavioral setups: a hairpin maze (narrow, alternating corridors), a two-room arena where a dividing wall is later removed, and two rooms connected by a corridor.
  • A 3D volumetric space to simulate the flight trajectories of bats.

Key Insights and Ideas

  • Dual pressures on a sensory manifold: Why does next-step prediction birth two distinct cell types? Sensory experiences trace out a smooth, low-dimensional surface (a manifold). Masking the input knocks the network off this manifold; place cells act as localized attractors to pull the noisy state back to the right spot (off-manifold contraction). Meanwhile, grid cells act as a local coordinate chart to update that position as the agent moves (on-manifold transition).
  • Inhibition is the secret sauce for grids: Place cells like slow, steady dynamics to denoise corrupted inputs. Grid cells need to stay put when stationary, then rapidly reconfigure when moving. Enforcing Dale's Law provides dedicated inhibitory feedback that acts like a state-dependent gate. Removing Dale's Law caused grid cell counts to plummet from 58 down to 3!
  • Motion is implicit in sensation: Surprisingly, even when explicit motion inputs were completely removed, both grid and place cells still emerged—the network inferred movement purely from how sensory scenes smoothly shifted over time.

Key Results

  • Robust Co-emergence: Across a 1,000-configuration hyperparameter sweep (varying decay rate, noise, and masking), both cell types reliably co-emerged—place cells primarily in the input-driven group, and grid cells in the recurrently driven group. Across 10 random seeds (using a strict grid-score threshold $> 0.3$), networks averaged $30.0 \pm 19.2$ grid cells and $299.4 \pm 4.9$ place cells.
  • Reproducing Biology: The model naturally mirrored famous lab experiments:
  • Development: Place cells emerged earlier in training than grid cells, matching how baby rodents develop.
  • Maze Geometry: Grid patterns fractured into vertical bands inside hairpin mazes (recovering in open fields), merged two separate maps into one unified lattice when a dividing wall was removed, and gradually aligned across corridor-connected rooms.
  • 3D Flight: In 3D volumes, grid cells formed locally ordered—rather than globally crystalline—fields, matching recordings from freely flying bats.
  • Testable Predictions: Unlike rodent studies where place cells repeat across hairpin maze arms, the model’s place cells fired in single arms—predicting that if real animals are given distinct visual or smell cues per corridor, repetition will vanish.

Limitations and Future Work

  • Missing Grid Modules: In the brain, grid cells cluster into discrete hierarchy modules of different spatial scales (from fine to coarse). This single-layer network only produced a single module of similar grid spacings; multi-layer architectures or efficiency regularizers might be needed to induce hierarchy.
  • Enclosure Distortions & Border Cells: It remains untested whether the network reproduces grid stretching when a room is suddenly resized, or if it develops "border cells" alongside grid and place cells.
  • Biological Plausibility of Learning: The network is trained via backpropagation through time (BPTT), which the brain likely doesn't do. Future work could swap BPTT for local predictive-coding learning rules.

Summary updated

Abstract

Grid cells in the medial entorhinal cortex and place cells in the hippocampus together support spatial navigation. The two regions are reciprocally connected, and there is a chicken-and-egg problem for how both arise and reinforce each other during development. Current computational accounts either derive one type from the other or use network dynamics to model the emergence of one type in isolation. We introduce a unified recurrent network model that instantiates Dale's Law (every neuron is either excitatory or inhibitory), and is trained to predict the next sensory observation from masked previous sensory observations and egocentric motion. To our knowledge, this is the first single-objective model in which grid and place cells co-emerge without supervision of either type, or reliance on pre-existing spatial-cell representations. The two kinds of spatial codes coexist across 1,000 different training configurations, with their balance set by the amount of sensory noise and masking. Without retraining, the network qualitatively reproduces experimentally observed grid fragmentation in hairpin mazes, grid merging after wall removal, lattice alignment across connected rooms, locally ordered 3D fields observed in freely flying bats, as well as the developmental order in which place cells precede grid cells. We interpret these results in terms of two complementary encoding pressures within a single sensory-prediction objective: (1) correcting errors or reconstructing missing components of sensory observations, and (2) prediction of the next sensory state during navigation. Our results suggest a circuit-level account of the co-emergence of grid and place cells, and experimentally testable predictions for the two kinds of spatial codes.
BibTeX
@inproceedings{wang2026simple,
  author = {Zhaoze Wang and Genela Morris and Dori Derdikman and Pratik Chaudhari and Vijay Balasubramanian},
  title = {{A simple model of co-emergence of grid and place fields}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3gP67zjrHg},
}
Figure