Learning Grid Cells as Vector Representation of Self-Position Coupled with Matrix Representation of Self-Motion

Ruiqi Gao, Jianwen Xie, Song-Chun Zhu, Ying Nian Wu

Overview

This paper proposes a novel representational model for grid cells where a 2D position is represented as a high-dimensional vector, and motion is a matrix that rotates that vector. By enforcing simple geometric constraints—specifically that nearby positions should be "magnified" in vector space—the model naturally produces the iconic hexagonal firing patterns seen in the brain and enables robust path integration and planning.

The Biological "GPS" Problem

In neuroscience, grid cells are neurons that fire when an animal reaches specific points in an environment, forming a strikingly regular hexagonal lattice. Found in the entorhinal cortex, these cells are thought to be the brain's "GPS," responsible for path integration (tracking location based purely on self-motion) and path planning. They work in tandem with place cells in the hippocampus, which fire at single, specific locations.

Biological inspiration for grid and place cells

While many mathematical models exist to explain grid cells, they often rely on specific, hand-tuned assumptions like Fourier plane waves. The authors of this paper ask a more fundamental question: Can we derive grid cell properties from a general algebraic framework? They tackle the challenge of creating a model that is mathematically explicit, capable of learning these patterns from scratch, and robust enough to handle the "noisy" nature of biological neurons.

A "Rotationist" Methodology

The authors introduce a representational model based on three core sub-models:

  1. Vector-Matrix Motion Algebra: The agent's 2D position $x$ is represented by a high-dimensional vector $v(x)$. Movement ($\Delta x$) is modeled as a matrix $M(\Delta x)$ that transforms the current position vector into the next: $v(x + \Delta x) = M(\Delta x)v(x)$.
  2. Magnified Local Isometry: To make the representation robust, the model ensures that the angle between two nearby vectors is proportional to the Euclidean distance between the physical positions, multiplied by a "magnifying" factor. This means small movements in the real world correspond to large rotations in the high-dimensional vector space.
  3. Global Adjacency Kernel: The inner product (similarity) between any two vectors $v(x)$ and $v(y)$ is defined by a kernel function (like a Gaussian) of the distance between $x$ and $y$. This effectively links the grid cells (vector components) to place cells.

The model is implemented using a one-layer neural network structure where the weights (the motion matrices) are dynamic and depend on the agent's velocity.

Experimental Setup

Instead of standard vision or language datasets, the researchers used simulated agent trajectories:

  • 2D Environments: Agents moving in square, circular, and triangular regions discretized into a $40 \times 40$ lattice.
  • 3D Environments: A $40 \times 40 \times 40$ lattice to test the model's scalability to higher dimensions.
  • 1D Time Series: 100 time points to demonstrate the model's ability to act as a "neural clock."

Key Insights

  • Emergence of Hexagons: The most striking finding is that hexagonal patterns are not "hard-coded." They emerge naturally as the most efficient way to satisfy the local isometry and motion algebra constraints once the number of units in a block is six or greater.
  • The "Multi-Arm Clock": The system acts like a multi-arm clock. Each "arm" (a sub-vector or module) rotates at a different speed (magnification factor). While a single arm is periodic and ambiguous, the combination of multiple arms uniquely identifies a location.
  • Error Correction via Geometry: Because the model "magnifies" distance, noisy neural signals that would normally cause a "drift" in position are pushed back toward the correct manifold. This explains how animals navigate accurately even with "noisy" biological hardware.
  • Algebraic Path Planning: Path planning becomes a simple optimization problem. To find the best move, the agent simply chooses the motion matrix $M(\Delta x)$ that maximizes the inner product between its predicted next state and the vector representing the goal.

Results and Performance

  • Hexagonal Firing: The model successfully learned stable hexagonal grid patterns across various scales (controlled by a scaling parameter $\alpha$).
  • Robust Path Integration: In simulations of 400 steps, the Mean Square Error (MSE) remained exceptionally low (~1.2 grid units).
  • High-Efficiency Planning: The model achieved a >99% success rate in path planning across 1,000 test episodes, including scenarios with obstacles where the agent used "repulsive" vector logic to avoid walls.
  • Extreme Robustness: In dropout tests, the system continued to function effectively even when 70% of the neurons were silenced, demonstrating the power of its redundant, high-dimensional representation.

Limitations and Future Directions

  • Source of Self-Motion: The model treats the displacement $\Delta x$ as a given input. In a biological system, this would come from complex motor signals and vestibular inputs, which are not modeled here.
  • Scale Integration: While the model uses multiple "blocks" (modules) of grid cells, more work is needed to understand how the brain optimally combines different scales for long-distance navigation.
  • Motor Cortex Applications: The authors suggest this "rotationist" framework could be applied to the motor cortex to model how the brain represents complex limb movements using Lie groups, presenting an exciting theoretical extension.

Summary updated

BibTeX
@inproceedings{gao2019learning,
  author = {Ruiqi Gao and Jianwen Xie and Song-Chun Zhu and Ying Nian Wu},
  title = {{Learning Grid Cells as Vector Representation of Self-Position Coupled with Matrix Representation of Self-Motion}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=sasI85QLoZ},
}

Loading related content...

Figure