Technical Report · Self Model Research · Rung 6
The Quiet Body: How a Soft Robot Joint Reveals a Body Change
Prediction error failed on a simulated compliant joint, and eliminating the explanations one by one found why: a body change makes the robot quieter, not more surprised. A pre-registered test on fresh trials confirmed it.
Abstract
A robot's self-model, a learned forward model of its own dynamics, is surprised whenever a prediction fails. The surprise might mean its body changed (adapt) or that the world pushed it (don't). On a rigid simulated pendulum, a rule built on one-step prediction error makes that call well: it never mistook a push for a body change (0/120). On a simulated soft series-elastic joint, the same approach failed, with scores inverted (AUC 0.202 and 0.286). We then ruled out explanations one at a time:
- per-body thresholds and per-body rescaling;
- a model with memory of hidden actuator state;
- removing the settle gate;
- longer prediction horizons;
- a model trained on the balancing regime.
The mechanism turned out to be the reverse of the assumption behind every score: on the soft joint, a body change makes the pendulum move about three times less while balancing. Prediction error tracks motion, so after a body change the self-model looks less surprised. A score that reads the change in behaviour directly (“quieter than its healthy self = body change”) was then tested in a pre-registered experiment on fresh trials. On both soft configurations it separated body changes from pushes (AUC 0.984 and 0.969) with 3 and 0 false positives in 120 pushes. The detector is the robot's behaviour, not its self-model's surprise. Everything here is simulation, not hardware.
The headline result comes from a single pre-registered test on fresh trials (seed 777000), with the rules and success criteria committed before those trials existed. Everything before it is exploratory: those trials were analysed many ways, so it supports only the mechanism, not the claim. The detector catches 87 of 120 body changes on the soft joint without noise but only 24 of 120 with low sensor noise. It misses most body changes when a push happens at the same moment, and the direction it relies on (“quieter”) is specific to this soft joint.
1Motivation
Online adaptation needs a gate in front of it. Before a self-model rewrites itself, it has to decide whether the surprise was about itself or about the world. Earlier reports in this series showed that, on a rigid pendulum, the time course of one-step prediction error makes that call well.
Real robots aren't rigid. Their actuators have springs, lag, friction and noisy sensors. This report asks whether the same idea survives a compliant joint, and when it doesn't, why not. The answer changed what we think the right signal is.
2Setup
- System. Gymnasium Pendulum-v1, balancing upright under a cross-entropy-method model-predictive controller that plans through a learned forward model (an MLP trained on 2,000 random-action transitions).
- Surprise. The one-step prediction error ‖s′ − f(s, a)‖.
- Compliant joint (simulated). The motor drives the link through a spring of stiffness k, with hysteresis, a parallel damper and joint damping. The motor and spring state are hidden from the robot. Optional Gaussian sensor noise is added. Stiffness levels: rigid, k = 200, 30 and 4 N·m/rad (“soft”).
- Trials. A 2×2 factorial per body: nothing / body change only / push only / body change and push together, 120 trials each, plus 50 undisturbed calibration episodes.
- Body change: mass ×1.3–1.7 or length ×1.2–1.5.
- Push: 1, 2 or 4 N·m for 0.2 s or 0.5 s.
- Decision points. Every threshold is set on the body's own healthy calibration episodes, never on test trials.
3The arc of elimination
Table 1 summarises the experiments on the original trials (master seed 90000). Each tested one explanation for why attribution failed on the soft joint.
| experiment | explanation tested | result on the soft joint |
|---|---|---|
| Compliant grid | does the rigid rule transfer? | No. AUC 0.202 (no noise) and 0.286 (low noise), inverted |
| Per-body calibration | wrong scale | AUC unchanged; z-scoring can't reorder scores |
| History-input model | model lacks hidden-state memory | model 4× more accurate (held-out error 0.0519 → 0.0118), yet AUC 0.047–0.479 |
| Shape feature, no settle gate | the settle gate | pushes now separate, but body changes look like undisturbed runs (median log-ratio 0.03 vs −0.01) |
| Rollout error | one-step horizon too short | never usefully above 0.5 before the rollout diverges |
| Regime-matched model | model trained on the wrong regime | error floor drops below the motion (0.0900 → 0.0278), but AUC stays inverted (0.236) |
The regime diagnostic explains the middle of the arc. With real motion, the soft model beats a trivial “nothing changes” predictor (ratio 0.29). During balancing it loses (ratio 1.61), because its error floor (about 0.08–0.10) is larger than the motion itself.
4The mechanism: the body change makes the robot quieter
The regime-matched model removed the resolution problem, yet the scores stayed inverted. So we measured the motion directly, in the window 1–5 s after the disturbance.
| trial type | median motion |
|---|---|
| undisturbed | 0.0501 |
| body change | 0.0150 |
| body change (mass only) | 0.0158 |
| body change (length only) | 0.0109 |
A heavier or longer link on the soft spring cuts the pendulum's movement to about a third. Across trials, prediction error tracks that motion (correlation 0.68–0.72). So after a body change the self-model's error goes down, and every score that read “more error = body change” read the soft joint backwards.
Why a heavier link on a soft spring moves less hasn't been isolated. Slower natural dynamics, or the controller fighting the spring less, are plausible, but neither has been tested.
5Pre-registered test on fresh trials
The rules, fixed before the data existed
Before generating any new trial, we committed:
- Seed: master seed 777000, never used before.
- Configurations: soft joint without and with low sensor noise as the targets; rigid and medium stiffness as controls.
- Window: 1–5 s after onset.
- Score: each trial's log mean motion as a z-score against the body's own 50 fresh healthy episodes.
- Rules:
- Rule A: body change if |z| ≥ 2.
- Rule B: body change if z ≤ −2 (“quieter”).
- Rule C: rule A on the self-model's error instead of motion.
- Success criteria, on both soft configurations:
- S1: rule A AUC against undisturbed ≥ 0.75.
- S2: rule B AUC against pushes ≥ 0.75, with at most 15 false positives in 120 pushes.
The fresh trials were scored once.
Result: replicated
| body | rule A: AUC vs undisturbed | rule B: AUC vs undisturbed | rule B: AUC vs push | rule B: body changes caught | rule B: false positives on pushes | rule B: body changes missed when a push coincides | rule C (self-model): AUC vs undisturbed / vs push |
|---|---|---|---|---|---|---|---|
| soft, no noise | 0.899 | 0.959 | 0.984 | 87 | 3 | 97 | 0.717 / 0.337 |
| soft, low noise | 0.831 | 0.944 | 0.969 | 24 | 0 | 110 | 0.449 / 0.346 |
| rigid (control) | 0.994 | 0.901 | 0.915 | 108 | 3 | 88 | 1.000 / 1.000 |
| medium (control) | 1.000 | 0.017 | 0.019 | 2 | 2 | 119 | 0.984 / 0.873 |
Both success criteria passed on both soft configurations. Median motion z after onset (undisturbed / body change / push):
- soft, no noise: +0.36 / −2.55 / +2.71;
- soft, low noise: +0.14 / −1.60 / +4.99.
On the medium joint the direction reverses (+13.94 after a body change), so “quieter” is not a general rule.

6Discussion
The result is narrower than “attribution works on soft bodies”.
- The self-model is not the detector. Its own error, scored the same way, fails on the soft joint (rule C: 0.717 and 0.449 against undisturbed, 0.337 and 0.346 against pushes). What works is the robot's behaviour compared with its own healthy behaviour.
- On the rigid and medium joints the self-model's error works well (1.000 and 0.984). So the right signal depends on the body.
Methodologically, the arc matters as much as the endpoint. Every plausible fix aimed at the error signal (thresholds, scaling, memory, horizon, training data) failed for the same underlying reason, and finding that reason led to a signal that worked on data nobody had looked at.
The open problems are concrete:
- A real system has to learn, for its own body, which way its behaviour shifts after a body change.
- Body changes that coincide with a push are still mostly missed.
- Sensor noise cuts detection sharply (87 → 24 of 120).
7Limitations
Simulation, not hardware. The compliant joint is a numerical model with chosen, not measured, parameters. Nothing here has run on a physical device.
Direction is body-specific. “Quieter = body change” holds on the soft and rigid joints tested and fails on the medium joint (AUC 0.019). It isn't a general rule.
Detection is incomplete. The soft joint with low noise catches 24 of 120 body changes. When a push coincides with the body change, 97–110 of 120 are missed.
The self-model isn't the detector on the soft joint. The replicated result is about behaviour; the self-model's surprise fails there.
One controller, one model per body. The controller was held fixed throughout. A different controller could change how much a body change alters the motion.
Exploratory history. The seed-90000 trials were analysed many ways; only the fresh-trial test supports a claim.
Narrow test conditions. Body changes were mass ×1.3–1.7 or length ×1.2–1.5; pushes were square pulses of 0.2 s or 0.5 s. Four configurations were replicated.
Mechanism not isolated. Why the soft joint moves less after a body change is an interpretation, not a measurement.
8Reproducibility
master seeds: 90000 (exploratory arc) · 777000 (pre-registered replication)
model training seed: 0
pre-registration: surprise_attribution/PREREG_replication.md (committed before the fresh run)
replication: surprise_attribution/run_replication.py → results_replication/
full arc: surprise_attribution/findings_arc.md
Conclusion
On a simulated soft robot joint, a body change doesn't make the self-model more surprised. It makes the robot quieter. Finding that took ruling out six other explanations. A score built on it passed a pre-registered test on fresh trials, separating body changes from pushes with almost no false alarms. It is a narrow, honest result: behaviour, not surprise, and simulation, not hardware. It points the next step at learning which way each body's behaviour shifts, and at a real joint.
- Rung 1The Planner Hides the Model
- Rung 2A Wrong Model Is Worse Than None
- Rung 3Surprise Has a Signature
- Rung 4The Margin Was Rigid
- Rung 5An Arc of Elimination
- Rung 6The Quiet Body (this report)
- Rung 7Why Prediction Error Falls When the Body Changes