Learning Efficient Exploration through Human Seeded Rapidly-exploring Random Trees

Max Zuo, Logan Schick, Matthew C. Gombolay, Nakul GopalanarXiv 2022 · DOI

Finding bugs in massive game worlds is like searching for a needle in a haystack. Modern computer games and robotics simulators have astronomical state-action spaces, and ensuring these systems are bug-free often requires human testers to play through levels repeatedly—a process that is exhaustive, expensive, and slow.

This paper introduces Clone Assisted RRT (CA-RRT), a method that uses first-person behavior cloning to teach search algorithms how to "think" like a human tester. By shifting from global coordinates to visual intuition, CA-RRT cuts exploration time by nearly 50% while successfully generalizing to brand-new, unseen maps.

The Problem: "Blind" Search Algorithms

Automated search algorithms like Rapidly-exploring Random Trees (RRT) are frequently used to explore complex spaces, but they suffer from a major flaw: they are "blind." Without a heuristic, an RRT might spend thousands of iterations bumping into a wall because it doesn't understand that it needs to pick up a key to open a door.

Previous research attempted to "seed" these trees with human data (HS-RRT), but those methods were brittle. They relied on global coordinates; if a map was rotated or a starting position changed, the human data became useless.

The CA-RRT Solution

CA-RRT combines human intuition with the exhaustive coverage of randomized search through three main stages:

  1. First-Person Behavior Cloning (BC): Instead of recording where a human is on a map, the researchers train a convolutional neural network (CNN) on what the human sees. This allows the "clone" to understand concepts like "walk toward the door" regardless of the map's specific layout.
  2. Seeding via Rollouts: Before the RRT starts random sampling, the trained BC policy performs several "rollouts." These trajectories are added as initial seed nodes, giving the search a massive head start.
  3. Guided Sampling: During expansion, the algorithm uses the BC policy’s action probabilities as a prior. To prevent the agent from getting stuck in loops, Laplace smoothing is applied, gradually increasing randomness to ensure the search eventually explores every corner of the map.
The agent's first-person view allows the behavior cloning model to learn spatial concepts that generalize across different map orientations.

Key Insights: Vision Over Coordinates

The shift from global state information to first-person image-based states is the "secret sauce." It transforms a rigid search into a flexible one. Even a "crude" BC model provides enough of a hint to lead the RRT past "bottleneck" states—like narrow doorways or complex key-lock interactions—that usually trap purely random searches. While Behavior Cloning can fail or get stuck, the RRT component acts as a safety net, providing the exhaustiveness that a simple clone lacks.

Experimental Results

The researchers evaluated CA-RRT using the OpenAI Gym gym-minigrid library, creating high-difficulty environments like DualHallway and CascadingLockDoor (which requires a specific sequence of keys).

Comparison of map coverage efficiency. CA-RRT (blue) significantly outperforms standard RRT (purple) and hand-crafted weighted RRT (red) in reaching full map saturation.
  • Efficiency: In the DualHallway environment, CA-RRT required only 6,836 expansions to cover the state space, compared to 12,667 for the leading weighted-RRT baseline—a nearly 50% reduction in compute.
  • Generalization: CA-RRT was the only method capable of fully exploring "Sideways" and "Distractor" maps (rotated layouts or maps with useless items). Previous human-seeded methods (HS-RRT) failed completely because they could not adapt to the changed geometry.
  • Solving the "Unsolvable": In the complex CascadingLockDoor environment, CA-RRT reached the final room in 5,933 fewer iterations than weighted-RRT. Vanilla RRT was unable to reach even the second room within 20,000 iterations.

Limitations and Future Work

The primary trade-off for CA-RRT is real-world compute time. While it requires fewer iterations, each iteration is "heavier" because it requires a forward pass through a neural network. In experiments, CA-RRT sometimes took twice as long in wall-clock time compared to simpler methods.

Future work includes optimizing compute time through GPU batching and applying this first-person approach to 3D robotics simulators, where state spaces are continuous and even more complex.

Summary updated

BibTeX
@misc{zuo2022learning,
  author = {Max Zuo and Logan Schick and Matthew C. Gombolay and Nakul Gopalan},
  title = {{Learning Efficient Exploration through Human Seeded Rapidly-exploring Random Trees}},
  year = {2022},
  eprint = {2203.12774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.12774},
}
Figure