Abstract
Standard Imitation Learning (IL) algorithms, such as Behavior Cloning (BC), are highly sensitive to outliers and adversarial noise in training data. This paper introduces Robust Behavior Cloning (RBC), an offline IL algorithm designed to maintain expert-level performance even when a significant portion of the demonstrations are corrupted. By employing a Median-of-Means (MOM) objective, RBC provides theoretical guarantees for robustness against up to 50% corrupted data. Empirical results on high-dimensional control tasks demonstrate that RBC significantly outperforms vanilla BC in the presence of adversarial outliers.
Introduction
Imitation Learning typically operates under the assumption of a "perfect expert." However, real-world datasets often contain "garbage" samples due to human error, sensor malfunctions, or intentional poisoning. Standard BC minimizes the average loss, making it vulnerable to even a single extreme outlier. Existing robust methods often require online interaction or lack strong theoretical foundations. RBC addresses this by providing a purely offline framework that is mathematically guaranteed to ignore a constant fraction of arbitrary outliers.
Methodology: Robust Behavior Cloning (RBC)
The core of RBC is the replacement of the standard empirical mean loss with a Median-of-Means (MOM) estimator. The process involves:
- Batch Partitioning: The training dataset is randomly partitioned into $M$ disjoint blocks.
- Median-of-Means Objective: The algorithm calculates the average loss for each block and identifies the block with the median loss.
- Min-Max Tournament: To ensure theoretical stability, the problem is framed as a min-max optimization where the policy is compared against alternatives on the median batch.
- Gradient Heuristic: Since the median is non-differentiable, RBC uses a heuristic that performs gradient updates on the specific batch identified as the median in each iteration.
Experimental Setup
The authors evaluated RBC across four continuous control benchmarks in the PyBullet simulator: Hopper, Walker2D, HalfCheetah, and Ant. Robustness was tested by injecting two types of corruptions:
- Boundary Case: Outlier actions are set to extreme values (e.g., -1 or +1).
- Uniform Case: Outlier actions are sampled from a random uniform distribution.
Key Results
RBC demonstrates remarkable resilience to data corruption. While vanilla BC's performance drops sharply as the percentage of corrupted data increases, RBC maintains performance levels comparable to an "Oracle BC" trained on clean data.
In the Hopper environment, RBC maintains a reward of approximately 2500 even at 20% corruption, whereas vanilla BC's reward falls toward zero. Furthermore, RBC achieves this robustness without a significant "statistical tax," matching the sample complexity of standard BC on clean datasets.
Discussion and Conclusion
RBC offers a powerful, offline solution for robust imitation learning. Its ability to distinguish "normal" behavior from outliers through the geometry of the loss landscape—without requiring simulators or manual labeling—makes it highly practical for real-world applications. Future work may address the non-convexity of the MOM objective and extend the theoretical analysis to more complex, non-realizable policy classes.
Summary updated