arXiv:2610.41540cs.LGOct 2026

Manuscript Offprint

arXiv:2610.41540

FOCUS: First-Order Control Using Optimal Transport Supervision for Imitation from Observations

João A. Cândido Ramos, Lionel Blondé, Hugues Vinzant, Jacopo Castellini, Alexandros Kalousis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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-KK 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.

Figure

Figure 1: Aggregate performance of selected methods across four DFlex tasks. Curves show the interquartile mean (IQM) of expert-normalized return; shading indicates 95% confidence intervals. Progress is expressed as a percentage of each task's wall-clock budget (left) or interaction budget (right); the full comparison, budgets, and per-task results are reported in Appendix C.

1 Introduction

Imitation learning from observations (ILfO) must recover control from state-only demonstrations, without access to expert actions or known temporal correspondence between learner and expert trajectories. This makes supervision fundamentally ambiguous: the learner must determine both what behavior to imitate and where its current behavior corresponds to the demonstration.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: Physical Understanding for Decision-Making: Bridging Foundation Models and Reliable Agents.

Figure

Figure 2: Computational graph of FOCUS. A short agent rollout (green) is matched to sampled expert segments (orange, blue, yellow) using OT. Soft best-of-KK aggregation emphasizes well-aligned segments, and the resulting supervision is backpropagated through the simulator and policy (red arrows).

Optimal-transport (OT) methods are well suited to the alignment problem because they can compare trajectories or state distributions without requiring point-wise temporal correspondence [12, 39, 9, 15, 23, 7]. In practice, however, these methods typically convert transport costs into surrogate rewards and optimize the policy with zeroth-order RL, inheriting the sample inefficiency and high-variance updates of black-box policy optimization [36]. Adversarial ILfO methods similarly learn from state-only demonstrations through discriminator-derived rewards [52, 60, 6], but can be sensitive to reward modeling, discriminator stability, and tuning.

Differentiable physics simulators provide a complementary route by exposing path-wise policy gradients through the environment dynamics. Simulators such as Brax [16], Warp [35], and DFlex [56] have made this setting practical, while first-order control methods such as SHAC [56], AHAC [19], and SAPO [55] stabilize differentiable control through short-horizon rollouts and critic bootstrapping. These methods, however, assume access to an environment reward. Differentiable imitation already addresses some alignment challenges: GDTW-IL [10] matches observed trajectories through known dynamics, and ILD [8] combines unsynchronized state matching with truncated gradients, using behavior-cloning pretraining. DiffMimic [45] uses expert-aligned initialization and teacher forcing.

We focus on combining local alignment of state-only demonstrations with short differentiable rollouts and critic bootstrapping for contact-rich control. Directly differentiating a trajectory-level imitation loss through long contact-rich rollouts is particularly brittle, since contacts, numerical stiffness, and large early mismatches can produce unstable or uninformative gradients [59, 49, 25, 20].

We introduce FOCUS (First-Order Control Using Optimal Transport Supervision), which turns temporally unaligned state-only demonstrations into short-horizon differentiable supervision. Rather than matching complete trajectories, FOCUS compares each agent rollout window against multiple sampled expert segments using local OT. Softmin-weighted best-of-KK aggregation emphasizes locally compatible matches while retaining differentiability, reducing destructive updates from phase-shifted or unreachable segments. The resulting transport costs provide differentiable imitation rewards, and a learned critic bootstraps value beyond the local matching window. This formulation requires neither expert actions, temporally aligned trajectories, expert-aligned initialization, nor teacher forcing, and can operate even when only a single expert trajectory is available. Fig. 2 illustrates the resulting computational graph.

Across DFlex locomotion tasks [56], including the SNU Humanoid with 152 muscle actuators, FOCUS improves sample efficiency over adversarial ILfO and differentiable imitation baselines, with stable learning on the challenging humanoid tasks. These results support using simulator derivatives for high-dimensional state-only imitation.

References (52)