Automatic Robot Task Planning by Integrating Large Language Model with Genetic Programming

Azizjon Kobilov, Jianglin LanarXiv 2025 · DOI

Introduction

In robotics, Behavior Trees (BTs) are a popular way to organize complex tasks into modular, reusable structures. However, designing these trees manually requires deep domain expertise. While Large Language Models (LLMs) offer potential for automation, they often suffer from "hallucinations"—suggesting non-existent actions or logically flawed plans. Conversely, Genetic Programming (GP)—an evolutionary algorithm that "breeds" programs—is robust but slow, typically starting from a random, "dumb" initial population. This paper introduces LLM-GP-BT, a framework that bridges this gap by using LLMs to provide a "warm start" for GP optimization.

Methodology

The authors propose a multi-stage pipeline that combines the creative brainstorming of LLMs with the rigorous optimization of GP.

The LLM-GP-BT pipeline integrates multimodal inputs, LLM generation, validation, and GP evolution.

The process follows these steps:

  1. Multimodal Input: The system processes a system message (robot skills), an environment image (spatial context), and a natural language command.
  2. LLM Generation: A multimodal LLM (GPT-4o) generates candidate BTs. High "temperature" settings are used to encourage diverse, creative outputs.
  3. Validation & Filtering: Candidate trees are pruned for syntax and evaluated for basic fitness to ensure only "acceptable" plans enter the evolutionary pool.
  4. GP Evolution: The GP refines this high-quality initial population through crossover and mutation, converging on an optimal, error-resistant task plan.

Experimental Setup

The framework was evaluated in a simulated 3D office environment. Two primary scenarios were tested:

  • Scenario 1: A deterministic "pick and place" task.
  • Scenario 2: A complex task involving uncertainty, requiring the robot to locate a cube across multiple potential tables. Performance was benchmarked against a "pure" GP-BT approach starting from random populations.

Key Results and Insights

The integration of LLMs significantly accelerates the evolutionary process. The "warm start" provided by the LLM allows the GP to converge on optimal solutions much faster than starting from scratch.

Fitness convergence comparison between LLM-GP-BT and pure GP-BT across two scenarios.

Key findings include:

  • Rapid Convergence: In Scenario 1, LLM-GP-BT reached peak fitness in approximately 1/10th the episodes required by pure GP.
  • Quality over Quantity: An initial population of just 15 LLM-generated trees outperformed 30 randomly generated ones, highlighting the value of "starting intelligence."
  • Robustness: The system successfully evolved trees capable of handling stochastic failures (e.g., a 40% chance of a failed "pick" action).
  • Multimodality: Visual input allows the LLM to infer spatial context directly, reducing the need for detailed textual instructions.

Conclusion and Future Work

While LLM-GP-BT shows great promise, it remains sensitive to prompt engineering. Future work could involve fine-tuning GP parameters specifically for LLM-generated structures and moving from simulation to physical hardware, where sensor noise and real-time constraints present new challenges.

Summary updated

BibTeX
@misc{kobilov2025automatic,
  author = {Azizjon Kobilov and Jianglin Lan},
  title = {{Automatic Robot Task Planning by Integrating Large Language Model with Genetic Programming}},
  year = {2025},
  eprint = {2502.07772},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07772},
}
Figure