Meta-Controller: Few-Shot Imitation of Unseen Embodiments and Tasks in Continuous Control

Seongwoong Cho, Donggyun Kim, Jinwoo Lee, Seunghoon Hong

TL;DR

Meta-Controller is a new framework that allows robots to learn entirely new tasks on previously unseen "bodies" (embodiments) using as few as five reward-free demonstrations. By breaking down robot states into joint-level tokens and using a matching-based policy, it successfully bridges the gap between modular robot learning and few-shot imitation.

What Problem Does This Paper Address?

In the world of robotics, we usually face an "embodiment gap." Most AI models are trained for a specific robot performing a specific task. If you change the robot’s physical structure—say, by adding a joint, changing a leg length, or altering motor gear ratios—the model typically fails.

Current research is split into two camps:

  1. Modular Policy Learning: These models can adapt to different robot shapes but are usually limited to specific tasks like walking.
  2. Few-Shot Imitation Learning (IL): These models can learn new tasks from a few examples but usually require the robot's body to remain exactly the same.

The authors of this paper tackle the "simultaneous generalization" problem: How can we get a robot with a brand-new body to perform a brand-new task using only a handful of expert demonstrations?

Methods

The Meta-Controller framework relies on three core architectural innovations to achieve this simultaneous generalization.

Overview of the Meta-Controller framework
  • Joint-Level I/O Representation: Instead of treating the robot state as one giant vector, the model "tokenizes" the robot. It treats every joint as an individual unit with its own attributes (angle, velocity, axis). This makes the input format universal, whether the robot has two legs or four arms.
  • Structure-Motion State Encoder: The state encoder is split into two specialized parts to process the tokenized inputs.
Structure-Motion State Encoder architecture
*   The **Structure Encoder** uses a bi-directional transformer to understand the robot's morphology (how joints are connected).
  • The Motion Encoder uses a causal transformer to understand the physics and dynamics over time. Crucially, they use Parameter-Efficient Fine-Tuning (PEFT)—tuning only a tiny fraction of the weights—to adapt to new bodies without overfitting.

  • Matching-Based Policy Network: Instead of learning a direct mapping from state to action, the model uses a "matching" mechanism. It compares the current robot state to the states in the provided expert demonstrations. It then predicts an action by calculating a weighted sum of the expert's actions based on how similar the current situation is to the demo. This non-parametric approach is much more robust when you only have five examples to work with.

Datasets

The researchers evaluated their model using the DeepMind Control (DMC) suite, a standard benchmark for continuous control.

  • Training: 30 tasks across 10 different embodiments (e.g., Cheetah, Acrobot, Walker).
  • Evaluation: 8 tasks across 4 embodiments, including three that were entirely "unseen" during training: Hopper, Reacher-four, and a custom Wolf embodiment.
  • Expert Data: They used a replay buffer of an expert agent (DrQ-v2) to provide the few-shot demonstrations.

Key Insights and Ideas

  • The "Aha" Moment on Overfitting: Standard neural networks tend to "memorize" small datasets (overfitting). By using a matching module, Meta-Controller doesn't have to memorize; it just has to learn how to compare. This allows it to extract "local motor skills" from the demonstrations and recombine them for the current task.
  • Disentangling "What" from "How": By separating the structure encoder from the motion encoder, the model learns that physics (gravity, friction) is shared across all robots, while morphology (limb length) is specific to the individual.
  • Joint-Level Universality: The authors found that their encoder naturally clustered joints by type (e.g., hinge vs. slide joints) in the embedding space, proving that the model actually understands the fundamental building blocks of robot movement.

Key Results

Meta-Controller significantly outperformed all baselines in the 5-shot learning category:

  • Quantitative: It achieved an average normalized score of 71.1, while the best modular policy baseline (MetaMorph) scored 37.9 and the best few-shot IL baseline (MT-DT) scored 35.3.
  • Qualitative: In the "Reacher-four" task (a four-jointed arm reaching for a target), baseline models often just mimicked the pose of the expert in the demo. Meta-Controller, however, understood the goal (the red ball) and successfully reached it even when starting from different positions.
  • Efficiency: The model is computationally efficient, with an inference time of roughly 17.8ms, making it faster than some vision-based foundation models like VC-1.

Limitations and Future Work

  • Sim-to-Real Gap: The study was conducted entirely in simulated environments (MuJoCo). Real-world physics involves noise and complexities that might require further tuning.
  • Stochasticity: While the model is robust to some noise, environments with highly unpredictable dynamics or tasks requiring very long-term planning remain a challenge.
  • Unified Representation Limits: The model assumes a joint-level representation is always available. Generalizing to robots with radically different actuation (like soft robots or fluidic actuators) would require a different tokenization strategy.

Future work could involve testing the framework on physical hardware and integrating visual inputs (pixels) rather than just joint states.

Summary updated

BibTeX
@inproceedings{cho2024meta,
  author = {Seongwoong Cho and Donggyun Kim and Jinwoo Lee and Seunghoon Hong},
  title = {{Meta-Controller: Few-Shot Imitation of Unseen Embodiments and Tasks in Continuous Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=M5D5rMwLjj},
}
Figure