Reincarnating Reinforcement Learning: Reusing Prior Computation to Accelerate Progress

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

TL;DR

Most reinforcement learning (RL) research starts from scratch (tabula rasa), which is computationally expensive and ignores valuable prior work. This paper introduces Reincarnating RL (RRL), a workflow for transferring knowledge from existing agents to new ones, and proposes QDagger, an algorithm that allows student agents to efficiently learn from—and eventually surpass—suboptimal teachers across different architectures.

What Problem Does This Paper Address?

In the current RL paradigm, agents are typically trained tabula rasa—starting with zero knowledge. While this is a clean scientific setup, it is wildly impractical for large-scale, real-world applications. Systems like OpenAI Five (Dota 2) or AlphaStar (StarCraft II) require months of compute and millions of dollars to train. When researchers want to test a new architecture or a slightly different algorithm, restarting from scratch is often prohibitively expensive.

This "compute barrier" effectively gatekeeps RL research, favoring industrial labs with massive resources. Furthermore, even in those labs, developers often use ad hoc "surgery" methods to update models without full retraining. This paper seeks to formalize these practices into a research workflow called Reincarnating RL (RRL), focusing specifically on Policy-to-Value Reincarnating RL (PVRL): transferring a suboptimal teacher policy to a standalone value-based student agent.

Methods

The authors evaluate several existing approaches (like Rehearsal, DQfD, and Kickstarting) and find they often struggle with "weaning"—the process of moving the student away from the teacher's guidance to independent learning. To solve this, they introduce QDagger.

QDagger outperforms existing baselines in both offline and online phases.

Key components of QDagger: * Distillation + Q-Learning: It combines the Dagger algorithm (interactive imitation learning) with $n$-step Q-learning. The student minimizes a loss function that includes both a temporal difference (TD) loss and a distillation loss against the teacher's policy. * Teacher-Agnosticism: Unlike simple fine-tuning, the student does not need to share the same neural network architecture as the teacher. You can "reincarnate" a simple DQN agent into a powerful ResNet-based Rainbow agent. * Scheduled Weaning: QDagger uses a decay coefficient ($\lambda_t$) for the distillation loss. As training progresses, the student relies less on the teacher and more on its own learned value function, allowing it to eventually outperform the teacher.

Datasets

The researchers benchmarked their approach across three diverse environments:

  1. Atari 2600 (ALE): A subset of 10 games (e.g., Asterix, Breakout, Seaquest). They used a DQN agent trained for 400M frames as the teacher.
  2. DeepMind Control Suite (DMC): Specifically the Humanoid:run task, which is a high-dimensional, challenging locomotion problem.
  3. Balloon Learning Environment (BLE): A high-fidelity simulator for navigating stratospheric balloons (based on Google’s Project Loon). This represents a complex, partially observable, real-world physical control problem.

Key Insights and Ideas

  • Fine-tuning is a "Golden Cage": While fine-tuning is common in Computer Vision and NLP, in RL it usually requires keeping the exact same architecture. RRL breaks this constraint, allowing researchers to upgrade architectures (e.g., moving from a 3-layer CNN to a 15-layer ResNet) while keeping the knowledge.
  • The Stability Gap: Many existing imitation-learning-based RL methods suffer a massive performance drop the moment the teacher is removed. QDagger’s combination of $n$-step returns and distillation provides a much smoother transition.
  • Democratizing Research: By releasing "teacher" checkpoints and replay buffers, the authors show that a researcher with a single GPU can achieve state-of-the-art results in a few hours by building on top of a "reincarnated" model, rather than waiting weeks for a tabula rasa run.
  • Better Students aren't always Better Reincarnators: Interestingly, an algorithm that is more data-efficient from scratch (like DrQ) might actually be less effective at utilizing prior knowledge than a standard algorithm like Rainbow.

Key Results

Reincarnating RL demonstrates significant advantages over traditional training methods, particularly in terms of sample efficiency and final performance.

Reincarnating an Impala-CNN Rainbow agent accelerates learning compared to tabula rasa.
  • Atari: QDagger surpassed the teacher's performance (trained for 400M frames) within just 10M frames of student training.
  • Compute Savings: Reincarnating an Impala-CNN Rainbow agent from a standard DQN teacher required only 50M frames to match the performance that a tabula rasa version achieved at 100M frames.
  • Real-World Application (BLE): Reincarnated agents (R2D6 and IQN) were able to match or exceed the performance of "Perciatelli," a teacher agent that had been trained for 40 days on production-level simulators.
  • Humanoid Locomotion: Reincarnated D4PG agents outperformed their tabula rasa counterparts for the first 10M steps and converged with significantly lower variance.

Limitations and Future Work

  • Teacher Dependence: The student's ultimate performance is still influenced by the teacher's behavior. While the student can surpass the teacher, a very poor teacher might still hinder initial progress.
  • Scope of Reincarnation: This paper focuses on policy-to-value transfer. Future work could explore "reincarnating" from pre-trained representations (like those from large world models) or transferring knowledge from multiple diverse teachers.
  • Reproducibility Challenges: Reincarnating RL requires access to the original teacher's checkpoints and data. The authors advocate for a culture of releasing "final replay buffers" alongside code to make RRL a standard community practice.

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