Reincarnating Reinforcement Learning: Reusing Prior Computation to Accelerate Progress

Rishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron Courville, Marc G. Bellemare · DOI

Abstract

Learning tabula rasa, that is without any prior knowledge, is the prevalent workflow in reinforcement learning (RL) research. However, RL systems, when applied to large-scale settings, rarely operate tabula rasa. Such large-scale systems undergo multiple design or algorithmic changes during their development cycle and use ad hoc approaches for incorporating these changes without re-training from scratch, which would have been prohibitively expensive. Additionally, the inefficiency of deep RL typically excludes researchers without access to industrial-scale resources from tackling computationally-demanding problems. To address these issues, we present reincarnating RL as an alternative workflow or class of problem settings, where prior computational work (e.g., learned policies) is reused or transferred between design iterations of an RL agent, or from one RL agent to another. As a step towards enabling reincarnating RL from any agent to any other agent, we focus on the specific setting of efficiently transferring an existing sub-optimal policy to a standalone value-based RL agent. We find that existing approaches fail in this setting and propose a simple algorithm to address their limitations. Equipped with this algorithm, we demonstrate reincarnating RL's gains over tabula rasa RL on Atari 2600 games, a challenging locomotion task, and the real-world problem of navigating stratospheric balloons. Overall, this work argues for an alternative approach to RL research, which we believe could significantly improve real-world RL adoption and help democratize it further.

Introduction

Reinforcement Learning (RL) research typically follows a tabula rasa paradigm, where agents start with zero knowledge and learn entirely through trial and error. While scientifically rigorous, this approach is computationally expensive and inefficient for large-scale applications. For instance, training systems like AlphaStar can cost millions of dollars in compute. Real-world RL systems are rarely static; they undergo constant design iterations where architectures or algorithms are updated. Currently, practitioners use ad hoc "surgery" to incorporate changes without restarting from scratch.

The Reincarnating RL workflow allows for iterative improvement across agent generations, significantly outperforming tabula rasa training.

Reincarnating RL (RRL) formalizes this process, allowing prior computational work—such as learned policies or datasets—to be reused to accelerate the training of new agents. This paradigm shift aims to lower the barrier to entry for complex RL tasks and speed up the overall progress of the field.

Methods: Policy-to-Value Reincarnating RL and QDagger

The authors focus on Policy-to-Value Reincarnating RL (PVRL), where a sub-optimal teacher policy jumpstarts a value-based student agent (e.g., DQN or Rainbow). They propose QDagger, a robust baseline algorithm that improves upon standard imitation learning through three key mechanisms:

  1. Pre-training: The student first learns from the teacher’s logged data using a combination of distillation loss (matching teacher actions) and Temporal Difference (TD) loss.
  2. Online Learning with "Weaning": During environment interaction, the student continues to use distillation loss to correct mistakes based on teacher advice.
  3. The "Aha" Moment: QDagger employs n-step Q-learning and a weaning schedule that decays the teacher's influence over time. This allows the student to eventually surpass a sub-optimal teacher rather than being capped by its performance.

Results and Evaluation

The approach was evaluated across three diverse domains: Atari 2600 (ALE), DeepMind Control Suite (Humanoid:run), and the Balloon Learning Environment (BLE).

QDagger outperforms existing baselines like Kickstarting and DQfD in both offline and online settings, maintaining stability and higher performance.

Key findings include:

  • Massive Speedups: On Atari, a reincarnated "Impala-CNN Rainbow" agent matched its 100M-frame tabula rasa performance in just 50M frames by starting from a simpler DQN teacher.
  • Surpassing the Teacher: In the Balloon Learning Environment, the reincarnated R2D6 agent surpassed the expert teacher, whereas tabula rasa agents failed to even reach the teacher's level.
  • Democratization: Fine-tuning a pre-trained agent for just 1M frames (a few hours on a single GPU) led to a 25-50% performance boost, making high-level RL accessible to researchers with limited hardware.
  • Continuous Control: On the Humanoid:run task, reincarnated D4PG achieved top-tier performance in half the samples (5M vs 10M).

Discussion

RRL shifts the focus from training in isolation to an evolutionary workflow. Unlike simple fine-tuning, RRL (via QDagger) allows for architectural flexibility, such as "reincarnating" a policy into a completely different architecture (e.g., MLP to ResNet). However, challenges remain, such as potential teacher bias and the need for a culture of open-sourcing model checkpoints. Future work will explore transferring between different task distributions and using shared representations or world models.

Summary updated

BibTeX
@inproceedings{agarwal2022reincarnating,
  author = {Rishabh Agarwal and Max Schwarzer and Pablo Samuel Castro and Aaron Courville and Marc G. Bellemare},
  title = {{Reincarnating Reinforcement Learning: Reusing Prior Computation to Accelerate Progress}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=t3X5yMI_4G2},
}
Figure