Introduction
Standard Reinforcement Learning (RL) typically focuses on training agents for specific, narrow tasks. While goal-conditioned RL (GCRL) introduced more flexibility by training policies to reach specific target states $g$, it remains limited. Many real-world objectives are better described as sets or distributions of acceptable states rather than a single coordinate. For instance, "placing a block in a box" is a task defined by the relative position of the block to the box, which can occur at many absolute locations. To address this, we introduce DisCo RL (Distribution-Conditioned Reinforcement Learning), a framework that conditions policies on entire goal distributions, enabling a single policy to represent a vast array of complex behaviors and generalize to novel tasks.
Problem Statement
Traditional GCRL defines a task by a single goal state $g$. This approach fails to capture the inherent flexibility of many human-specified tasks. Categorical task IDs (e.g., "Task 1," "Task 2") are similarly restrictive, as they do not provide a structured space for generalization to unseen tasks. The challenge lies in finding a task representation that is expressive enough to cover diverse behaviors while remaining structured enough to support zero-shot generalization. DisCo RL proposes that goal distributions $p_g(s; \omega)$ provide this necessary bridge.
Methodology
In DisCo RL, the policy $\pi(a|s, \omega)$ is conditioned on the parameters $\omega$ of a goal distribution. Instead of a binary or distance-based reward for reaching a point, the agent receives a reward based on the log-likelihood of its current state under the target distribution: $r = \log p_g(s; \omega)$.
Distribution Parameterization
The framework supports various distribution types depending on the task complexity:
- Gaussian Distributions: Efficient for spatial tasks with varying precision requirements.
- Gaussian Mixture Models (GMMs): Suitable for multi-modal tasks, such as placing an object in one of several valid bins.
- Latent Variable Models (VAEs): Essential for high-dimensional inputs like images, where distributions are learned in a latent space.
Training and Relabeling
Training is conducted using an off-policy Soft Actor-Critic (SAC) algorithm. A critical component is distribution relabeling, an extension of Hindsight Experience Replay (HER). By relabeling failed trajectories with distributions that would have yielded high rewards (adjusting both mean and variance), the agent learns effectively from all experiences. Furthermore, the framework supports Sub-Task Decomposition by learning conditional distributions to break long-horizon tasks into manageable sequences of intermediate goals.
Experimental Evaluation
DisCo RL was evaluated across three distinct simulated environments:
- Flat World: A 2D environment for basic pick-and-place operations.
- Sawyer Manipulation: A robotic arm task requiring the movement of blocks relative to a box, tested with both state and raw RGB image inputs.
- IKEA Furniture Assembly: A complex, long-horizon task where a cursor must attach multiple shelves to a pole in a specific order.
Results and Discussion
DisCo RL demonstrates significant improvements over existing baselines like VICE (Variational Inverse Control with Exemplars). While VICE often requires hundreds of examples to learn a single task, DisCo RL achieves superior performance with as few as 30 to 50 examples.
Key findings include:
- Zero-Shot Generalization: By interpolating in the parameter space $\omega$, the policy can perform tasks defined by distributions never seen during training.
- Long-Horizon Success: In the IKEA assembly task, the use of conditional distributions allowed the agent to solve multi-step problems that standard HER could not handle due to the sparsity of the final goal state.
- Robustness to Distractors: VAE-based DisCo RL successfully learned image-based manipulation while ignoring visual distractors, a common failure point for point-goal methods.
Conclusion
DisCo RL provides a universal language for task representation by treating rewards as log-likelihoods of goal distributions. This approach not only increases the expressivity of robotic policies but also enhances their ability to generalize. Future work will focus on reducing the supervision required for sub-task decomposition and integrating distribution-based exploration to further improve sample efficiency.
Summary updated