Abstract
Geometric Task and Motion Planning (G-TAMP) presents a significant challenge for robotics, requiring both high-level logical reasoning and low-level geometric precision. While Large Language Models (LLMs) excel at common-sense reasoning, they lack the spatial grounding necessary for precise motion planning. This paper introduces STaLM (Search Tree augmented by Language Model), a framework that leverages LLMs to "warm-start" a Monte Carlo Tree Search (MCTS). By converting geometric constraints into predicate-based text prompts, STaLM generates initial task plans that guide the search process. Experimental results across six complex kitchen scenarios demonstrate that STaLM significantly outperforms traditional search and LLM-only baselines in both success rate and planning efficiency, particularly in environments with heavy occlusions and complex dependencies.
Introduction
The paper addresses the Geometric Task and Motion Planning (G-TAMP) problem. Consider a robot in a cluttered kitchen tasked with fetching a bottle of wine. To succeed, the robot must perform a sequence of discrete actions (e.g., opening a door, moving a heavy grill) while simultaneously calculating precise continuous trajectories to avoid collisions.
Traditional algorithms often struggle with "common sense"—for instance, wasting computational resources trying to reach through a closed door. Conversely, while LLMs understand that a door must be opened first, they struggle with the 3D geometry required for actual movement. STaLM bridges this gap by using LLMs as heuristic generators for a rigorous geometric search.
Methodology
STaLM integrates LLM reasoning with geometric search through a four-step process:
- Predicate-based Prompting: The system uses motion planning to detect "occlusions" and generates a text prompt (in PDDL-style) describing which objects block others (e.g.,
PickOccludedBy(coke, grill)). - Querying the LLM: A batch of candidate task plans (sequences of actions like
Pick,Place, andOpen) is generated by GPT-4. - Concretization: The system attempts to find valid continuous parameters, such as joint trajectories, for these discrete plans.
- Warm-Started MCTS: If the LLM's initial plans fail due to geometric nuances or hallucinations, the system uses the states and actions explored during the attempt to initialize a Monte Carlo Tree Search (MCTS). This "warm-starts" the search in a promising area of the solution space.
Experimental Evaluation
The researchers evaluated STaLM on six distinct G-TAMP problems (P1–P6) in the PyBullet simulator. These scenarios involved a robot navigating between a kitchen and a hallway. Complexity ranged from simple relocation to "Towers of Hanoi"-style rearrangements where goal positions were blocked by heavy obstacles like a BBQ grill. STaLM was compared against standard UCT (MCTS), PDDLStream (a state-of-the-art TAMP solver), and "SayCan" (an LLM-based framework).
Results and Discussion
STaLM significantly outperformed all baselines in both success rate and planning speed:
- Success Rate: In the most difficult scenarios (P3, P5, P6), standard search algorithms and previous LLM-planners often had a 0% success rate. STaLM achieved success rates between 84% and 96%.
- Speed: In simpler problems where other planners succeeded, STaLM was 2x to 7x faster. For example, in P1, STaLM found a solution in ~31 seconds, compared to ~64 seconds for the next best baseline.
- Error Correction: Analysis showed that the MCTS component successfully corrected LLM failures (such as precondition violations) by exploring alternative paths near the LLM's suggested plan.
Key Insights
- LLMs as Heuristics: Treating the LLM as a source of intuition rather than a final solver avoids the pitfalls of 3D spatial hallucinations.
- Efficiency: Calling the LLM once at the beginning to "prime" the search is far more efficient than calling it at every node of a search tree.
- Structured Constraints: Providing the LLM with structured geometric predicates (like occlusions) is essential for effective causal reasoning.
Conclusion
While STaLM shows great promise, limitations remain. Natural language is a limited medium for describing complex 3D shapes, and collision detection remains a computational bottleneck. Future work will focus on integrating neural networks for faster collision checking and utilizing vision systems to handle partially observable environments.
Summary updated