All selected work

Distribution-Matching Imitation Learning

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

OpenReview
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:

SWU2(ρπ,ρE)=1Km=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(KNlogN)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 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:

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.

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.

Imitation LearningOptimal TransportOccupancy Matching