Worm-level Control through Search-based Reinforcement Learning

Mathias Lechner, Radu Grosu, Ramin M. HasaniarXiv 2017

Abstract

Researchers from TU Wien have successfully "re-purposed" a biological neural circuit from the nematode C. elegans to solve a classic engineering challenge: the inverted pendulum swing-up problem. By keeping the worm's evolved "wiring diagram" fixed and using search-based reinforcement learning to tune the synaptic parameters, they created a controller that performs as well as traditional PID or artificial neural network approaches. This work demonstrates that biological structures can serve as efficient, interpretable templates for robotic control.

Introduction

Designing efficient neural architectures for robotic control is a persistent challenge in engineering. Traditionally, researchers rely on hand-coded control theory, such as PID controllers, or train massive, "black-box" artificial neural networks (ANNs) from scratch. While effective, these methods often lack the efficiency and interpretability found in nature.

Nature has spent millions of years optimizing neural structures for survival. The soil-worm C. elegans, with a fully mapped nervous system of just 302 neurons, exhibits remarkably efficient behaviors. The authors of this study identified a specific circuit—the tap-withdrawal (TW) reflex—which governs the worm's forward or backward movement in response to touch. They hypothesized that this biological reflex is functionally analogous to the impulse response required to balance an inverted pendulum, providing a biological "blueprint" for a mechanical controller.

Methodology: Bridging Biology and Robotics

The researchers adopted a three-step approach to adapt the biological circuit for a non-biological task:

  1. Biological Modeling: The TW circuit was modeled using Leaky-Integrate-and-Fire (LIF) neurons. This deterministic model accounted for both chemical synapses (non-linear, unidirectional signals) and electrical synapses (gap junctions, bidirectional signals), preserving the biological fidelity of the circuit's communication pathways.
  2. Environment Mapping: To interface the worm's "brain" with the pendulum, the researchers mapped the environment's state variables to specific sensory neurons. The pendulum's angle ($\phi$) and angular velocity ($\dot{\phi}$) served as inputs, while the motor neuron outputs (FWD, REV) were translated into cart actions.
Mapping of pendulum state variables to specific sensory and motor neurons
  1. Search-based Reinforcement Learning: Rather than using standard gradient-based RL, which can struggle with the complex ordinary differential equations (ODEs) of biological models, the team employed Random Search (RS). To ensure robustness against environmental stochasticity, they implemented Objective Estimation (OE). This technique evaluates a set of parameters multiple times and uses the average of the worst performances as the fitness score, forcing the controller to be reliable even in edge cases.
Analogy between biological reflex and pendulum control, alongside the TW neural circuit

Key Insights and Results

The study utilized the OpenAI Roboschool environment, specifically the RoboschoolInvertedPendulum-v1 task. The results were striking:

  • Performance Parity: The TW-inspired controller achieved the maximum possible return of 1,000, matching the performance of tuned PID-state-controllers and standard ANNs.
  • Evolutionary Pre-optimization: The success of the model suggests that the topology of the biological circuit is already near-optimal for reflexive control. By preserving this wiring, the learning algorithm only needs to optimize synaptic strengths (weights) rather than discovering an entire architecture from scratch.
  • Efficiency and Interpretability: Unlike large-scale ANNs, the TW circuit is small and biologically grounded, making its decision-making process more transparent and easier to analyze.

Limitations and Future Work

Despite its success, the model faces a "drift" problem. Because the inputs were limited to the pendulum's angle and velocity—ignoring the cart's position—the cart would eventually drift to the end of the track. The "worm brain" effectively balanced the pole but lacked spatial awareness of the cart's boundaries.

Future research will investigate whether more complex biological circuits can be combined for multi-variable tasks, such as walking or grasping. Additionally, finding ways to integrate more sensory data without compromising the biological validity of the circuit remains a key challenge for scaling this bio-mimetic approach.

Summary updated

BibTeX
@misc{lechner2017worm,
  author = {Mathias Lechner and Radu Grosu and Ramin M. Hasani},
  title = {{Worm-level Control through Search-based Reinforcement Learning}},
  year = {2017},
  eprint = {1711.03467},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.03467},
}
Figure