Representations in the hippocampal-entorhinal system emerge from learning sensory predictions

Diego Gomez, Michael Bowling, J. Quinn Lee, Marlos C. MachadobioRxiv 2025

Abstract

The hippocampal formation and adjacent parahippocampal areas are central to intelligent behavior, yet how these systems generate structured representations from experience remains a fundamental question in neuroscience. Existing models often rely on hand-crafted features or specialized mechanisms that do not account for the diverse neural responses—such as place, grid, and boundary cells—observed across the hippocampal-entorhinal circuit. Here, we introduce a neurobiologically-inspired computational model where these diverse cell types emerge from a single learning objective: predicting future sensory states. By applying contrastive graph representation learning to transitions between high-dimensional visual observations, our model constructs a metric space that mirrors the anatomical and functional structure of the brain. The model quantitatively reproduces remapping dynamics observed in CA1 of freely moving animals, offering a unified framework for understanding spatial coding in the brain.

Introduction

The hippocampal-entorhinal system acts as the brain's internal GPS, housing specialized neurons that allow animals to navigate and remember environments. For decades, researchers have documented a variety of functional cell types: place cells that fire in specific locations, grid cells that fire in hexagonal patterns, and boundary vector cells (BVCs) that respond to environmental borders.

A central open question is whether these diverse responses arise from a single underlying computational principle or if the brain requires separate, hard-wired mechanisms for each. Previous models often "cheat" by providing explicit spatial coordinates (X, Y) or using hand-crafted features that bypass the challenge of learning from raw sensory input. This research seeks a minimalist explanation: can the entire complex system emerge simply by teaching a neural network to organize sensory experiences based on time and transition?

The ALLO Framework

To test this hypothesis, we developed the Augmented Lagrangian Laplacian Objective (ALLO). This contrastive learning framework trains a deep neural network to map temporally adjacent sensory observations to nearby points in a metric space.

Mathematically, ALLO approximates the first eigenvectors of the graph Laplacian induced by sensory transitions. By treating the environment as a graph where nodes are visual observations and edges are movements, the model finds the smoothest way to represent the environment's structure. The architecture consists of a Convolutional Neural Network (CNN) paired with a four-layer Multi-Layer Perceptron (MLP). To maintain biological plausibility, we enforced two key constraints:

  1. Non-negativity: Using ReLU activations to mimic the firing of real neurons.
  2. Orthogonality: Ensuring different "cells" represent distinct features, mimicking the decorrelation observed in the dentate gyrus.

Crucially, the model is trained on egocentric visual input—what an animal actually sees—rather than idealized coordinates.

Experimental Results

Anatomical and Functional Alignment

The most striking finding was that the model's hierarchical layers naturally mirrored the brain's anatomy. As information flowed through the network, different layers developed specialized representations:

  • Early Layers: Developed Boundary Vector Cells, similar to those found in the subiculum.
  • Middle Layers: Produced Place Cells, typical of the CA1 region.
  • Final Layers: Generated Grid Cells, matching those found in the medial entorhinal cortex.

The model successfully generated grid cells (24.4% of units), head-direction cells (46.7%), and conjunctive cells in proportions that closely match biological studies. Interestingly, this hierarchy only emerged when the model was trained on realistic, high-dimensional sensory data. When provided with "perfect" coordinates, the model found computational shortcuts and failed to develop the structured representations seen in biology.

Quantitative Validation and Remapping

To validate the model against real-world data, we compared its performance to a dataset of CA1 neural recordings from seven rats navigating ten different room geometries. We focused on "remapping"—the phenomenon where neurons change their firing patterns when an environment's shape changes.

The model’s place-cell layer achieved a rank-order correlation of 0.628 with the rodent CA1 data. This result is significant because it approaches the "noise margin" (the natural variability between individual animals), suggesting the model captures the fundamental logic the brain uses to adapt to new spaces.

Discussion

Our results suggest that the brain's navigation cells are not merely detectors for walls or locations; they represent a way for the brain to approximate the spectral structure of environmental dynamics. By learning to predict sensory transitions, the hippocampal-entorhinal system creates a map that is both functional for navigation and flexible enough to adapt to new geometries.

While the model is robust, some limitations remain. For instance, it did not clearly replicate the "discretized modules" of grid cells (groups with different scales) seen in some biological studies, likely due to the uniform movement policy used during training. Future work will explore extending the ALLO objective to non-spatial domains, such as sound or abstract concepts, to determine if the same predictive principles explain how the brain organizes thoughts and memories.

Summary updated

BibTeX
@misc{gomez2025representations,
  author = {Diego Gomez and Michael Bowling and J. Quinn Lee and Marlos C. Machado},
  title = {{Representations in the hippocampal-entorhinal system emerge from learning sensory predictions}},
  year = {2025},
  doi = {10.1101/2025.10.03.680189},
  howpublished = {bioRxiv},
}
Figure