Neuronal Circuit Policies

Mathias Lechner, Ramin M. Hasani, Radu GrosuarXiv 2018

Abstract

We propose an effective way to create interpretable control agents, by re-purposing the function of a biological neural circuit model, to govern simulated and real world reinforcement learning (RL) test-beds. We model the tap-withdrawal (TW) neural circuit of the nematode, C. elegans, a circuit responsible for the worm's reflexive response to external mechanical touch stimulations, and learn its synaptic and neuronal parameters as a policy for controlling basic RL tasks. We also autonomously park a real rover robot on a pre-defined trajectory, by deploying such neuronal circuit policies learned in a simulated environment. For reconfiguration of the purpose of the TW neural circuit, we adopt a search-based RL algorithm. We show that our neuronal policies perform as good as deep neural network policies with the advantage of realizing interpretable dynamics at the cell level.

Introduction

Deep Reinforcement Learning (RL) has achieved remarkable success in complex control tasks, but it suffers from a major "black box" problem. Traditional deep neural networks (DNNs) consist of thousands or millions of parameters that are nearly impossible for a human to interpret. In safety-critical applications like robotics or autonomous driving, understanding the rationale behind a controller's decision is paramount. Furthermore, DNNs are often computationally expensive and lack the inherent robustness found in biological systems. This research explores bridging the gap between biology and AI by using a small, well-understood biological circuit—the nervous system of the C. elegans nematode—as a template for a machine learning policy.

Methods: Neuronal Circuit Policies (NCPs)

The core innovation is the Neuronal Circuit Policy (NCP), which replaces standard layered architectures with the wiring diagram of the tap-withdrawal (TW) circuit from C. elegans. This circuit is naturally responsible for the worm's reflexive response to mechanical touch.

The tap-withdrawal (TW) neural circuit of C. elegans used as the template for NCPs.

Technical Implementation

The network is modeled using a system of Ordinary Differential Equations (ODEs) to represent non-spiking, graded potential neurons, effectively creating a continuous-time recurrent neural network. It incorporates both chemical synapses (non-linear, excitatory/inhibitory) and electrical synapses (linear gap junctions), mimicking biological complexity.

Because the network is small and defined by ODEs, the authors utilize a search-based RL algorithm (Random Search + Objective Indicator) rather than standard backpropagation. This allows for the tuning of synaptic weights and neuronal parameters to fit specific control tasks. To ensure real-time performance on physical hardware, a fixed-step implicit numerical solver in C++ was implemented to balance simulation accuracy with computational speed.

Evaluation and Results

The authors evaluated NCPs across five standard RL benchmarks and one real-world robotic task, including Inverted Pendulum, Mountain Car, and Autonomous Parking.

Mapping the TW circuit to the inverted pendulum control task.

Performance and Interpretability

NCPs achieved performance parity with conventional deep RL algorithms (such as PPO or TRPO) across all environments. In the Inverted Pendulum task, the NCP matched top-tier DNN benchmarks with a return of 1168.5 ± 21.7 and a 100% success rate.

Crucially, the small size of the circuit (12-19 nodes) enables native interpretability. Researchers can monitor the membrane potential of every individual neuron, identifying "command neurons" that compete to determine the robot's actions. For instance, in the mountain car task, they identified how sensory neurons transform environmental observations into synchronized force-pulses.

Sim-to-Real Transfer

The robustness of NCPs was demonstrated by training a parking policy in a deterministic simulation and deploying it directly onto a physical Pioneer AT-3 mobile robot. The policy successfully navigated the real-world environment without further tuning, highlighting the inherent stability of the bio-inspired model.

Conclusion

Neuronal Circuit Policies demonstrate that biological motifs can serve as fundamental control primitives for artificial agents. While currently limited by the scalability of the specific C. elegans TW circuit structure, they offer a path toward highly efficient and auditable AI. Future work will focus on scaling these circuits to handle higher degrees of freedom by combining multiple biological motifs or employing automated neural architecture search.

Summary updated

Abstract

We propose an effective way to create interpretable control agents, by re-purposing the function of a biological neural circuit model, to govern simulated and real world reinforcement learning (RL) test-beds. We model the tap-withdrawal (TW) neural circuit of the nematode, C. elegans, a circuit responsible for the worm's reflexive response to external mechanical touch stimulations, and learn its synaptic and neuronal parameters as a policy for controlling basic RL tasks. We also autonomously park a real rover robot on a pre-defined trajectory, by deploying such neuronal circuit policies learned in a simulated environment. For reconfiguration of the purpose of the TW neural circuit, we adopt a search-based RL algorithm. We show that our neuronal policies perform as good as deep neural network policies with the advantage of realizing interpretable dynamics at the cell level.
BibTeX
@misc{lechner2018neuronal,
  author = {Mathias Lechner and Ramin M. Hasani and Radu Grosu},
  title = {{Neuronal Circuit Policies}},
  year = {2018},
  eprint = {1803.08554},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.08554},
}
Figure