Abstract: Imitation learning (IL) algorithms use expert demonstrations to learn a specific task. Most existing approaches assume that all expert demonstrations are reliable and trustworthy. However, the presence of adversarial demonstrations in a dataset can lead to poor decision-making performance. We propose Robust Maximum Entropy Behavior Cloning (RM-ENT), a novel general framework to directly generate a policy from demonstrations that autonomously detects and excludes adversarial data. RM-ENT is sample- and time-efficient, does not require a simulator, and leverages a min-max problem that uses model entropy to assign weights to each demonstration.
Introduction
Standard Behavior Cloning (BC) and Inverse Reinforcement Learning (IRL) typically operate under the assumption that the expert is always right. In real-world scenarios, datasets are often corrupted by "adversarial" demonstrations—actions that intentionally move away from the goal—or noisy data from unskilled operators. When standard algorithms attempt to mimic this "garbage" data, performance degrades significantly. While some filtering methods exist, they often require expensive simulators or can only handle minimal random noise. RM-ENT addresses these challenges by providing a robust framework that identifies structured adversarial behavior without simulator access.
Methodology
RM-ENT is built upon the Maximum Entropy (MaxEnt) principle. In standard MaxEnt BC, the objective is to find a policy that matches the feature expectations of the expert while remaining as unbiased (high entropy) as possible.
We transform this into a min-max optimization problem by introducing a weight variable ($w$) for every demonstration in the dataset. The algorithm performs two simultaneous tasks:
- Maximization: Finding the best high-entropy policy given the current weights.
- Minimization: Adjusting weights to minimize the total entropy of the model.
The core insight is that adversarial or random demonstrations naturally introduce uncertainty (entropy) into the model. By minimizing this added entropy, the algorithm automatically identifies "suspicious" demonstrations and assigns them a weight of zero, effectively filtering them out. This non-convex problem is solved using Sequential Quadratic Programming (SQP), which iteratively balances weights and policy parameters.
Experimental Setup
The researchers evaluated RM-ENT across three environments:
- 5x5 Grid World: A toy environment used to test the algorithm's ability to distinguish between "Correct," "Adversarial," and "Random" demonstrations.
- Mountain-Car (OpenAI Gym): A classic control problem requiring momentum to climb a hill.
- Acrobot (OpenAI Gym): A two-link pendulum system where the goal is to swing the lower link above a specific height.
To simulate adversarial data, expert trajectories were modified by intentionally flipping actions (e.g., pushing right instead of left).
Key Results and Discussion
RM-ENT demonstrated significant advantages over traditional BC and IRL methods in terms of both robustness and efficiency:
- Autonomous Filtering: In Grid World tests, RM-ENT was nearly perfect at identifying bad data. When provided with two correct demonstrations and one adversarial one, it assigned the correct demos weights of 0.5 and the adversarial one a weight of 0.0.
- Robustness to Corruption: As shown in the performance graphs for Mountain-Car and Acrobot, standard BC and IRL methods saw sharp performance drops as the ratio of adversarial demonstrations increased. RM-ENT maintained high performance by effectively "muting" the adversarial inputs.
- Computational Efficiency: RM-ENT converged significantly faster than neural-network-based IRL approaches like GTAL. Because it is based on Behavior Cloning, it is more sample-efficient and does not require a simulator during the learning phase.
Conclusion and Future Work
RM-ENT provides an elegant solution to the problem of unreliable demonstrations by using entropy as a proxy for data quality. Unlike previous work, it does not require manual labeling of failed demonstrations. However, limitations remain. The current formulation is designed for discrete action spaces; extending this to continuous action spaces is a priority for future research. Additionally, while faster than many IRL methods, the SQP optimization complexity increases with the number of features and demonstrations, suggesting a need for more advanced optimization techniques to scale the framework to complex robotic tasks.
Summary updated