NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reinforcement Learning with Supervision from Noisy Demonstrations

Kun-Peng Ning, Sheng-Jun HuangarXiv 2020

Abstract

Reinforcement Learning (RL) typically requires millions of trials to achieve success. While expert demonstrations can accelerate this process, real-world data is often noisy or suboptimal. This paper introduces Learning from Noisy Demonstrations (LfND), a framework that adaptively weights individual steps in a demonstration based on their potential utility. By filtering out misleading guidance and emphasizing helpful actions, LfND enables agents to learn effectively from imperfect data, outperforming standard methods on complex robotic control benchmarks.

Introduction

Standard Reinforcement Learning is notoriously sample-inefficient, often requiring massive trial-and-error to master even simple tasks. To address this, researchers use Reinforcement Learning with Expert Demonstrations (RLED) to provide agents with a "head start." However, a significant limitation of existing RLED algorithms is the assumption that demonstrations are "perfect."

In practice, human or robotic demonstrations are frequently messy—experts make mistakes, or data is collected from intermediate-level agents. When an RL agent attempts to mimic these imperfect behaviors, it can become stuck in suboptimal loops. The challenge lies in extracting the "signal" (useful moves) from the "noise" (mistakes) without prior knowledge of which data points are reliable.

The LfND Framework

The authors propose the LfND framework to handle noisy demonstrations through a novel joint optimization approach. Unlike traditional methods that often rely on a separate pre-training phase, LfND balances two goals simultaneously:

  1. Environment Exploration: Standard RL (e.g., TRPO or PPO) to maximize rewards through trial and error.
  2. Weighted Demonstration Learning: A supervised learning component that encourages the agent to mimic demonstrations, but only when they are likely to be beneficial.
Comparison of existing RLED methods (a) and the proposed LfND framework (b).

Adaptive Weighting: The "Secret Sauce"

The core innovation of LfND is its adaptive weighting mechanism. Instead of treating every step in a demonstration equally, LfND assigns a weight ($w$) to each state-action pair based on its expected gain. This gain is calculated as the difference between the cumulative reward the expert actually achieved from that point ($Q$-value) and what the agent currently expects to achieve from that state ($V$-value).

  • High Weight: If the expert's action leads to a better outcome than the agent’s current policy, the agent is encouraged to learn it.
  • Zero Weight: If the expert's action is worse than what the agent can already achieve, the agent ignores the data point.

This dynamic weighting allows the agent to naturally "outgrow" its teachers as its own skill level improves.

Experimental Evaluation

The researchers evaluated LfND using six standard benchmarks from the MuJoCo physics engine, including HalfCheetah, Hopper, and Humanoid.

The Humanoid environment, one of the complex MuJoCo benchmarks used for evaluation.

To simulate realistic "noisy" scenarios, the agent was provided with 10 demonstration trajectories: 5 from a well-trained expert and 5 from an "immature" agent. This setup created a challenging environment where half of the provided guidance was potentially misleading.

Key Results and Insights

  • Superior Performance and Convergence: LfND consistently outperformed popular baselines like POfD (Policy Optimization from Demonstration) and LbA (AlphaGo-style learning). In tasks like Walker2d and Hopper, LfND reached high reward levels significantly faster than standard RL or unweighted demonstration methods.
  • Salvaging Value from "Bad" Data: A key insight is that even noisy trajectories contain useful steps. By weighting individual steps rather than entire trajectories, LfND can extract valuable information from otherwise poor demonstrations.
  • The Necessity of Weighting: A "degenerated" version of the algorithm, LfND-noW (which used all demonstrations without weighting), often performed worse than standard RL. This confirms that adaptive weighting is critical for preventing the agent from being "tricked" by suboptimal data.

Conclusion

LfND provides a robust framework for leveraging imperfect demonstrations in Reinforcement Learning. By adaptively filtering data based on its potential utility, it bridges the gap between theoretical "perfect" demonstrations and the messy reality of real-world data. Future work will explore utility estimation in environments with extremely sparse rewards and further refine the weighting functions to reduce hyperparameter sensitivity.

Summary updated

BibTeX
@misc{ning2020reinforcement,
  author = {Kun-Peng Ning and Sheng-Jun Huang},
  title = {{Reinforcement Learning with Supervision from Noisy Demonstrations}},
  year = {2020},
  eprint = {2006.07808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.07808},
}
Figure