Periodic Skill Discovery

Jonghae Park, Daesol Cho, Jusuk Lee, Dongseok Shim, Inkyu Jang, H. Jin Kim

Abstract

Periodic Skill Discovery (PSD) is a novel unsupervised reinforcement learning framework designed to learn rhythmic, periodic behaviors without external rewards. By utilizing a circular latent space, PSD encodes periodicity as a geometric prior, enabling robots to discover a diverse movement vocabulary across multiple timescales. Evaluated on MuJoCo benchmarks, PSD demonstrates superior frequency diversity and significantly improved performance on complex downstream tasks compared to state-of-the-art baselines.

Introduction

In unsupervised skill discovery (USD), the goal is to enable an agent to explore its environment and learn useful behaviors (skills) before a specific task is assigned. Most current methods focus on "where to go" by rewarding the agent for reaching diverse states or maximizing the distance traveled in a latent space.

However, these methods often ignore "how to behave." In nature, almost all locomotion is inherently periodic—consider a horse’s gallop or a fish’s tail movement. Existing USD algorithms often produce static or erratic behaviors because they lack a "periodic prior." They struggle to learn skills that repeat at different rhythms (timescales), which is crucial for complex robotic tasks like navigating hurdles or walking on uneven terrain.

Methodology

The core innovation of PSD is its circular latent representation. Instead of mapping states to a flat coordinate system, PSD trains an encoder to map states onto a circle.

The circular latent space of PSD maps different periodic behaviors to distinct orbits, enabling the discovery of diverse rhythmic skills.

Circular Geometry

The latent space is designed so that moving along the circle corresponds to the passage of time. If a skill has a period of $2L$, states that are $L$ steps apart are mapped to opposite sides of a circle with diameter $L$. This geometric constraint forces the agent to learn repetitive, structured motions.

Single-Step Intrinsic Reward

PSD uses a simple reward function that penalizes the agent if its next step in the latent space deviates from the "ideal" arc length of the circle. This encourages the agent to follow the circular path consistently, completing full cycles.

Adaptive Sampling

To discover a wide range of rhythms without prior knowledge, the authors introduce a method that dynamically adjusts the range of periods ($L$) the agent tries to learn. If the agent masters a certain rhythm, the algorithm "challenges" it with longer or shorter periods.

Integration with METRA

PSD can be combined with METRA (a state-of-the-art method for directional diversity). While METRA decides the direction of movement, PSD decides the rhythm, leading to a much richer repertoire of skills.

Experimental Setup

The researchers evaluated PSD using the MuJoCo physics engine across several environments: Ant, HalfCheetah, Humanoid, Hopper, and Walker2D. Observations included both proprioceptive states (joint angles/velocities) and pixel-based observations (raw RGB images). To prove the skills were useful, they were tested on downstream tasks such as "Hurdling" (jumping over irregularly spaced obstacles) and "Friction" tasks (walking on surfaces with varying slipperiness).

Results

Frequency Diversity

Using Fourier analysis, the authors showed that PSD discovers a significantly wider range of frequencies compared to baselines like DIAYN or METRA, which tend to collapse into a few "easy" fast-moving behaviors.

Fourier analysis demonstrates that PSD (top row) captures a much broader spectrum of frequencies across different environments compared to existing methods.

Superior Downstream Performance

In the HalfCheetah-hurdle task, PSD achieved a score of 3.8, nearly doubling the performance of the best baseline, METRA (1.9). This suggests that having a library of rhythmic skills makes it much easier to learn complex, timed coordination.

Visual Learning

PSD successfully learned periodic gaits directly from raw pixels, a feat that many distance-maximizing methods struggle with due to the high dimensionality of image data.

Discussion

The "aha moment" of this work is realizing that a circle is the most natural mathematical representation for repetition. By enforcing a circular structure in the latent space, periodicity becomes a fundamental property of the learned representation. Furthermore, the paper demonstrates that "where you go" (direction) and "how you move" (periodicity) are orthogonal dimensions. Combining these allows for exponential growth in the diversity of discovered behaviors.

Limitations and Future Work

The experiments primarily focus on locomotion because it is naturally periodic. It remains to be seen how well PSD translates to non-periodic tasks, such as robotic manipulation. Additionally, PSD might struggle in environments with large, persistent external forces that make periodic behavior physically impossible. Future directions include generalizing the latent geometry beyond simple circles and integrating frequency-domain analysis directly into the training loop.

Summary updated

BibTeX
@inproceedings{park2025periodic,
  author = {Jonghae Park and Daesol Cho and Jusuk Lee and Dongseok Shim and Inkyu Jang and H. Jin Kim},
  title = {{Periodic Skill Discovery}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=BPSU46emit},
}
Figure