Trust the PRoC3S: Solving Long-Horizon Robotics Problems with LLMs and Constraint Satisfaction

Aidan Curtis, Nishanth Kumar, Jing Cao, Tomás Lozano-Pérez, Leslie Pack Kaelbling

Abstract

Large Language Models (LLMs) have demonstrated remarkable capabilities in high-level reasoning and task sequencing. However, their application to robotics is often hindered by their inability to account for the precise geometric and kinematic constraints of the physical world. This paper introduces PRoC3S (Planning for Robots via Code for Continuous Constraint Satisfaction), a framework that bridges the gap between high-level reasoning and low-level execution. By prompting LLMs to generate code that defines parameter search spaces rather than specific numerical values, PRoC3S treats robotic planning as a Continuous Constraint Satisfaction Problem (CCSP). Through an iterative loop involving a physics simulator and failure-mode feedback, PRoC3S enables robots to solve complex, long-horizon manipulation tasks that require rigorous physical checking. Experimental results show that PRoC3S significantly outperforms existing baselines in both success rate and planning efficiency.

Introduction

While LLMs are adept at breaking down a request like "make a sandwich" into discrete steps, they struggle with the "messiness" of physical implementation. In a robotic context, a simple "pick" action requires specific 3D coordinates, gripper orientations, and joint angles that avoid self-collision and environmental obstacles. Traditional LLM-based planners often fail because they lack an inherent understanding of kinematics, collisions, and stability. PRoC3S addresses this by combining the "common sense" of LLMs with the rigorous verification of classical motion planners, modernizing Task and Motion Planning (TAMP) for the era of foundation models.

Problem Statement

Robotic planning in the real world is constrained by three primary factors that LLMs typically ignore:

  1. Kinematics: The physical reachability of a target by the robot arm.
  2. Collisions: The necessity of moving through space without hitting obstacles or the robot itself.
  3. Stability: Ensuring that object interactions, such as stacking, result in stable configurations.

Existing methods often ask LLMs to guess exact numerical coordinates—a task for which they are poorly suited—or rely on overly simplified, fixed skills that cannot adapt to cluttered or dynamic environments. There is a clear need for a system that can translate high-level intent into physically feasible trajectories.

Methodology: The PRoC3S Framework

PRoC3S utilizes a two-stage framework to solve the CCSP through iterative refinement:

1. LMP Generation (The "Brain")

Instead of generating a direct plan, the LLM is prompted to write a Language Model Program (LMP). This Python code serves as a "plan sketch," defining a sequence of actions with open parameters and a "domain function." This domain function specifies the valid ranges and constraints for those parameters, effectively outsourcing the high-precision numerical work to a specialized solver.

2. Constraint Satisfaction (The "Physics Check")

The system employs the PyBullet simulator to sample values from the LLM-defined domains. It tests these samples against physical constraints, such as collision-free paths and stable placement. This step ensures that the plan is not just logically sound, but physically executable.

3. Iterative Feedback

If the sampler fails to find a valid solution within a set number of attempts, the system does not terminate. Instead, it provides specific failure feedback (e.g., "Collision detected between gripper and object_A") back to the LLM. The LLM then refines the LMP—for instance, by inserting an intermediate step to move an obstructing object—and the process repeats until a valid plan is found.

Experimental Evaluation

The effectiveness of PRoC3S was evaluated across several diverse environments:

  • Drawing: Tasks requiring the robot to draw complex shapes (stars, letters) on a cluttered surface.
  • Arrange-Blocks: Challenges involving stacking and lining up blocks where some components may obstruct others.
  • Arrange-YCB: High-complexity packing tasks using the industry-standard YCB object set (e.g., cans, fruit).
  • Real-world Validation: Implementation on a Franka Emika Panda robot arm, using a perception system to create a "digital twin" for simulation-based planning.

Key Results and Insights

PRoC3S demonstrated a significant performance leap over baselines such as Code as Policies (CaP) and direct LLM planning. In the Drawing and Arrange-Blocks tasks, PRoC3S achieved success rates between 70% and 90%, whereas baselines often fell below 40% when faced with complex physical constraints.

Key insights from the study include:

  • Abstraction via Code: LLMs are more effective at defining the logic to find a value than providing the value itself. By defining search spaces, the LLM reduces high-dimensional problems into manageable sampling tasks.
  • The Power of Feedback: The iterative loop allows the LLM to act as a reactive problem-solver rather than a perfect oracle. It can discover and resolve hidden dependencies, such as the need to clear a path before reaching for a target.
  • TAMP Modernization: The framework successfully replaces hand-coded symbolic logic with flexible natural-language reasoning, making the system more adaptable to varied tasks.

Limitations and Future Work

Despite its success, PRoC3S relies heavily on the accuracy of the physics simulator. Discrepancies in friction or object geometry (the "sim-to-real gap") can lead to execution failures. Furthermore, the current implementation uses a relatively simple random sampling method for constraint satisfaction; future iterations could benefit from more advanced optimization algorithms. The authors also envision integrating Vision-Language Models (VLMs) to allow the robot to perceive constraint violations directly, reducing the reliance on manually defined classifiers.

Summary updated

BibTeX
@inproceedings{curtis2024trust,
  author = {Aidan Curtis and Nishanth Kumar and Jing Cao and Tomás Lozano-Pérez and Leslie Pack Kaelbling},
  title = {{Trust the PRoC3S: Solving Long-Horizon Robotics Problems with LLMs and Constraint Satisfaction}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=r6ZhiVYriY},
}
Figure