Neural Circuit Architectural Priors for Rat Locomotion

Nikhil X. Bhattasali, Jaron Cui, Lerrel Pinto, Grace W. Lindsay

TL;DR

Researchers have developed a new embodied simulation framework that bridges the gap between abstract AI and detailed biophysics to study rat locomotion. By combining a 38-degree-of-freedom biomechanical model (Rat v2) with a spinal-cord-inspired neural architecture (Rat NCAP), the system learns naturalistic gaits and transitions—matching experimental biological data—without requiring any imitation learning from real animal videos.

What Problem Does This Paper Address?

In the quest to understand how the brain controls the body, researchers usually face a trade-off in abstraction. On one end, detailed biophysical models (simulating individual ion channels) are biologically accurate but computationally expensive and hard to optimize for complex behaviors. On the other end, standard Artificial Neural Networks (ANNs) are easy to train but act as "black boxes" that are difficult to relate back to actual neural circuits. Furthermore, abstract ANNs often produce "unnatural" movements unless they are forced to copy real animal data via imitation learning.

The authors propose an intermediate level of abstraction. They aim to build a model that is computationally tractable enough to train using reinforcement learning, yet structurally faithful enough to mammalian spinal circuits to provide genuine mechanistic insights into biology.

Methods

The authors introduced three coordinated advances:

  1. Rat v2 Biomechanical Body: An updated model with 38 actuated degrees of freedom (DOFs), including a flexible spine and tail. It is implemented in MuJoCo and integrated into a JAX-based framework for massive GPU acceleration. The Rat v2 body features anatomically realistic kinematics and collision geometry.
The Rat v2 body features anatomically realistic kinematics and collision geometry.
  1. Rat NCAP (Neural Circuit Architectural Priors): Instead of a generic MLP, the controller is a structured network mirroring the mammalian spinal cord. It includes modules for:
  2. Rhythm Generation (RG): "Half-center" oscillators that create the basic beat of walking.
  3. Pattern Formation (PF): Mapping those rhythms to specific muscle groups.
  4. Afferent Feedback (AF): Processing sensory data (touch, joint position) to adjust the gait. The Rat NCAP architecture organizes limbs into reciprocally inhibiting flexor/extensor circuits.
The Rat NCAP architecture organizes limbs into reciprocally inhibiting flexor/extensor circuits.
  1. Flexor-Extensor Neuromechanical Interface: A novel way for the neural network to talk to the body. Instead of just outputting "torque," the network controls antagonistic pairs of virtual springs, mimicking how real muscles provide stabilizing feedback and adjustable stiffness. Comparison of different control laws, highlighting the novel flexor-extensor interface.
Comparison of different control laws, highlighting the novel flexor-extensor interface.

The system was trained using Augmented Random Search (ARS), an evolutionary optimization algorithm that works well with non-differentiable simulators and sign-constrained biological weights.

Datasets

The model was trained in a custom JAX-based simulation environment. To validate the results, the authors compared the model's performance against several established experimental datasets of real rat locomotion, focusing on:

  • Step Statistics: Stance vs. swing duration across speeds.
  • Kinematics: Joint angles for the hip, knee, ankle, etc.
  • Kinetics: Ground reaction forces.
  • Neural Activity: Cell-type-specific firing patterns recorded in biological studies.

Key Insights and Ideas

  • Architecture as an Inductive Bias: The most striking finding is that the model produces naturalistic walk, trot, and bound gaits without imitation learning. The "architectural prior" of the spinal circuit naturally constrains the solution space to biologically plausible movements.
  • The Importance of the Interface: The "Flexor-Extensor" interface significantly outperformed standard torque or position control. It achieved higher rewards and produced more rounded, natural limb trajectories. This supports the idea that the intrinsic mechanics of muscles are a feature, not a bug, for neural control.
  • In Silico Ablations: Because the model uses specific "cell types" (like V0v and V0d interneurons), researchers could "turn them off" in the simulation. Doing so reproduced known biological phenotypes—for example, removing V0-mediated alternation caused the model to switch from a trot to a bound, exactly as seen in genetic knockout mice.

Key Results

  • Naturalistic Transitions: The model successfully transitions from a walk (0.2 m/s) to a trot (0.4 m/s) to a bound (1.0 m/s) simply by increasing a "brainstem command" signal.
  • Biological Match: Step frequency and stance/swing durations closely matched experimental data. For instance, like real rats, the model increases speed primarily by shortening stance time while keeping swing time relatively constant. Experimental validation showing the model's step statistics and kinematics match real rat data.

  • Efficiency: The Rat NCAP model has ~50x fewer parameters than the MLP baselines used for comparison, yet it achieves higher performance and better generalization to bumpy terrain.

Experimental validation showing the model's step statistics and kinematics match real rat data.

Limitations and Future Work

While a major step forward, the authors note several areas for improvement:

  • Kinematic Discrepancies: The model doesn't perfectly match distal joint movements (like the ankle/toe) during the swing phase, possibly due to the simplified rigid-body physics.
  • Underconstrained Parameters: While the structure is biological, the specific synaptic weights are learned. There may be multiple ways to achieve the same gait, and it's unclear which one the real animal uses.
  • Expanding Behavior: Future work aims to incorporate more brain regions (like the cerebellum) to enable complex tasks like turning, rearing, and navigating uneven terrain. They also plan to add more realistic "Hill-type" muscle models to the neuromechanical interface.

Summary updated

Abstract

Animals generate behavior through continuous interactions between their neural circuits, bodies, and environment. Embodied simulations study these interactions by testing neural circuit models in biologically realistic settings. Recent efforts have simulated diverse animals, and emerging work on biologically grounded neural architectures has begun to integrate circuit connectivity and single-unit dynamics from experimental data into artificial neural networks, introducing stronger inductive biases and closer mechanistic alignment with biology. How can we develop embodied simulations that enable the study of increasingly complex bodies and neural circuits? In this work, we address the challenge through coordinated advances in the simulated body, neural architecture, and training infrastructure. We introduce Rat v2, an efficient and flexible biomechanical body for simulating rat behavior. To control this body, we develop Rat NCAP, a biologically grounded neural architecture for locomotion based on mammalian spinal circuits that incorporates cell-type-specific connectivity and a novel flexor-extensor neuromechanical interface. To optimize circuit parameters, we develop GPU-accelerated simulation and training infrastructure. The model learns to locomote at different speeds and transition between gaits without imitation learning, producing locomotion statistics, kinematics, and cell-type-specific neural activity consistent with experimental data. Analyses reveal that the neuromechanical interface substantially affects trainability and gait quality, and in silico cell-type ablations reproduce known gait phenotypes and predict gait changes under graded perturbations. Together, these findings support the view that embodied simulations at an intermediate level of abstraction can simultaneously reproduce complex behavior and yield mechanistic insights into the neural circuits that generate it.
BibTeX
@inproceedings{bhattasali2026neural,
  author = {Nikhil X. Bhattasali and Jaron Cui and Lerrel Pinto and Grace W. Lindsay},
  title = {{Neural Circuit Architectural Priors for Rat Locomotion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=r74w29XNw7},
}
Figure