Efficient Active Imitation Learning with Random Network Distillation

Emilien Biré, Anthony Kobanda, Ludovic Denoyer, Rémy Portelas

Introduction

Developing agents for complex and underspecified tasks—especially in video games where simulated players must behave realistically without a clear mathematical reward function—remains a significant challenge. RND-DAgger (Random Network Distillation DAgger) is a novel active imitation learning algorithm designed to address this. By using Random Network Distillation to detect when an agent is "lost," it calls for expert help only when necessary. Switching from traditional action-based triggers to state-based novelty detection significantly reduces the time and cognitive load on human supervisors while matching or exceeding the performance of traditional methods in complex 3D environments.

The Challenge of Covariate Shift

Imitation learning (IL) is highly effective for teaching robots or game bots to behave in a "human-like" manner. However, IL suffers from a major flaw known as covariate shift. If an agent makes a small mistake and drifts into an unfamiliar state, it lacks the knowledge to recover, often leading to a "crash."

The classic solution is DAgger (Dataset Aggregation), where a human expert provides correct action labels for the states the agent actually visits. Unfortunately, DAgger is exhausting for humans. It typically requires the expert to be "always on"—either providing a continuous stream of "ghost" actions while the bot drives or constantly comparing their own preferred action to the bot's action. This process is unnatural, inefficient, and mentally taxing. The goal of RND-DAgger is to trigger expert intervention only when it is truly useful, freeing the expert from monitoring every single frame.

The RND-DAgger Approach

The core innovation of RND-DAgger is moving from action-based triggers to state-based triggers to determine when an expert should intervene.

The RND-DAgger recovery process: autonomous driving, expert intervention upon failure, and return to autonomy.
  1. Random Network Distillation (RND): The system employs two neural networks: a fixed, random "target" network and a "predictor" network. The predictor is trained to mimic the target's output. Because the predictor only learns on states it has previously encountered, its error spikes in new, "out-of-distribution" (OOD) states. This error serves as a reliable "novelty" or "uncertainty" score.
  2. State-Based Triggering: Unlike previous methods (such as Ensemble-DAgger) that query the expert's action at every step to check for discrepancies with the bot, RND-DAgger evaluates the state. If the RND error is high, the agent is in unfamiliar territory and likely to fail, prompting the system to hand control over to the expert.
  3. Minimal Expert Time (MET): To prevent "jittery" handovers where control rapidly flips back and forth, the authors introduce a hysteresis mechanism. Once an expert takes over, they must maintain control for a minimum number of steps until the agent is safely back in a "familiar" (in-distribution) part of the environment.

Experimental Evaluation

The researchers evaluated RND-DAgger on three distinct tasks, using both an "Oracle" (a pre-trained algorithmic expert) and real human participants to measure actual expert burden:

  • HalfCheetah: A standard robotics benchmark where a 2D creature learns to run.
  • RaceCar: A physics-based 3D driving environment featuring speed bumps, ramps, and sharp turns.
  • 3D Maze: A goal-conditioned navigation task where a human-like character must find a random goal in a complex layout using simulated depth sensors (raycasts).
The 3D Maze environment used to evaluate RND-DAgger.

Key Insights and Results

  • State vs. Action Discrepancy: Previous "Lazy" DAgger variants triggered help when the bot's action differed from the expert's. However, humans are inconsistent and might choose different valid actions for the same state, creating "noisy" triggers. RND-DAgger avoids this by focusing purely on whether the environment is familiar, making it far more robust to human variability.
  • Strategic Intervention: Qualitative maps demonstrate that RND-DAgger naturally "asks" for help in the most difficult sections of a track (like sharp corners or after a jump) rather than spreading the expert's effort thin across easy straightaways.
  • Efficiency and Performance: In the 3D Maze, RND-DAgger reached peak performance three times faster (in terms of expert time) than Ensemble-DAgger. It matched or outperformed all baselines (DAgger, Ensemble-DAgger, Lazy-DAgger) across all environments while using significantly fewer handovers.
  • Reducing Cognitive Load: Because the trigger is automated based on state novelty, the expert doesn't have to provide "shadow actions" or constantly monitor the bot. When tested with real humans, RND-DAgger significantly lowered the total time a human had to spend observing the screen compared to "Human-Gated" methods, without sacrificing the final quality of the bot.

Limitations and Future Work

While highly effective in simulation, the authors acknowledge a few hurdles for real-world deployment:

  • Immediate Takeover: The current model assumes the expert can jump in instantly the moment an OOD state is detected. In real-world robotics, this could be dangerous. Future work might involve "predictive alerts" to give the human a few seconds of lead time.
  • The "Noisy TV" Problem: RND is known to struggle in environments with high-entropy, random visual noise, as it might mistake the noise for "novelty." Scaling this to raw pixel inputs in messy real-world environments will require more advanced representation learning.
  • Scaling to POMDPs: The current work focuses on fully observable states; adapting it to partially observable environments (where the agent doesn't have the full picture) is a logical next step for future research.

Summary updated

BibTeX
@inproceedings{bire2025efficient,
  author = {Emilien Biré and Anthony Kobanda and Ludovic Denoyer and Rémy Portelas},
  title = {{Efficient Active Imitation Learning with Random Network Distillation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=GFgn2LprFR},
}
Figure