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:
- 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.
- 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