Distribution-Matching Imitation Learning
Develops distribution-matching formulations of imitation learning, including sliced-Wasserstein objectives for occupancy matching.
- Status
- Research manuscript
Problem
A policy and expert demonstrations induce occupancy measures and . Distribution-matching imitation seeks
Adversarial methods usually learn a discriminator between these evolving distributions. That density-ratio problem can be brittle when expert and policy trajectories have little support overlap. Wasserstein distances remain informative in that regime, but full optimal transport is expensive in high-dimensional state–action spaces.
Claim
We convert sliced-Wasserstein occupancy discrepancies into per-transition rewards suitable for ordinary off-policy reinforcement learning.
Method
Sliced Wasserstein distance replaces one high-dimensional transport problem with one-dimensional problems along projections :
Each projected problem is solved by sorting and rank-matching samples, giving approximately computation for samples.
We turn the global discrepancy into a local learning signal. For a policy transition , define
where replaces one atom of the empirical policy occupancy measure by . The reward is positive when inserting the transition moves the policy distribution closer to the expert distribution.
With fixed projections, the same construction can be expressed through one-dimensional transport residuals. Its expected reward equals the negative sliced Wasserstein discrepancy, so maximizing reward corresponds to minimizing the occupancy distance while the transport maps are held fixed. We also learn nonlinear projections that expose discrepancies random directions may miss, then optimize the resulting rewards with Soft Actor-Critic.
Evidence
We evaluated SWIL on five MuJoCo locomotion tasks using one, four, or ten expert trajectories. With one trajectory, the reported cumulative returns were:
| Environment | SWIL | Expert |
|---|---|---|
| Ant | 4,339 | 5,160 |
| HalfCheetah | 7,482 | 8,901 |
| Hopper | 3,585 | 3,607 |
| Humanoid | 5,952 | 6,250 |
| Walker2d | 3,936 | 4,064 |
Across these tasks, SWIL was competitive with the evaluated behavioral-cloning, GAIL, AIRL, DAC, PWIL, and IQ-Learn baselines. It remained effective on Ant and Humanoid after retaining only every twentieth or hundredth expert transition, corresponding to datasets of 50 or 10 transitions.
Failure modes
The results were not uniform. SWIL approached expert performance on Adroit door opening but was poor and high-variance on FrankaKitchen. It also depended strongly on the downstream RL algorithm: Soft Actor-Critic outperformed the tested PPO and TD3 variants.
The reward changes with the policy occupancy, and learned projections reintroduce a min–max problem. The result is therefore narrower than a general solution to distribution-matching imitation: sliced transport makes an occupancy discrepancy computationally practical and exposes it as a transition-level reward.
Paper
Imitation Learning using Generalized Sliced Wasserstein Distances, Ovinnikov, Terenin, and Buhmann.