Accelerating Goal-Conditioned RL Algorithms and Research
Michał Bortkiewicz, Władysław Pałucki, Vivek Myers, Tadeusz Dziarmaga, Tomasz Arczewski, Łukasz Kuciński, Benjamin Eysenbach
TL;DR
The paper introduces JaxGCRL, a fast GPU-accelerated benchmark and codebase for self-supervised goal-conditioned reinforcement learning (GCRL). By combining GPU-accelerated simulators, a stable contrastive RL algorithm, and a suite of discrete, state-based tasks, it delivers up to $22\times$ faster training (e.g., $10$M steps in minutes on a single GPU) and enables rapid, iterative experimentation. The authors systematically study design choices in contrastive learning—energy functions, losses, and architecture scaling—and demonstrate robust performance across eight GCRL environments, with InfoNCE-based objectives and $L2$ energy often performing best in data-rich regimes. They also show that large architectures with layer normalization further boost performance and that broad data and architecture scaling can be achieved efficiently, highlighting CRL as a viable path for scalable self-supervised RL research. Overall, JaxGCRL lowers barriers to entry, accelerates hypothesis testing, and lays groundwork for future advances in self-supervised GCRL with broad practical impact.
Abstract
Self-supervision has the potential to transform reinforcement learning (RL), paralleling the breakthroughs it has enabled in other areas of machine learning. While self-supervised learning in other domains aims to find patterns in a fixed dataset, self-supervised goal-conditioned reinforcement learning (GCRL) agents discover new behaviors by learning from the goals achieved during unstructured interaction with the environment. However, these methods have failed to see similar success, both due to a lack of data from slow environment simulations as well as a lack of stable algorithms. We take a step toward addressing both of these issues by releasing a high-performance codebase and benchmark (JaxGCRL) for self-supervised GCRL, enabling researchers to train agents for millions of environment steps in minutes on a single GPU. By utilizing GPU-accelerated replay buffers, environments, and a stable contrastive RL algorithm, we reduce training time by up to $22\times$. Additionally, we assess key design choices in contrastive RL, identifying those that most effectively stabilize and enhance training performance. With this approach, we provide a foundation for future research in self-supervised GCRL, enabling researchers to quickly iterate on new ideas and evaluate them in diverse and challenging environments. Website + Code: https://github.com/MichalBortkiewicz/JaxGCRL
