MEGA-DAgger: Imitation Learning with Multiple Imperfect Experts

Xiatao Sun, Shuo Yang, Mingyan Zhou, Kunpeng Liu, Rahul Mangharam

TL;DR

This paper introduces MEGA-DAgger, a novel imitation learning algorithm designed to learn from multiple imperfect driving experts, a more realistic scenario than traditional methods that assume a single perfect expert. By filtering unsafe demonstrations and resolving conflicting expert advice, MEGA-DAgger enables autonomous agents to learn safer and more performant driving policies than individual experts or existing state-of-the-art methods.

What Problem Does This Paper Address?

Traditional imitation learning (IL) methods, particularly interactive ones like DAgger and Human-Gated DAgger (HG-DAgger), have shown promise in teaching robots complex behaviors. However, these methods typically rely on the assumption that there is a single, perfect expert providing demonstrations. In reality, obtaining a single perfect expert is often difficult. Instead, we are more likely to have access to multiple experts, each with their own driving style, who may make mistakes or offer conflicting advice. This paper addresses the challenge of learning effectively from such a group of imperfect experts, aiming to create a policy that is not only safe but also performs better than any single expert in the group.

Methods

The core contribution is MEGA-DAgger, a variant of the DAgger algorithm. It introduces two key novel components:

  • Data Filter: To handle imperfect expert demonstrations, a data filter is implemented. This filter uses a Control Barrier Function (CBF)-based safety scorer to identify and truncate unsafe demonstrations. This prevents the novice policy from learning from potentially dangerous actions.
  • Conflict Resolution: When multiple experts provide conflicting advice for the same situation, a conflict resolution mechanism is employed. This involves evaluating experts based on safety and progress scores (derived from CBF values and vehicle speed) and selecting the best action. This ensures that the training data is curated to resolve disagreements among experts.

The overall MEGA-DAgger loop involves an iterative process where the novice policy is trained on aggregated data. In each iteration, one expert is chosen to be dominant, its demonstrations are filtered for safety, conflicts are resolved, and the data is added to the global dataset for training the next iteration of the novice policy.

Datasets

The paper uses the f1tenth_gym simulator for training and evaluation. This simulator provides a two-vehicle competitive autonomous racing environment. The authors also mention using real-world experiments on the F1TENTH autonomous racing platform, collecting data under the ROS 2 environment.

Key Insights and Ideas

  • Realism of Imperfect Experts: The paper highlights that assuming a single perfect expert is unrealistic, and learning from multiple imperfect experts is a more practical and challenging problem.
  • Complementary Strengths: Even imperfect experts can have complementary strengths. By effectively filtering unsafe actions and resolving conflicts, MEGA-DAgger can learn a policy that combines the best aspects of different experts, leading to superior performance.
  • Safety First, Then Performance: The data filtering mechanism, based on CBFs, is crucial for ensuring safety. This allows the algorithm to learn robust policies even when experts occasionally exhibit unsafe behavior.
  • The Importance of Threshold Tuning: The cosine similarity threshold ($\epsilon$) for conflict resolution is a critical hyperparameter. A carefully chosen threshold allows the algorithm to leverage expert diversity without incorrectly conflating dissimilar states.

Key Results

  • Improved Overtaking and Collision Avoidance: MEGA-DAgger demonstrated significant improvements in both overtaking success rate and collision avoidance compared to vanilla HG-DAgger and even HG-DAgger with a data filter.
  • Better-Than-Expert Performance: Empirically, the learned policy using MEGA-DAgger outperformed all individual experts, achieving approximately 13.6% and 13.2% average improvement in collision avoidance and overtaking, respectively.
  • Robustness: The learned policies from MEGA-DAgger showed smaller standard deviations in performance metrics compared to individual experts, indicating greater stability.
  • Effectiveness of Components: Experiments showed that both the data filter and conflict resolution components contribute to improved performance, with MEGA-DAgger (combining both) outperforming HG-DAgger with only the data filter.

Limitations and Future Work

  • Heuristic Scores: The paper notes that the progress and safety scores used for conflict resolution are heuristic and not used as direct training feedback, unlike reward functions in reinforcement learning.
  • Future Work: The authors suggest exploring automatic learning of confidence scores for experts and conducting further experiments on real-world autonomous vehicles to reduce the sim-to-real gap. They also mention that the framework can be generalized to other autonomous systems beyond racing by adapting the safety and progress metrics.

Summary updated

BibTeX
@inproceedings{sun2024mega,
  author = {Xiatao Sun and Shuo Yang and Mingyan Zhou and Kunpeng Liu and Rahul Mangharam},
  title = {{MEGA-DAgger: Imitation Learning with Multiple Imperfect Experts}},
  booktitle = {ITSC},
  year = {2024},
  doi = {10.1109/itsc58415.2024.11414064},
}
Figure