Skip to content
Robotics.world

Research

Auditing a Learned Simulator for Legged Robots: The Robotic World Model on ANYmal D

Learned simulators replace a physics engine with a neural network that predicts a robot's next state, and a walking policy is then trained inside that network's imagination.

arXiv
2611.23118 · Preprint · not peer-reviewed
Published
2026-11-17
Authors
Joyjeet Singh

In plain words

Learned simulators replace a physics engine with a neural network that predicts a robot's next state, and a walking policy is then trained inside that network's imagination. Such models are usually trained and checked one step ahead, even though a policy runs them for a hundred steps or more, so small errors compound.

AI summary

Overview

Research area: Robotics — learned dynamics models (world models) for legged locomotion, model-based reinforcement learning, and evaluation methodology.

Technical level: Intermediate. The paper assumes familiarity with recurrent networks, rollout error, ensembles as uncertainty estimates, and reinforcement-learning policy training, but it explains each measure it uses.

Scope (one sentence): An independent, CPU-only end-to-end audit of one published learned simulator — the Robotic World Model (RWM) for the ANYmal D quadruped, plus the uncertainty estimate of its follow-up RWM-U — testing prediction error, uncertainty calibration, pre-deployment checks, compression, and whether any of it predicts whether a trained policy actually walks.

What This Paper Is About

Learned simulators replace a physics engine with a neural network that predicts a robot's next state, and a walking policy is then trained inside that network's imagination. Such models are usually trained and checked one step ahead, even though a policy runs them for a hundred steps or more, so small errors compound. This paper rebuilds one such system from its papers and released code, verifies the rebuild exactly, and then measures several hundred trained and compressed simulators — and the policies trained inside them — to see which checks actually predict useful behaviour.

Key Contributions

  1. A verified rebuild and code audit. The reimplementation matches the released module bit for bit in outputs, and exactly in losses and gradients (zero difference across 7 loss terms and 106 parameter tensors). The audit surfaces two defects in the released pipeline and six places where the code departs from the papers, with the measured cost of the defects.
  2. A held-out test of RWM's central training claim. Training on the model's own rollouts is compared with teacher forcing across five fixed splits of the ten released episodes, so each episode is held out exactly once, giving 20 independent held-out trajectories.
  3. A measurement of RWM-U's uncertainty estimate. The paper separates ranking from scale, diagnoses three distinct reasons the scale is wrong, and shows the per-network variance collapses by construction because of the implemented loss.
  4. A registered comparison of pre-deployment checks plus a compression study and robot-level evidence. Four checks are ranked across 97 and 255 recurrent simulators and 38 simulators of three other architectures; compression is scored at every horizon with measured laptop-CPU cost; and policies are trained inside 33 simulators and tested in a hand-built MuJoCo model of the robot.

The paper also records nine of the authors' own numbered claims that were withdrawn, and what caught them.

Main Findings

  • Rollout training wins at long horizons, and the ordering reverses at one step. With each of ten episodes held out once, training on the model's own rollouts beat one-step (teacher-forced) training at 368 steps on every episode (sign-flip test, p = 0.002), with teacher forcing's relative L1 error higher by +2.2 [+1.4, +3.5], a factor of 5.9. One step ahead, teacher forcing was better (−0.0090 [−0.013, −0.0053] on 300 non-overlapping 33-row units). At 10,000 iterations the teacher-forced model was 1.66 times worse than simply holding the last state at 368 steps, while the rollout-trained model was 2.8 times better.

  • One-step checks misjudge design choices. In normalised error on the five-split pool, teacher forcing and a training horizon of 1 looked better one step ahead (ratios 0.90 and 0.86) but were 2.0 and 2.6 times as wrong at 100 steps (2 s), and 5.0 and 5.4 times as wrong at 368 steps. Pruning 30% of the weights kept 90% of the model's skill one step ahead and 39% at 2 s; a short fine-tuning restored it (registered).

  • The training horizon sets whether errors grow or die. The leading finite-time Lyapunov exponent follows the training horizon closely: +0.61, +0.44, −0.43, −1.13 and −1.38 per second for horizons of 1, 2, 8, 16 and 32 steps, a rank correlation of −0.97 [−0.99, −0.89] over 15 models. Teacher forcing shifts the growth rate by +1.18 per second [1.07, 1.30]. Models trained on one or two steps amplify their own errors; models trained on eight or more damp them. The released checkpoint is an exception: its growth rate is +0.70 per second, yet its errors are low.

  • In physical units, the gap is plain. Over 2 s the teacher-forced simulator's joint angles are off by 7.0 degrees against 3.4 degrees, and it misplaces the robot by 0.84 m against 0.51 m, out of 1.5 m travelled. Over 2 s neither simulator beats the assumption that the robot keeps its last measured velocity (0.45 m); by 7.4 s rollout training does and teacher forcing does not.

  • Uncertainty ranks errors well but mis-sizes them. On the released checkpoint at 100 steps, ensemble disagreement has a Spearman correlation of +0.90 with rollout error, yet covers 4.6% of outcomes at one sigma against 68% for a calibrated estimate. The error-to-spread ratio is 33.4 at 100 steps and 34.4 at 368 steps, against a calibrated 0.80. Coverage at one sigma falls from 16.2% at one step to 3.6% at 368 steps. The multiplier needed to reach 68% coverage grows from 6.6 one step ahead to 31 at 100 steps and 42 at 368 steps.

  • Each network's own variance collapses by construction. The implemented loss is the squared error of a sample drawn from the predicted distribution, whose expected value is smallest at zero standard deviation. On the released checkpoint, each head's own standard deviation is 1,827 times smaller than its error one step ahead and 11,683 times smaller at 100 steps. Under the authors' unused likelihood option the head recovers the right noise level on synthetic data (ratio 0.98) but produces an estimate that barely varies with input.

  • Three separable causes for the mis-sized spread. The spread falls short even one step ahead (squared error exceeds what the spread implies by a factor of 174 [82, 255] on the released checkpoint); the five heads share one trunk, with 89% of each member's parameters identical to every other member's, and five independently trained models were 2.0 times better calibrated at 100 steps; and the release feeds every head the ensemble mean, whereas rolling each head out on its own predictions closes 0.75 [0.69, 0.82] of the gap on a log scale and raises 100-step coverage from 4.6% to 33%.

  • Eight-step error is the check to run, among error checks. One-step error ranked the main pool at only +0.32 and ranked other architectures backwards (MLP −0.69, Transformer −0.61). Eight-step error reached +0.84 on the main pool, +0.95 on the five-split pool, +0.76, +0.86 and +0.73 for the MLP, RSSM and Transformer. The growth rate (+0.80) and kinematic residual (+0.95) helped on the main pool, but neither was shown better than 8-step error in a primary test (growth rate minus 8-step error: −0.04 [−0.20, +0.14], not settled), the growth-rate advantage failed to replicate on the five-split pool (−0.12 [−0.22, −0.03] in favour of one-step error), and neither worked as a run-time alarm.

  • At the robot level, prediction accuracy did not predict walking. Walking policies came only from the released model, its two lightest compressed copies, and copies fine-tuned very briefly on data from the authors' physics model. Twenty fine-tuning steps at the original learning rate, or 160 at a tenth of it, were enough to stop the released model giving walking policies. Every simulator trained from scratch gave policies that fell or stood still, including one that predicts the test physics more accurately one step ahead. All 18 fine-tuned copies predicted better than the released model at one and eight steps ahead, yet 13 gave failing policies.

  • Registered tests of whether checks rank simulators by their policies were not settled, on 9 simulators or on 19. In a secondary test, running the authors' policy inside each simulator ranked them well.

  • Two defects in the released pipeline. The data file's end-of-episode column is zero everywhere, so the window builder accepts all 9,961 windows, of which 352 (3.5%) glue the end of one episode onto the start of the next. Separately, the released evaluation feeds each joint command one step late, which raises the release's relative L1 error by 55% [26%, 93%] one step ahead and 37% [21%, 65%] at 32 steps; from 100 steps on the change is not resolved (8.2% [−10%, 25%]).

Methodology in Plain English

The author starts by rebuilding the model from the papers and the released code, then proves the rebuild is faithful before training anything: shapes match the checkpoint, outputs match bit for bit, the test harness feeds the commands it claims to, a model that predicts no change reproduces the "hold last state" floor (1.19e-07), losses and gradients match the release exactly, and the trainer can memorise a single batch (loss falls 1,506-fold). Only then does any comparison run.

Training and evaluation use the authors' own data — one released file of 10,000 rows, which is 200 s of walking at 50 Hz, revealed to be ten simulated 20 s episodes of a single trot. The eight training episodes of the main split hold 7,991 transitions, which is 0.13% of the 6 million transitions RWM reports for pretraining. Models are trained with the release's loss and Adam (learning rate 1e-4, weight decay 1e-5, batches of 256 windows) for 2,500 iterations, the number the paper gives.

The unit of independent evidence is handled carefully: two overlapping 400-step trajectories are not independent, so each held-out episode yields exactly two non-overlapping trajectories of 32 history steps and 368 forecast steps, and that count is the sample size of every long-horizon claim. Intervals are 95% percentile intervals from 20,000 bootstrap draws over the independent unit, with 97.5% intervals for primary questions. Decision rules were registered in version control before the measurements that test them were run, and a rule gives a verdict only when its interval clears a stated threshold; otherwise it returns "not settled".

For the robot-level test, the author built a MuJoCo model of ANYmal D by hand and trained policies inside simulators with the authors' own policy-training code. A walking score gives each step an exponential of the negative squared deviation from the commanded speed and turning rate, zeroed after a fall; the authors' released policy scores 0.942 and standing still scores 0.069, so the score separates walking from merely staying upright. Everything ran on a 2017 Intel Core i5-7360U laptop with two cores and 8 GiB of memory using PyTorch 2.2.2 — a single-network model takes about 1.3 s per iteration, an ensemble about 4.5 hours, and one policy 1.8 to 2.7 hours.

Why This Matters

Impact on research. The paper shows that the standard one-step evaluation used for learned simulators can invert the ranking of design choices — teacher forcing and one-step training look better one step ahead and are 2.0 and 2.6 times as wrong at 2 s. It also shows that an ensemble spread can rank error almost perfectly (+0.90) while being wrong by a factor of 33 in scale, and that a per-network variance head trained with the released loss collapses to zero by construction. For anyone reusing such a model, the practical rules are: judge error eight or more steps ahead on held-out episodes, read ensemble spread as an ordering and not a distance, and do not assume that lower prediction error implies a walking policy.

Real-world applications:

  • Pre-deployment vetting of learned models on new commands or terrain, where no recorded future exists — the paper tests exactly this and reports that the residual check got worse under the policy's own commands while the growth rate was not settled.
  • On-robot compression decisions. Pruning and quantisation are scored at every rollout horizon rather than one step, with measured cost on a laptop CPU, which is what an embedded deployment decision needs.
  • Uncertainty-penalised offline policy training, where RWM-U subtracts ensemble disagreement from the reward. The paper shows a factor that grows from 6.6 to 31 along the rollout cannot be absorbed by one penalty weight, and that in simulators whose heads disagree more than the released model's, the same penalty drove policies to end their imagined episodes at once.
  • Reproducibility auditing of released checkpoints. The finding that the released checkpoint's stored variance state would need 45,737 iterations to reach from the released starting point, and that its training rows are not recorded, is a concrete example of documentation gaps that block independent verification.

Industry relevance. Learned simulators are attractive precisely because they promise to replace expensive physics tuning with data, and the paper's negative result — 13 of 18 fine-tuned copies predicted better than the released model at one and eight steps yet gave failing policies — is a direct caution for teams that select models by validation loss. The finding that 20 fine-tuning steps at the original learning rate were enough to destroy the released model's ability to produce walking policies is equally relevant to anyone planning a fine-tuning pipeline. The whole study was run without a GPU, which sets a realistic floor on what an independent audit costs.

Future Directions

  • Test whether any check predicts policy quality, at a sample size that can settle it. The paper's registered tests on 9 and 19 simulators were not settled; the secondary test that running the authors' policy inside each simulator ranked simulators well is a lead worth following with more units.
  • Explain the released checkpoint. Its growth rate is +0.70 per second yet its errors are low, which does not fit the account that ties growth rate to training horizon. Its training data are not recorded, and its stored variance state cannot be reached from the released starting point in the stated number of iterations.
  • Repair or replace the uncertainty estimate. A per-horizon multiplier brought one-sigma coverage within ten points of the target on the released checkpoint but left two-sigma coverage at 84% against 95% because errors are heavy-tailed; rolling each head out on its own predictions closes 0.75 of the gap but is not the released method.
  • Close the gap between prediction error and control. Every simulator trained from scratch gave failing policies, including one that predicts the test physics more accurately one step ahead, so the relationship between simulator accuracy and learned walking remains unexplained at this scale.

Target Audience

Robotics and reinforcement-learning researchers who build or consume learned dynamics models, especially those working on legged locomotion; engineers deciding whether a learned simulator is accurate enough to train a controller; and reproducibility-minded readers interested in how a careful audit is structured — verified rebuild first, registered decision rules, independent-unit statistics, and a public list of the authors' own withdrawn claims. Readers wanting a deployable recipe will find working rules in Section 11, but should note the stated scope: one robot, one trotting gait on flat ground, simulated data, a physics model the author built rather than the authors', and no hardware.

Authors’ abstract

A legged robot can learn to walk inside a learned simulator: a neural network that predicts the robot's next state and is run forward on its own predictions. They are usually trained and checked one step ahead, although a policy uses them for a hundred steps or more. We audit one published system end to end, without a GPU: the dynamics model of the Robotic World Model (RWM) for the ANYmal D quadruped, and the uncertainty estimate of its follow-up, RWM-U. We rebuilt the model…

The full abstract on arXiv
Read the original paper

Related papers