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 original thesis formulation approximated this with frozen one-dimensional transport residuals (which serve as a heuristic proxy rather than the exact first variation of , since the monotone transport maps themselves depend on ). We also explored learned nonlinear projections to expose discrepancies that random directions miss, then optimized 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.
Limitations & 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.
Systems & Scale
- Framework & simulation
- CleanRL extension with MuJoCo locomotion, Adroit, and FrankaKitchen benchmarks.
- RL algorithm & training budget
- Soft Actor-Critic. The main MuJoCo comparison used one million training steps, five seeds, and ten evaluation rollouts. Training used one, four, or ten expert trajectories.
- Deployment & hardware
- Evaluation in simulation across locomotion and manipulation tasks.
- Code & artifacts
- OpenReview · Thesis chapter (PDF) · Publication and citation · 2026 exact-dual post-mortem