Sam Babichenko

Reading notes / Running RL at scale

SuperMimic

Liao et al., 2026

Robot and task
ttcontrol step, 0.02 s long (50 Hz)
sts_tsimulator state at step tt
oto_tproprioceptive observation the policy receives at step tt, the last 10 steps of joint and base readings
oˉt\bar o_tthe observation at step tt without sensor noise
ηt\eta_tsensor noise at step tt, uniform of known range, with ot=oˉt+ηto_t=\bar o_t+\eta_t
gtg_tgoal at step tt, for motion tracking the next 10 frames of the reference motion
ata_taction at step tt, a normalized setpoint for every joint about its default angle
εt\varepsilon_tGaussian exploration noise added to the action during data collection only
ξ\xisim context, the episode's domain-randomization parameters (friction, calibration offsets, torso center of mass)
rt+1r_{t+1}reward for the action at step tt, BeyondMimic's tracking reward
dtd_ttermination flag, 1 if the state at step tt is terminal
ctc_tsurvival weight, 1 until the episode terminates and 0 after
γ\gammadiscount factor
J(θ)J(\theta)expected discounted, survival-weighted return in the simulator
World model, policy and critic
θ\thetapolicy weights
πθ\pi_\thetadeterministic policy, mapping observation and goal to an action
pθp_\thetaaction density of a stochastic policy, as PPO uses
B\mathcal Breplay buffer of simulator transitions
ω\omegaworld-model weights
fωf_\omegalearned dynamics network, mapping predicted state, action and sim context to the next predicted state
s^t\hat s_tworld model's predicted state at step tt
r^t+1\hat r_{t+1}world model's predicted reward for the action at step tt
oˉ^t\hat{\bar o}_tworld model's predicted noise-free observation at step tt
d^t\hat d_tworld model's predicted probability that the state at step tt is terminal
c^t\hat c_tsurvival weight built from the predicted termination probabilities
kklength of the replay windows the world model is fit on
LWM\mathcal L_{\rm WM}world-model loss, summed over a kk-step window
HHimagination horizon, steps per imagined rollout
J^(θ)\hat J(\theta)imagined return over HH model steps plus the critic's estimate of the rest
VψV_\psicritic, the estimated return from a state given goal and sim context
ψ\psicritic weights
R^t\hat R_tcritic's training target at step tt, a λ\lambda-return over the imagined steps
λ\lambdaparameter of the generalized advantage estimation recursion for the critic's targets
A^t\hat A_tPPO's advantage estimate for the action at step tt
Constants
k=8k=8replay-window length of the world-model fit
H=32H=32default imagination horizon, 0.64 s
γ=0.99\gamma=0.99discount of JJ and of the imagined return
λ=0.95\lambda=0.95parameter of the critic's targets
0.10.1standard deviation of the action noise in each dimension
40964096simulated environments per GPU, and imagined rollouts per policy update
0.820.82target normalized return of the LAFAN1 comparisons

Context. General-purpose humanoid controllers are often trained by physics-based motion imitation, in which an RL policy controls a simulated robot and is rewarded at every step for matching the poses and velocities of a reference clip, here human motion capture retargeted to the robot's body. A broader library of clips produces a more capable controller. Standard pipelines train that controller with proximal policy optimization, a policy-gradient method that samples actions from a stochastic policy, weights the gradient of each action's log-probability by its advantage, and clips each update so the policy moves only a little. Reading note: PPO and RLOO for language models in a simulator. Every clip runs on the same body with the same contact physics. PPO keeps no model of those dynamics and estimates action effects from noisy rollouts, so more motions mean more compute. a humanoid motion tracker trained with PPO on a large motion library, which showed that scaling motion data, policy size and training compute together gives a general controller that runs on hardware (Luo et al., 2026), the state-of-the-art baseline here, trained for about 168 hours on 128 GPUs, roughly 21,000 GPU-hours.

SuperMimic (Liao et al., 2026) learns that shared physics once. A single differentiable a neural network trained to predict the simulator's next state, reward, observation and termination from the current state and action, so that rollouts can be run, and differentiated, without the simulator fits transitions logged from a standard rigid-body simulator and serves every clip in the library. The tracking policy trains by BPTT, the chain rule applied backward through every step of a multi-step rollout, which gives the gradient of a quantity computed over the whole rollout with respect to the parameters used at every step, differentiating its return through short rollouts generated by stepping the world model in place of the simulator, starting from states the simulator visited of that model while a learned critic estimates the return beyond them. Because gradients flow through the learned model, the simulator need not be differentiable and its contacts may be non-smooth. Training that took SONIC a 128-GPU cluster takes hours on one GPU. On the 40 clips of a public motion-capture dataset, here 2.45 hours of motion retargeted to the G1 in a controlled comparison, SuperMimic reaches a the undiscounted sum of the per-step reward over a whole episode divided by the largest value that sum can take, so it lies between 0 and 1 and a policy that terminates early scores low of 0.82 in 1.2 hours on one GPU. PPO in the simulator ends at 0.72 after 18 hours on eight. On the full library, SuperMimic passes SONIC's released checkpoint within 3 hours on one an NVIDIA data-center GPU, here the 80 GB SXM5 version. Because the clips share the physics, compute grows slowly with library size. From 1 to 264 hours of motion, prediction error stays flat and compute to a target return grows about 3.5 times.

Setting. a GPU implementation of the MuJoCo rigid-body physics engine that steps thousands of environments in parallel simulates the a commercial humanoid robot, here in its 29-joint configuration, and the policy controls it at 50 Hz. At step the control step, 0.02 s long, the simulator is in state the simulator's state at step tt, from which observation, reward and termination are computed. A deterministic policy a network with weights θ\theta that maps observation and goal to an action, with no sampling reads the measured on the robot's own body, with no camera or external sensing observation joint positions relative to the default pose, joint velocities, base angular velocity from the inertial sensor, the gravity direction in the base frame and the previous action, for each of the last 10 steps and goal for motion tracking, the next 10 frames of the reference motion, and outputs a joint setpoint ata_t=πθ(ot,gt){}=\pi_\theta(o_t,g_t). A termination flag 1 if sts_t is terminal, which happens when the root height is more than 0.25 m from the reference's or the tilt error exceeds 0.8 (about 78° for an upright reference), and 0 otherwise ends an episode when the root strays too far from the reference in height or tilt. Each episode draws domain-randomization parameters for friction, joint calibration, and torso center of mass, collected in a the episode's domain-randomization parameters, given to the world model as input. It holds a friction coefficient in [0.3,1.2][0.3,1.2], joint calibration offsets within ±0.01\pm0.01 rad, and torso center-of-mass offsets of up to 2.5 cm forward and backward and 5 cm sideways and vertically.

The per-step reward the reward for the action at step tt. For tracking it is BeyondMimic's sum of terms exp⁡(−eˉ/σ2)\exp(-\bar e/\sigma^2), with eˉ\bar e the mean squared error over the tracked bodies of position, orientation, linear or angular velocity and σ\sigma a fixed scale per term, two root-pose terms at half weight, and penalties on the change of action and on joint-limit violations adapts an earlier PPO motion-tracking system for humanoids (Liao et al., 2026), whose tracking formulation both SuperMimic and SONIC build on's tracking reward by dropping its self-collision penalty and cutting its joint-limit penalty from 10 to 2. The self-collision penalty guarded against a stochastic policy pressing two nearly touching bodies together to damp its action noise and inflate velocity-tracking reward. Because SuperMimic's policy is deterministic in imagined rollouts, that exploit pays nothing. The policy maximizes J(θ)=E[∑t≥0γtctrt+1]J(\theta)=\mathbb E\big[\sum_{t\ge0}\gamma^tc_tr_{t+1}\big] with discount the discount factor, 0.99 and c0=1c_0=1 and ct+1=ct(1−dt+1)c_{t+1}=c_t(1-d_{t+1}), which equals 1 until termination and 0 after.

Training repeats three phases in a loop. First, the current policy collects transitions across 4,096 simulated environments per GPU and stores them in a a store of the last 1,000 steps of every simulated environment, where new transitions replace the oldest. During collection only, it adds Gaussian noise exploration noise added to the action during data collection only, N(0,0.12)\mathcal N(0,0.1^2) in each action dimension to its actions to widen the range of actions the world model sees. Transitions from earlier policies stay valid because simulator dynamics do not depend on the policy that collected them.

Second, the world model fits the length of the replay windows the world model is fit on, 8 steps-step windows (k=8k=8) from the buffer. Even though the simulator randomizes episode physics and adds sensor noise, the model stays deterministic because every source of randomness is known. The sim context ξ\xi enters as an input, the model predicts the noise-free observation the observation oto_t without sensor noise, ot=oˉt+ηto_t=\bar o_t+\eta_t, and uniform ot−oˉto_t-\bar o_t, uniform noise of known range on each observation term, for example ±0.01\pm0.01 rad on joint positions and ±0.5\pm0.5 rad/s on joint velocities is sampled and added outside the model. With hats marking predictions, the dynamics network s^t+1=fω(s^t,at,ξ)\hat s_{t+1}=f_\omega(\hat s_t,a_t,\xi), a multilayer perceptron with three hidden layers of 2,048 units and weights ω\omega steps the predicted state the world model's prediction of the state sts_t from a logged start state s^0=s0\hat s_0=s_0 using the logged actions and ξ\xi. Separate heads predict the reward the world model's prediction of the reward rt+1r_{t+1}, from s^t\hat s_t, ata_t and gtg_t, noise-free observation the world model's prediction of the noise-free observation oˉt\bar o_t, from s^t\hat s_t and ξ\xi, and termination probability the world model's predicted probability that s^t\hat s_t is terminal, a number in [0,1][0,1]. Each prediction is matched against the simulator log: LWM=EB∑j=1k[∥s^j−sj∥2+(r^j−rj)2+∥oˉ^j−oˉj∥2+BCE(d^j,dj)],\begin{aligned}\mathcal L_{\rm WM}=\mathbb E_{\mathcal B}\textstyle\sum_{j=1}^{k}\Big[&\|\hat s_j-s_j\|^2\\&+(\hat r_j-r_j)^2\\&+\|\hat{\bar o}_j-\bar o_j\|^2\\&+\mathrm{BCE}(\hat d_j,d_j)\Big],\end{aligned} where BCE is binary cross-entropy and any head computed analytically from state has no loss term. Rolling the model on its own predictions for 8 steps trains it to correct compounding errors.

Third, the policy updates with the world-model weights ω\omega frozen. Each of 4,096 imagined rollouts starts from a buffer state with its recorded ξ\xi. At every step the model emits oˉ^t\hat{\bar o}_t, fresh sensor noise ηt\eta_t is added, and the policy acts via at=πθ(oˉ^t+ηt,gt)a_t=\pi_\theta(\hat{\bar o}_t+\eta_t,g_t). After the imagination horizon, 32 steps, which is 0.64 s at 50 Hz steps (H=32H=32, or 0.64 s), a critic a network with weights ψ\psi that estimates the return from a state, given goal and sim context. It is fit by squared error to targets R^t=r^t+1+γ(1−d^t+1)[(1−λ)Vt+1+λR^t+1]\hat R_t=\hat r_{t+1}+\gamma(1-\hat d_{t+1})[(1-\lambda)V_{t+1}+\lambda\hat R_{t+1}], computed backward over the imagined steps from R^H=VH\hat R_H=V_H, with Vt=Vψ(s^t,gt,ξ)V_t=V_\psi(\hat s_t,g_t,\xi) and λ=0.95\lambda=0.95, the generalized advantage estimation recursion. Reading note: PPO and RLOO for language models estimates the remaining return and the policy maximizes J^(θ)=E[∑t=0H−1γtc^t r^t+1+γHc^H Vψ(s^H,gH,ξ)].\begin{aligned}\hat J(\theta)=\mathbb E\Big[&\textstyle\sum_{t=0}^{H-1}\gamma^t\hat c_t\,\hat r_{t+1}\\&+\gamma^H\hat c_H\,V_\psi(\hat s_H,g_H,\xi)\Big].\end{aligned} Here the survival weight c^0=1\hat c_0=1 and c^t+1=c^t(1−d^t+1)\hat c_{t+1}=\hat c_t(1-\hat d_{t+1}), the survival weight built from the predicted termination probabilities uses the predicted probabilities d^\hat d, so termination is differentiable too. This update follows short-horizon actor-critic (Xu et al., 2022), which trains a policy by backpropagating through a differentiable simulator over short windows, with a learned critic bootstrapping the return beyond each window and hard episode terminations, a short-horizon actor-critic method, but replaces SHAC's hard terminations with c^t\hat c_t and drops the critic's target network.

Lower-variance analytic gradients and faster model rollouts drive SuperMimic's speedup. PPO builds on the the score-function estimator, also called REINFORCE, ∇θE[R]=E[R ∇θlog⁡pθ(x)]\nabla_\theta\mathbb E[R]=\mathbb E[R\,\nabla_\theta\log p_\theta(x)] for a return RR of a sample x∼pθx\sim p_\theta. It needs only sampled values of RR, so the dynamics can be a black box, and it is unbiased but has high variance unless a baseline is subtracted. Reading note: Stochastic softmax tricks and Gumbel-Rao, weighting the score of a stochastic policy an action density, the stochastic policy PPO needs, with pθ(a∣o,g)p_\theta(a\mid o,g) the density of action aa given observation and goal by each sampled action's advantage PPO's estimate of how much better the return after the action at step tt was than the critic expected. BPTT instead differentiates the return with respect to each action: PPO:∑tA^t ∇θlog⁡pθ(at∣ot,gt),BPTT:∑tdJ^dat ∂πθ∂θ(ot,gt).\begin{aligned}\text{PPO:}\quad&\textstyle\sum_t\hat A_t\,\nabla_\theta\log p_\theta(a_t\mid o_t,g_t),\\\text{BPTT:}\quad&\textstyle\sum_t\frac{d\hat J}{da_t}\,\frac{\partial\pi_\theta}{\partial\theta}(o_t,g_t).\end{aligned} Here dJ^/datd\hat J/da_t is the total effect of ata_t on J^\hat J through every later state, reward, and action, computed by backpropagating through the model's Jacobians. PPO gives each action one scalar weight along a random score direction, whereas BPTT supplies a gradient for every action dimension and cuts variance sharply over short horizons. Running PPO on the world model itself (PPO-WM) isolates that gradient gain. Across four batch sizes on the walk, run, and sprint clips of LAFAN1, PPO-WM needs about 64 times more imagined steps than SuperMimic to reach its own best training return. Because both count steps of the same model, rollout speed cannot explain the gap. Rollout speed adds an independent factor. At the 2k to 16k parallel environments used in training, the model steps 11 to 26 times faster on an H100 than MuJoCo Warp.

Analytic gradients trade variance for model bias. Because ∇θJ^\nabla_\theta\hat J is the exact gradient of a learned surrogate, its error comes from prediction errors along imagined states. At the same time, every update generates its imagined rollouts afresh under the current policy. Only the start states come from the replay buffer, and the objective averages over that start distribution, so the policy update needs none of PPO's corrections for stale or off-policy samples. Older data enter only through the world-model fit, which stays valid for data from any policy. DMO (Amigo et al., 2025) makes the opposite choice, rolling out in the simulator and backpropagating through a learned model. That limits compounding model error, but it requires fresh simulator rollouts for every update and one policy per task.

The controlled comparison on LAFAN1 isolates the training method. The baseline PPO-Sim matches SuperMimic's motions, observations, reward, termination, domain randomization, actor and critic sizes, and evaluation protocol. It uses BeyondMimic's PPO hyperparameters and runs 8,192 environments per GPU, twice SuperMimic's count. Each point on the paper's curves scores a saved checkpoint on all 40 clips. SuperMimic reaches 0.82 in 1.2 hours on one GPU. PPO-Sim plateaus below it at 0.60 on one GPU, 0.70 on four, and 0.72 after 18 hours on eight, so scaling from four GPUs to eight barely helps.

The comparison against SONIC runs all 129,514 clips kept from the public a motion-capture dataset released by Bones Studio with a version retargeted to the G1, the public subset of SONIC's training data. The paper keeps 129,514 of its 142,220 clips, removing those that need terrain or objects or that have retargeting artifacts dataset. Each clip plays once from its first frame in deterministic simulation, with no randomization or observation noise. SONIC's checkpoint scores a normalized return of 0.90 and fails 179 motions, including all 44 flips and all 22 side rolls. SuperMimic fails 25 motions at 3 hours on one H100 and fails none after 9.8 hours on two GPUs. Compared with SONIC's run on an NVIDIA data-center GPU with 48 GB of memory GPUs, those 3 hours take about 56 times less wall-clock time and about 7,200 times fewer GPU-hours. The paper states those factors as more than 50 and more than 1,000.

That SONIC comparison is not controlled. SuperMimic trained on 264.56 hours of motion against SONIC's 611. An H100 also has 5.5 times an L40's peak the GPU units that perform small matrix multiplications at reduced precision, which deliver most of a modern GPU's peak throughput for neural networks throughput, with actual utilization unknown for either run. Even so, the authors argue that 2.3 times less data and at most 5.5 times higher peak throughput cannot explain a factor of 1,000. Beyond compute, a motion fails here when it triggers SuperMimic's training termination rule, which differs from SONIC's own success criterion, and the benchmark clips are training motions for both methods. The counts therefore measure how fully each policy covers its training set under SuperMimic's rule and say nothing about unseen motions.

The library sweep explains why compute grows slowly with motion data. Across BONES-SEED subsets of 1, 7, 40, and 264 hours, the model's 8-step online state prediction error, divided by a predefined nominal error, stays between 0.007 and 0.011. Read off the paper's figure, GPU-hours to a target return stop growing from 40 hours onward. The same humanoid performs every clip. In the authors' reading, added clips supply more evidence about the same body and contact dynamics without demanding more model capacity.

The critic keeps imagined rollouts short and gives the policy long-horizon balance. In a sweep of HH from 8 to 128, critic-free training fails at H≤16H\le16. With the critic, H=16H=16 matches critic-free H=32H=32, and H=32H=32 reaches the target return of 0.82 fastest. Raising HH from 64 to 128 nearly triples time to 0.82 and lowers final return. Even at matched return, the critic changes behavior. When holding a static standing upright with both arms stretched out sideways in simulation under velocity pushes of 0.5 to 4 m/s, the critic policy settles within 0.5 to 2.4 s. The critic-free policy keeps stumbling even at 0.5 m/s and falls at 4 m/s. Rewards for recovery and balance can arrive after the 0.64 s window, where only the critic accounts for them.

A single motion tracker whose policy updates all come from the world model runs on a physical G1 without per-motion tuning. The paper shows a skipping jump, a side roll with torso and limbs on the floor, a 90° flip, and an in-place 360° flip. Transfer relies only on randomizing friction, joint calibration, and torso center of mass. BeyondMimic's root-velocity pushes were left out because they inject state jumps that the deterministic model cannot capture.

The same frozen world model trains other goal interfaces, each a goal encoder feeding a shared decoder. A velocity encoder trained through the world model on a velocity-tracking RL reward beats one distilled from commands read off reference motions. On 672 step commands, the RL encoder has the lower after a fixed command held for 5 s from standing, the norm of the mean velocity error over the last 2 s divided by the norm of the command, the median over the trials that did not fall on 650 and the distilled one on 15, with medians of 0.16 and 0.49. Only the distilled policy falls, on seven commands combining translation with turns of at least 2.8 rad/s, where the motion library has almost no data.

Consequences. For whole-body tracking on flat ground, sharing one learned robot model across clips turns training into a single-GPU job and makes scaling studies feasible at one GPU per run. The controlled LAFAN1 comparison holds every design choice fixed except the training method. An unofficial reimplementation, supermimic_vibed (Zhang, 2026), reports a 0.842 normalized return on LAFAN1 with 0 of 40 clips failed after 0.95 hours on one RTX PRO 6000 GPU. That is a single run whose numbers were not checked here, and it departs from the paper in listed ways including bf16 matrix products and analytic reward, observation, and termination heads.

Limits. Training covers flat ground only, with no terrain or objects, and the world model learns solely from simulator data. The figures report no seed variation, though the authors ran several seeds and found training very stable. PPO-Sim uses BeyondMimic's hyperparameters with no further search. The library sweep tests one dataset, hardware motions appear without success rates or tracking errors, and the velocity study is preliminary with one seed per encoder.

Terms

World model
deterministic network s^t+1=fω(s^t,at,ξ)\hat s_{t+1}=f_\omega(\hat s_t,a_t,\xi) with reward, observation and termination heads, fit on 8-step windows rolled out on its own predictions
Known noise outside the model
the sim context ξ\xi is an input, the noise-free observation is predicted, and sensor noise is added after
Imagined return
32 model steps of survival-weighted reward, J^\hat J, plus the critic's value at the end
BPTT against PPO
the return differentiated with respect to every action through the model's Jacobians, against PPO's advantage-weighted score of a stochastic policy
Survival weight
ct+1=ct(1−dt+1)c_{t+1}=c_t(1-d_{t+1}), differentiable when built from predicted termination probabilities
Controlled result
on 40 LAFAN1 clips, return 0.82 in 1.2 h on one GPU, against 0.72 after 18 h on eight for PPO in the simulator
SONIC comparison
passes SONIC's 0.90 within 3 h on one H100, 25 against 179 failed motions, over 1000 times fewer GPU-hours, with less data, different GPUs and a benchmark of training motions
Library sweep
from 1 to 264 h of motion, prediction error 0.007 to 0.011 and compute to target about 3.5 times
Speed and gradient
model rollouts 11 to 26 times faster than MuJoCo Warp, and 64 times fewer imagined steps than PPO on the same model
Critic
without it training fails at H of 16 or less, H = 32 is fastest with it, and only the critic policy recovers from pushes

Sources

Connected notes

Threads