Skip to main content
QUICK REVIEW

[Paper Review] Behavior Contrastive Learning for Unsupervised Skill Discovery

Rushuai Yang, Chenjia Bai|arXiv (Cornell University)|May 8, 2023
Machine Learning and Data ClassificationComputer Science3 citations
TL;DR

This paper proposes Behavior Contrastive Learning (BeCL), a novel unsupervised skill discovery method that maximizes mutual information between behaviors generated under the same skill, promoting diverse and far-reaching skills. By leveraging contrastive learning on trajectories, BeCL implicitly increases state visitation entropy, enabling better environment coverage and outperforming state-of-the-art methods in downstream tasks on mazes and the Unsupervised RL Benchmark (URLB).

ABSTRACT

In reinforcement learning, unsupervised skill discovery aims to learn diverse skills without extrinsic rewards. Previous methods discover skills by maximizing the mutual information (MI) between states and skills. However, such an MI objective tends to learn simple and static skills and may hinder exploration. In this paper, we propose a novel unsupervised skill discovery method through contrastive learning among behaviors, which makes the agent produce similar behaviors for the same skill and diverse behaviors for different skills. Under mild assumptions, our objective maximizes the MI between different behaviors based on the same skill, which serves as an upper bound of the previous MI objective. Meanwhile, our method implicitly increases the state entropy to obtain better state coverage. We evaluate our method on challenging mazes and continuous control tasks. The results show that our method generates diverse and far-reaching skills, and also obtains competitive performance in downstream tasks compared to the state-of-the-art methods.

Motivation & Objective

  • Address the limitation of existing unsupervised skill discovery methods that learn simple, static skills due to suboptimal mutual information (MI) objectives between states and skills.
  • Overcome poor state coverage and limited exploration by introducing a new MI objective based on behavioral similarity under the same skill.
  • Simultaneously promote skill diversity and environment coverage through a contrastive learning framework that encourages consistent behavior for the same skill and divergent behavior across different skills.
  • Provide a theoretically grounded, practical method for high-dimensional control tasks that avoids reliance on additional estimators or complex training procedures.
  • Demonstrate competitive performance in downstream tasks compared to state-of-the-art methods, with improved skill generalization and adaptation efficiency.

Proposed method

  • Propose a multi-view contrastive learning framework where different trajectories conditioned on the same skill are treated as positive views, and trajectories from different skills are negative views.
  • Define a novel mutual information objective that maximizes the MI between states generated by the same skill, which serves as an upper bound of the traditional state-skill MI objective.
  • Use a contrastive loss with temperature-scaled logits to estimate the MI in high-dimensional continuous control tasks, enabling stable training.
  • Incorporate a contrastive objective that implicitly increases state visitation entropy, promoting broader environment coverage and preventing static skill learning.
  • Train a skill-conditional policy using the contrastive MI objective as an intrinsic reward, without requiring extrinsic rewards during pretraining.
  • Adapt learned skills to downstream tasks by initializing the policy with a skill vector and finetuning with task-specific rewards, evaluating adaptation efficiency.

Experimental results

Research questions

  • RQ1Can a contrastive learning objective based on behavioral similarity improve skill diversity and coverage compared to traditional state-skill mutual information maximization?
  • RQ2How does the proposed method balance skill discriminability and state coverage, particularly in environments requiring long-horizon or dynamic behaviors?
  • RQ3What is the impact of hyperparameters such as temperature and skill dimensionality on skill quality and downstream adaptation performance?
  • RQ4How does the method compare to state-of-the-art unsupervised skill discovery approaches in terms of skill diversity, reachability, and downstream task performance?
  • RQ5Can the method discover skills that generalize well across diverse downstream tasks without task-specific reward shaping during pretraining?

Key findings

  • BeCL learns diverse and far-reaching skills in challenging maze environments, with trajectory coverage improving as skill dimension increases, unlike baseline methods that remain localized.
  • In the Unsupervised RL Benchmark (URLB), BeCL achieves competitive downstream performance, demonstrating strong generalization and adaptation efficiency across multiple tasks.
  • The method implicitly increases state visitation entropy, which prevents the agent from learning static or trivial skills, a key limitation of prior MI-based methods.
  • Ablation studies show that reducing the temperature in the contrastive objective improves global coverage up to a point, but excessively low values reduce skill discriminability due to over-uniformity.
  • Increasing skill dimension improves adaptation performance on hard downstream tasks (e.g., Walker, Run and Flip), but has minimal impact on easy tasks approaching expert performance.
  • BeCL shows robustness to skill initialization in finetuning, with average performance across randomly sampled skills outperforming methods that rely on grid search or heuristic selection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.