PAPER DEEP DIVE
PDM: Improved Adversarial Imitation Learning for Legged Robots via Parallel-Policy Distribution Matching
Adversarial imitation learning enables agents to acquire skills from expert demonstrations, but early discriminator saturation can leave policies with uninformative rewards. We introduce Parallel-Policy Distribution Matching (PDM), a multi-task reinforcement learning framework with separate tracking and downstream policies. Both policies are trained concurrently from scratch with distinct tracking and task objectives. The tracking policy follows reference motions and generates physically feasible trajectories online. Stochastic rollouts from both policies provide samples for discriminator training. We couple the policies through occupancy-measure matching and derive discriminator-based matching rewards for both. Simulation experiments show that the generated trajectories improve downstream tracking accuracy and that stochastic training samples help mitigate early discriminator saturation. In real-world experiments, the downstream policy preserved the desired motion style during locomotion, recovered from disturbances, climbed obstacles of varying heights, and executed a flip on command.
One-line summary
PDM trains a reference-tracking expert policy and a task-executing downstream policy concurrently from scratch, and uses a single discriminator to compare the state distributions of their stochastic rollouts and derive a distribution-matching reward. The expert generates physically feasible trajectories online in place of a fixed retargeted dataset, which mitigates early discriminator saturation; the downstream policy preserves motion style on hardware and completes blind stair traversal, box climbing, get-up and a commanded flip.
Background and motivation
Humanoid robots are meant for factories, warehouses and homes designed around people, and a human-like form is only useful if the robot can perform the corresponding whole-body skills. Reinforcement learning with hand-crafted objectives already produces agile behavior in massively parallel simulators, but every new skill needs a new objective, and motion qualities such as naturalness are hard to specify explicitly. Human motion data offer another source of supervision, used in two ways: feature-based tracking aligns a reference frame by frame, while adversarial imitation matches a state distribution.
DeepMimic established feature-based tracking, turning framewise errors of kinematic features into dense rewards, and this now supports dynamic skills on physical humanoids. Such policies are usually conditioned on a reference trajectory or phase, which conflicts with tasks that require departing from it. GAIL casts imitation as matching expert and policy occupancy measures, and AMP applies adversarial supervision to short motion transitions, so its discriminator output can serve as a style reward combined with a task reward. The trouble lies in the source of positive samples: kinematic retargeting maps human motion onto the robot and can introduce foot sliding, ground penetration and actuation-limit violations. The discriminator can exploit these artifacts to separate reference from policy samples instead of relying on behaviorally meaningful differences, so the reference and policy logits stay separated, the discriminator saturates early, and the style reward becomes uninformative.
Existing remedies fall into three families with different costs. The first changes the optimization objective — Wasserstein rewards, task-priority gradient projection, constraint-gated imitation — but leaves the underlying reference transitions unchanged. The second refines the data through kinodynamic or physics-aware optimization, or bilevel methods that jointly adapt retargeting parameters and a tracking policy, at the cost of an extra processing stage tied to a chosen dynamics model. The third uses rollouts from a trained teacher as executable supervision; StyleLoco, for example, trains a teacher first and then distills a student, so the teacher is trained beforehand and is not updated jointly with the downstream policy. None of these lets the reference distribution that supplies positive samples evolve online together with the policy.
PDM sits exactly here. It combines feature-based motion tracking with GAN-based motion imitation, concurrently training a tracking expert policy and a downstream task policy, each pursuing its own tracking or task objective, coupled through a KL-divergence regularizer on their state distributions. The discriminator is trained on stochastic rollouts from both policies, and its distribution-matching reward accounts for all input features when distinguishing samples. Tracking is used only during training to generate motion supervision for a separate downstream policy; the deployed downstream policy receives neither a reference frame nor a phase input. The authors observed that the downstream policy generates samples that challenge the discriminator, yielding a smaller logit gap and better preservation of the desired motion style on hardware.
The paper states three contributions. First, it offers a perspective on understanding and shaping discriminator behavior through the distribution of samples in its training buffer: stochastic rollouts prevent discriminator overfitting, while excessive action noise makes the matching reward less informative. Second, it extends occupancy-measure matching to concurrent training of a tracking policy and a downstream policy, and shows that a single discriminator provides matching rewards for both. Third, it evaluates PDM in simulation and on hardware, where the discriminator logits converge without early saturation and the downstream policies robustly execute diverse tasks with the desired style.
Preliminaries
Let $s\in\mathcal{S}$ be the robot state and $a\in\mathcal{A}$ the action. PDM trains two separate policies, each in its own MDP, sharing dynamics and action space: $\mathrm{MDP}_E=(\mathcal{S},\mathcal{A},P,r_E,\gamma_E,\mu_E)$ and $\mathrm{MDP}_D=(\mathcal{S},\mathcal{A},P,r_D,\gamma_D,\mu_D)$, both using the transition $s'\sim P(\cdot\mid s,a)$, with separate rewards $r_i$, discounts $\gamma_i$ and initial-state distributions $\mu_i$. The expert $a\sim\pi_E(\cdot\mid\boldsymbol{o}_E)$ is conditioned on a tracking goal (usually the reference motion states), while the downstream observation $\boldsymbol{o}_D$ contains a task-dependent command. $\rho_E$ and $\rho_D$ are the normalized discounted visitation distributions induced by rolling out each policy.
Distribution matching couples the policies through their state distributions. The overall objective maximizes the expected return of both policies while penalizing the symmetric KL divergence $\mathrm{KL}_{\mathrm{sym}}(\rho_E\|\rho_D)=\mathrm{KL}(\rho_E\|\rho_D)+\mathrm{KL}(\rho_D\|\rho_E)$. After decomposition, each policy is regularized by a reverse KL toward the other's distribution, penalizing samples that are unlikely under the other policy. When optimizing one policy the other's distribution is treated as fixed, so there is no gradient path between the two objectives: the return term determines what each policy should accomplish, and the KL term regularizes how it executes the behavior. For the downstream policy this separation permits departures from the nominal motion when the task requires them.
The key distinction is the source of $\rho_E$: it is induced by executing $\pi_E$ under the dynamics $P$, so it contains only states realized by the simulated robot, unlike the kinematically retargeted motion distribution derived from the reference set $\mathcal{M}$. This is the root of the difference in discriminator training dynamics that follows.
Method
Fig. 1 (paper Fig. 1): the PDM concept. The tracking reward moves the expert state distribution toward the reference state distribution (left), while distribution matching draws the downstream task policy's state distribution toward the evolving expert distribution over training iterations (right); the side panels show reference motions, expert rollouts and downstream hardware motions.
Overall objective and decomposition. The overall objective maximizes the expected return of both policies minus a symmetric-KL regularizer:
$$\max_{\pi_E,\pi_D}\ \mathbb{E}_{i\sim p(i)}\Big[\mathbb{E}_{\tau_i}\big[\textstyle\sum_{t=0}^{\infty}\gamma_i^t r_{i,t}\big]\Big]-\beta\,\mathrm{KL}_{\mathrm{sym}}(\rho_E\,\|\,\rho_D)$$where $p(i)$ is the probability of assigning an agent to $\mathrm{MDP}_i$. It is decomposed into two subproblems solved in parallel, each maximizing one policy's return with a KL regularizer:
$$J_E(\pi_E)=\mathbb{E}_{\tau_E}\Big[\textstyle\sum_t\gamma_E^t r_t^{\mathrm{track}}\Big]-\beta_E\,\mathrm{KL}(\rho_E\,\|\,\rho_D)$$ $$J_D(\pi_D)=\mathbb{E}_{\tau_D}\Big[\textstyle\sum_t\gamma_D^t r_t^{\mathrm{task}}\Big]-\beta_D\,\mathrm{KL}(\rho_D\,\|\,\rho_E)$$The expert tracks the reference motion $\mathcal{M}$ with the tracking reward $r_t^{\mathrm{track}}$, while the downstream policy pursues its task reward $r_t^{\mathrm{task}}$ and stays consistent with the robot-executable, physically feasible state distribution generated by the expert. The coefficients $\beta_E$ and $\beta_D$ balance each policy's return against its regularizer separately. Excessive regularization can collapse both policies to a degenerate solution in which their state distributions match but neither completes its task.
KL as a return. The state densities are unknown and depend on the policies through the non-differentiable dynamics $P$, so the KL terms are intractable. Using the successor measure (Appendix IX-A), the downstream KL regularizer is written as a negative expected return:
$$\mathrm{KL}(\rho_D\,\|\,\rho_E)=-(1-\gamma_D)\,\mathbb{E}_{\tau_D}\Big[\textstyle\sum_t\gamma_D^t\log\frac{\rho_E(s_t)}{\rho_D(s_t)}\Big]$$The log ratio inside the expectation defines the downstream distribution-matching reward $\bar r_D(s)=\log\frac{\rho_E(s)}{\rho_D(s)}$, positive for states more likely under the expert than under the downstream distribution. Absorbing the positive constant $1-\gamma_D$ into $\beta_D$ turns the KL regularizer into a per-step reward estimable after each environment step, giving $J_D=\mathbb{E}_{\tau_D}\big[\sum_t\gamma_D^t(r_t^{\mathrm{task}}+\beta_D\bar r_D(s_{D,t}))\big]$.
Log-ratio estimation from policy rollouts. Whereas GAIL/AMP train the discriminator to separate reference-motion samples from policy samples, PDM trains it to separate states sampled from the two policies. The discriminator is parameterized by its logit, $D_\varphi(s)=\sigma(z_\varphi(s))$, predicting the probability that a state was drawn from $\rho_E$ rather than $\rho_D$, and is trained with binary cross-entropy plus a gradient penalty:
$$\mathcal{L}(\varphi)=-\mathbb{E}_{s\sim\rho_E}[\log D_\varphi(s)]-\mathbb{E}_{s\sim\rho_D}[\log(1-D_\varphi(s))]+\lambda_{\mathrm{GP}}\mathcal{L}_{\mathrm{GP}}$$ $$\mathcal{L}_{\mathrm{GP}}=\mathbb{E}_{s\sim\rho_E}\big[\|\nabla_s z_\varphi(s)\|_2^2\big]+\mathbb{E}_{s\sim\rho_D}\big[\|\nabla_s z_\varphi(s)\|_2^2\big]$$The gradient penalty is applied to samples from both $\rho_E$ and $\rho_D$ to keep the reward smooth in regions visited by the policies. For fixed $\rho_E,\rho_D$ and omitting the gradient penalty, the optimal discriminator is $D^*=\rho_E/(\rho_E+\rho_D)$; solving for the density ratio gives:
$$\bar r_D=\log\frac{D^*}{1-D^*}\approx\log\frac{\sigma(z_\varphi)}{1-\sigma(z_\varphi)}=z_\varphi$$The discriminator logit is therefore an estimate of the distribution-matching reward, with accuracy depending on how closely $D_\varphi$ approaches $D^*$. Exchanging the roles of the two distributions, the expert's matching reward is $\bar r_E=\log(\rho_D/\rho_E)\approx -z_\varphi$. Since $D_E=1-D_\varphi$, no separate discriminator is needed for the expert: both matching rewards come from the same logit $z_\varphi$.
Reward mapping. The raw logit can decrease sharply and become negative during training, and negative rewards can shorten episodes, so the logit is mapped through $f_D$ to a nonnegative reward $r_{D,t}^{S}=f_D(z_\varphi(s_{D,t}))$. The paper uses the clipped linear mapping $f_D(z)=0.25(\max(z,-2)+2)$; for comparison with AMP it also uses the logarithmic mapping $f_D(z)=-\log(1-\sigma(z))$, which corresponds to minimizing the Jensen–Shannon divergence between $\rho_E$ and $\rho_D$. In simulation the two mappings produced only small differences in training logits and tracking performance. The expert side uses $f_E(z)=f_D(-z)$.
Fig. 3 (paper Fig. 3): three logit-to-reward mappings. Solid lines are the identity $f_D(z)=z$, dotted lines the clipped linear map (downstream clipped to 0 for $z<-2$), dashed lines the logarithmic map; orange is the downstream $f_D$, blue the expert $f_E(z)=f_D(-z)$. Both the clipped and logarithmic maps keep the reward nonnegative.
Final rewards and one-way coupling. Substituting the mapped rewards gives the final rewards of the two MDPs:
$$r_{E,t}=r_t^{\mathrm{track}}+\beta_E f_E(z_\varphi(s_{E,t})),\qquad r_{D,t}=r_t^{\mathrm{task}}+\beta_D f_D(z_\varphi(s_{D,t}))$$The real-world experiments set $\beta_E=0$, so the expert reward reduces to pure $r_t^{\mathrm{track}}$ and the downstream policy no longer affects the expert; the downstream reward still draws the downstream policy toward the expert distribution through $f_D$, so the coupling is one-way and information flows only from expert to downstream.
Fig. 2 (paper Fig. 2): PDM overview. The expert policy $\pi_E$ and downstream policy $\pi_D$ interact with the same randomized robot dynamics and action space but keep separate MDPs, parameters and PPO updates; a single discriminator $D_\varphi$ learns to separate the expert distribution $\rho_E$ from the downstream distribution $\rho_D$, and its logit $z$ is mapped by $f_E$ and $f_D$ to the distribution-matching rewards of the two branches.
Training procedure. In each iteration of Algorithm 1, 8,192 parallel environments are reassigned to $\mathrm{MDP}_E$ or $\mathrm{MDP}_D$ at every reset with a fixed probability of 0.5, giving 4,096 per branch in expectation rather than a fixed partition. Because some domain-randomization terms are sampled only once at startup, this reassignment exposes both branches to the full randomization ranges. The expert collects trajectories $\tau_E$ tracking $\mathcal{M}$ in its assigned environments and the downstream collects equal-length $\tau_D$; at every step the current discriminator evaluates the logits of visited states, the rewards in (11) are computed and recorded, and the visited states are stored in the discriminator buffers $\mathcal{B}_E,\mathcal{B}_D$. The discriminator is updated for $N_{\mathrm{disc}}$ steps on mini-batches sampled from the two buffers, then each policy and its critic ($V_E$, $V_D$) are updated with PPO. Both policies are trained from scratch in the reported experiments; PDM also supports initialization from a well-trained policy (held fixed to collect rollouts, or fine-tuned), which raises the early-training logit magnitude before the logits converge to the equilibrium value.
flowchart TB
subgraph ENV[8192 parallel envs reassigned at reset with p=0.5]
E[Expert branch MDP_E 4096 envs in expectation]
D[Downstream branch MDP_D 4096 envs in expectation]
end
REF[Reference motion M LAFAN1 + own mocap basic kinematic retargeting] --> E
E -->|tracking reward r_track| RE[Expert rollout stochastic action sampling]
D -->|task reward r_task| RD[Downstream rollout stochastic action sampling]
RE -->|states s_E| BE[Buffer B_E replay 200k + new 20k]
RD -->|states s_D| BD[Buffer B_D]
BE --> DISC[Single discriminator D_phi BCE + two-sided gradient penalty history H=3]
BD --> DISC
DISC -->|logit z_phi| MAP[Reward map f_D and f_E clipped linear nonnegative]
MAP -->|beta_E f_E| RE
MAP -->|beta_D f_D| RD
RE --> PPOE[PPO update pi_E and V_E]
RD --> PPOD[PPO update pi_D and V_D]
PPOE --> E
PPOD --> D
DISC --> UPD[Discriminator update N_disc steps]
UPD --> DISC
RD -.->|deploy downstream only no reference no phase| HW[PM01 hardware proprioception + task command]
Networks and inputs. The expert and downstream actors and critics, and the discriminator, are MLPs with hidden layers of 512, 256 and 128 units and ELU activations, with inputs normalized by running mean/std estimates. Both branches use asymmetric actor–critic training, where each critic also receives privileged simulation quantities. The discriminator feature vector $\Phi(s_t)$ is constructed identically for expert and downstream samples from ground-truth simulator values — root height, root linear velocity, root angular velocity, gravity direction, joint positions/velocities, and key-body poses/velocities — over a history of $H=3$ steps. The downstream actor receives only quantities available on the robot: it does not observe $\mathcal{M}$, expert samples, a reference frame or phase, no terrain input in blind stair locomotion, and no box height in box climbing. Observation noise is added only to the downstream actor; the expert actor, discriminator and both critics receive noise-free observations. The downstream actor's ankle-joint velocity inputs are set to zero to mitigate the mismatch between the simulated ankle model and the parallel-ankle mechanism on hardware. After training, only the downstream policy is deployed.
Rewards and reference motions. The tracking reward sums exponential kernels of squared framewise errors (root position/orientation, key-body position/orientation/linear velocity/angular velocity); the body-pose terms first translate the reference horizontally and rotate it about the vertical axis to align its root with the robot root in horizontal position and heading while retaining the reference root height, so they are unaffected by horizontal or heading drift. The task reward specifies task completion without an online reference: jumping, crawling, recovery, box climbing and the flip use only the central terms of Table I with no style shaping, to isolate the effect of distribution matching; flat-terrain walking and blind stair locomotion add auxiliary style-shaping terms such as foot clearance and stance duration, and AMP is trained with the same terms for a fair comparison. The regularization reward penalizes undesired contacts, action rate/smoothness, joint limits/acceleration/torque/energy/velocity, and body sliding. Reference motions are prepared with basic kinematic retargeting, primarily from the LAFAN1 dataset trimmed per task, with the remaining clips collected by a motion-capture device; the tracking expert learns to execute the references under domain randomization, compensating retargeting inaccuracies and accounting for dynamics and contact constraints.
Experimental results
Simulation comparison setup. The simulation retrained all methods with MimicKit (which provides a well-tuned AMP implementation), reimplementing PDM per Section III: the downstream policy and discriminator use the AMP baseline parameters, and the tracking policy uses the DeepMimic pipeline. Two adversarial baselines are compared — AMP (expert data is the kinematically retargeted clip, fixed before optimization and unchanged throughout) and AMP-Rollout (a tracking policy is first trained with DeepMimic, then evaluated with deterministic action sampling to generate the trajectory the robot actually executed, used as the entire fixed expert dataset). PDM instead trains both policies concurrently from scratch with stochastic online expert sampling, and part of its rollout replaces the expert buffer. Single-clip imitation is evaluated on 12 clips across three platforms (Humanoid, G1, Go2) with three random seeds per configuration, about 2 billion training samples; the logarithmic reward mapping is used consistently in the mechanism experiments. The metrics are the tracking position error $e_t^{\mathrm{track}}$ (global root-position error plus root-relative joint-position errors) and the discriminator-separability diagnostic $D^{\mathrm{KL}}_{\mathrm{sym}}$:
$$e_t^{\mathrm{track}}=\frac{1}{N_J+1}\Big(\|\hat{\boldsymbol{p}}_t^{\mathrm{root}}-\boldsymbol{p}_t^{\mathrm{root}}\|_2+\textstyle\sum_{j}\|(\hat{\boldsymbol{p}}_t^{j}-\hat{\boldsymbol{p}}_t^{\mathrm{root}})-(\boldsymbol{p}_t^{j}-\boldsymbol{p}_t^{\mathrm{root}})\|_2\Big)$$ $$D^{\mathrm{KL}}_{\mathrm{sym}}=\begin{cases}\mathbb{E}_{\rho_E}[z^*]-\mathbb{E}_{\rho_D}[z^*],&\text{PDM}\\ \mathbb{E}_{\mathcal{M}}[z^*]-\mathbb{E}_{\rho_D}[z^*],&\text{AMP/AMP-Rollout}\end{cases}$$Because each policy is trained against its own discriminator, $D^{\mathrm{KL}}_{\mathrm{sym}}$ is only a relaxed cross-method comparison, indicating overall trends rather than a strict ranking.
| Method | Expert data source | Action sampling | Clips with lower tracking error than AMP | Clips with smallest $D^{\mathrm{KL}}_{\mathrm{sym}}$ |
|---|---|---|---|---|
| AMP | Fixed kinematically retargeted data | — | baseline | 0/12 |
| AMP-Rollout | Pretrained tracking-policy rollout (fixed) | Deterministic | 6/12 | 0/12 (smaller than AMP on 10/12) |
| PDM | Online tracking rollout (evolving) | Stochastic | 7/12 | 12/12 |
Table 1 (paper Section V-A, after ~2B samples): PDM achieved lower tracking error than AMP on 7 of 12 clips, AMP-Rollout on 6 of 12. Both reduced the error most on the Cartwheel and Kick Combo clips of Humanoid and G1, where AMP-Rollout achieved the lowest error. On Run and Walk, AMP was comparable to or lower than AMP-Rollout. PDM obtained the smallest $D^{\mathrm{KL}}_{\mathrm{sym}}$ on all 12 clips.
Fig. 4 (paper Fig. 4): tracking position error versus $D^{\mathrm{KL}}_{\mathrm{sym}}$ on 12 clips across three platforms (log-log axes). PDM (circles) sits at smaller logit gaps overall; physically executable references helped most on Cartwheel and Kick Combo, and less on Run and Walk where the retargeted trajectories were already within the robot's capabilities.
Training dynamics. The most distinct difference is discriminator-logit convergence. The demo and agent logits of AMP/AMP-Rollout stay separated (early saturation), while PDM's logits converge near the equilibrium value. UMAP visualization shows the two policies initially occupying different regions of state space, their distributions moving closer during training, the tracking reward guiding the expert to produce transitions near the reference, and the downstream policy — using only the matching reward — tracking the evolving expert distribution and eventually reproducing the reference trajectory; the AMP baselines match the reference distribution directly and suffer early saturation. The authors note that pure tracking is a special case where logits can reach equilibrium, whereas with an additional task reward the agent may omit some motions and leave a larger reverse-KL gap.
Fig. 5 (paper Fig. 5): demo (solid) and agent (dashed) discriminator logits of AMP, AMP-Rollout and PDM versus training samples (×10⁹) on 12 clips. AMP/AMP-Rollout logits remain separated; PDM (red) converges near 0.
Fig. 6 (paper Fig. 6): UMAP of expert and downstream state transitions on the G1–Run clip. (a)(b) Expert/downstream samples at iterations 500, 1k, 2k, 5k, 40k with the reference motion (Demo); (c)–(f) both policies and the reference at each iteration. The distributions move closer over training and the downstream eventually reproduces the reference.
Stochastic action-noise ablation. To isolate the effect of action sampling in the expert rollouts, the expert was loaded from the same well-trained 20k-iteration checkpoint and held fixed while the action standard deviation $\sigma$ was varied. Under deterministic sampling ($\sigma=0$) the expert and downstream logits initially approach equilibrium then rapidly diverge before stabilizing, similar to AMP, and the SHAP importance shows sharp peaks. As $\sigma$ increases to the matched value of 0.05, the logits stabilize progressively closer to zero and the discriminator loss reaches higher plateaus near 0.69 (i.e. $\ln 2$), state-space coverage broadens, and SHAP importance becomes more evenly distributed across features and the horizon. At $\sigma=0.1$ the expert success rate drops to zero. The final downstream tracking error is lowest at $\sigma=0.03$ and increases at larger $\sigma$. The conclusion: stochastic sampling increases expert-trajectory diversity and the overlap between expert and downstream distributions, reducing discriminator overfitting to the narrow set of expert states; but excessive noise degrades expert-motion fidelity and limits the benefit. Even a well-trained expert can limit matching performance if its samples are generated deterministically or with large action noise.
Fig. 7 (paper Fig. 7): effect of the expert action standard deviation $\sigma$ on G1–Run. (a)–(f) PCA of expert state occupancy and the reference; (g)–(l) absolute SHAP importance (%) of discriminator input features; (m) expert success rate; (n) final downstream tracking error. Larger $\sigma$ broadens coverage and evens out importance, but at $\sigma=0.1$ the expert success rate reaches zero.
Mixing-ratio ablation. The expert reward mixes tracking and matching as $r_E=(1-\beta_E)r_{\mathrm{track}}+\beta_E f_E$, tested on G1–Run for $\beta_E\in\{0.15,0.25,0.5,0.75,0.9,1\}$. For $0.15\le\beta_E\le0.75$ the tracking reward stays between 0.86 and 0.87 while the discriminator reward stays near 0.69 for every tested $\beta_E$ — a larger $\beta_E$ reduces tracking accuracy without increasing the discriminator reward. For $\beta_E\le0.9$ the downstream tracking error stays between 0.031 and 0.043 m; as $\beta_E$ approaches 1 both errors increase sharply, and at $\beta_E=1$ both policies fail to complete the task. The downstream tracking accuracy depends on that of the expert: when the expert loses tracking accuracy, the downstream loses it as well.
Fig. 9 (paper Fig. 9): effect of the mixing ratio $\beta_E$ on expert/downstream tracking errors (solid, left axis) and final tracking/discriminator rewards (dashed, right axis). For $\beta_E\le0.9$ the downstream error stays at 0.031–0.043 m; at $\beta_E=1$ both policies fail and the errors jump to about 0.14 m.
| $\beta_E$ range | Tracking reward $r_{\mathrm{track}}$ | Discriminator reward $f_E$ | Downstream tracking error | Outcome |
|---|---|---|---|---|
| 0.15–0.75 | 0.86–0.87 | ≈0.69 | 0.031–0.043 m | Larger $\beta_E$ lowers tracking, does not raise discriminator reward |
| 0.9 | slightly lower | ≈0.69 | 0.031–0.043 m | Downstream still stable |
| 1.0 | drops sharply | — | sharp rise (~0.14 m) | Both expert and downstream fail |
Table 2 (paper Section V-D, G1–Run): mixing-ratio ablation. Downstream tracking accuracy follows expert tracking accuracy; a pure discriminator reward ($\beta_E=1$) collapses both policies.
Real-world setup. The hardware experiments run on the PM01 humanoid (~42 kg, ~1.5 m standing height, 23 joints: five per arm, six per leg, one in the torso), trained with RSL-RL + IsaacLab in about 20 hours on a single RTX 4090 with 8,192 environments. Domain randomization includes static/dynamic friction, restitution, base CoM offset, joint stiffness/damping scales, pushes at random intervals, and action delay [0.02,0.08] s; blind stair locomotion and box climbing additionally randomize terrain geometry — stair heights [0,0.25] m (reference 15–20 cm) and box heights [0.4,0.8] m (reference fixed at 0.4 m). Observation noise is added only to the downstream actor, and ankle-joint velocity inputs are zeroed. After training, only the downstream policy is deployed, using proprioceptive observations and task commands.
Blind stairs and box climbing. For both tasks the downstream policy is an MLP that handles terrain contacts through proprioceptive feedback alone, without terrain geometry, exteroceptive observations or reference trajectories. Blind stair locomotion builds on flat-terrain walking, with the expert additionally tracking stair-ascending and descending trajectories of 15–20 cm steps, and the deployed policy generalizes to stair heights absent from the reference. Box climbing tests generalization to platform heights different from the reference: the task reward only encourages raising the base and placing the feet on the top surface, and the same policy climbs both a 0.40 m platform matching the reference and a 0.56 m platform 40% higher — hands on the top surface, legs brought up, rising to stand — preserving the reference climbing structure without observing the box height; the robot retried the step when a leg failed to reach the top. With the same reward and retargeted reference, AMP did not achieve the climbing goal in simulation.
Fig. 11c (paper Fig. 11c): the same downstream policy climbs a 0.40 m platform matching the reference motion — hands on the top surface, legs brought up, rising to stand.
Fig. 11d (paper Fig. 11d): the same policy climbs a 0.56 m platform, 40% higher than the reference, preserving the climbing structure without observing the box height.
Get-up and disturbance recovery. A single clip trains the robot to get up from a face-down posture; the recovery reward only rewards an upright trunk and stable standing without prescribing the recovery motion, leaving the discriminator to constrain how the robot reaches these states. The AMP policy trained under the same conditions became stuck in an unnatural configuration in simulation, bending its body and supporting it with its head. The PDM downstream policy produces natural behavior after large state deviations: although trained only to get up, natural recovery also emerged when the robot was pushed — after a mild push it regains a stable stance within a few steps, and after a strong push it falls and returns to standing through a kneeling posture. The robot adapts its recovery to the push intensity, and both responses use coordinated, natural motions that the task reward does not specify.
Fig. 12a (paper Fig. 12a): the robot gets up from the ground. The recovery reward specifies only an upright trunk and stable standing; the recovery motion is constrained by the distribution-matching reward.
Walking style consistency (CoT). The mechanical cost of transport (CoT) time profile is used as indirect quantitative evidence of gait regularity and periodicity, comparing AMP and PDM walking policies trained with the same task reward including auxiliary style-shaping terms. $\mathrm{CoT}_t=\frac{\sum_j(\tau_{j,t}\dot q_{j,t})^+}{m\,|v_{x,t}|}$ retains only positive mechanical power. At commanded velocities of 0.5, 1.0 and 1.5 m/s, the PDM trace consists of regular periodic peaks separated by low values, while the AMP trace shows broad high-CoT plateaus at 0.5 m/s and fluctuates between its main peaks at 1.0 and 1.5 m/s. The mean CoT over the displayed interval is lower for PDM at every velocity.
Fig. 13 (paper Fig. 13): CoT of AMP (left column) and PDM (right column) at commanded forward velocities 0.5, 1.0, 1.5 m/s (top to bottom). Red solid curves are instantaneous CoT, black dashed lines the interval mean. PDM shows regular periodic peaks; AMP shows broad plateaus and fluctuations.
| Commanded velocity | AMP mean CoT | PDM mean CoT |
|---|---|---|
| 0.5 m/s | 3.74 | 1.83 |
| 1.0 m/s | 2.66 | 1.98 |
| 1.5 m/s | 3.03 | 2.72 |
Table 3 (paper Section VI-C, 5 s steady-state interval of a 20 s simulated walk): PDM has lower mean CoT than AMP at all three velocities and maintains regular periodic walking. CoT does not directly measure style; it is indirect evidence of gait regularity.
Flat-terrain skills and the flip. Walking, two-leg jumping and crawling are trained by simply substituting the corresponding reference motions into the same PDM procedure, with no auxiliary style-shaping rewards for jumping and crawling — the distribution-matching reward makes the policy produce different motion styles and contact patterns without manually designed gait-phase or leg-threshold rewards. The forward flip is initiated by a trigger command that resets once the flip is completed; the task reward specifies trunk pitch during rotation (the target $\hat\theta_{\mathrm{pitch}}(t)$ progresses from 0 to $2\pi$) and a stable feet-first landing, without prescribing the full-body motion. The downstream policy is sometimes prone to mode collapse (for example toward moving forward) and often omits key frames of the reference — a limitation common to adversarial imitation methods. With this minimal task reward and under extensive domain randomization and action delay, PDM still learned the flip, whereas AMP did not complete it even with substantially longer training.
Fig. 14 (paper Fig. 14): snapshots of a real-world forward flip on PM01, from takeoff (t=0.00 s) to stable standing (t=1.95 s). A trigger command initiates it; trunk pitch 0→2π and feet-first landing are specified by the task reward, while the full-body motion is guided by distribution matching.
Limitations
Author-stated (Section VII). First, training cost: training both policies from scratch requires separate PPO updates at each iteration, so an iteration in the current implementation takes about 1.5–2 times as long as single-policy training; a pretrained tracking policy can instead generate rollouts during downstream training, moving that PPO cost to a separate pretraining stage. Second, task scope: the method is evaluated on a limited set of real-world tasks using only proprioceptive observations; more complex tasks in human environments, such as carrying a box or climbing onto a high table, may require both reference motions to guide behavior and exteroceptive feedback to adapt to object geometry and location. Third, mode collapse: a separate discriminator is trained per task using a small set of task-specific reference clips, and the downstream policy may still exhibit mode collapse and reproduce only a narrow subset of the behaviors in those clips; the authors plan to build on latent representations and terrain conditioning, and to test whether parallel-policy training helps perform multiple tasks within a shared command space and combine learned skills.
Author-stated (Sections V and VI). A gap remains between PDM and AMP-Rollout on Cartwheel/Kick Combo, which the authors attribute to a possibly insufficient training budget for the tracking policy to converge and to the stochastic rollout buffer possibly suppressing tracking performance; longer training may further reduce the error at the cost of additional time. Mode collapse in the flip task is a common problem of adversarial imitation methods that PDM only indirectly mitigates. $D^{\mathrm{KL}}_{\mathrm{sym}}$ is a relaxed diagnostic rather than a strict ranking, since each policy is trained against its own discriminator.
Editorial analysis (kept separate from the paper's evidence). Two caveats are worth carrying when citing these results. The simulation comparison uses MimicKit while the real-world experiments use RSL-RL + IsaacLab — two toolchains — so the per-clip win counts in simulation and the hardware task results do not come from a single unified setup. In simulation the AMP baseline learned several downstream tasks poorly or failed under the extreme minimal-reward settings, which is why the paper switched to MimicKit for a fair retrain; the claim that "PDM learns tasks where AMP fails" is therefore bounded to that minimal-reward setting and should not be extrapolated to AMP with more elaborate task rewards. These are boundaries the paper already labels, not additional defects.
Conclusion and outlook
PDM targets early discriminator saturation in adversarial imitation learning for legged robots: saturation occurs when the discriminator relies on a few features that readily distinguish reference motions from policy rollouts. To limit this reliance, PDM trains the discriminator on stochastic rollouts from both the tracking and downstream policies under the same robot model and physics simulator, so its logit approaches the equilibrium implied by its loss, and the resulting distribution-matching reward helps the downstream policy preserve the desired motion style while achieving its task goals. In simulation, physically feasible trajectories improved tracking accuracy and downstream performance but only slightly reduced the logit gap; with stochastic rollouts all input features contributed to the discriminator's judgments of downstream samples; higher action noise reduced tracking accuracy. On hardware, the downstream policy performed tasks the baselines struggled on, maintained more consistent motion patterns across the tested command range in both level-ground and blind locomotion, and executed a flip in response to a trigger command.
The directions worth tracking are the ones the authors point to: incorporating exteroceptive observations to support a broader range of real-world tasks while preserving a human-like motion style; building on latent representations and terrain conditioning to mitigate mode collapse; and pushing parallel-policy training toward multiple tasks within a shared command space and skill composition. For teams working on legged imitation learning, the direct value of PDM is replacing the discriminator's positive samples — from a dataset fixed before training to stochastic trajectories the expert policy generates online — so that the downstream policy preserves motion style and completes diverse tasks without refined retargeting data or stacked hand-crafted style rewards.
Replace the discriminator's positive samples — from a dataset fixed before training to stochastic trajectories the expert policy runs online — and a saturated discriminator becomes informative again, letting the downstream policy keep its motion style.
SOURCE LINKS



