Lipschitz-constrained Unsupervised Skill Discovery

Seohong Park, Jongwook Choi, Jaekyeom Kim, Honglak Lee, Gunhee Kim

TL;DR

LSD is a novel unsupervised skill discovery method that uses a Lipschitz continuity constraint to force reinforcement learning agents to learn dynamic, far-reaching behaviors rather than static poses. By aligning skill vectors with state displacements in a constrained latent space, LSD enables agents to solve complex downstream tasks—like following a sequence of goals—in a completely zero-shot manner.

The Problem: Static Poses vs. Dynamic Skills

In reinforcement learning, defining reward functions for every specific task is tedious and doesn't scale. Unsupervised skill discovery aims to solve this by letting an agent "play" in an environment to discover a library of useful behaviors (skills) without any external reward.

Most existing methods rely on maximizing Mutual Information (MI) between a latent skill variable $z$ and the states the agent visits. The intuition is that different skills should lead to easily distinguishable states. However, MI is invariant to scaling. An agent can maximize MI by simply learning to take slightly different "poses" in the same spot (e.g., an Ant robot lifting a leg vs. stretching a leg). While these are "distinguishable," they are useless for downstream tasks like navigation. To get around this, researchers often have to hand-engineer features (like only looking at $x-y$ coordinates), which defeats the purpose of unsupervised discovery.

Methods: Lipschitz-constrained Skill Discovery (LSD)

The authors propose Lipschitz-constrained Skill Discovery (LSD). The core idea is to ensure that "distance in the latent representation space" actually means "distance in the physical state space."

  1. The Objective: Instead of a standard MI objective, LSD maximizes the inner product between the skill vector $z$ and the displacement in a learned state representation $\phi(s)$. Essentially, it rewards the agent for moving in the direction specified by $z$ in the latent space.
  2. The Lipschitz Constraint: To prevent the agent from "cheating" by just blowing up the values of $\phi(s)$ to get a high reward, the authors enforce a 1-Lipschitz constraint on the representation function $\phi$ using Spectral Normalization. This constraint ensures that the change in the latent representation is upper-bounded by the actual change in the physical state: $\|\phi(s_{t+1}) - \phi(s_t)\| \leq \|s_{t+1} - s_t\|$.
  3. Zero-Shot Goal Following: Because the latent space is geometrically aligned with physical movement, the agent can reach a goal $g$ from state $s$ without any further training. You simply set the skill $z$ to be the unit vector pointing from $\phi(s)$ to $\phi(g)$.
Zero-shot goal following trajectory

LSD works for both continuous skill spaces (where $z$ is a vector) and discrete skill spaces (using a specialized zero-centered one-hot encoding).

Key Insights

  • MI is "Lazy": Standard MI objectives are satisfied as long as states are different. LSD recognizes that for skills to be useful, they need to be dynamic. The Lipschitz constraint acts as a bridge that forces latent differences to correspond to physical movement.
  • Geometry Matters: By using an inner-product objective, LSD creates a latent space where directions have semantic meaning. This is why zero-shot navigation works; the agent has essentially learned a "compass" for the environment.
  • No Feature Engineering Required: Unlike previous state-of-the-art methods that often require excluding certain coordinates or using $x-y$ priors to learn locomotion, LSD discovers these behaviors from raw state inputs.

Key Results

The authors evaluated LSD on several standard high-dimensional robotics benchmarks including MuJoCo Locomotion (Ant, Humanoid, HalfCheetah) and Manipulation (FetchPush, FetchSlide, FetchPickAndPlace).

  • State Space Coverage: In the Ant and Humanoid environments, LSD covered significantly more area than baselines. For example, on Humanoid, LSD's state space coverage was nearly double that of DIAYN and DADS.
State space coverage comparison between LSD and DIAYN
  • Downstream Performance: LSD outperformed all baselines on seven downstream tasks. Most impressively, on the HumanoidMultiGoals task, LSD achieved high rewards where most other methods failed to move the agent effectively.
  • Zero-Shot Success: The "Zero-shot LSD" (which uses no meta-controller or planning) often performed better than other methods that used a hierarchical controller trained specifically for the task.
  • Diverse Discrete Skills: When restricted to discrete skills, LSD discovered distinct behaviors like flipping, rotating, and walking in different directions, whereas baselines often collapsed into static poses.

Limitations and Future Work

  • Pixel-Based Inputs: The authors note that Lipschitz constraints might not be as semantically meaningful when learning directly from raw pixels (where a small change in pixels could be a large physical movement or vice versa). Integrating representation learning is a suggested future path.
  • Magnitude of $z$: In its current continuous form, LSD focuses on the direction of $z$ but is independent of its magnitude. Making the agent respect the magnitude of the skill vector could allow for controlling speed or intensity.

Summary updated

BibTeX
@inproceedings{park2022lipschitz,
  author = {Seohong Park and Jongwook Choi and Jaekyeom Kim and Honglak Lee and Gunhee Kim},
  title = {{Lipschitz-constrained Unsupervised Skill Discovery}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=BGvt0ghNgA},
}
Figure