← Research

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:

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.

Status of this result

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

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.

experimentexplanation testedresult on the soft joint
Compliant griddoes the rigid rule transfer?No. AUC 0.202 (no noise) and 0.286 (low noise), inverted
Per-body calibrationwrong scaleAUC unchanged; z-scoring can't reorder scores
History-input modelmodel lacks hidden-state memorymodel 4× more accurate (held-out error 0.0519 → 0.0118), yet AUC 0.047–0.479
Shape feature, no settle gatethe settle gatepushes now separate, but body changes look like undisturbed runs (median log-ratio 0.03 vs −0.01)
Rollout errorone-step horizon too shortnever usefully above 0.5 before the rollout diverges
Regime-matched modelmodel trained on the wrong regimeerror floor drops below the motion (0.0900 → 0.0278), but AUC stays inverted (0.236)
Table 1. What each experiment tested, and what it showed. AUC compares body-change trials with trials that have no body change; below 0.5 means the scores are inverted.

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 typemedian motion
undisturbed0.0501
body change0.0150
body change (mass only)0.0158
body change (length only)0.0109
Table 2. Median step-to-step motion of the pendulum, 1–5 s after onset (soft joint, no noise, seed 90000).

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:

The fresh trials were scored once.

Result: replicated

bodyrule A: AUC vs undisturbedrule B: AUC vs undisturbedrule B: AUC vs pushrule B: body changes caughtrule B: false positives on pushesrule B: body changes missed when a push coincidesrule C (self-model): AUC vs undisturbed / vs push
soft, no noise0.8990.9590.984873970.717 / 0.337
soft, low noise0.8310.9440.9692401100.449 / 0.346
rigid (control)0.9940.9010.9151083881.000 / 1.000
medium (control)1.0000.0170.019221190.984 / 0.873
Table 3. Fresh trials, seed 777000. Rule B is “quieter than healthy = body change”. Counts are out of 120.

Both success criteria passed on both soft configurations. Median motion z after onset (undisturbed / body change / push):

On the medium joint the direction reverses (+13.94 after a body change), so “quieter” is not a general rule.

Four panels, one per simulated joint (soft no-noise, soft low-noise, rigid, medium). Each dot is one fresh trial's change in motion versus the healthy baseline, grouped as undisturbed, body change, push, and body change plus push. On the soft joints, body-change trials sit below zero (quieter) and many push trials sit above (louder).
Figure 1. Change in motion against each body's healthy baseline, one dot per fresh trial (seed 777000); black bars are medians and dashed lines the pre-registered thresholds z = ±2. On the soft joint, body-change trials sit below zero. Push trials split: about half return to normal, the rest stay louder. On the medium joint, body changes go the other way. Simulated joint, not hardware.

6Discussion

The result is narrower than “attribution works on soft bodies”.

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:

7Limitations

1

Simulation, not hardware. The compliant joint is a numerical model with chosen, not measured, parameters. Nothing here has run on a physical device.

2

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.

3

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.

4

The self-model isn't the detector on the soft joint. The replicated result is about behaviour; the self-model's surprise fails there.

5

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.

6

Exploratory history. The seed-90000 trials were analysed many ways; only the fresh-trial test supports a claim.

7

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.

8

Mechanism not isolated. Why the soft joint moves less after a body change is an interpretation, not a measurement.

8Reproducibility

Python 3.11.15 · numpy 2.4.6 · torch 2.14.0+cpu · gymnasium 1.3.0
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.

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 (this report)
  7. Rung 7Why Prediction Error Falls When the Body Changes