Neuro-Nav: A Library for Neurally-Plausible Reinforcement Learning

Arthur Juliani, Samuel Barnett, Brandon Davis, Margaret E. Sereno, Ida Momennejad

Introduction

In recent years, the fields of artificial intelligence (AI) and cognitive neuroscience have diverged significantly. While AI research has achieved remarkable success in reaching "superhuman" performance in complex games and simulations, these models often diverge from the biological mechanisms and behavioral patterns observed in living organisms. Conversely, cognitive scientists frequently lack standardized tools, often relying on bespoke, non-reproducible codebases to simulate navigation and decision-making tasks.

Neuro-Nav is an open-source Python library designed to bridge this gap. By providing a standardized toolkit of neurally plausible reinforcement learning (RL) algorithms and environments, it enables researchers to replicate landmark behavioral studies and investigate how biological brains solve complex spatial and associative problems.

The Challenge of Biological Plausibility in RL

The current landscape of reinforcement learning faces two primary challenges regarding biological relevance:

  1. The Reproducibility Crisis: Experimental code in cognitive science is often fragmented, written in obsolete languages, or implemented with subtle variations that prevent direct comparison between studies. This lack of standardization hinders the cumulative progress of the field.
  2. Benchmark Irrelevance: Standard AI benchmarks, such as the Atari suite or MuJoCo physics engine, focus on high-dimensional control and pixel-perfect optimization. These do not reflect the types of navigation and associative learning tasks typically used to study rodents and humans in laboratory settings.

Neuro-Nav addresses these issues by offering a unified, OpenAI Gym-compatible framework that integrates the exact environments and algorithms found in canonical neuroscience literature.

Library Architecture and Methodology

Neuro-Nav is built on a modern stack of Python, NumPy, and PyTorch. Its architecture is modular, consisting of three core components:

  • Benchmark Environments: A suite of 2D grid-world mazes and abstract graph-based navigation tasks designed to mirror experimental setups used in animal and human research.
  • Algorithms Toolkit: A collection of "tabular" RL agents. Unlike deep RL models that utilize massive neural networks, tabular RL maps discrete states to actions. This approach is highly interpretable and aligns with the computational models traditionally used in cognitive science.
  • Interactive Notebooks: Pre-configured tools that allow researchers to replicate specific experimental findings with minimal setup.

The library includes several foundational algorithms, such as Temporal Difference (TD) learning for model-free RL, Successor Representation (SR) for predictive mapping, Dyna-style algorithms for mental replay, and Model-Based Value Iteration (MBV) for explicit planning.

Standardized Environments

Neuro-Nav provides a variety of environments that move beyond static datasets, focusing instead on dynamic interaction:

  • Spatial Mazes: 2D grids used to study rodent navigation, including T-mazes and open-field environments.
  • Graph Navigation: Abstract nodes and edges used to investigate associative learning and the formation of "cognitive maps" in humans.
  • Observation Spaces: While the library defaults to "one-hot" encoding for state identification, it also supports Euclidean distances and complex sensory inputs like CIFAR images. This flexibility allows researchers to test how sensory complexity influences the learning process.

Theoretical Frameworks and Biological Proxies

A central theme of Neuro-Nav is the "middle path" of complexity. The authors argue that by using biologically grounded observation spaces, even relatively simple models can produce expressive, human-like behavior.

A key focus is the Successor Representation (SR). The library demonstrates that SR serves as a powerful biological proxy; when agents are trained using SR in these environments, internal representations emerge that mirror the spatially selective fields of place cells and grid cells found in the mammalian hippocampus and entorhinal cortex. Furthermore, the library allows researchers to distinguish between Reward Transfer (adapting to moving goals) and Structure Transfer (adapting to layout changes), providing a metric to compare artificial agents against the specific cognitive limitations of humans and rodents.

Empirical Validation and Results

The utility of Neuro-Nav was validated through the replication of several high-profile studies:

  • Human-like Revaluation: Replicating findings from Momennejad et al. (2017), the authors showed that DynaSR and SRMB algorithms most closely match human behavior in revaluation tasks, where the value of a goal is updated after the initial learning phase.
  • Biological Representations: The library successfully demonstrated the emergence of spatially selective units in SR-trained agents, providing a computational link to hippocampal physiology.
  • Temporal Community Structure: Using graph environments from Schapiro et al. (2013), the authors showed that predictive neural networks naturally group "temporally similar" states together, mimicking the brain's organizational principles for sequential information.

Discussion and Future Directions

While Neuro-Nav currently focuses on tabular learning agents—which are ideal for discrete tasks—it is limited in its ability to handle the high-dimensional, continuous sensory signals encountered in the real world.

Future development aims to integrate Deep RL algorithms to bridge the gap between tabular models and complex sensory inputs. Additionally, the authors plan to expand the library's environment suite to include a broader range of neuroscience paradigms, encouraging the community to contribute novel algorithms to maintain Neuro-Nav as a living benchmark for neurally plausible AI.

Summary updated

Abstract

In this work we propose Neuro-Nav, an open-source library for neurally plausible reinforcement learning (RL). RL is among the most common modeling frameworks for studying decision making, learning, and navigation in biological organisms. In utilizing RL, cognitive scientists often handcraft environments and agents to meet the needs of their particular studies. On the other hand, artificial intelligence researchers often struggle to find benchmarks for neurally and biologically plausible representation and behavior (e.g., in decision making or navigation). In order to streamline this process across both fields with transparency and reproducibility, Neuro-Nav offers a set of standardized environments and RL algorithms drawn from canonical behavioral and neural studies in rodents and humans. We demonstrate that the toolkit replicates relevant findings from a number of studies across both cognitive science and RL literatures. We furthermore describe ways in which the library can be extended with novel algorithms (including deep RL) and environments to address future research needs of the field.
BibTeX
@inproceedings{juliani2022neuro,
  author = {Arthur Juliani and Samuel Barnett and Brandon Davis and Margaret E. Sereno and Ida Momennejad},
  title = {{Neuro-Nav: A Library for Neurally-Plausible Reinforcement Learning}},
  booktitle = {2022},
  year = {2022},
  doi = {10.32470/ccn.2022.1212-0},
}
Figure