TL;DR
The authors introduce OOPS (Observational Off-Policy Sinkhorn), an imitation learning algorithm that enables agents to learn complex behaviors purely from expert state trajectories—without observing expert actions. By leveraging optimal transport (via the entropy-regularized Sinkhorn distance) over state transitions $(s, s')$, OOPS generates a reliable, model-free proxy reward that integrates seamlessly into standard off-policy reinforcement learning, matching or outperforming state-of-the-art methods even with just a single demonstration trajectory.
What Problem Does This Paper Address?
In Imitation Learning from Observation (ILfO), an agent learns to perform a task by watching an expert, but without access to the specific actions the expert took. This is critical for robotics and sim-to-real domains where action spaces mismatch or recording actions is impractical.
However, ILfO is challenging: without action labels to clone, the agent starts from scratch, causing its early state visitation distribution to barely overlap with the expert's. Standard distribution-matching techniques (like Generative Adversarial Imitation Learning) rely on metrics such as KL or Jensen-Shannon divergence, which are ill-defined when distributions have disjoint supports. Existing fixes often introduce heavy, unstable components: adversarial discriminators, inverse dynamics models, or sample-inefficient on-policy reinforcement learning.
Methods
The authors propose a simplified, non-adversarial, model-free alternative:
- Optimal Transport & Sinkhorn Distance: OOPS frames ILfO as minimizing the Wasserstein distance between empirical trajectory measures of the learner and expert. To maintain computational efficiency, it computes the optimal transport coupling matrix $P$ using the iterative Sinkhorn algorithm (Cuturi, 2013).
- State Transition Trajectories: Rather than comparing individual states, OOPS represents trajectories as discrete sequences of state transitions $(s_t, s_{t+1})$. This preserves local temporal ordering and directionality without requiring actions.
-
Trajectory-Decomposed Reward: At each episode rollout, OOPS computes the coupling $P$ between the learner’s rollout $\tau_\pi$ and expert trajectory $\tau_E$. It generates per-timestep proxy rewards: $$r_t(s_t, s_{t+1}) = -\sum_j d((s_t, s_{t+1})_\pi, (s_j, s_{j+1})_E) P_{t,j}$$ where the distance metric $d$ is set to the square root of the Euclidean distance $\sqrt{\|\cdot\|_2}$.
-
Principled Off-Policy RL: Under the assumption of policy improvement, stale trajectory rewards from previous policies serve as an upper bound on the current Wasserstein distance. This theoretical justification allows the reward to be stored directly in a standard replay buffer and trained with off-policy RL algorithms (TD3 and DDPG).
Datasets
The authors evaluated their method across eight continuous control benchmarks:
- Five MuJoCo Locomotion Tasks: Hopper, Walker2d, HalfCheetah, Ant, and Humanoid (from the OpenAI Gym suite).
- Three Robotics Tasks: BipedalWalker (Gym) along with Minitaur and MinitaurDuck (PyBullet physics engine).
Expert datasets were generated using pre-trained Soft Actor-Critic (SAC) agents, evaluating regimes with 1, 4, and 10 state-only demonstration trajectories.
Key Insights and Ideas
- Simpler beats adversarial: Prior Wasserstein-based approaches (such as Sinkhorn Imitation Learning) argued that adversarial discriminator feature representations were essential to obtain meaningful metric spaces. The authors show this is incorrect: a raw geometric metric ($\sqrt{\|\cdot\|_2}$) combined with off-policy RL substantially outperforms adversarial variants (
OOPSadvdrops performance by over 70% in environments like Walker2d and HalfCheetah). - Transitions matter over states alone: Measuring occupancy over transitions $(s, s')$ prevents temporal permutation bugs (where matching states in arbitrary order appears optimal to the solver). In Walker2d, switching from transitions to state-only occupancy caused a 33.93% drop in performance.
- Sinkhorn offers a tighter bound than greedy matching: While prior methods like PWIL greedily match transitions online step-by-step, solving global transport via Sinkhorn provides a much tighter bound on the Wasserstein distance and yields superior stability.
Key Results
- Consistently beats ILfO baselines: Paired with TD3, OOPS+TD3 matches or exceeds state-of-the-art methods (including OPOLO, PWIL, and $f$-IRL) across all 8 environments.
- Single Demonstration Efficiency: With only 1 expert trajectory, OOPS achieves expert or near-expert returns (normalized score $\ge 0.95$) in Hopper ($0.98 \pm 0.02$), Walker2d ($0.95 \pm 0.09$), HalfCheetah ($1.05 \pm 0.01$), Ant ($1.00 \pm 0.03$), and Minitaur ($1.01 \pm 0.04$).
- Humanoid Performance: In the complex Humanoid benchmark (where OPOLO and PWIL fail with normalized scores $\le 0.20$), OOPS+TD3 achieves $0.74 \pm 0.04$ with a single demonstration and produces state-action Wasserstein distances under half that of competing approaches ($27.63$ vs. $54.94$ for PWIL and $81.90$ for OPOLO).
Limitations and Future Work
- Episode-level Computation: Computing the Sinkhorn coupling requires full trajectory rollouts before assigning rewards, making it unsuited for purely streaming, non-episodic environments.
- Horizon & Dimension Scaling: Optimal transport scales quadratically with horizon length $T$ without additional sparsification or projection schemes.
- Underlying RL Dependency: While OOPS generates clean proxy rewards, the policy is still bounded by the capability of the underlying RL algorithm (e.g., OOPS+DDPG struggled on Humanoid due to known architectural limitations of DDPG).
Summary updated