A Simple Model of Co-Emergence of Grid and Place Fields

NeurIPS 2026
Zhaoze Wang1
zhaoze@seas.upenn.edu
Genela Morris2,3
genelam@tlvmc.gov.il
Dori Derdikman4
derdik@technion.ac.il
Pratik Chaudhari1†
pratikac@seas.upenn.edu
Vijay Balasubramanian5,6†
vijay@physics.upenn.edu
1 Dept. of Electrical and Systems Engineering, University of Pennsylvania
2 Tel Aviv Sourasky Medical Center   3 Gray Faculty of Medical and Health Sciences, Tel Aviv University
4 Rappaport Faculty of Medicine, Technion - Israel Institute of Technology
5 Dept. of Physics, University of Pennsylvania   6 Santa Fe Institute
† Equal contribution

How is location represented during navigation?

Grid cells in the medial entorhinal cortex fire periodically across space, forming a triangular lattice that tiles the environment. Hippocampal place cells fire at specific locations and remap rapidly between learned environments.

Grid cells and place cells together support spatial navigation. While grid cells are thought to emerge from path integration, it has been suggested that place cells emerge from encoding sensory experience during navigation.

A shared simulated trajectory, accumulated spike locations and firing rate maps for a grid field and a place field.

The chicken-and-egg problem of place and grid fields

In the brain, grid and place cells coexist within a single bidirectionally connected hippocampal-entorhinal circuit. Many theories of one cell type rely on the existence of the other. From the developmental perspective, these potential dependencies create a chicken-and-egg problem. If each cell type depends on the other, which arises first?

Table 1. Comparison with existing theories of grid and place field emergence.
Model classGrid fieldsPlace fieldsSpatial representation assumed
Circuit and geometric models of grid fields [1, 2, 3, 4, 5, 6, 7]Mechanistic / emergentNot modeledGrid-specific circuit or geometric prior
Path-integration and place-target RNN models [8, 9, 10, 11]EmergentPredefined input / targetAllocentric coordinates or predefined place-field targets
Models of place-field emergence [12, 13]Not modeledEmergentNo grid-field prior
Successor-representation and predictive-map theories [14]Derived / spectralDerived / predictiveExplicit state graph or transition structure
Grid-place interaction and dependency models [15, 16, 17, 18]PredefinedPredefined / mechanisticPre-existing grid or place fields
System-level grid-place models [6, 19]PredefinedPredefined / constructedPre-existing spatial representations

An alternative possibility is that the two types co-emerge. Simply adding bidirectional interactions to combine recurrent networks in which grid cells and place cells emerge individually does not lead to co-emergence, perhaps because each type requires distinct recurrent dynamics.

Predicting the next sensory observation

We introduce a recurrent network with 2,048 neurons that satisfies Dale’s law. Each neuron is constrained to be either excitatory or inhibitory. Half of the neurons receive direct external input, while the remaining half are only driven through recurrent connections. The network has no prior knowledge of spatial location or pre-existing spatial cell types.

Circuit diagram showing external signals entering one population and recurrent connections linking the two populations.
The recurrent state updates from its previous state, the masked observation and the agent’s motion. The loss is the mean squared error between the predicted and actual next observation.

At each step, the network uses the masked sensory observation o~t and the egocentric motion signal mt to update its hidden state ht and predict the next sensory observation.

Place fields appear before grid fields

Place cells emerge before grid cells during training, consistent with recordings during rodent development [20, 21]. Place-cell counts rise earlier than grid-cell counts across ten random-seed replicates.

Nine examples of each field type and population counts over 100 training checkpoints.

In an example trained network, we identified 58 grid-like units using a grid-score threshold of >0.3, predominantly among recurrently driven neurons, and 307 place-like units across both input-driven and recurrently driven neurons.

Which training conditions support both fields?

We test 1,000 different training configurations by varying the level of recurrent firing-rate noise, the fraction of sensory input masked, and the neuron decay rate, with a different random seed for each configuration. For this sweep, we use the more permissive grid-score threshold of 0.1. Place cells emerge robustly across nearly all settings. Grid-like periodicity preferentially emerges at higher noise levels and is modulated more weakly by the decay rate.

Grid-field and place-field counts across three training parameters.

We also test whether grid and place cells still emerge when we train the network to reconstruct the current sensory observation from masked input rather than predict the next sensory observation. Under this condition, we still find 42 grid cells with grid scores above 0.3 and 329 place cells. Grid- and place-like cells also emerge when motion input is removed completely and consecutive sensory observations contain smooth transition information along trajectories.

A grid fragments in a hairpin maze

We replicate the experiment of Derdikman et al. [22], in which grid cells were recorded as rodents first explored an open field, then traversed an imposed hairpin maze, and then returned to the open field. In the hairpin maze, where movement is constrained to narrow corridors, grid patterns fragment across corridors. Upon returning to the open field, triangular firing patterns gradually recover as training continues.

Four phases of the hairpin maze experiment with grid and place fields for the same example units across phases.

In our model, place cells fire at corresponding locations in the open arena and hairpin maze, without the repetition across alternating arms reported by Derdikman et al. We predict that, when distinct visual landmarks or olfactory cues allow the animal to distinguish individual arms, individual place cells would fire selectively in a single arm.

Two grid maps merge after wall removal

We train the network for 60,000 steps in room 1 and 60,000 steps in room 2 while the rooms are separated by a wall, followed by 80,000 steps in the combined arena after wall removal. This tests whether the learned spatial code treats the two rooms as separate environments or as one continuous space.

Five examples across the left room, right room and joined arena.

After wall removal, grid patterns merge into a unified lattice spanning both rooms. The integration of grid maps is consistent with Wernle et al. [23], who observed local reorganization near the former partition while grid fields near distal walls remained largely stable. Our model further predicts that place-cell firing centers remain stable after wall removal when sensory cues at corresponding locations remain similar.

Grid fields align through a connecting corridor

Following Carpenter et al. [24], we connect two rooms by a corridor that the animal can freely traverse. The original experiment tested whether grid cells form local maps within each room or a global map across connected spaces. We therefore compare grid-cell responses early and late in training.

Grid fields in connected rooms at 300,000 and 800,000 training steps.

Early in training, grid cells show fragmented, locally triangular lattice patterns within each room. Later in training, some cells develop global patterns, with grid fields and periodicity becoming ordered across the connected environment despite the intervening walls.

Spatial fields during three-dimensional flight

We train the network in a 3D environment in which the agent moves freely through the full volume. The trajectory is generated by the same smoothed random-walk procedure with boundary avoidance used in 2D environments.

We find that place cells develop clear localized 3D firing fields. Grid cells also develop structured volumetric firing fields, but these fields are locally ordered rather than organized as a perfect global lattice, resembling locally ordered grid-like responses observed in freely flying bats [25].

Off-manifold contraction and on-manifold transition

The animal’s sensory experience traces a continuous trajectory on a manifold within high-dimensional sensory space, which is constrained to have the same low dimension as the physical space being explored. Masking observations perturbs them away from the manifold of valid sensory states. The network pulls the perturbed state back to the manifold.

This suggests that place cells can provide coordinates on the manifold of valid sensory experiences. To predict the next observation, the circuit should use the current motion to determine the next location on the sensory manifold. If the spatial location were represented in some local chart, it could be updated using the current velocity by a recurrent circuit. Grid cells can be interpreted as maintaining such a local chart.

A masked observation returns to the sensory manifold at the current location, then follows the manifold as the agent moves.

Grid cells in the medial entorhinal cortex are known to be organized in a hierarchy of discrete modules. Our network only produced a single module in which the grid cells have similar periods.

Cite this Paper

@inproceedings{wang2026coemergence,
  title={A simple model of co-emergence of grid and place fields},
  author={Zhaoze Wang and Genela Morris and Dori Derdikman and Pratik Chaudhari and Vijay Balasubramanian},
  booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
  year={2026},
  url={https://arxiv.org/abs/2605.21356}
}

References

  1. Yoram Burak and Ila R. Fiete. Accurate Path Integration in Continuous Attractor Network Models of Grid Cells. PLoS Comput Biol, 5(2):e1000291, February 2009. ISSN 1553-7358. doi: 10.1371/journal.pcbi.1000291.
  2. Dehong Xu, Ruiqi Gao, Wen-Hao Zhang, Xue-Xin Wei, and Ying Nian Wu. On Conformal Isometry of Grid Cells: Learning Distance-Preserving Position Embedding, February 2025.
  3. Neil Burgess, Caswell Barry, and John O’Keefe. An oscillatory interference model of grid cell firing. Hippocampus, 17(9):801–812, September 2007. ISSN 1050-9631, 1098-1063. doi: 10.1002/hipo.20327.
  4. Louis Kang and Vijay Balasubramanian. A geometric attractor mechanism for self-organization of entorhinal grid modules. eLife, 8, August 2019. doi: 10.7554/eLife.46687.
  5. Rylan Schaeffer, Tzuhsuan Ma, Sanmi Koyejo, Mikail Khona, Cristóbal Eyzaguirre, and Ila Rani Fiete. Self-Supervised Learning of Representations for Space Generates Multi-Modular Grid Cells. In NeurIPS, September 2023.
  6. Sarthak Chandra, Sugandha Sharma, Rishidev Chaudhuri, and Ila Fiete. Episodic and associative memory from spatial scaffolds in the hippocampus. Nature, 638(8051):739–751, February 2025. ISSN 0028-0836, 1476-4687. doi: 10.1038/s41586-024-08392-y.
  7. Mikail Khona, Sarthak Chandra, and Ila Fiete. Global modules robustly emerge from local interactions and smooth gradients. Nature, 640(8057):155–164, April 2025. ISSN 0028-0836, 1476-4687. doi: 10.1038/s41586-024-08541-3.
  8. Ben Sorscher, Gabriel C. Mel, Samuel A. Ocko, Lisa M. Giocomo, and Surya Ganguli. A unified theory for the computational and mechanistic origins of grid cells. Neuron, 111(1):121–137.e13, January 2023. ISSN 08966273. doi: 10.1016/j.neuron.2022.10.003.
  9. Andrea Banino, Caswell Barry, Benigno Uria, Charles Blundell, Timothy Lillicrap, Piotr Mirowski, Alexander Pritzel, Martin J. Chadwick, Thomas Degris, Joseph Modayil, Greg Wayne, Hubert Soyer, Fabio Viola, Brian Zhang, Ross Goroshin, Neil Rabinowitz, Razvan Pascanu, Charlie Beattie, Stig Petersen, Amir Sadik, Stephen Gaffney, Helen King, Koray Kavukcuoglu, Demis Hassabis, Raia Hadsell, and Dharshan Kumaran. Vector-based navigation using grid-like representations in artificial agents. Nature, 557(7705):429–433, May 2018. ISSN 0028-0836, 1476-4687. doi: 10.1038/s41586-018-0102-6.
  10. Christopher J. Cueva and Xue-Xin Wei. Emergence of grid-like representations by training recurrent neural networks to perform spatial localization, March 2018.
  11. Mufeng Tang, Helen Barron, and Rafal Bogacz. Learning grid cells by predictive coding. arXiv preprint arXiv:2410.01022, 2024. doi: 10.48550/arXiv.2410.01022.
  12. Marcus K. Benna and Stefano Fusi. Place cells may simply be memory cells: Memory compression leads to spatial tuning and history dependence. Proc. Natl. Acad. Sci. U.S.A., 118(51): e2018422118, December 2021. ISSN 0027-8424, 1091-6490. doi: 10.1073/pnas.2018422118.
  13. Zhaoze Wang, Ronald W. Di Tullio, Spencer Rooke, and Vijay Balasubramanian. Time Makes Space: Emergence of Place Fields in Networks Encoding Temporally Continuous Sensory Experiences. In NeurIPS, 2024. doi: 10.1101/2024.08.11.607484.
  14. Kimberly L Stachenfeld, Matthew M Botvinick, and Samuel J Gershman. The hippocampus as a predictive map. Nat Neurosci, 20(11):1643–1653, November 2017. ISSN 1097-6256, 1546-1726. doi: 10.1038/nn.4650.
  15. Trygve Solstad, Edvard I. Moser, and Gaute T. Einevoll. From grid cells to place cells: A mathematical model. Hippocampus, 16(12):1026–1031, December 2006. ISSN 1050-9631, 1098-1063. doi: 10.1002/hipo.20244.
  16. Edmund T. Rolls, Simon M. Stringer, and Thomas Elliot. Entorhinal cortex grid cells can map to hippocampal place cells by competitive learning. Network: Computation in Neural Systems, 17 (4):447–465, January 2006. ISSN 0954-898X, 1361-6536. doi: 10.1080/09548980601064846.
  17. Tora Bonnevie, Benjamin Dunn, Marianne Fyhn, Torkel Hafting, Dori Derdikman, John L Kubie, Yasser Roudi, Edvard I Moser, and May-Britt Moser. Grid cells require excitatory drive from the hippocampus. Nat Neurosci, 16(3):309–317, March 2013. ISSN 1097-6256, 1546-1726. doi: 10.1038/nn.3311.
  18. César Rennó-Costa and Adriano B.L. Tort. Place and Grid Cells in a Loop: Implications for Memory Function and Spatial Coding. J. Neurosci., 37(34):8062–8076, August 2017. ISSN 0270-6474, 1529-2401. doi: 10.1523/JNEUROSCI.3490-16.2017.
  19. Zhaoze Wang, Genela Morris, Dori Derdikman, Pratik Chaudhari, and Vijay Balasubramanian. REMI: Reconstructing Episodic Memory During Internally Driven Path Planning. In NeurIPS, 2025.
  20. Tom J. Wills, Francesca Cacucci, Neil Burgess, and John O’Keefe. Development of the Hippocampal Cognitive Map in Preweanling Rats. Science, 328(5985):1573–1576, June 2010. ISSN 0036-8075, 1095-9203. doi: 10.1126/science.1188224.
  21. Rosamund F. Langston, James A. Ainge, Jonathan J. Couey, Cathrin B. Canto, Tale L. Bjerknes, Menno P. Witter, Edvard I. Moser, and May-Britt Moser. Development of the Spatial Representation System in the Rat. Science, 328(5985):1576–1580, June 2010. ISSN 0036-8075, 1095-9203. doi: 10.1126/science.1188210.
  22. Dori Derdikman, Jonathan R Whitlock, Albert Tsao, Marianne Fyhn, Torkel Hafting, May-Britt Moser, and Edvard I Moser. Fragmentation of grid cell maps in a multicompartment environment. Nat Neurosci, 12(10):1325–1332, October 2009. ISSN 1097-6256, 1546-1726. doi: 10.1038/nn.2396.
  23. Tanja Wernle, Torgeir Waaga, Maria Mørreaunet, Alessandro Treves, May-Britt Moser, and Edvard I. Moser. Integration of grid maps in merged environments. Nature Neuroscience, 21(1):92–101, 2018. doi: 10.1038/s41593-017-0036-6. URL https://www.nature.com/articles/s41593-017-0036-6.
  24. Francis Carpenter, Daniel Manson, Kate Jeffery, Neil Burgess, and Caswell Barry. Grid Cells Form a Global Representation of Connected Environments. Current Biology, 25(9):1176–1182, May 2015. ISSN 09609822. doi: 10.1016/j.cub.2015.02.037.
  25. Gily Ginosar, Johnatan Aljadeff, Yoram Burak, Haim Sompolinsky, Liora Las, and Nachum Ulanovsky. Locally ordered representation of 3D space in the entorhinal cortex. Nature, 596(7872):404–409, August 2021. ISSN 0028-0836, 1476-4687. doi: 10.1038/s41586-021-03783-x.