FOCUS: First-Order Control Using Optimal Transport Supervision for Imitation from Observations
Organizations: University of Geneva, Switzerland (UNIGE) · University of Applied Sciences and Arts Western Switzerland (HES-SO)
Abstract
Imitation learning from observations must recover behavior from state-only demonstrations without known temporal correspondence. Differentiable simulators provide pathwise policy gradients, but differentiating through long, contact-rich trajectories can make optimization unstable. We introduce FOCUS, which combines local optimal-transport alignment with short-horizon differentiable actor-critic learning. FOCUS matches agent rollout windows to multiple sampled expert segments using a soft best-of- objective that emphasizes locally compatible matches. The resulting transport-based costs provide differentiable imitation rewards, while a learned critic bootstraps value beyond the rollout horizon. FOCUS requires neither temporally aligned trajectories nor expert-aligned initialization or teacher forcing. Across contact-rich locomotion tasks in DFlex, including a musculoskeletal humanoid controlled by 152 muscle activations, FOCUS improves sample efficiency and training stability over adversarial imitation-from-observation methods and prior differentiable imitation baselines.
Figures & tables
Appendix figures & tables24 assets
Supplementary material from the paper’s appendix.
Appendix
| Environment | Observation Space | Action Space | Expert Trajectories |
|---|---|---|---|
| # Trajectories Length | |||
| Hopper | 8 1000 | ||
| Ant | 8 1000 | ||
| Humanoid | 8 1000 | ||
| SNU Humanoid | 8 1000 |
| Environment | Mean return | Standard deviation |
|---|---|---|
| Hopper | 4812.97 | 7.32 |
| Ant | 9329.51 | 37.59 |
| Humanoid | 8225.22 | 81.05 |
| SNU Humanoid | 6498.92 | 49.13 |
| Hopper | Ant | Humanoid | SNU Humanoid | |
|---|---|---|---|---|
| Actor | (128, 64, 32) | (128, 64, 32) | (256, 128) | (512, 256) |
| Critic | (64, 64) | (64, 64) | (128, 128) | (256, 256) |
| SAMfO/ DACfO | OPOLO | GAIfO | MAAD | ILD | FOCUS- L2 | FOCUS- OT | |
|---|---|---|---|---|---|---|---|
| Expert seg. length | 32 | 32 | |||||
| Imitation loss | Disc | Disc | Disc | Disc | Chamfer- | L2 | OT- {L2, Cos} |
| Matching | |||||||
| Expert seg. count | 8 | 8 | |||||
| Discriminator | Critic † | Critic | Critic | Critic | |||
| Inverse model | – | Critic | – | Critic |
| Method | Setting | Hopper | Ant | Humanoid | SNU Humanoid |
| SAMfO/DACfO | Disc. update freq. | 5 | 5 | 10 | 10 |
| Expert batch size | 512 | 512 | 512 | 512 | |
| Subsampling factor | 20 | 1 | 1 | 20 | |
| OPOLO | Disc. update freq. | 5 | 5 | 5 | 5 |
| Expert batch size | 512 | 512 | 512 | 512 | |
| Subsampling factor | 20 | 20 | 20 | 20 |
| PWIL | LWAIL | OOPS | |
|---|---|---|---|
| RL backbone | SAC | DDPG (TD3-style) | DDPG (TD3-style) |
| Actor widths | Table 4 | Table 4 | |
| Critic widths | Table 4 | Table 4 | |
| Activation / norm | SiLU / LayerNorm | SiLU / LayerNorm | ReLU / none |
| Actor LR | 5e-4 | 3e-4 | 3e-4 |
| Critic LR | 5e-4 | 1e-3 | 3e-4 |
| PWIL | LWAIL | OOPS | |
|---|---|---|---|
| Agent–expert matching | atoms | atoms | |
| Reward | , | Wasserstein critic | Sinkhorn, scale 5 |
| Expert subsampling | 20 | 1 | 1 |
| Discriminator widths | – | Critic widths (Table 4 ) | – |
| Disc. optimizer / LR | – | Adam / 1e-3 | – |
| Gradient penalty | – | 10 | – |
| Method | Hopper | Ant | Humanoid | SNU Humanoid |
|---|---|---|---|---|
| SAMfO/DACfO | ||||
| OPOLO | ||||
| GAIfO | ||||
| MAAD | ||||
| PWIL | ||||
| OOPS |
| Method | Hopper | Ant | Humanoid | SNU Humanoid |
|---|---|---|---|---|
| SAMfO/DACfO | ||||
| OPOLO | ||||
| GAIfO | ||||
| MAAD | ||||
| PWIL | ||||
| OOPS |
| Method | Hopper | Ant | Humanoid | SNU Humanoid |
|---|---|---|---|---|
| critic-exp-l2 | ||||
| no-critic-exp-l2 | ||||
| critic-logexp-l2 | ||||
| no-critic-logexp-l2 | ||||
| critic-neg-l2 | ||||
| no-critic-neg-l2 |
| Setting | L2 | OT | OT | OT | OT | OT | OT |
|---|---|---|---|---|---|---|---|
| Matching step time | 0.162% | 0.668% | 0.689% | 0.691% | 0.724% | 1.025% | 1.850% |
| Method | Hopper | Ant | Humanoid | SNU Humanoid |
|---|---|---|---|---|
| FOCUS-L2 | ||||
| FOCUS-OT-L2 | ||||
| FOCUS-OT-Cos | ||||
| ZO-FOCUS-SAC-L2 | ||||
| ZO-FOCUS-SAC-OT-L2 | ||||
| ZO-FOCUS-SAC-OT-Cos |
| Environment | Coverage (%) | Rescue (%) | Mean phase error | |
|---|---|---|---|---|
| Hopper | 4 | 47.3 [44.9, 49.7] | 32.6 [30.2, 35.0] | 0.200 [0.190, 0.211] |
| 8 | 78.2 [76.5, 79.9] | 46.3 [43.6, 48.9] | 0.147 [0.139, 0.156] | |
| 16 | 95.8 [94.9, 96.6] | 56.6 [54.1, 58.8] | 0.118 [0.112, 0.124] | |
| Ant | 4 | 51.8 [49.8, 53.9] | 40.1 [38.0, 42.3] | 0.168 [0.162, 0.174] |
| 8 | 82.0 [80.2, 83.8] | 63.4 [60.9, 65.9] | 0.102 [0.098, 0.107] | |
| 16 | 97.7 [97.2, 98.3] | 81.4 [79.6, 83.3] | 0.073 [0.069, 0.078] |
| Environment | Period (steps) | Phase error | Phase error | Reduction factor |
|---|---|---|---|---|
| Hopper | 37 | 0.486 [0.486, 0.486] | 0.147 [0.139, 0.156] | |
| Ant | 23 | 0.478 [0.478, 0.478] | 0.102 [0.098, 0.107] | |
| Humanoid | 20 | 0.500 [0.500, 0.500] | 0.121 [0.116, 0.125] | |
| SNU Humanoid | 30 | 0.477 [0.477, 0.478] | 0.095 [0.092, 0.099] |
Imitation Learning
Imitation learning trains agents to perform tasks by learning from expert demonstrations, feedback, or observed behavior.
See all 268 papers