A unified theory for the origin of grid cells through the lens of pattern formation

Ben Sorscher, Gabriel Mel, Surya Ganguli, Samuel A. OckoNeurIPS 2019

Neuroscientists have long been fascinated by grid cells—neurons in the brain's "GPS system" (the medial entorhinal cortex) that fire at the vertices of a strikingly regular hexagonal lattice as an animal navigates. Until now, research explaining this phenomenon was split into two distinct camps:

  1. Mechanistic Models: These rely on hand-tuned recurrent neural networks (RNNs) to "force" hexagonal patterns via continuous attractors. They show how the patterns can be maintained but do not explain why the brain naturally selects hexagons.
  2. Normative Models: These train neural networks on navigational tasks (like path integration) and observe that grid-like patterns often emerge organically. However, these models act as "black boxes"—it remains unclear why they sometimes produce square grids, hexagonal grids, or messy, amorphous patterns.

This paper bridges the gap between these two paradigms, providing a unified mathematical theory that explains both the origin and geometry of these neural representations. By casting the training of neural networks as a "pattern formation" dynamical system, the authors prove that hexagonal symmetry is not a biological accident, but an optimal mathematical solution triggered by a simple constraint: neurons cannot have negative firing rates.

Experimental Setup and Architectures

The authors analyzed the "position encoding objective"—the task of taking internal neural activity and using it to reconstruct a map of space represented by "place cells." The study relied on simulated data, featuring an artificial agent moving in a 2.2m square box. The target "ground truth" consisted of a population of simulated place cells with either Gaussian or "center-surround" (Difference-of-Gaussians) tuning curves that tile the environment.

To ensure the theory's generality, the researchers tested three types of network architectures: a simple 1-layer linear network, a Recurrent Neural Network (RNN), and a Long Short-Term Memory (LSTM) network.

Network architectures and the emergence of hexagonal grids under non-negativity constraints.

Regardless of the architecture, the networks exhibited universal convergence. Without constraints, the networks had no reason to prefer hexagons over other patterns. However, once a non-negativity constraint was applied to the firing rates, all networks converged to regular hexagonal grids.

The Mathematical Mechanism: Symmetry Breaking

To understand why this happens, the authors formulated the learning process as an optimization problem using Lagrangian dynamics. By analyzing the system in Fourier space (looking at spatial frequencies), they treated the learning process as a pattern-forming system, akin to how ripples form on water or stripes appear on a zebra.

They found that the shape of the "target" place cells determines the initial grid geometry. Broad Gaussian targets naturally lead to square grids, while center-surround targets create a "ring" of possible patterns in Fourier space, often resulting in amorphous, non-periodic structures.

The paper's crucial insight is that non-negativity acts as a symmetry breaker. The authors introduced a "softened non-negativity constraint" using a Taylor expansion to observe its effects analytically.

Fourier space analysis showing how a three-body interaction forms an equilateral triangle, resulting in a hexagonal lattice.

Mathematically, forcing firing rates to be positive introduces a "three-body interaction" between spatial frequencies. This interaction heavily favors triplets of waves that form equilateral triangles in Fourier space. When these three wave frequencies are combined in physical space, they perfectly interfere to create a hexagonal lattice.

A Grand Unification

Beyond explaining the geometry, the authors proved a mathematical equivalence between the learning dynamics of a "normative" task-trained network and the fixed-point dynamics of "mechanistic" continuous attractor models. This demonstrates that the two dominant theories in the field are fundamentally two sides of the same coin. Hexagonal patterns are the mathematically optimal way to linearly reconstruct a population of place cells using a limited number of neurons with positive firing rates.

Furthermore, the paper suggests that some "hierarchies" of grid scales previously observed in simulations might actually be artifacts of the square boundaries of the simulation box (lattice discretization), rather than fundamental biological laws.

Limitations and Future Work

While this unified theory represents a major step forward, the authors note a few limitations:

  • Idealized Inputs: The model assumes a uniform and isotropic distribution of place cells, simplifying the messy, heterogeneous reality of the biological hippocampus.
  • Path Integration Stability: The theory elegantly explains why hexagons are the target of learning, but it does not fully detail how backpropagation-trained RNNs learn to update these patterns dynamically during active movement.

Looking forward, the authors suggest this pattern-formation framework could be applied to non-spatial "grids" found in the brain—such as those representing sound pitch or abstract semantic concepts—potentially opening the door to a more general theory of neural representation across the cortex.

Summary updated

BibTeX
@inproceedings{sorscher2019unified,
  author = {Ben Sorscher and Gabriel Mel and Surya Ganguli and Samuel A. Ocko},
  title = {{A unified theory for the origin of grid cells through the lens of pattern formation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure