TL;DR
This paper tackles the challenge of learning from multiple, diverse expert demonstrations in imitation learning. They propose a novel method using multi-marginal optimal transport to create a more robust "average" expert trajectory, outperforming the standard concatenation approach, especially when expert behaviors vary significantly.
What Problem Does This Paper Address?
Imitation learning (IL) aims to teach an agent a task by having it mimic expert demonstrations. A common IL approach involves defining a distance metric between the agent's behavior and the expert's, then training the agent to minimize this distance. Optimal Transport (OT) has emerged as a powerful tool for measuring these distances between trajectories. However, a key challenge arises when dealing with multiple expert demonstrations, especially if they exhibit diverse behaviors (e.g., different ways of achieving the same goal). The standard practice of simply concatenating these diverse trajectories can lead to a "noisy" or unrepresentative expert demonstration, potentially hindering the agent's learning. This paper addresses how to effectively combine multiple, potentially diverse, expert demonstrations to create a more reliable learning signal.
Methods
The authors propose two methods for combining expert demonstrations within an imitation learning framework, both building upon the Primal Wasserstein Imitation Learning (PWIL) algorithm.
- Sliced Concatenated Optimal Transport Imitation Learning (SCOTIL): This method follows the standard approach. It concatenates all expert state trajectories into a single, long trajectory. Then, it subsamples this concatenated trajectory to create a single "average" expert demonstration. The agent's learning is guided by rewards derived from the sliced Wasserstein distance between its own rollouts and this subsampled expert trajectory.
- Sliced Multi-Marginal Optimal Transport Imitation Learning (SMMOTIL): This is the paper's novel contribution. Instead of concatenating, SMMOTIL uses multi-marginal optimal transport to directly compare the agent's trajectory with all expert trajectories simultaneously. This allows for a more principled "geometric average" of the expert demonstrations, effectively computing a sliced Wasserstein barycenter. The rewards are derived from the sliced multi-marginal optimal transport distance between the agent's rollout and this barycenter.
Both methods use sliced optimal transport (a computationally efficient variant of OT) and generate pseudo-rewards for training a Deep Q-Network (DQN) agent.
Datasets
The experiments were conducted on two standard OpenAI Gym control environments:
- Pendulum-v0
- CartPole-v0
For each environment, the authors generated diverse expert demonstrations by varying:
- Agent length: This refers to the length of the pendulum or pole.
- Agent mass: This refers to the mass of the pendulum or cart.
They created five expert demonstrations for each variation (e.g., five experts with different pendulum lengths).
Key Insights and Ideas
- Concatenation is problematic for diverse experts: Simply merging multiple expert trajectories can create a misleading or noisy representation of the desired behavior, especially when experts exhibit significant variations.
- Multi-marginal OT offers a principled way to average: Using multi-marginal optimal transport allows for a more sophisticated and geometrically sound way to combine diverse expert demonstrations, leading to a more stable and representative "average" expert.
- Geometric averaging is more robust: The sliced Wasserstein barycenter computed by SMMOTIL provides a smoother and more reliable expert representation compared to the subsampled concatenated trajectory from SCOTIL.
- SMMOTIL leads to more stable learning: The proposed multi-marginal approach results in consistently higher rewards and lower variance in learning performance.
Key Results
The paper demonstrates that SMMOTIL consistently outperforms SCOTIL across all tested environments and expert variations.
- Higher Mean Rewards: In all experimental plots, SMMOTIL achieved higher mean moving rewards per episode compared to SCOTIL.
- Lower Variance and Increased Stability: SCOTIL exhibited higher variance in rewards and was observed to be unstable, whereas SMMOTIL provided a more stable learning process.
- Effectiveness with Diverse Experts: The performance gap between SMMOTIL and SCOTIL was particularly pronounced when the expert demonstrations were diverse (e.g., varying lengths or masses), highlighting the advantage of the multi-marginal approach in such scenarios.
Limitations and Future Work
- Limitations: The paper acknowledges that the standard concatenation method (SCOTIL) is problematic when expert demonstrations are diverse. The experimental evaluation is limited to two OpenAI Gym environments.
- Future Work: The authors suggest extending the evaluation to higher-dimensional environments like MuJoCo. They also propose exploring other metrics, such as sliced Gromov-Wasserstein distances, which could allow for comparing agents and experts living in different state spaces, while still maintaining an IRL approach.
Summary updated