Remapping in a recurrent neural network model of navigation and context inference

Isabel I. C. Low, Lisa M. Giocomo, Alex H. Williams

Abstract

Neurons in navigational brain regions provide information about position, orientation, and speed relative to environmental landmarks. These cells also change their firing patterns (“remap”) in response to changing contextual factors such as environmental cues, task conditions, and behavioral state, which influence neural activity throughout the brain. How can navigational circuits preserve their local computations while responding to global context changes? To investigate this question, we trained recurrent neural network models to track position in simple environments while at the same time reporting transiently-cued context changes. We show that these combined task constraints (navigation and context inference) produce activity patterns that are qualitatively similar to population-wide remapping in the entorhinal cortex, a navigational brain region. Furthermore, the models identify a solution that generalizes to more complex navigation and inference tasks. We thus provide a simple, general, and experimentally-grounded model of remapping as one neural circuit performing both navigation and context inference.

Introduction

The medial entorhinal cortex (MEC) serves as the brain's internal GPS, with neurons that track an animal's location, speed, and orientation. However, these cells often undergo "remapping," where the entire population shifts its activity pattern even when the physical environment remains unchanged. This poses a fundamental puzzle: how can a neural circuit radically change its activity to reflect a new context (like a change in internal state or task demands) without losing track of the local navigational variables it is supposed to compute?

This paper demonstrates that remapping is a natural geometric solution for a circuit that must simultaneously track position and infer environmental context. By training recurrent neural networks (RNNs) on these dual constraints, the researchers discovered that the networks develop highly aligned, low-dimensional manifolds that strikingly mirror real biological data.

Methods and Datasets

The authors used a normative modeling approach, employing "vanilla" Elman Recurrent Neural Networks (RNNs) with 248 hidden units. The RNNs were trained on two simultaneous tasks: path integration (integrating a velocity signal to track position in 1D or 2D) and latent state inference (remembering a transiently-cued "context" variable).

Experimental context of 1D VR navigation and biological remapping.

To validate the model, the authors re-analyzed Neuropixels recordings from the MEC of mice navigating virtual reality environments (originally published in Low et al., 2021). This included an analysis of "multi-map" sessions where mice switched between distinct spatial representations. They used Procrustes shape analysis to measure manifold alignment and Nonlinear Systems Analysis to map the network's underlying dynamics.

Key Results

The trained RNNs achieved 100% accuracy in context estimation and high precision in navigation. The most significant finding was the emergence of aligned manifolds: the network represented position and context in separate, orthogonal subspaces. In 1D, this resulted in two parallel rings of activity. If the network is at "Position X" on Map A, a context switch moves the activity directly to the corresponding "Position X" on Map B, preserving the spatial estimate.

RNN model architecture, activity manifolds, and alignment analysis.

Fixed-point analysis revealed that remapping is guided by unstable "saddle" fixed points between the stable ring attractors. These act as funnels, guiding neural activity from one map to the correct location on the next. This aligned-manifold solution matched 13 out of 18 map pairs analyzed in the mouse data, suggesting a universal algorithmic principle for multi-tasking in neural circuits.

Discussion and Future Work

While the RNNs showed near-perfect manifold alignment, biological data was more variable and asymmetric. This suggests that higher-dimensional solutions or different biological constraints—such as Dale’s Law or more complex connectivity motifs—might be at play in the brain.

Future work could explore how circuits remap when context cues are noisy or ambiguous, requiring probabilistic inference. Additionally, investigating whether this geometry emerges when context is purely an internal latent variable, rather than an explicit output, remains a promising next step in understanding the flexible nature of the brain's navigational system.

Summary updated

BibTeX
@inproceedings{low2023remapping,
  author = {Isabel I. C. Low and Lisa M. Giocomo and Alex H. Williams},
  title = {{Remapping in a recurrent neural network model of navigation and context inference}},
  booktitle = {eLife},
  year = {2023},
  doi = {10.7554/elife.86943},
}
Figure