Language Guided Skill Discovery

Seungeun Rho, Laura Smith, Tianyu Li, Sergey Levine, Xue Bin Peng, Sehoon Ha

Overview

Unsupervised skill discovery in reinforcement learning (RL) often yields behaviors that are mathematically distinct but practically useless—such as a robot arm merely twitching its joints in novel ways. This paper introduces Language Guided Skill Discovery (LGSD), a framework that leverages Large Language Models (LLMs) to measure and maximize the semantic difference between behaviors. The result is a repertoire of meaningful, human-interpretable skills that can be controlled zero-shot using natural language.

The Challenge of Meaningful Skill Discovery

In RL, we want agents to autonomously learn a wide variety of useful skills without requiring human-engineered reward functions for every action. "Unsupervised skill discovery" attempts to solve this by rewarding agents for behaving as diversely as possible.

However, existing methods typically measure "diversity" by looking at raw state coverage or mutual information. In high-dimensional systems, an agent can maximize these metrics by simply wiggling its joints in unstructured ways. These behaviors are technically diverse, but they lack semantic diversity—they do not translate to useful, human-interpretable actions. The authors tackle the challenge of guiding an agent to discover conceptually distinct skills (e.g., "pushing a block left" vs. "pushing a block right") rather than just numerically distinct states.

Methods: Language Guided Skill Discovery (LGSD)

The authors propose LGSD to bridge RL and LLMs. The core workflow operates as follows:

  1. State Translation: As the agent explores, its physical state (coordinates, joint angles) is translated into a text prompt and fed into an LLM (like GPT-4) to generate a natural language description of the scene.
  2. Language Distance: The system embeds these text descriptions using a pre-trained model (Sentence-BERT) and calculates the cosine distance between them, creating a "language distance" metric. If the LLM describes two states similarly, the distance is small; if the descriptions change drastically, the distance is large.
  3. Distance Maximization: LGSD uses a Wasserstein Dependency Measure (WDM) framework to train the agent. Instead of maximizing Euclidean distance in the raw state space, the agent is rewarded for maximizing the language distance. It is incentivized to take actions that cause the LLM to change its description of the scene.
  4. Prompt Constraining: Users can shape the skill space by altering the prompt. For example, instructing the LLM to only describe the position of a target object forces the agent to ignore its own arm movements and focus entirely on object manipulation.
  5. Zero-Shot Execution: A separate, lightweight neural network is trained to map text embeddings back to the agent's latent skill vectors. This allows a user to type a desired goal (e.g., "The object is located at [0.3, 0.2]"), and the agent will automatically select the appropriate skill to achieve it.
Overview of the Language Guided Skill Discovery (LGSD) framework, illustrating how state transitions are mapped to language distances.

Experimental Setup

The authors evaluate LGSD in simulated physics environments built in Isaac Gym, including an Ant Locomotion task (a multi-legged robot navigating a 2D plane) and a Franka Manipulator task (a robotic arm interacting with objects). GPT-4-turbo was used to generate state descriptions, with caching applied to discretized states to optimize compute time.

Key Insights and Results

  • LLMs as Semantic Filters: By forcing the agent's state through an LLM, the system naturally filters out "junk" diversity. The LLM will not change its description for a minor joint angle change, but it will register a change if the robot pushes a block off a table.
  • Dynamic Curriculum via Prompting: Clever two-stage prompts naturally guide the agent's learning. For example: "If the block hasn't moved, describe the distance between the arm and the block. If it has moved, describe the block's coordinates." This creates an automatic curriculum: first reach the block, then push it.
  • Massive Leap in Meaningful Exploration: In the Franka robot arm environment, LGSD learned skills that moved the target object an average of 0.5 meters—5x further than the second-best baseline algorithm (METRA).
  • Beating the Baselines: Compared against five state-of-the-art unsupervised skill discovery methods (DIAYN, DADS, LSD, CSD, METRA), LGSD vastly outperformed them in both distance and meaningful state coverage.
  • Prompt-Driven Control and Zero-Shot Success: The agent successfully followed natural language commands to move objects to specific coordinates without task-specific fine-tuning. In the Ant environment, changing the LLM prompt successfully constrained the agent to learn skills only in specific quadrants.
LGSD enables a robotic arm to learn semantically distinct manipulation skills, such as interacting with specific target objects while ignoring distractors.

Limitations and Future Work

  • State-to-Text Bottleneck: Currently, the method requires a rule-based annotator to translate physical states into text prompts for the LLM. This manual engineering may be difficult to scale to highly complex, real-world environments.
  • Vision-Language Models (VLMs): Replacing the state-to-text pipeline with a VLM that processes raw pixels could allow the system to capture visual semantics without manual state extraction.
  • Trajectory-Level Semantics: The current LLM evaluates state-by-state differences. Future work could query models with entire trajectories to evaluate the semantic meaning of actions over time (e.g., "the robot is walking in a circle").

Summary updated

BibTeX
@inproceedings{rho2025language,
  author = {Seungeun Rho and Laura Smith and Tianyu Li and Sergey Levine and Xue Bin Peng and Sehoon Ha},
  title = {{Language Guided Skill Discovery}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=i3e92uSZCp},
}
Figure