← Research

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.

Figure 0 — Where the damage enters the dynamics
θ̈ = 3g/(2l)·sin(θ) + 3/(m·l²)·u gravity — no m unchanged by damage torque — contains m authority × 0.667 u ≠ 0 → damage observable u = 0 → damage invisible a coasting damaged pendulum is identical to a healthy one
Figure 0. Raising mass from 1.0 to 1.5 cuts actuator authority to 0.667× and leaves the gravity term untouched. Every result in this report follows from that asymmetry: detection requires applied torque, so a controller performing well — and therefore pushing gently — is the one least able to notice it has been damaged.

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

θ̈ = 3g/(2l)·sin(θ) + 3/(m·l²)·u

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

Figure 1 — The model notices, but only while it pushes
0.00010.001before damageafter damageone-step MSE (log)0.0001380.001253random probe 9.1x0.0001450.000437CEM control 3.0x
Figure 1. One-step prediction error either side of the damage event, mean over 10 traces of 200 steps per side. Mass enters the dynamics only through the torque term, so a controller that has stabilised the pendulum applies near-zero torque and sees a 3x weaker signal than a random probe. Competent control suppresses the evidence of its own damage.
PolicyPre-damage MSEPost-damage MSERatio
Random probe0.0001380.0012539.1×
CEM control0.0001450.0004373.0×
Table 1. One-step prediction error across the damage event, mean over 10 traces of 200 steps each side. Detection is unambiguous under both policies, but the controller sees a 3× weaker signal than a random probe.
Competent control suppresses its own evidence

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

ConditionCostSEMChange
Healthy body, healthy model3.6670.147—
Damaged body, stale model8.7480.446+139%
Damage gap5.0810.470
Table 2. Control degradation, 150 rollouts per condition. An earlier 15-rollout measurement of the stale condition returned 10.168; the properly averaged value is 8.748. Because every "fraction recovered" figure divides by this gap, a noisy baseline propagates into every derived number.

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.

Figure 3 — Recovery is fast on average and unreliable per instance
4681012102550100200500post-damage samples used to fine-tune (log)control coststale model 8.748healthy 3.667mean of 10 draws (95% CI)per-draw range
Figure 3. Control cost after fine-tuning on new post-damage transitions, 10 independent draws x 15 episodes = 150 rollouts per point. The mean (dark whiskers, 95% CI) barely moves between 10 and 200 samples, while the pale bands show the full per-draw range: individual adaptations at 25 and 100 samples land above the stale model, i.e. worse than not adapting at all. Only at 500 samples does the spread collapse.
New samplesCostSEMGap closedPer-draw range
106.5480.31743%4.49 – 9.79
256.8710.31237%3.66 – 11.25
505.8070.27258%3.74 – 8.92
1005.7130.32160%3.80 – 12.36
2006.1830.31450%3.74 – 9.09
5004.5790.20682%3.85 – 5.72
Table 3. Recovery curve, 150 rollouts per point. Reference points: healthy 3.667, stale 8.748. Every increment is significantly better than the stale model and significantly worse than healthy. The curve is not monotone, and the per-draw ranges at 25 and 100 samples include outcomes worse than not adapting at all.

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.

Why more data, not better data, may be the wrong fix

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.

SamplesBudgetControl costHeld-out MSE
10300 ep6.1980.002236
103000 ep6.1530.002755
10scratch7.4500.149016
50300 ep5.0120.001920
503000 ep6.6410.002133
50scratch7.8230.023793
500300 ep5.9560.000192
5003000 ep4.6330.000218
500scratch7.1190.000386
Table 4. Fine-tune budget sweep with from-scratch controls, 3 draws each. Fine-tuning beats from-scratch training at every sample count. At 500 samples the adapted model reaches MSE 0.000192 — better than the original healthy model scored on its own healthy body (0.000198) — while control remains ~25% worse than healthy.

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 stepsCost95% CI
50011.878[10.482, 13.274]
10009.097[8.198, 9.997]
200013.778[12.985, 14.571]
50008.538[4.781, 12.296]
100003.150[2.719, 3.581]
200003.115[2.687, 3.544]
Table 5. SAC from random initialisation on the damaged body. Retraining does not beat the stale model's 8.748 until past 5000 steps; for the first several thousand interactions the robot would be worse off retraining than doing nothing. The wide 5000-step interval reflects two of three seeds destabilising transiently.

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.

Figure 2 — Model-based control is the more brittle option
2468healthy bodydamaged bodycontrol cost3.6678.748model-based + CEM +139%2.3843.000model-free SAC +26%
Figure 2. Degradation under identical damage, both scored through the same evaluation loop. The planner commits to an explicit model and is confidently wrong when that model goes stale; the reactive policy keeps observing the true state and degrades gently. SAC's un-adapted policy on the damaged body (3.000) is better than the model-based system reaches after any amount of fine-tuning (best 4.579).
New stepsFresh bufferKept buffer
0 (stale policy)3.000
103.371 ± 0.272.958 ± 0.21
503.003 ± 0.192.964 ± 0.21
1004.919 ± 0.462.972 ± 0.21
2004.876 ± 1.112.950 ± 0.21
10003.029 ± 0.213.057 ± 0.20
50003.264 ± 0.192.997 ± 0.21
Table 6. SAC pre-trained on the healthy body (scoring 2.384 there), then adapted to the damaged body. The adaptation curve is flat because there was nothing to recover from. Clearing the replay buffer introduces transients (4.919, 4.876) in which adaptation makes the policy temporarily worse; retaining it is stable throughout.
The comparison, corrected

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

1

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.

2

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.

3

One environment, simulation only. Pendulum-v1. No physical hardware, no sensor noise, no unmodelled dynamics.

4

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.

5

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.

6

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.

7

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

# main damage experiment: detection, degradation, recovery, SAC from scratch (~27 min)
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.

Self Model Research
  1. Rung 1The Planner Hides the Model
  2. Rung 2A Wrong Model Is Worse Than None (this report)
  3. Rung 3Surprise Has a Signature
  4. Rung 4The Margin Was Rigid
  5. Rung 5An Arc of Elimination
  6. Rung 6The Quiet Body
  7. Rung 7Why Prediction Error Falls When the Body Changes