Technical Report · Self Model Research · Rung 2
A Wrong Model Is Worse Than None
Damage detection and recovery in a learned self-model, and why model-based control is the more brittle option
Abstract
We test whether a learned forward model can detect a change in its own body and re-adapt from few samples. A pendulum's mass is increased 50% mid-experiment, cutting actuator authority to 0.667× while leaving free-swing dynamics untouched. The model detects the change immediately: one-step prediction error rises 9.1× under random probing. Control degrades sharply, from 3.667 to 8.748 cost (+139%), and fine-tuning on new post-damage transitions recovers 43% of the loss from 10 samples and 82% from 500.
The intended headline — that this is dramatically more sample-efficient than model-free retraining — did not survive its own control experiment. Against SAC retrained from scratch the advantage looks enormous (10 samples versus ~10,000 steps), but that compares adaptation to learning the task from nothing. Against SAC pre-trained on the healthy body, the correct control, model-free needed no adaptation at all: its untouched policy scored 3.000 on the damaged body, better than our system reaches after any amount of fine-tuning.
The robust finding is the asymmetry that made this possible. Model-based control degraded 139% where the model-free policy degraded 26%, roughly 5× more brittle, because a planner executes physics it believes while a reactive policy responds to what it senses. We argue the defensible value of a self-model here is not planning but fault detection: a signal reflex controllers structurally cannot produce. We also report two further negative results — prediction accuracy and control quality are anti-correlated during early adaptation, and recovery below 500 samples is high-variance enough that individual adaptations sometimes end worse than not adapting.
1Introduction
A robot that models its own body should, in principle, notice when that body changes and correct for it without relearning its task. This report tests that proposition on a minimal system and reports both what worked and what did not.
The setup deliberately separates three questions that are usually entangled: does the model notice the change, does control degrade, and how much new experience does recovery require. Each is measured independently, and a model-free baseline is measured through the identical evaluation loop.
The result we did not anticipate, and which we now regard as the paper's contribution, is that the model-based controller is substantially more fragile to body change than the model-free policy it was meant to outperform. The self-model's advantage is not robustness or recovery speed; it is that the model-based system can tell that something happened at all.
2Setup
System under test
We use the delta-prediction forward model and CEM planner from the companion report: an MLP (4 → 64 → 64 → 3) trained on 2000 transitions of random-action interaction, predicting s' − s, driving a 20-step-horizon CEM planner (5 iterations, 100 candidates, 10 elites). Control cost is squared distance from the upright target [1, 0, 0], averaged per step over 200-step episodes.
The damage
At damage time the pendulum's mass is increased from 1.0 to 1.5 by modifying the environment's attribute directly. This choice has a consequence worth stating explicitly, because it shapes every result that follows. Pendulum's dynamics update is
Mass enters only through the torque term. Raising m to 1.5 cuts actuator authority to 0.667× and leaves the gravity term untouched. The damage is therefore mathematically invisible whenever u = 0: a coasting damaged pendulum is indistinguishable from a healthy one, and the change is most observable under large torque.
Evaluation
All conditions are scored through a single shared evaluation function with an injectable policy and an injectable environment factory, so the model-based controller and every baseline traverse identical code with identical start-state seeds. Baselines and recovery points are averaged over 150 rollouts (10 independent draws × 15 episodes); the SAC baselines use 3 training seeds × 15 episodes.
3Detection
We ran continuous 400-step episodes in which the body breaks at step 200, recording one-step prediction error throughout, under two policies: uniformly random torques (a probe) and the CEM controller itself (the operational case).
| Policy | Pre-damage MSE | Post-damage MSE | Ratio |
|---|---|---|---|
| Random probe | 0.000138 | 0.001253 | 9.1× |
| CEM control | 0.000145 | 0.000437 | 3.0× |
Because mass is observable only through the torque term, a controller that has stabilised the pendulum upright applies near-zero torque and stops generating the data that would reveal the damage. This is a general design constraint rather than an artifact of this parameter choice: a self-monitoring system is least able to detect a fault precisely when it is performing well. Deliberate probing is not optional.
We note that no detector is implemented here. We measure that the error signal exists and is large; we do not specify a threshold, and we report no false-positive rate, detection latency distribution, or ROC curve. Section 8 treats this as the study's principal gap.
4Degradation
| Condition | Cost | SEM | Change |
|---|---|---|---|
| Healthy body, healthy model | 3.667 | 0.147 | — |
| Damaged body, stale model | 8.748 | 0.446 | +139% |
| Damage gap | 5.081 | 0.470 |
The mechanism is specific. The stale model believes torque is 1.5× more effective than it now is, so CEM plans swing-ups that would succeed on the old body and systematically under-actuates on the new one. A modest per-step model error compounds across a 20-step planning horizon. Variance also rises sharply (std 1.84 → 5.46): the damaged system is not merely worse on average but erratic, succeeding from some start states and failing outright from others.
5Recovery
After damage we collect new transitions from the damaged body and fine-tune from the pre-damage weights — never from scratch — on the new data only, since the old body's transitions are now wrong. Each increment is an independent fine-tune from the same starting weights, repeated over 10 independent draws of post-damage data.
| New samples | Cost | SEM | Gap closed | Per-draw range |
|---|---|---|---|---|
| 10 | 6.548 | 0.317 | 43% | 4.49 – 9.79 |
| 25 | 6.871 | 0.312 | 37% | 3.66 – 11.25 |
| 50 | 5.807 | 0.272 | 58% | 3.74 – 8.92 |
| 100 | 5.713 | 0.321 | 60% | 3.80 – 12.36 |
| 200 | 6.183 | 0.314 | 50% | 3.74 – 9.09 |
| 500 | 4.579 | 0.206 | 82% | 3.85 – 5.72 |
Two readings are warranted. Adaptation is genuinely fast in the mean: ten transitions, under a second of operation, close 43% of the gap. But adaptation below 500 samples is unreliable: individual draws range from full recovery (3.66, matching healthy) to 12.36, considerably worse than the un-adapted model. Which ten transitions you happen to collect matters enormously. Only at 500 samples does the spread collapse (3.85–5.72) and the mean reach 82% recovery.
For an autonomous system this distinction is the important one. "Recovers from ten samples" is true on average and would, in deployment, sometimes make the robot worse.
The best individual draws reach the healthy baseline exactly. Full recovery is achievable; it is simply not reliable. Since the damage is observable only under torque, we expect the informative transitions to be those with large applied torque, and that deliberate probing after detection would collapse the variance far faster than collecting more passive data. This is untested.
6Two negative results on the recovery mechanism
The plateau is not a fine-tuning artifact
We hypothesised that the residual gap reflected too small a fine-tuning budget. A sweep over budgets with a from-scratch control rejected this.
| Samples | Budget | Control cost | Held-out MSE |
|---|---|---|---|
| 10 | 300 ep | 6.198 | 0.002236 |
| 10 | 3000 ep | 6.153 | 0.002755 |
| 10 | scratch | 7.450 | 0.149016 |
| 50 | 300 ep | 5.012 | 0.001920 |
| 50 | 3000 ep | 6.641 | 0.002133 |
| 50 | scratch | 7.823 | 0.023793 |
| 500 | 300 ep | 5.956 | 0.000192 |
| 500 | 3000 ep | 4.633 | 0.000218 |
| 500 | scratch | 7.119 | 0.000386 |
The adapted model has learned the damaged body at least as well as the original ever knew the healthy one. Model quality is therefore eliminated as the explanation for the residual control gap. A subsequent planning-horizon sweep (20/30/40/60 steps) also failed to close it: longer horizons degraded control on both the damaged and healthy bodies, indicating a generic compounding-error effect in long model rollouts rather than anything damage-specific. Both of our mechanistic hypotheses for the residual gap are rejected.
Prediction accuracy and control quality are anti-correlated during early adaptation
At 10 and 50 new samples, every fine-tuned model is a worse predictor than the stale model (0.0022 and 0.0019 against 0.0013) while being a clearly better controller (6.20 and 5.01 against 8.38). A handful of samples corrects the single systematic error — the torque-scaling bias that compounds over the planning horizon — while overfitting adds scattered error the planner largely ignores.
The practical consequence is direct: a robot that used aggregate prediction accuracy as its "have I adapted yet?" signal would conclude it had gotten worse at the exact moment it got better.
7Baselines, and a claim that did not survive
We ran two model-free baselines, both scored through the identical evaluation loop.
SAC retrained from scratch on the damaged body
| Env steps | Cost | 95% CI |
|---|---|---|
| 500 | 11.878 | [10.482, 13.274] |
| 1000 | 9.097 | [8.198, 9.997] |
| 2000 | 13.778 | [12.985, 14.571] |
| 5000 | 8.538 | [4.781, 12.296] |
| 10000 | 3.150 | [2.719, 3.581] |
| 20000 | 3.115 | [2.687, 3.544] |
Against this baseline the model-based advantage appears enormous: 10 post-damage samples versus roughly 10,000 environment steps to reach comparable control, a ~1000× difference. This is the comparison we initially reported.
SAC pre-trained on the healthy body, then damaged
It is also the wrong comparison. The self-model retained 2000 samples of prior knowledge and only had to learn what changed; SAC was made to relearn the entire task from nothing. The correct control pre-trains SAC on the healthy body (20,000 steps) and then exposes it to the damage.
| New steps | Fresh buffer | Kept buffer |
|---|---|---|
| 0 (stale policy) | 3.000 | |
| 10 | 3.371 ± 0.27 | 2.958 ± 0.21 |
| 50 | 3.003 ± 0.19 | 2.964 ± 0.21 |
| 100 | 4.919 ± 0.46 | 2.972 ± 0.21 |
| 200 | 4.876 ± 1.11 | 2.950 ± 0.21 |
| 1000 | 3.029 ± 0.21 | 3.057 ± 0.20 |
| 5000 | 3.264 ± 0.19 | 2.997 ± 0.21 |
The model-free policy degraded from 2.384 to 3.000 (+26%) where the model-based system degraded from 3.667 to 8.748 (+139%). SAC's un-adapted policy on the damaged body (3.000) is better than the model-based system achieves after any amount of fine-tuning (best 4.579). For this damage, model-free did not need to recover, and the 1000× figure does not describe a model-based advantage over model-free adaptation.
What does survive is regime-dependent. At matched pre-damage experience of 2000 interactions, the model-based system scores 3.667 while SAC scores 13.778 and is not yet a working controller. Model-based dominates when experience is scarce and loses once model-free can afford 20,000 steps.
8Discussion
The asymmetry in Table 6 is, we think, the transferable result. A reactive policy maps state to action and continues to observe the true state each step, so a change in dynamics degrades it gracefully. A planner instead commits to an explicit model and optimises against it; when that model is wrong, the planner is confidently wrong, and the error compounds over the horizon. In this sense a stale self-model is worse than no self-model.
That reframes what the self-model is for. Its distinctive capability in this study is not control quality, robustness, or recovery speed — the model-free policy matched or beat it on all three. Its distinctive capability is that it produces a fault signal: a 9.1× prediction-error spike that a reflex controller structurally cannot generate, because it makes no prediction that can be falsified. A system that detects its own staleness and falls back to a reactive controller, rather than planning with physics it no longer satisfies, is a more defensible architecture than either component alone.
This suggests the useful next experiment is not faster adaptation but a proper detector: threshold, latency, false-positive rate under normal operating variation, and a fallback policy triggered by it.
9Limitations
One damage mode, one severity. Mass increased 50%, which affects only the torque term. A perturbation touching the gravity term (length), or a discontinuous fault (a dead actuator, joint friction), could produce entirely different detection and degradation profiles. The model-free robustness result in particular may not generalise: the damage may simply be mild for a reactive policy.
One pre-damage model seed. Every model-based number traces to a single forward model trained with one seed. The healthy baseline of 3.667 is that specific model's performance, not a distribution.
One environment, simulation only. Pendulum-v1. No physical hardware, no sensor noise, no unmodelled dynamics.
No detector is implemented. We show a detection signal exists and is large. We do not provide a decision rule, a false-positive rate, or a detection-latency distribution — which is what "detects damage" would require to be a system-level claim rather than an observation.
The recovery curve is not monotone. With 10 draws per point the mean moves only 6.55 → 6.18 between 10 and 200 samples, and individual draws span roughly 3.7 to 12.4. We report this as high-variance adaptation rather than a clean scaling law.
Unequal pre-damage experience in the baseline. SAC received 20,000 pre-damage steps against the self-model's 2000 samples. Matching them does not rescue the comparison so much as split it into two regimes, as described in Section 7, but the asymmetry should be stated.
No comparison to established adaptation methods. Domain randomisation, meta-RL, online system identification, rapid motor adaptation and classical adaptive control are all directly relevant and untested here. Prior work on physical damage recovery, notably Cully et al. (2015), is not positioned against.
10Conclusion
A learned self-model detects a 50% mass change in its own body immediately (9.1× prediction-error spike) and recovers 43% of the resulting control loss from 10 new transitions, 82% from 500. But the same experiment shows model-based control is roughly 5× more brittle to that change than a model-free policy, which absorbed it without adapting at all.
We therefore do not claim faster recovery than model-free control. We claim that the model-based system is the one that needs to recover, and that its compensating advantage is knowing that it does.
11Reproducibility
python3 damage_recovery.py
# recovery curve with 10 draws and matched-precision baselines (~32 min)
python3 recovery_v2.py
# SAC pre-trained then adapted, both buffer variants (~17 min)
python3 sac_adapt.py
# fine-tune budget sweep with from-scratch controls (~24 min)
python3 finetune_sensitivity.py
# planning-horizon sweep with healthy-body control (~12 min)
python3 horizon_sweep.py
All scripts import the shared model, planner and evaluation loop from the Rung 1 module, so both reports' results traverse identical evaluation code. Per-experiment results are written to JSON alongside the figures. Package versions: gymnasium 1.3.0, torch 2.13.0+cpu, stable-baselines3 2.9.0.
- Rung 1The Planner Hides the Model
- Rung 2A Wrong Model Is Worse Than None (this report)
- Rung 3Surprise Has a Signature
- Rung 4The Margin Was Rigid
- Rung 5An Arc of Elimination
- Rung 6The Quiet Body
- Rung 7Why Prediction Error Falls When the Body Changes