LIBERO Metric Residual Servo v5 — release v5.2-seed3
A 112K-parameter learned motion residual for a deterministic Cartesian PI controller. It maps 44 controller/state features to six bounded LIBERO motion corrections at 20 Hz. Release v5.2 adds a contact-gated orthogonal authority projector: in free space the residual may only change speed along the commanded error direction; in contact context (grasp / manipulate / release) it may also shape the path, by at most 0.05 normalized action units.
Evidence boundary. What has been measured is a controller-tracking microbenchmark: paired tuned-analytic vs hybrid pose-error AUC on one held-out LIBERO Goal scene ("put the bowl on the plate"), three simulator initial states, three canned motions (+5 cm translation, +15° yaw, translate-then-close), plus held-out open-loop action imitation. End-to-end task success with a planner in the loop has not been measured. No LIBERO task-success claim, no real-robot claim, no contact-robustness or cross-embodiment claim.
This is the recommended successor to the legacy
libero-metric-action-decoder-v2
(different architecture, separate repository).
What changed versus the first draft of this card
- The first draft (2026-08-31, never published) described checkpoint
42191da5…("v5-formal"). That artifact passed the aggregate thresholds (+5.57 % mean AUC, 7/9 wins) but its gain was rotation-only: the translate kind regressed (−1.43 %; translate-then-close −5.52 %). Under the restored per-kind non-inferiority criterion it fails. It is kept as a documented predecessor inpredecessors/v5-formal/andevidence/predecessor_v5_formal/. - The headline artifact is now v5.2-seed3 (checkpoint
1bd1c864…), qualified on 2026-08-29 in a preregistered one-shot gate on virgin initial states 32-34: +10.71 % mean AUC, 9/9 wins, translate +7.09 %, rotate +17.73 %. - v5.2 requires a different serving projector (
reference_runtime/v51.py, flagsUSE_V51=1 V52_CONTACT_GATED_ORTH=1). The package now ships it, withreference_runtime/RUNTIME.md.
What it is
metric waypoint
↓
analytic Cartesian PI controller ──────────────┐
↓ │
44 state/error/controller features │
↓ │
112K learned residual (|r| ≤ 0.1) │
↓ │
near-goal no-brake transform │
↓ │
OOD gate + v5.2 projector ←───────────────────┘
position: parallel authority always,
orthogonal authority only if expected_contact = 1 (cap 0.05)
rotation: parallel-only (unchanged v4)
↓
one 20 Hz LIBERO action (gripper: deterministic, never learned)
The learned component is deliberately subordinate to the analytic controller:
- it predicts motion residuals only, never gripper commands;
- every residual component is bounded to
[-0.1, 0.1]; - semantic-schema and continuous-feature OOD checks fall back to analytic control;
- the projector enforces a minimum-progress floor (≥ 50 % of analytic progress along the error);
- within 2× position tolerance, braking residuals that oppose the position error are removed;
expected_contactis a semantic input flag from the subgoal, not a sensed contact signal.
The raw six-vector produced by model.safetensors is not directly executable.
Deploy it only inside the full controller boundary in reference_runtime/
(RUNTIME.md documents the flags and the projector step by step).
Architecture
| Property | Value |
|---|---|
| Trainable parameters | 112,262 |
| Input | 44 features |
| Hidden layers | 256, 256, 128 |
| Activation | SiLU + LayerNorm |
| Output | 6 bounded motion residuals |
| Learned gripper | No |
| Residual bound | ±0.1 normalized action |
| Orthogonal position authority (v5.2) | ≤ 0.05, only when expected_contact = 1 |
| Control rate | 20 Hz |
The 44 features include current gripper pose, jaw state and velocity, Cartesian
velocity, relative 6D pose error, analytic action, phase/gripper semantics,
tolerances, speed, and expected contact. The exact ordered names and training
statistics are in normalization.json (identical statistics to v5).
Training data and recipe
- Dataset:
physical-intelligence/libero, pinned revision20f6ab338acbb455b4215db2ed5f7f1ad855f036 - Training tasks: 30 of the 40 source task identities; all ten exact LIBERO Goal
task identities excluded (
holdout_contract.json) - Training episodes / rows: 1,149 / 771,722; validation episodes / rows: 116 / 73,254
- Target: same-row expert motion command
action[t, :6]; gripper not learned - v5.2 loss (
decoder-v5-dev/train_v51.py): smooth-L1 (β = 0.05) between the deployed action — raw residual passed through the no-brake transform and the v5.2 projector withV52_CONTACT_GATED_ORTH=1— and the expert motion, plus 0.01 × L2 on the raw residual; Adam 3e-4, batch 4096, 20 epochs, CPU; seed 52003; best epoch 18 selected by validation smooth-L1 (0.084676).
Results
Held-out open-loop imitation
Held-out episodes of the 30 training task identities (116 episodes, 73,254 rows), deployed motion MAE through each artifact's own serving projector:
| Controller | Motion MAE | vs analytic |
|---|---|---|
| Analytic PI | 0.11436 | — |
| Analytic PI + v5-formal residual (predecessor) | 0.10149 | +11.25 % |
| Analytic PI + v5.2-seed3 residual | 0.10097 | +11.71 % |
Recomputed on 2026-09-02 from the checkpoint (evidence/v52_open_loop_recompute.json);
matches the training log (evidence/v52_training/train-v52-s3.log, epoch 18) to all
printed digits. Caveat: open-loop MAE is not a proxy for closed-loop value. The same
weights served without the contact gate (the v5.1 recipe) score better open-loop
(0.10058) yet the ungated recipe lost the translate kind in closed loop (see Lineage).
Formal closed-loop controller gate (v5.2-seed3)
Preregistered, one-shot, executed 2026-08-29 on previously unused simulator initial states 32, 33, 34 of the held-out scene "put the bowl on the plate". Reference arm: tuned analytic controller; candidate arm: same shell with the v5.2 hybrid controller. Metric: fixed-horizon normalized pose-error AUC per waypoint (lower is better), frozen v4 gate definition.
| Criterion | Required | Result | |
|---|---|---|---|
| Eligible paired waypoints | ≥ 6 | 9 | pass |
| Mean AUC improvement | ≥ +5.0 % | +10.71 % (0.27464 → 0.24523) | pass |
| Pairwise wins | ≥ 60 % | 9/9 | pass |
| Translate kind non-inferiority | ≥ 0 | +7.09 % | pass |
| Rotate kind non-inferiority | ≥ 0 | +17.73 % | pass |
| Sequence | init-32 | init-33 | init-34 |
|---|---|---|---|
| translate_x_positive_5cm_open | +6.82 % | +6.56 % | +6.71 % |
| rotate_yaw_positive_15deg_open | +17.80 % | +17.66 % | +17.73 % |
| translate_then_close | +7.29 % | +8.03 % | +7.98 % |
What the AUC numbers mean physically (from evidence/v52_formal_gate/trace.jsonl;
identical across the three states; one tick = 50 ms):
| Motion | Analytic | Hybrid v5.2 |
|---|---|---|
| translate +5 cm (15 mm tolerance) | 11 ticks, parks at 12.7-12.8 mm | 10 ticks, parks at 11.5 mm |
| rotate yaw +15° (0.15 rad tolerance) | 13 ticks, 2.74-2.75° residual | 10 ticks, 2.00-2.01° residual |
| translate-then-close (5 mm tolerance) | 36 ticks, min error 2.6 mm, gripper closes from tick 17 | 34 ticks, min error 0.4-0.5 mm, gripper closes from tick 15 |
The residual buys 1-3 ticks (50-150 ms) and about 1 mm per waypoint. Whether that matters for task success depends on the planner that supplies the waypoints and has not been measured.
The same checkpoint was measured earlier on development states 20-22 (+10.75 %,
9/9, translate +7.13 %, rotate +17.76 %) and 26-28 (+10.76 %, 9/9, translate
+7.17 %, rotate +17.71 %): evidence/dev_gates/gate-v52-s3-*. Three state sets agree
to within 0.05 percentage points.
Label erratum. evidence/v52_formal_gate/summary.json is shipped verbatim; its
label and candidate_arm strings are stale hardcoded development strings and do
not describe this artifact. evidence/LABEL_ERRATUM.md documents the actual
checkpoint, command and hashes, and the fix applied to the runner.
Lineage
| Artifact | Serving | States | Mean | Wins | Translate | Rotate | Status |
|---|---|---|---|---|---|---|---|
v5-formal 42191da5… | no-brake + parallel-only | formal 29-31 | +5.57 % | 7/9 | −1.43 % | +19.13 % | superseded (fails per-kind) |
| v5.1 (ungated orthogonal) | USE_V51=1 | dev 20-22 | +0.23 % | 3/9 | −6.55 % | +13.33 % | negative result |
| v5.2 seed 52001 | contact-gated | dev 20-22 / 26-28 | +7.29 % / +7.03 % | 6/9 / 6/9 | +1.71 % / +1.34 % | +18.08 % / +18.06 % | not selected |
| v5.2 seed 52002 | contact-gated | dev 20-22 | +4.09 % | 9/9 | +4.77 % | +2.78 % | not selected |
| v5.2 seed 52003 (this release) | contact-gated | dev 20-22 / 26-28 / formal 32-34 | +10.75 / +10.76 / +10.71 % | 9/9 all | +7.13 / +7.17 / +7.09 % | +17.76 / +17.71 / +17.73 % | qualified |
Development states were reused across candidates (selection happened on them);
only states 32-34 were virgin at gate time. Seed variance in the translate/rotate
allocation is large and invisible to the training loss (all three v5.2 seeds reach
validation smooth-L1 0.08467-0.08468). Summaries: evidence/dev_gates/.
Loading the learned component
pip install -r requirements.txt
python example_inference.py
Or:
import torch
from model import load_model, load_servo_config, no_brake_transform_v5, deploy_position_v52
model = load_model(".")
servo = load_servo_config("servo_config.json")
features = ... # [batch, 44] contract-valid rows (see normalization.json / reference_runtime)
analytic_action = ... # [batch, 6] analytic PI action for the same rows
pose_error = ... # [batch, 6] relative pose error
with torch.inference_mode():
raw_residual = model(features)
transformed = no_brake_transform_v5(raw_residual, features)
position = deploy_position_v52(raw_residual, features, analytic_action, pose_error,
servo=servo, ood_scale=None) # ood_scale from reference_runtime in a rollout
deploy_position_v52 reproduces the serving position path of reference_runtime/v51.py
(validation_report.json: exact forward parity, exact no-brake parity, projector
parity ≤ 1e-9 over the full held-out split plus synthetic stress rows). The rotation
group, the OOD gate, the feature builder and the analytic controller are only
available through reference_runtime/.
Included artifacts
model.safetensors: v5.2-seed3 weights and normalization buffers (metadata records the source checkpoint hash)best_checkpoint.pt: the original v5.2-seed3 checkpoint, byte-identical to the gated file, sha2561bd1c8642fe857053ff9050e8ac2ab744de945e4ebadaa48096055cde7b189e3model.py,example_inference.py: standalone network, no-brake transform, v5.2 position projectorconfig.json,servo_config.json,normalization.json: runtime contracts (servo config =reference_runtime/servo-fade1.json)reference_runtime/:v51.py(v5.2 controller), frozen v3/v4/v5 controller, OOD and projector sources,RUNTIME.mdevidence/v52_formal_gate/: verbatim formal gatesummary.json+trace.jsonl;evidence/LABEL_ERRATUM.mdevidence/dev_gates/: development-lane gate summaries for the lineage tableevidence/v52_training/,evidence/v52_open_loop_recompute.json: training log, dev note, open-loop recomputationevidence/metrics.json: compact view of every number in this cardevidence/predecessor_v5_formal/,predecessors/v5-formal/: the superseded v5-formal artifact and its evidenceholdout_contract.json,provenance.json,validation_report.json,MANIFEST.sha256,CITATION.cff,NOTICE.md
Known limitations
- LIBERO Panda state/action conventions only; no pixels, language, task planner, or VLM hidden states.
- No learned gripper control; no training support for
retractordonephases. expected_contactis a semantic input flag, not a sensed contact signal; the contact-context path authority is therefore only as good as the subgoal semantics.- The formal closed-loop gate covers one translation axis, one rotation axis and one translate-then-close sequence in a single held-out scene; object contact, recovery, waypoint noise and full task success are unverified.
- Per-waypoint gains are 50-150 ms and ~1 mm; end-to-end value with a planner in the loop has not been measured.
- The median active residual sits at the ±0.1 authority cap.
- Seed variance in kind allocation is large (see Lineage); one seed was qualified.
- The training loss and the serving code differ in one box-clamp corner case
(
reference_runtime/RUNTIME.md,validation_report.json); the shipped weights were trained and gated with that discrepancy in place. - The shipped gate summary carries stale label strings (
evidence/LABEL_ERRATUM.md). - Experimental research software, not a safety-rated robot controller.
Intended use
Reproducible LIBERO research on analytic-plus-learned residual control, controller ablations, OOD fallback, projector design (speed-vs-path authority) and VLM-to-metric-waypoint systems. Not intended for unsupervised real-robot operation or claims of general robotic intelligence.
License and attribution
Code and weights are Apache 2.0. Dataset and LIBERO attribution are documented in
NOTICE.md. The training dataset is not redistributed.