← Research

Technical Report · Self Model Research · Rung 7

Why Prediction Error Falls When the Body Changes

In simulation, on a soft compliant pendulum, a heavier body makes the controller push less and the arm move less, so the self-model looks less surprised. A decomposition of the ×0.30 motion drop.

Abstract

Everything here is in simulation. On a simulated soft series-elastic pendulum, a body change cuts how much the arm moves to about a third, and the self-model's prediction error falls with it rather than rising. Earlier reports measured that inversion; this one asks where the drop comes from.

Two new experiments split it. Driven open-loop, with the controller removed, the passive body alone reaches only ×0.65 for mass ×1.5, not ×0.30. In closed loop over 30 fresh seeds the full drop reproduces and decomposes: the controller commands ×0.50 of its healthy torque, the heavier body returns ×0.61 of its healthy motion per unit torque, and those multiply to ×0.30. Prediction error falls only to ×0.91. So the drop is roughly half body and half controller. Which way the causation runs inside the loop is still open.

Status of this result

Measurements from one simulated body, not a theory. Both new experiments cover mass ×1.5 only, soft joint, no sensor noise. The coupling check was not pre-registered: its decision rule was written before the run but committed with the results. No AUC was computed in either. The replay experiment that would separate cause from effect inside the loop has not been run.

1Background

A self-model is a learned forward model of a robot's own dynamics. The standard way to use one as a fault detector is to watch its prediction error and treat a rise as evidence the body changed: the residual framework of classical fault diagnosis (Isermann, 2006), and the reading behind self-modelling robots (Bongard, Zykov and Lipson, 2006; Kwiatkowski and Lipson, 2019).

Rung 6 found that on a simulated soft joint the error moves the wrong way. Error-based detectors scored AUC between 0.05 and 0.34 across model variants, where 0.5 is chance, all inverted: the standard one-step model at 0.202 without sensor noise, 0.286 with low noise.

Why the motion falls was interpretation, not measurement: a body change cut median motion from 0.0501 to 0.0150, a ratio of ×0.30, and error tracks motion at r = 0.68 to 0.72. Prof. Shai Revzen of the UMich BIRDS Lab suggested on 11 November 2026 that this might be pure resonance detuning, a heavier mass shifting the body's natural frequency away from whatever drives it. That is tested below.

2Method

3Does the passive body alone explain the drop?

The first experiment removes the controller. The same compliant environment is driven open-loop by 2·sin(ωt) at 15 frequencies from 0.1 to 10 rad/s, plus a fine grid from 2 to 6 rad/s in steps of 0.05. Each run settles 30 s, then amplitude is measured over 10 s, healthy against mass ×1.5, with length ×1.35 as an extra.

Amplitude ratio of the changed body to the healthy body against drive frequency from 0 to 10 radians per second, on a logarithmic vertical axis. The mass times 1.5 curve stays between roughly 0.65 and 0.9 across all frequencies. The length times 1.35 curve dips to about 0.48. A dotted horizontal line marks the main experiment's ratio of 0.30, well below both curves.
Figure 1. Open-loop amplitude ratio against drive frequency, in simulation, controller removed. Neither body change reaches the ×0.30 drop seen with the controller in the loop (dotted line).

The deepest mass ×1.5 ratio at any frequency is ×0.65, and ×0.67 to ×0.92 on the fine grid. Length ×1.35 reaches ×0.48. The resonance peak does not move down: 3.5 rad/s for both bodies, 3.50 against 3.65 on the fine grid, where pure spring-mass detuning would have predicted ×0.82. Swinging about the bottom, gravity's restoring torque scales with mass just as inertia does, so mass barely detunes this body.

Passive dynamics alone cannot produce ×0.30 for a mass change. The detuning explanation was tested, and it covers only part of the drop. One caveat: an open-loop drive cannot balance the pendulum upright, so this measures the hanging regime, not the balancing one. An earlier sanity check on a simplified torsional-spring pendulum, not this environment, gave at best about ×0.45 at k = 4.

4The controller coupling check

The second experiment keeps the main experiment's environment, model file, controller and episode loop, over 30 fresh seeds, 640000 to 640029, each run twice: healthy, and mass ×1.5 at onset. Paired runs are bit-identical beforehand, and the decision rule was fixed before running.

metric, window 1–5 shealthy (mean ± SD)mass ×1.5 (mean ± SD)ratio of meanspaired ratio (95% CI)
motion0.0542 ± 0.02180.0165 ± 0.0051×0.30×0.32 (0.27–0.40)
controller torque (N·m)0.7742 ± 0.28290.3887 ± 0.0812×0.50×0.53 (0.46–0.63)
prediction error0.0922 ± 0.00740.0839 ± 0.0017×0.91×0.91 (0.89–0.94)
Table 1. Paired healthy and mass ×1.5 runs, 30 seeds, in simulation, 1 to 5 s after the change. Bootstrap intervals on the paired ratio.

The drop reproduces the main experiment: median motion 0.0589 to 0.0172 here against 0.0501 to 0.0150 there. It starts within about 0.5 s, lasts the whole window, and all 30 seeds stay upright. It is not saturation: torque sits at the ±2 N·m limit on 0.1% of healthy steps and 0% of changed steps. The pre-set rule resolved to outcome A, the controller's output drops on the heavier body.

Motion against time from two seconds before to six seconds after the body change, averaged over 30 seeds, with shaded spread. The healthy trace stays near 0.055 throughout. The mass times 1.5 trace is identical before the change, then falls sharply within about half a second and settles near 0.015 for the rest of the scoring window.
Figure 2. Motion around the body change, in simulation, mean of 30 paired seeds, shaded spread. Traces are identical until onset.
Controller torque magnitude against time over the same window, averaged over 30 seeds. Both traces sit near 0.8 newton metres before the change. After the change the mass times 1.5 trace falls to roughly 0.4 while the healthy trace stays near 0.8.
Figure 3. Controller torque, same window, in simulation: about half its healthy value on the heavier body.
One-step prediction error against time over the same window, averaged over 30 seeds. Both traces sit near 0.09 and stay close together after the change, with the mass times 1.5 trace slightly lower. The gap is far smaller than the gaps in the motion and torque figures.
Figure 4. One-step prediction error, in simulation. It falls only to ×0.91 while motion falls to ×0.30: the surprise signal barely moves, and moves downward.

5The mechanism

In plain words: the arm gets heavier, so the same push moves it less. The controller sees smaller wobbles, so it pushes more gently, and the arm moves even less. The self-model's error mostly tracks how much the arm moves, so the error goes down too. A detector that waits for error to go up reads the changed body as fine. Both factors come from the closed-loop experiment, and they multiply.

factorratio, changed / healthy
controller torque commanded×0.50
motion per unit torque, the passive body responding (0.0425 against 0.0701 motion per N·m)×0.61
product×0.30
Table 2. Decomposition of the motion drop, in simulation, both factors from the same closed-loop experiment. The second factor's paired geometric mean is ×0.61, per-seed range 0.39 to 0.92.

The ×0.61 factor is the passive body returning less motion per push, agreeing with section 3, where the deepest mass ×1.5 ratio was ×0.65 and the fine grid ×0.67, close to 1/1.5 = 0.67. The ×0.50 factor is the controller choosing to push less.

Which way the causation runs inside the loop is open: the controller reacts to the state it observes, so “less torque leads to less motion” and the reverse both fit, and probably reinforce each other. The experiment that would separate them, replaying each seed's healthy torque open-loop on the heavier body, has not been run. These are measurements of one simulated body, not a theory.

6Implications

If this coupling holds more widely, which would need testing, it is awkward for fault detection built on self-models: the controller is part of the measurement. A controller that compensates for a changed body may hide the change from the signal meant to reveal it, and the better the controller, the quieter the evidence. Rung 3 found a related effect on a rigid body, where a controller holding the pendulum steady applied little torque and so generated little evidence of its damage.

For a compliant humanoid or a deployed robot with series-elastic actuation, this may mean a residual threshold tuned on a rigid rig would not transfer, and a detector may need to watch the controller's output alongside the model's error. Both are hypotheses about systems not tested here.

7Limitations

1

Simulation, not hardware. A numerical model with chosen, not measured, parameters. Nothing has run on a physical device.

2

One body change. Both new experiments cover mass ×1.5 only, soft body, no sensor noise. The main experiment also had length changes and low noise.

3

Causal direction unresolved. The replay experiment separating “less torque causes less motion” from the reverse is not yet run.

4

The open-loop check tests a different regime. An open-loop drive cannot balance the pendulum upright, so section 3 measures the hanging regime, not the balancing one.

5

Not pre-registered. The coupling check's decision rule was written before the run, but committed with the results.

6

No detection performance measured. No AUC was computed in either new experiment. Every AUC quoted comes from the earlier seed-90000 and seed-777000 runs.

7

One of everything else. One body topology (a single-joint pendulum), one controller type, one forward-model training seed.

8Next steps

9Reproducibility

repo: https://github.com/probnotas/self-model-research
branch: claude/surprise-attribution-experiment-ivcvjp

python experiments/resonance-check-in-env/experiment.py
python experiments/controller-coupling-check/experiment.py

seeds: 90000 (exploratory arc) · 777000 (pre-registered replication) · 640000–640029 (coupling check)
the open-loop check is deterministic, with start states seeds 0–4
logs: results.json and episodes.npz in each experiment folder
pre-registration: surprise_attribution/PREREG_replication.md (commit 29193c5)

References

Conclusion

On a simulated soft pendulum, with this controller and mass ×1.5, the motion drop that hides a body change from its self-model is about half passive body, half control loop. The passive-physics explanation was tested directly and accounts for ×0.61 of the ×0.30, not all of it. Prediction error moves only to ×0.91, and downward, which is why a detector waiting for surprise to rise sees nothing.

Self Model Research
  1. Rung 1The Planner Hides the Model
  2. Rung 2A Wrong Model Is Worse Than None
  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 (this report)