Meta-Control: Automatic Model-based Control Synthesis for Heterogeneous Robot Skills

Tianhao Wei, Liqian Ma, Rui Chen, Weiye Zhao, Changliu Liu

TL;DR

Meta-Control is a novel framework that leverages Large Language Models (LLMs) to automatically synthesize model-based control systems for complex, heterogeneous robot tasks. By mimicking the hierarchical thought process of human control experts, it generates customized state representations and control strategies that are not only high-performing but also mathematically explainable and robust.

What Problem Does This Paper Address?

Real-world robotic manipulation is a balancing act of conflicting requirements. For example, "moving safely" requires precise position control to avoid obstacles, while "opening a door" requires force compliance to follow the door's fixed swing path without breaking the hinge.

Current approaches often fall into two camps:

  1. Fixed-Strategy Methods: These use a single state-action representation (like end-to-end visuomotor policies), which struggles to generalize across tasks with fundamentally different physics.
  2. Manual Design: Human experts can design perfect controllers, but this process is slow, task-specific, and doesn't scale to the "open-world" variety of tasks a general-purpose robot might face.

The authors aim to bridge this gap by creating a "meta-control" system: an autonomous agent that can "think" like a control engineer to design, implement, and tune a bespoke control system for any given natural language instruction.

Methods

The core of Meta-Control is a composable hierarchical control formulation combined with a three-level LLM-driven pipeline.

1. Hierarchical Formulation

Instead of generating raw joint torques directly, the system splits the problem into two layers:

  • Task Space: An abstract, intuitive space (e.g., Cartesian coordinates) where the high-level goal is defined.
  • Tracking Space: The concrete robot state space where low-level constraints (like safety and joint limits) are handled.

2. The Three-Level Pipeline

Meta-Control uses a Socratic "art of midwifery" approach, guiding the LLM (GPT-4) through three distinct dialogues:

  • Strategy Level: The LLM identifies task objectives and selects appropriate model/controller templates (e.g., choosing an LQR controller for balancing or MPC for path planning).
  • Data Flow Level: The LLM implements "input converters"—the glue code that maps raw sensor measurements to the specific ports of the chosen controllers.
  • Parameter Level: The system performs few-shot optimization. It runs the controller, collects performance metrics, and asks the LLM to tune hyper-parameters (like the $Q$ and $R$ matrices in LQR) based on the results.
Figure 3: Overview of Meta-Control: The user only needs to provide a skill description. Meta-Control then leverages the control knowledge of LLMs to synthesize skills through a three-level pipeline: strategy level, data flow level, and parameter level. For each level, we have designed a generic prompt with placeholders, which are dynamically replaced with user input or code extracted from the LLM response during runtime, utilizing a code extractor to make the prompt task-specific. The extracted code is also used to construct the control system. At each level, if the LLM-generated code results in an error, a reflection phase is initiated. We have embedded design principles and checklists of common errors within the design and reflection prompts to assist the LLM in producing correct code. The generic prompt design with placeholders allows Meta-Control to generalize to unseen tasks without modification.

A critical feature is the Reflection Phase. If the generated code fails or the robot performs poorly, the system feeds error logs and performance metrics back to the LLM, allowing it to self-correct.

Datasets and Benchmarks

The study evaluates Meta-Control on four representative tasks designed to test diverse requirements:

  • Balancing a cart-pole: Requires high-frequency feedback and convergence.
  • Opening a door/drawer: Requires force compliance.
  • Wiping a whiteboard: Requires simultaneous position and force tracking.
  • Safe Pick-and-Place: Requires continuous collision avoidance.

The framework was implemented using the Drake robotics toolbox and tested on a Kinova Gen3 robot arm. The authors did not use a specific training dataset; instead, they leveraged the "internalized physics knowledge" already present in pre-trained LLMs.

Key Insights and Ideas

  • LLMs as Physics Engines: The authors found that LLMs have a surprising grasp of dynamics. For the cart-pole task, the LLM correctly derived the linearized $A$ and $B$ matrices for the system dynamics from scratch.
  • Templates Ground Reasoning: By providing the LLM with predefined templates (like LinearModel or PoseForceController), the authors reduced the infinite design space into a manageable set of building blocks, ensuring the output remains within the realm of valid control theory.
  • Explainability by Design: Unlike "black-box" neural network policies, the synthesized controllers are fully model-based. This allows researchers to perform rigorous formal analysis, such as solving the Riccati equation to guarantee stability.
Figure 2: Comparison between Meta-Control and a trajectory planning-based method on a real robot for wiping the board and opening the cabinet. The trajectory-based method fails to erase the mark because it neglects force requirements. Opening the cabinet with a trajectory-based controller leads to cabinet displacement because the planned trajectory does not precisely align with the door’s swing path, which may damage the door if the cabinet is fixed. In contrast, Meta-Control addressed these challenges with properly customized control systems.

Key Results

  • Superior Success Rates: In ablation studies, Meta-Control achieved a 70-90% execution success rate across all tasks. In contrast, baselines that used raw API calls without the hierarchical structure or templates failed completely (0% success) on complex tasks like door opening.
  • Zero-Shot Generalization: Because the controllers are model-based, they generalize perfectly to new scenarios. A controller designed for a 0.1kg cart worked flawlessly when the mass was changed to 0.5kg without further tuning.
  • Efficient Tuning: The LLM was able to identify and tune critical hyper-parameters in just 2 rounds of trial-and-error, significantly faster than traditional optimization methods.

Limitations and Future Work

While powerful, Meta-Control has notable limitations:

  • Perception Dependency: The framework assumes that state estimation (e.g., object positions) is already provided by a separate perception system.
  • Template Constraints: The system is limited by the library of available templates. If a task requires a completely novel control structure not in the library, it may fail.
  • Suboptimal Choices: The LLM occasionally makes "lazy" choices, such as picking a simple PID controller when a more sophisticated LQR would be better suited for the dynamics.

Future work aims to integrate learning-based templates and automate the selection of perception algorithms to create a truly end-to-end autonomous pipeline.

Summary updated

BibTeX
@inproceedings{wei2024meta,
  author = {Tianhao Wei and Liqian Ma and Rui Chen and Weiye Zhao and Changliu Liu},
  title = {{Meta-Control: Automatic Model-based Control Synthesis for Heterogeneous Robot Skills}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=cvVEkS5yij},
}
Figure