Automatic Programming of Behavior-Based Robots Using Reinforcement Learning

Sridhar Mahadevan, Jonathan Connell

Abstract

This paper describes a general approach for automatically programming a behavior-based robot. New behaviors are learned by trial and error using a performance feedback function as reinforcement. Two algorithms for behavior learning are described that combine Q-learning with statistical clustering and Hamming distance to propagate reinforcement values across states. A real behavior-based robot, OBELIX, learns component behaviors for a box-pushing task. Experimental results suggest that reinforcement learning (RL) can effectively learn individual behaviors, sometimes outperforming hand-coded programs, and that a behavior-based architecture significantly speeds up learning by decomposing complex tasks into simpler reactive subtasks.

Introduction

In the early 1990s, behavior-based robotics—pioneered by Rodney Brooks—offered a modular alternative to traditional AI planning. However, these systems relied on laboriously hand-coded modules. This research explores "automatically programming" these modules using reinforcement learning (RL). By decomposing a complex task like box-pushing into smaller, learnable sub-tasks within a subsumption architecture, the robot overcomes the "temporal credit assignment problem" that plagues monolithic learning approaches.

Methodology

The researchers utilized OBELIX, a three-wheeled robot equipped with sonar, infrared "bump," and motor current sensors. To manage the robot's 18-bit state space (over 262,000 possible states), the authors combined Q-learning with two state-generalization techniques:

  1. Weighted Hamming Distance: A metric that prioritizes critical sensor bits (like "BUMP") over less critical ones.
  2. Statistical Clustering: A method that groups states based on bit probability and expected reward similarity.

The box-pushing task was decomposed into three prioritized behaviors: Finding a box, Pushing a box, and Getting unwedged.

The behavior-based priority network architecture used for the box-pushing task.

As shown in the priority network, sensors feed into individual modules, each receiving its own reward signal (U-reward, P-reward, F-reward). A suppressor network handles the switching between behaviors, allowing the RL agents to focus exclusively on optimizing their specific sub-tasks.

Experimental Results

The algorithms were evaluated using both physical robot trials and a simulator. The RL-learned modules demonstrated performance comparable to, and sometimes exceeding, human-written code. For the "Unwedging" task, RL agents achieved performance levels of 72-74%, essentially matching the 73% achieved by a hand-coded program and outperforming the random baseline.

A critical finding of the study was the superiority of the modular approach over a monolithic one. In a monolithic setup, the robot attempts to learn the entire task as a single policy. In the modular (subsumption) setup, the task is pre-decomposed.

Comparison of performance (average steps) between monolithic and subsumption (modular) learning architectures.

The data indicates that the modular approach is roughly twice as effective. For instance, using statistical clustering, the modular robot pushed boxes for an average of 72 steps, compared to only 35 steps for the monolithic learner.

Discussion and Conclusion

The study highlights that modularity is a "force multiplier" for machine learning in robotics. By breaking tasks into modules with frequent, local rewards, the learning process becomes tractable. Furthermore, state generalization via similarity metrics is essential for real-world robotics where visiting every possible state is impossible.

While successful, the approach still requires human intervention to define the task decomposition and priority network. Future work points toward learning these priorities automatically or through imitation learning. Despite these limitations, the paper remains a foundational demonstration of how architectural constraints can accelerate reinforcement learning in physical agents.

Summary updated

BibTeX
@inproceedings{mahadevan1991automatic,
  author = {Sridhar Mahadevan and Jonathan Connell},
  title = {{Automatic Programming of Behavior-Based Robots Using Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {1991},
  url = {https://openreview.net/forum?id=BkNHxRx_br},
}
Figure