TL;DR
Task and Motion Planning (TAMP) has increasingly turned to Large Language Models (LLMs) to interpret natural-language goals, but LLMs struggle with precise spatial and numerical reasoning. MOPS (Meta-Optimization and Program Search) solves this by nesting three optimization levels: an LLM proposes the symbolic constraints of a motion problem, a derivative-free black-box optimizer fine-tunes continuous numerical parameters, and a gradient-based solver outputs smooth, collision-free robot trajectories. By searching over constraint programs rather than hardcoded actions, MOPS reliably solves complex, precision-demanding manipulation and drawing tasks where prior methods fail.
What Problem Does This Paper Address?
Long-horizon robotic manipulation requires solving two interdependent challenges: discrete symbolic reasoning (e.g., deciding which object to move and in what order) and continuous trajectory generation (e.g., computing collision-free paths that obey physical dynamics). Classical TAMP systems rely on expert-designed predicates and action abstractions that make the search tractable but brittle.
Recent foundation model approaches attempt to sidestep hand-crafted predicates by either directly outputting robot joint angles (which lack spatial precision) or stringing together high-level skill primitives (which lack geometric flexibility). Methods that use LLMs to sample parameterized constraints (such as PRoC3S) rely on uniform random rejection sampling. In high-dimensional spaces or tasks with tight tolerances—such as pushing multiple blocks into precise patterns—random sampling becomes extraordinarily sample-inefficient.
Methods
MOPS casts language-conditioned TAMP as a three-level meta-optimization problem:
-
Level 1 — Language Model Program Search (LLM):
Prompted with scene information, a goal instruction, and two in-context demonstrations, an LLM (OpenAI'sgpt-4o-mini) proposes: -
A parameterized non-linear program (NLP) representing the discrete set of trajectory constraints ($\alpha_i$).
- An initial numerical guess ($\alpha_c^{\text{init}}$) for the continuous constraint parameters (e.g., offsets, grasp/placement poses).
-
Level 2 — Black-Box Parameter Optimization (BBO):
With the discrete constraints fixed, a zero-order optimizer (specifically CMA-ES) searches over continuous parameters ($\alpha_c$). Each candidate is evaluated against a domain-specific extrinsic cost function ($\Psi$) measured inside the physical simulator. -
Level 3 — Gradient-Based Trajectory Optimization:
Given the instantiated constraints, a second-order Augmented Lagrangian solver optimizes the robot’s continuous joint trajectories ($x$) to minimize continuous physical effort (squared accelerations) while strictly satisfying the equality and inequality constraints. -
Closing the Loop: If the trajectory rollout does not meet the convergence threshold, feedback—including the lowest cost achieved, the robot/object final state, and the target convergence cost—is piped back to the LLM to refine the constraint program across up to 2 feedback iterations.
[ User Goal + State ] ──> Level 1: LLM proposes Constraint Program & Initial Parameters
│ ▲
▼ │ Feedback (Cost & State Rollout)
Level 2: CMA-ES refines Continuous Parameters
│
▼
Level 3: Augmented Lagrangian Trajectory Optimizer
│
▼
[ Simulator Rollout & Cost Evaluation ]
Datasets
The authors evaluated MOPS on simulated environments using NVIDIA PhysX, complemented by real-world validation on a Franka Emika Panda robot arm:
- Pushing Environment:
- Circle: Arranging multiple cuboids evenly around a circle.
- Line: Arranging blocks into a collinear, equidistant line.
- Obstacle Avoidance: Pushing a block around a static wall without colliding with obstacles.
-
Drawing Environment (adapted from PRoC3S with added tilt):
A Panda arm draws shapes on a whiteboard tilted at $40^\circ$, viewed by an overhead camera parallel to the table. The robot must distort the drawn lines on the tilted board so that the top-down camera perceives an undistorted 2D shape: -
Star: A 5-pointed regular star.
- Pentagon: A regular 5-sided polygon.
- Hash: The
#symbol with precise parallel and intersection properties.
Key Insights and Ideas
- Constraints over Actions: Instead of having the LLM generate rigid action sequences or low-level waypoints, MOPS tasks the LLM with setting up the mathematical constraints of an optimization problem.
- Zero-Order Numerical Refinement: Current LLMs give reasonable qualitative approximations but fail at millimeter-level numerical precision. Offloading continuous adjustments to CMA-ES drastically reduces the search space compared to pure rejection sampling.
- Perspective Distortion as an Optimization Problem: In the tilted drawing task, standard code generation completely fails because the perspective projection between the camera frame and the angled whiteboard requires continuous coordinate distortion. MOPS naturally accounts for this through its extrinsic cost optimization.
- LLM Feedback Reduces Variance: While an LLM sometimes guesses the correct structure on the first try, closed-loop feedback provides significant stability across random seeds, allowing the LLM to correct structural oversights (such as missing strokes or bad offsets).
Key Results
- Comparison to Baselines: MOPS was benchmarked against Code-as-Policies (CaP) and PRoC3S. MOPS outperformed all baselines across all six tasks:
- In the Drawing domain, CaP scored near $0$ normalized performance because it cannot reason about perspective geometry without an optimizer. PRoC3S achieved intermediate scores on simpler shapes but failed on complex geometries (e.g., the hash symbol). MOPS achieved normalized performance $\ge 0.8$ across all three drawing tasks.
- In the Pushing domain, MOPS consistently achieved the highest scores (normalized performance $\approx 0.8$ to $0.9$), producing straight block alignments and tight circular arrangements that uniform sampling could not match within the allocated budget (1,000–1,500 evaluations).
- Optimizer Ablation: Comparing CMA-ES against random sampling (PRoC3S) and probabilistic hill climbing demonstrated that CMA-ES converged faster and found lower minimal task costs on almost all tasks.
- Model Comparison: Testing multiple LLMs revealed that reasoning/frontier models (
DeepSeek-R1,GPT-4-turbo,gpt-4o-mini) achieved $100\%$ instruction-following success on the initial prompt, whereas smaller open models (such as Qwen 2.5 variants) suffered from hallucinations and syntax violations without fine-tuning.
Limitations and Future Work
- Hyperparameter Sensitivity: The inner black-box optimizer introduces sensitivity to settings such as the initial search variance ($\sigma$) in CMA-ES or step sizes in hill climbing.
- Predefined Task Cost Functions: The extrinsic cost function ($\Psi$) must currently be hand-engineered for each domain to guide the parameter search. Future work could investigate using LLMs or vision-language models to infer reward/cost formulations automatically.
- Full State Observability: The system assumes ground-truth object poses and dimensions. Incorporating vision-based state estimators or Vision-Language Models (VLMs) directly into the loop will be necessary for unstructured real-world deployment.
Summary updated