LLM-based Skill Diffusion for Zero-shot Policy Adaptation

Woo Kyung Kim, Youngseok Lee, Jooyoung Kim, Honguk Woo

Executive Summary

LDuS is a novel framework that enables robots to adapt to new, unseen task constraints—such as "move slower" or "minimize power"—without requiring any additional training. By leveraging a Large Language Model (LLM) to translate natural language instructions into mathematical loss functions, the system guides a diffusion-based skill planner. This allows the generation of trajectories that satisfy both the primary goal and specific user contexts in a zero-shot manner.

The Challenge of Context-Aware Robotics

In robotic learning, agents have become highly proficient at following simple, goal-oriented commands like "open the drawer" or "push the button." However, these models typically fail when faced with specific contextual requirements absent from their training data. For instance, a robot might know how to open a drawer, but struggle with the instruction to "open the drawer, but do it very slowly because it's fragile."

Most current language-conditioned policies are goal-oriented but lack context awareness. Adapting them to new requirements traditionally demands a massive, perfectly annotated dataset covering every possible environmental condition and user preference. Because building such a dataset is impractical, researchers sought a method for zero-shot policy adaptation: granting a robot the ability to adjust its behavior on the fly based purely on a text description of the context.

Comparison of conventional skill execution versus LDuS policy adaptation.

Methodology: The LDuS Framework

The authors introduce LDuS (LLM-based Skill Diffusion), a framework combining the generative power of diffusion models with the reasoning capabilities of LLMs. The system operates in two primary phases:

The LDuS pipeline featuring the Learning Phase and the LLM-driven Adaptation Phase.
  1. Skill Learning Phase: The robot learns a library of "skills" from an unlabelled dataset using a hierarchical structure: a skill encoder, a skill prior, and a Skill Diffusion Planner. A key innovation here is sequential in-painting, where the diffusion model is trained to complete trajectories while being conditioned on past state-action sequences. This ensures the generated motion is smooth and physically grounded in the robot's previous actions.
  2. Adaptation Phase: When a user provides a context (e.g., "move at a speed slower than 0.5 m/s"), an LLM translates this text into a Python-based loss function. This loss function then guides the diffusion process at test-time, nudging the generated trajectory to satisfy the new constraint.
  3. Iterative Refinement: LDuS employs the LLM as a self-critic in a closed loop. The LLM inspects the generated trajectory; if it fails to match the context, the system regenerates the loss function or increases the guidance weight until the behavior aligns with the user's prompt.

Experimental Setup

The researchers evaluated LDuS using the MetaWorld benchmark, a standard environment for robotic manipulation.

  • MetaWorld (10 tasks): Includes tasks like pressing buttons, opening faucets, and sliding pucks.
  • Multi-stage MetaWorld: A complex setup requiring the robot to complete a sequence of four sub-goals (e.g., "close drawer, then insert peg, then push button, then slide puck").
  • Context Types: The model was tested against "Precise" contexts (numerical limits), "Abstract" contexts (vague human preferences like "hurry up"), and "Multi-modal" contexts (requiring visual input to determine object interaction).

Key Insights

  • LLMs as Translators of Intent: LLMs excel at bridging the gap between vague human language and executable code. By turning a sentence into a differentiable loss function, the LLM provides the exact mathematical constraints the diffusion model needs to alter its behavior.
  • Diffusion is Naturally Controllable: Unlike standard neural network policies, diffusion models generate data step-by-step via denoising. This makes it easy to inject external guidance (via gradients of a loss function) during generation without retraining the entire model.
  • In-painting for Robustness: Treating the robot's past actions as fixed elements (similar to image in-painting) ensures that new plans remain physically consistent with previous movements, preventing jerky or unrealistic transitions.

Results and Performance

LDuS significantly outperformed baselines like LangDT, LISA, and standard Diffusion planners across various metrics:

  • Success Rate (SR): In MetaWorld, LDuS achieved a 97% success rate without context and maintained high performance even when complex language constraints were introduced.
  • Context Reward (CR): Measuring how well the robot followed specific "how" instructions, LDuS outperformed the next best guided baseline by 18.2% in SR and a staggering 78.7% in CR for language contexts.
  • Long-Horizon Tasks: In multi-stage tasks, LDuS was the only model capable of reliably handling the increased complexity, demonstrating a 41.7% higher SR than the best baseline.
  • Novelty: t-SNE visualizations confirmed that LDuS generates entirely new trajectories absent from the training data, proving true adaptation rather than mere memorization.

Limitations and Future Work

While highly effective, LDuS faces a few limitations. Inference Latency is the primary bottleneck; the full pipeline takes about 163ms per timestep (108ms for diffusion + 55ms for the LLM). While relatively fast, this may hinder high-speed, real-time robotics. Additionally, the system relies heavily on LLM Reliability. If the LLM hallucinates an incorrect Python loss function, the robot's behavior will degrade.

Future directions include distilling the LLM's reasoning into smaller, faster models to reduce latency, and exploring more complex dexterous manipulation tasks where environment interactions are harder to model with simple loss functions.

Summary updated

BibTeX
@inproceedings{kim2024llm,
  author = {Woo Kyung Kim and Youngseok Lee and Jooyoung Kim and Honguk Woo},
  title = {{LLM-based Skill Diffusion for Zero-shot Policy Adaptation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=UGlDVc0GTU},
}
Figure