Abstract
Grid cells, found in the medial Entorhinal Cortex, are known for their regular spatial firing patterns. These cells have been proposed as the neural solution to a range of computational tasks, from performing path integration, to serving as a metric for space. Their exact function, however, remains fiercely debated. In this work, we explore the consequences of demanding distance preservation over small spatial scales in networks subject to a capacity constraint. We consider two distinct self-supervised models, a feedforward network that learns to solve a purely spatial encoding task, and a recurrent network that solves the same problem during path integration. We find that this task leads to the emergence of highly grid cell-like representations in both networks. However, the recurrent network also features units with band-like representations. We subsequently prune velocity inputs to subsets of recurrent units, and find that their grid score is negatively correlated with path integration contribution. Thus, grid cells emerge without path integration in the feedforward network, and they appear substantially less important than band cells for path integration in the recurrent network. Our work provides a minimal model for learning grid-like spatial representations, and questions the role of grid cells as neural path integrators. Instead, it seems that distance preservation and high population capacity is a more likely candidate task for learning grid cells in artificial neural networks.
Introduction
Since their discovery in the medial Entorhinal Cortex (mEC), grid cells—neurons that fire in a striking hexagonal lattice as an animal moves—have been the subject of intense debate. The dominant theory posits that they are the neural substrate for path integration: the ability to calculate one's current position by integrating velocity over time. However, many artificial neural network (ANN) models that produce grid cells are highly complex, involving multiple regularization terms and specific architectural constraints. This makes it difficult to determine if grid cells appear because of path integration or because of some other underlying requirement. This study investigates whether grid cells can emerge without path integration and examines which cells actually drive navigation performance.
Methods
The researchers proposed a "minimal model" for grid cell emergence based on two primary ingredients: distance preservation and capacity constraints. Distance preservation forces the network to represent nearby physical locations as nearby neural states, implemented using a Gaussian window that emphasizes local over global geometry. The capacity constraint, an L1-norm regularization term, encourages the network to use its population of neurons efficiently, favoring distributed representations.
These constraints were tested on two distinct architectures:
- Feedforward (FF) Network: Directly maps $(x, y)$ coordinates to neural activity, lacking any concept of time or velocity.
- Recurrent Neural Network (RNN): Receives an initial position and updates its state based on velocity inputs over time, performing implicit path integration.
Both networks used a custom normReLU activation function to keep the population activity vector on a hypersphere. The study utilized synthetic data where Cartesian coordinates were sampled uniformly, and trajectories for the RNN were generated using a standard "bouncing" procedure.
Results
The study yielded several key insights that challenge existing paradigms. First, path integration is not required for grid cell emergence; the feedforward network developed grid cells as effectively as the RNN. This suggests that the hexagonal pattern is an optimal solution for mapping 2D space under capacity constraints, regardless of how position is calculated.
Second, while the FF network produced almost exclusively grid cells, the RNN produced a mixture of grid cells and "band cells" (units with striped, non-hexagonal firing patterns). Crucially, the authors found a functional dissociation: by "pruning" velocity inputs to specific neurons, they discovered that band cells are the primary drivers of path integration. In the RNN, a unit's grid score was negatively correlated with its contribution to path integration; the lower the grid score (i.e., the more "band-like" the cell), the more important it was for tracking movement.
Finally, using persistent homology, the authors showed that both networks organized their representations into a toroidal manifold, the mathematical hallmark of biological grid cell populations. While the RNN could generalize its grid patterns to areas outside its training domain, the FF network's patterns broke down immediately, suggesting that path integration circuits help maintain the grid metric in novel territory.
Discussion
By stripping away the complexity of previous models, this work challenges the "grid-cells-as-integrators" dogma and repositions them as a high-capacity, distance-preserving coordinate system for the brain. Limitations include the use of simplified Cartesian inputs rather than biological landmarks. Future work aims to explore sampling-based alternatives to the distance preservation loss that might more closely mimic biological learning. Overall, the results suggest that distance preservation and high population capacity are more likely candidate tasks for learning grid cells than path integration itself.
Summary updated