All selected work

Distribution-Matching Imitation Learning

Develops distribution-matching formulations of imitation learning, including sliced-Wasserstein objectives for occupancy matching.

OpenReview 2026 Post-Mortem
Status
Research manuscript

Problem

A policy π\pi and expert demonstrations induce occupancy measures ρπ\rho_\pi and ρE\rho_E. Distribution-matching imitation seeks

min⁡πd(ρπ,ρE).\min_\pi d(\rho_\pi,\rho_E).

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 u1,…,uKu_1,\ldots,u_K:

SW⁡U2(ρπ,ρE)=1K∑m=1KW22 ⁣((um)#ρπ,(um)#ρE).\operatorname{SW}_{U}^{2}(\rho_\pi,\rho_E) = \frac{1}{K}\sum_{m=1}^{K} W_2^2\!\left((u_m)_\#\rho_\pi,(u_m)_\#\rho_E\right).

Each projected problem is solved by sorting and rank-matching samples, giving approximately O(KNlog⁡N)O(KN\log N) computation for NN samples.

We turn the global discrepancy into a local learning signal. For a policy transition xtx_t, define

r(xt)=d(ρ^E,ρ^π)−d ⁣(ρ^E,rpl⁡(ρ^π,xt)),r(x_t) = d(\hat\rho_E,\hat\rho_\pi) - d\!\left(\hat\rho_E, \operatorname{rpl}(\hat\rho_\pi,x_t)\right),

where rpl⁡(ρ^π,xt)\operatorname{rpl}(\hat\rho_\pi,x_t) replaces one atom of the empirical policy occupancy measure by xtx_t. 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 −SW⁡U2-\operatorname{SW}_U^2, since the monotone transport maps themselves depend on ρπ\rho_\pi). 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:

EnvironmentSWILExpert
Ant4,3395,160
HalfCheetah7,4828,901
Hopper3,5853,607
Humanoid5,9526,250
Walker2d3,9364,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

Read the 2026 technical post-mortem: replacing heuristic rewards with exact 1D Kantorovich potentials on IsaacLab GPU PPO and RLVR

Imitation LearningOptimal TransportOccupancy Matching