- π0.5 on RoboTwin 2.0. On click_bell, Astra changed 4 weights out of 3,616,757,520. Held-out success went from 28/92 to 82/92 (clean and cluttered scenes combined). Pooled over the four tasks where it submitted an edit, held-out success in the target setting went from 27% to 65%.
- How it found them. A probe, test, validate loop: read activations on saved inputs (about a minute, no simulator), check that an edit moves actions the predicted way on those same inputs, and only then spend rollouts.
- Unitree G1 spin kick, hidden +10 kg. Without being told what changed, Astra weighed the robot in mid-air (9.99 kg against a true 10 kg), then rewired 9 least-influential neurons into three wires that make the waist and knee motors 1.66× and 1.485× stronger: 41% → 99% over 256 held-out episodes. Under a 180 s robot-time budget it found a different, simpler fix: 37% → 82%.
- G1 walking (Angchen's runs). With under 5 minutes of interaction, falls went from 60/64 to 1/64 under a hidden 10 kg load and 31/64 to 3/64 on a hidden 15° slope. For the slope, Astra built a stateful slope observer inside the original MLP.
- World action models. Mostly a negative result. Small gains did not survive unseen seeds, and opposite edits rescued the same scenes, which reads more like noise than repair.
1Why edit weights at all?
The usual way to fix a robot policy is to collect more data and fine-tune. That treats the network as something you can only reshape from the outside, with a loss and an optimizer. Rikiya Takehi's Weight-Space Programming post[1] asked a different question for language models: can a strong agent read a network's weights and activations, work out what a piece of it does, and change it directly, the way you would patch a program?
Robot policies seemed like a good place to test this, because their failures are unusually concrete. A VLA hovers above a bell and never presses it. A humanoid controller trained on a nominal robot drops its hand a few centimetres too low once the torso is heavier. These are named, observable failure patterns, and you can check a fix by running the robot again. If an agent can localize the cause of such a failure inside the network and repair it with a small, explicit change, that is a different kind of tool from fine-tuning. It is closer to surgery.
We tried this in three domains that span four orders of magnitude in size:
- VLA: π0.5[2], 3.6B parameters, on five RoboTwin 2.0[3] tasks.
- World action models (WAMs): FastWAM, PrismWAM and X-WAM, about 6B parameters each, on the same benchmark.
- Humanoid control: RL-trained Unitree G1 controllers with 220k to 250k parameters, facing dynamics they were not trained on: a spin kick with a hidden torso payload, and walking with a hidden payload or a hidden slope.
The agent in every case is GPT-6 Astra (gpt-6-astra), run through codex exec at maximum reasoning effort.
2The harness: what Astra could and could not do
The rules are the point of the experiment, so we state them first. Astra may read anything and compute anything in closed form, but it may not train. Concretely, every built-in Codex tool was switched off (no shell, no web, no image tools), and Astra acted only by writing one fenced block per reply, which a driver executed:
Forbidden: gradients, autograd, optimizers, any iterative fitting of weights to a loss, running or simulating the network's forward pass in the kernel, and the internet. Allowed: any analysis of the weights or of recorded data, and any edit you can write down in closed form. In practice Astra's edits are built from means, projections, PCA and rank-1 updates. Edit strengths were chosen by comparing a few rollouts, which is a coarse search over two to four values, and we count it as such.
Two details matter for how far the results can be trusted:
- Held-out means held-out. The rollout tool refuses seeds outside the practice pools. After the session ended, we ran the frozen edit once on held-out seeds Astra had never seen, with instruction phrasings it had never seen, paired against the original weights under the same sampling noise. Astra also split its own practice seeds into a development set and an untouched validation set, which it froze and checksummed before looking.
- Diagnosis used privileged information. For π0.5, Astra's baseline rollouts came with simulator object poses, gripper contacts, automatic failure labels and the task's success code. The policy still sees only three RGB cameras, robot state and the instruction, but the diagnosis did not come from pixels alone.
3π0.5: probe, test, validate
The model and the tasks
We used the public RoboTwin 2.0 π0.5 "cotrain" checkpoint (aloha-agilex, joint actions), converted to PyTorch float32: 3,616,757,520 stored parameters. Its baselines roughly match the leaderboard (click_bell: published 31% clean / 35% randomized, ours 28% / 34% on held-out). It was trained on clean scenes only, so the randomized setting (unseen textures, up to ten distractors, random lights, a slightly lowered table, unseen phrasings) is out of distribution.
We picked five tasks from a ten-task screen. Each fails sometimes but not always, and each in a distinct way. They are not a random sample: the premise is that an edit can tip borderline cases, which needs a policy that sometimes succeeds. Where Astra's edits land in the network:
click_bell: four weights
The task. A bell stands 5–25 cm left or right of centre. The arm on that side has to touch the top of the bell with its gripper closed, within 2.5 cm horizontally and 3 cm vertically, inside 400 steps.
The failure. On 16 clean development scenes the original model succeeded 3 times. It always picked the correct arm: the idle arm barely moves (≤0.047 rad of motion against 2.3–3.4 on the active arm). What went wrong was the last centimetres. The failing arm reached above the bell, closed its gripper, and then hovered there for hundreds of steps; all 13 failures were labelled "never touched". Both bell models failed, so this was not a recognition problem. Astra then compared the second model call, when the arm is already above the bell. Successes commanded the elbow down by 0.12–0.16 rad and the wrist up by 0.15–0.16 rad. Failures stayed within about ±0.04. The missing motion was a coordinated press: elbow down, wrist up.
"The contact sheets support a near-target stall: the failed arms reach above the bell, close, and then remain there for hundreds of steps. Both bell appearances can fail, so this is not simply failure to recognize one model of bell." — Astra, turn 6
A dead end first. Astra's first probe recorded all 18 action-expert attention layers on 36 saved frames. One head (layer 9, head 1) put 57% of its attention on images in successes and 34% in failures, a tempting correlate. Astra halved that head's output on the same saved inputs and measured the change in near-bell actions: 0.0014 rad RMS. It dropped the idea.
"That does not support the proposed head-suppression repair, so I'll remove it rather than treat the attention correlation as causal evidence." — Astra, turn 12
Reading the last layer. The useful observation is architectural. π0.5's action expert ends in a normalization followed by one linear map, action_out_proj, from a 1,024-dimensional feature \(h\) to a 32-dimensional velocity (14 dimensions are real joints). Because
the contribution of feature \(f\) to joint \(j\) at a given denoising step is exactly \(W_{jf}\,h_f\). That makes attribution arithmetic: with recorded activations and the weight matrix, Astra could compute how much each feature pushed each joint, without running the network (which the rules forbid). It is only approximately exact over a whole action, because the ten denoising steps feed into each other.
Astra defined the press direction on each arm's (elbow, wrist) pair as \(u = (-1, +1)/\sqrt{2}\), after scaling rows to radians. It then scored every feature by how much its press weight, times the difference in its mean activation between successes and failures, could explain the missing press, separately for each arm:
action_out_proj. Columns 141 and 369 feed the elbow and wrist of each arm; every other number in the model is unchanged. The sample sizes behind the ranking are tiny: 1 success vs. 5 failures on the left, 2 vs. 8 on the right.The top left feature was 566 and the top right was 369. Astra kept 369 but took the left side's second-ranked feature, 141, because of sign: in failing near-bell calls, 141 and 369 carry activations whose readout weights push against the press. (A later recomputation confirmed that 566 actually pushes toward the press in failing scenes.) In other words, two features that are active exactly in the hover state act as brakes.
"This changes four scalar weights, not overall action scale, and predicts a stronger near-target press without directly changing gripper or arm-selection outputs." — Astra, turn 13
The edit. For each of the two columns, split the (elbow, wrist) pair into a common-mode part, which is kept, and a press part, which is scaled by \(1-s\):
At \(s=1\) the anti-press component is removed. At \(s=2\) it is reversed. At \(s=3\), the submitted value, it is reversed at twice its original size. The other 30 rows of each column and the other 1,022 features are untouched.
| Entry | Joint | original | s = 1 | s = 2 | s = 3 (submitted) |
|---|---|---|---|---|---|
W[2,141] | left elbow | +0.0626 | +0.0191 | −0.024 | −0.0679 |
W[3,141] | left wrist | −0.0304 | +0.0238 | +0.078 | +0.1322 |
W[9,369] | right elbow | −0.0518 | +0.0136 | +0.080 | +0.1445 |
W[10,369] | right wrist | +0.1001 | +0.0172 | −0.066 | −0.1486 |
Test, before any rollout. Astra re-ran the real model on the same 24 saved inputs with the \(s=1\) weights (about a minute). The bell-side arm moved 0.0092 rad RMS, 99.4% of it along the predicted press direction. At \(s=2\) the change kept the same direction (cosine 0.994) at about 2.3× the size. One honest detail: the idle arm also moved, by 0.0077 rad RMS, in the opposite direction, so the edit is not confined to one arm. Separate left-only and right-only probes showed each column's effect stays almost entirely on its own side (99.3% and 99.4%).
Validate. Only then did it spend rollouts, on the same 16 clean development scenes, at three strengths:
Astra then froze strength 3 before looking at its validation seeds ("I'll select strength 3 now, before examining any validation scenes"). On its untouched validation scenes the edit went 10/44 → 42/44 clean and 29/64 → 60/64 randomized, losing nothing. On our held-out evaluation it went 17/60 → 55/60 clean and 11/32 → 27/32 randomized, with one lost success in total. Combined, that is the 28/92 → 82/92 from the thread.
Why it works, as far as we can tell. The failure is a missing coordinated motion in one phase. Two late features are active in the hover state, and their readout weights cancel the press. Because the readout is linear, flipping just their press component turns a brake into a push, and the effect is largest when those features carry their failure-time sign, near the bell. Reaching, arm choice and grasp are untouched. That the cluttered scenes improved too suggests the hover mechanism is the same in both settings. Caveats: the features are also active elsewhere, the idle arm moves, and the effect passes through ten interdependent denoising steps.
handover_block: an attention head, gated
The second case is less tidy and, to us, more interesting, because the first fix was wrong in a way Astra caught.
The failure. One arm should grasp a tall red block and hand it to the other. In all 8 baseline failures (7/15 succeeded), the first grasp fails: by step 50 the still-open left gripper has pushed the block 2.9–6.0 cm sideways (successes: ≤0.23 cm), and it topples at steps 55–64.
Probe. Astra ranked all 144 action-expert heads by attention to the left wrist camera. Layer 14, head 1 came first: 71% of its attention goes to the wrist view, and its wrist attention correlated with the early push at r = +0.53. Only about 9% of its attention lands on the block itself. The head was chosen for where it looks, not because it tracks the block.
A first fix that helped, and a regression it found. Halving the head's output (columns 256–511 of layer 14's attention out-projection) went straight to rollouts: clean development scenes rose from 7/15 to 11/15, and the step-50 push fell from 4.6 to 2.2 cm. But the randomized check fell from 3/16 to 2/16, with new early-grasp failures.
"The randomized check exposed a real regression … half-strength attenuation is too broad to accept as the final repair, despite its clean-scene gain." — Astra, turn 12
A gated edit. Astra's answer was to make the change conditional on context without adding any runtime switch. It found a direction \(u\) in the head's output space that is active during the clean pre-grasp approach but orthogonal to the top 26 principal components (99% of the energy) of randomized and later-phase contexts. Ablating \(u\) directly did nothing useful: it moved actions in the wrong direction. So it used \(u\) only as a selector and subtracted part of the head's mean clean-approach contribution \(m\) when that selector is active:
That is one rank-1 change to the head's slice of the output projection, with exactly one nonzero singular value. The selector's RMS is 1.14 on the clean approach and 0.08–0.16 everywhere else, so the change acts mostly on the pre-grasp approach, though not only there. Clean development scenes went to 11/15 and the step-50 push fell to 0.5 cm. Note that attention itself is not edited: both of our π0.5 "attention" stories are weight edits on output projections.
Held-out: 16/51 → 32/51 clean (18 fixed, 2 lost, p = 4×10⁻⁴). Randomized stayed flat at 2/30 → 3/30. This is a clean-scene repair.
All five tasks
Show the numbers
| Task (target) | First edit tested (dev) | Held-out, target | Held-out, other | Edits run | What was edited |
|---|---|---|---|---|---|
| click_bell (clean) | 3/16 → 5/16 | 17/60 → 55/60 (39 / 1) | 11/32 → 27/32 | 3 | 4 entries of action_out_proj |
| place_cans (clean) | 6/16 → 7/16 | 23/58 → 50/59 (30 / 4) | 23/32 → 22/32 | 4 | one input row of expert L10 mlp.up_proj (1,024 weights) |
| handover_block (clean) | 7/15 → 11/15 | 16/51 → 32/51 (18 / 2) | 2/30 → 3/30 | 5 | rank-1 change in L14 head 1 out-projection |
| handover_mic (rand.) | 2/14 → 5/14, reverted | 6/59 → 11/58 (n.s.) | 27/27 → 27/27 | 3 | rank-1 correction of the vision projector |
| beat_block_hammer (rand.) | 4/11 → 6/11 | none submitted | — | 5 | none (original weights) |
The thread's aggregate numbers, stated precisely:
- "One-shot: 31% → 47%" pools the first edit Astra tested on each of the five tasks: 22/72 → 34/72. These are Astra's development scenes (11–16 per task), not held-out, and two of the five first edits had side effects that later passes exposed.
- "~4 edits: 27% → 65%" pools held-out results in the target setting over the four tasks with a submitted edit: 62/228 → 148/228. If beat_block_hammer is counted as unchanged, it is 27% → 58%. On average Astra tested 4.0 distinct edits per task in the simulator.
beat_block_hammer is worth a sentence. Astra's best candidate went from 12/45 to 17/45 on its own validation scenes, which it judged not clearly beyond noise, so it restored and verified the original weights: "The improvement was not clearly beyond sampling noise, so it failed your retention criterion." We evaluated the rejected candidate afterwards anyway: 10/43 → 22/48 on held-out randomized scenes (9 fixed, 0 lost). Its caution cost it a real gain here, but we would rather have that failure mode than the opposite one.
The loop, in general
Across tasks the same procedure kept appearing. We started calling it probe, test, validate:
Two things make this work for π0.5. First, failures in these tasks are discrete and phase-specific: a press that never happens, a push at step 50. That gives a clean success-vs-failure contrast to rank against. Second, the probe is cheap relative to a rollout pass, so the agent can afford to be wrong several times before touching the simulator. The whole click_bell session cost 3.42M tokens, nearly all cached input, with 31k output tokens.
4World action models: mostly a negative result
We ran the same harness on three WAMs: FastWAM (6.0B), PrismWAM (about 6B in scope) and X-WAM (6.7B). The results were weak, and we think it is more useful to show why than to report the best number.
| Model · task | Baseline | Best observed | Outcome |
|---|---|---|---|
| FastWAM · place_mouse_pad | 10/16 | L14 H8 output ×1.5: 29/60 → 37/60 on all practice | Submitted. Untouched holdout 13/32 → 16/32 |
| FastWAM · stamp_seal | 4/11 | 3-head query ×1.5: 17/32 → 22/32 | Untouched 10/16 → 11/16; original weights submitted |
| FastWAM · place_fan | 11/15 | wrist-neuron gain: 36/54 → 37/54 | Tie on untouched scenes; original submitted |
| FastWAM · turn_switch | 5/15 | L13 H1 ×2.5: 11/26 → 12/26 | Untouched 6/14 → 5/14; original submitted |
| FastWAM · click_bell (rand.) | 0/16 | 0/16 → 3/16, always the same three seeds | Unseen 2/32 → 2/32; no submission |
| PrismWAM · handover_mic (rand.) | ~7/14 | 8 edit versions across 5 unrelated components | Validation 19/57 → 18/57; original submitted |
| PrismWAM / X-WAM · 4 more tasks | 1–5 of 16 | +1 or +2 on development scenes | Stopped early; regressions on clean scenes |
The thread said "few-shot edits gained 8.7% SR". That is the per-task mean of each FastWAM task's best candidate, measured on all clean practice seeds, including the seeds used to select it: +15.6, +13.3, +3.8 and +1.9 points. Measured on seeds those candidates were not selected on, the gain is about +1.6 points. What Astra actually submitted averages +3.3. Astra did not reject candidates for losing a success. It rejected them because their gains did not repeat on scenes it had not tuned on, and it still submitted place_mouse_pad at p = 0.06.
"Halving the head also rescues the same three left-arm scenes … That contradicts a simple 'more of this head always improves placement' explanation and raises the possibility of sensitivity to small trajectory perturbations." — Astra, FastWAM place_mouse_pad
Two hypotheses for why WAMs behaved so differently from π0.5:
- Edits help when a skill is present but blocked. Two of the three π0.5 wins failed in the easier setting: place_cans is 31% clean vs. 73% randomized on the leaderboard, and click_bell practice was 3/16 clean vs. 7/16 randomized. The FastWAM clean targets show no such hidden competence (randomized is near zero on all four). handover_block is a counterexample, and three wins are not much evidence. We have not tested this prospectively.
- The gains may be noise. FastWAM's failures were near misses (stamp_seal's median release error was about 1.5 cm against a 1 cm threshold), and ablating the edited head entirely did not hurt (11/16). With 30 layers × 24 heads × 10 denoising steps, there is a lot of redundancy for a single-head edit to fight. Three of four best candidates failed on untouched seeds. By contrast, π0.5 click_bell fixed 9–14 of 16 scenes per pass and lost none.
Explanations the data argues against: budget (FastWAM runs got 34–41 passes vs. π0.5's 20) and headroom (comparable). "Astra understands VLMs better than video models" is not supported either: its FastWAM probes did find arm-specific and target-tracking heads and tested them causally. The gains just did not hold.
5Humanoid control: a spin kick with a hidden payload
The VLA work is about localizing a failure inside a large network. The humanoid work asks a different question: if the world changes, can the agent figure out what changed from the robot's own logs and compile a compensation into a small policy that was never trained for it?
Setup
- Policy. A BeyondMimic[4] whole-body tracking policy for a taekwondo spin kick on Unitree G1: 6.6 s, three spins of about 1,094°, jumps to 1.08 m. Trained with PPO in IsaacLab for 8,000 iterations, then frozen and exported as a plain MLP
160 → 512 → 256 → 128 → 29with ELU: 250,397 parameters. Actions are PD joint targets at 50 Hz. IsaacLab is the simulator of record; the videos are MuJoCo replays of IsaacLab trajectories. - The gap. +10 kg on the torso link (7.8 → 17.8 kg; the whole robot 33.3 → 43.3 kg). Training randomized friction, CoM, pushes and joint offsets, but not mass.
- Success. BeyondMimic's termination rule: fail if torso height or a hand or foot height deviates from the reference by more than 0.25 m, or torso orientation by more than 0.8 rad.
- Blind mode. Astra is told only that the policy completes the clip "in training" and in 41% of 64 episodes "in target", failing about 2.2 s into the clip. It is not told what differs. Per rollout it gets success rates, failure times and per-step logs restricted to signals a real robot provides: encoders, applied torques, IMU orientation and angular velocity, the policy's own inputs and outputs, and hidden activations. Partway through run A we also added third-person contact sheets; Astra never referenced them.
- Rules. A numpy-only sandbox: no simulator, no GPU, no gradients, no regression or least squares of weights on data, no search over weights, no running the network. Reading weights and logs, linear algebra, and physics from the URDF are allowed. Every reply was audited afterwards.
- Hidden test. 256 target and 256 nominal episodes on seeds Astra never saw. A score counts only if nominal success stays ≥95%.
Run A: weigh the robot in mid-air, then rewire
Run A had a budget of 30 passes (64-episode rollouts) and 8 hours.
Diagnosis. Astra first checked the logs for sensor faults, offsets and delays: encoders against observations, IMU against observations, action memory. None. Its one-shot edit (amplify the tracking-error inputs) scored 0%. It then wrote a forward-kinematics module from the URDF and reconstructed world-frame link positions and the whole-body centre of mass from encoders and the reference torso pose. Then it used a neat trick. A spin kick has airborne phases, and in the air only gravity acts, so the CoM computed from the known link masses must fall at exactly 9.81 m/s². On the training robot it does (−9.81, 56 samples). On the target robot it fell at −9.22 (15 samples): the model of the robot is missing mass. A per-link Newton check, \(F = -M(a_{\text{com}} - g) = \Delta m\,(a_{\text{link}} - g)\), placed the residual on the torso (7.9 N against 25–43 N for other links), and the median per-sample estimate was Δm = 9.99 kg. The truth is 10.0.
Fixes that failed. Knowing the cause did not make the fix obvious. Every one of these scored 0% on a 64-episode pass: a static gravity-compensation bias for the full 10 kg, a torso tilt-error gain scaled by the mass ratio, a shoulder offset, and a waist-roll change alone (which did reduce the tilt and hand error). The first edit that worked strengthened both the waist and the knees.
What to change. More mass on the torso means the motors that carry it need proportionally more torque. Astra computed two gains before testing them:
- Waist roll carries the upper body: \(g = 1 + 10/15.155 = 1.66\), with 15.155 kg the upper-body mass above the waist.
- Knees, from the gravity moment at the knee in nominal double support (URDF statics): \(g = (10.643 + 5.163)/10.643 = 1.485\). Its first version used the whole-body mass ratio, 1.30, and reached 95.3%; it switched to 1.485 near the end.
But a trained network has no gain knob. The PD gains live in the simulator, outside the policy. So Astra built one out of neurons. For a joint with action scale \(S\), PD gains \(k_p, k_d\), angle offset \(q\) and velocity \(\dot q\) (both already policy inputs), it wanted the edited action
Substituting into the PD law shows why:
The policy still chooses the same targets, but that motor's entire PD torque becomes \(g\) times what the trained policy would produce. This is exactly equivalent to multiplying both \(k_p\) and \(k_d\) on that joint by \(g\), done from inside the network.
How it was wired.
- Find spare neurons. For each hidden layer, Astra scored every unit on the logged activations by \(\text{salience}_i = \min(\text{RMS}(h_i), \text{RMS}(h_i+1)) \cdot \lVert W^{\text{out}}_i \rVert_2\): how much the next layer would notice if the unit were frozen at one of ELU's natural constants, 0 or −1. It picked three units per layer, nine in all. These are not dead (layer-1 picks still range −0.84 to 1.63); they are the least influential.
- Disconnect them. Every incoming and outgoing weight of the nine units is zeroed. Layer-3 units mostly sat near −1, so their average effect is folded into the output bias, and the other 26 joints are undisturbed.
- Build three wires, one per joint (waist roll, left knee, right knee), each a chain of one unit per layer. The layer-1 unit computes \(z = 16 + q/S + (k_d/(k_p S))\,\dot q\); the bias of 16 keeps ELU in its linear region, so the signal passes through untouched. Layers 2 and 3 copy it with weight 1. At the output, the joint's whole column and bias are multiplied by \(g\), the wire enters with weight \(-(g-1)\), and the 16 is cancelled in the bias.
- Cancel the echo. The network reads its own previous action as an input, which is now \(a'\) instead of \(a\). Astra divided those three input rows by \(g\) on all other layer-1 units and added correction terms to the \(q\) and \(\dot q\) rows, using \(q(t-1) \approx q(t) - 0.02\,\dot q(t)\).
"Direct torque-domain correction, rather than changing the policy's perceived orientation … One low-influence channel per hidden layer carries the analytic encoder/velocity term; no weights are fitted." — Astra, run A, turn 28
Result. On 256 held-out episodes with the hidden load, completion went from 41.4% to 98.8% (106 → 253), with the unloaded robot unchanged at 100%. The final edit changed 8,999 of 250,397 weights. Run A took 73 turns and 30 passes, about 2.8 hours of simulated practice (1,856 episodes), and about an hour of wall clock.
Run B: the same problem with a 180-second budget
Run A used hours of simulated practice. We wanted to know what Astra does when interaction is scarce, so run B capped it at 180 seconds of simulated robot time, charged per episode until it fails or completes. Probes were free.
The diagnosis was cheaper and less precise. Astra first checked that applied torques match the nominal PD law in both conditions, ruling out a gain change. Then it ran inverse dynamics on a free upper body: the waist-roll residual was 13.9 N·m RMS on the target robot against 3.7 in training. Its conclusion was "extra upper-body inertial load". It never put a number in kilograms on it.
Four edits failed, each 0/2 on a fixed replayable seed, costing about 16 seconds. One of them, a ×1.35 waist command gain, was the closest it came to run A's idea. Then it changed approach: instead of more feedback, a constant posture preload. It extended both legs (hip +0.04, knee −0.08, ankle +0.04 rad, summing to zero so the foot keeps its pitch), sized from the measured extra knee bend, and raised the right arm for about 6 cm of hand clearance, computed from logged hand-height sensitivities.
The implementation is tidy. Eight output biases shift those joint targets by constants. The offset also comes back through the previous-action input, so Astra subtracted exactly that echo from all 512 layer-1 biases (error about 2×10⁻⁷):
Every hidden layer computes exactly what it did before; only eight joint targets move. That is 520 of 250,397 weights, and no weight matrix is touched. Held-out: 36.7% → 82.4% (94 → 211 of 256), using 174.5 seconds of simulated robot time over 12 rollouts.
Run C: told the answer, and what happens past it
As a reference point, run C was informed: the prompt said "+10 kg on the torso". Astra sized static torques of +4 / −8 / +4 N·m at hip, knee and ankle "for a 5 kg midpoint load", so the unloaded robot stays fine, and implemented them the same way as run B: 6 output biases plus 512 layer-1 biases for echo cancellation, 518 in total. It reached 39.1% → 100% on its first real test, in about 10 minutes of wall clock.
None of the edits generalize upward. A, B and C all complete 0% at +15 kg. At +16 kg, with the failure rule off, the informed edit keeps the robot upright far more often than the trained policy, while blind run A falls more:
| Network | Fall rate at +16 kg (of 64) | Kick completed |
|---|---|---|
| Trained policy | 84.4% (54) | 0/64 |
| Run C, informed edit | 18.8% (12) | 0/64 |
| Run A, blind rewiring | 96.9% (62) | — |
6Walking with hidden dynamics (Angchen's runs)
Angchen ran a second humanoid study with a different policy, simulator and budget, aimed squarely at adaptation with little interaction. Everything in this section comes from his experiment report, "G1 权重手改实验" (Nov 4); we did not re-run it. His one-line summary: with five minutes of robot data, hand-edited weights adapt G1 to an environment nobody told it about.
- Policy. An ELU MLP
100 → 512 → 256 → 128 → 29, 219,677 parameters, taking angular velocity, projected gravity, velocity command, joint states, previous action and gait phase, and outputting 29 PD joint targets at 50 Hz. For t01, Angchen's own MuJoCo flat-ground PPO policy without domain randomization. For t03, the official holosoma PPO policy, trained on mixed terrain with domain randomization. - Gaps, injected only on the evaluation server. t01: +10 kg at the torso CoM. t03: the ground replaced by a 15° incline. Neither run was told what changed, only that the robot or environment differs from training.
- Episodes. 24 s: stand 4 s, then four random 4 s velocity commands (vx, vy ∈ [−1, 1] m/s, yaw rate ∈ [−1, 1] rad/s), then stand. Objective: no falls first, then velocity tracking.
- Budget. 300 s of robot time in total, including running the starting weights. Each submission runs the first N of 32 fixed development episodes and is charged N × 24 s. Astra was required to diagnose before editing. Held-out: 64 episodes with seeds drawn after all runs ended.
| t01 · hidden +10 kg | t03 · hidden 15° slope | |
|---|---|---|
| Falls (of 64 held-out) | 60 → 1 | 31 → 3 |
| Linear-velocity RMSE | 0.647 → 0.454 m/s | 0.852 → 0.685 m/s |
| Yaw-rate RMSE | 0.477 → 0.229 rad/s | 0.902 → 0.387 rad/s |
| Robot time used | 288 s (5 submissions) | 288 s (9 submissions) |
| Parameters changed | 3,584 (1.6%) | 12,787 (5.8%) |
| Cause identified? | no, recalibrated by symptom | yes, 15° upslope |
t01: seven input gains
From one episode of the starting weights, the loaded robot overshot backward commands by about 1.5× (−0.65 m/s commanded, −0.98 walked) and stood more crouched than usual, with large gaps between knee targets and actual angles. Astra computed leg torques against the nominal model, but wrote that the observations cannot separate added mass from weaker motors or changed contacts. It never named a load. Over five submissions it settled on scaling whole input columns of the first layer: the projected-gravity inputs ×1.5, roll and pitch rates ×1.25, and the commands (vx ×0.55, vy ×0.50, yaw ×0.90). That is 7 columns × 512 = 3,584 weights. The logic: amplifying the gravity and angular-rate inputs makes the network's existing recovery and damping reactions kick in earlier, and shrinking the commands keeps the heavier robot from building up momentum it cannot stop when the command switches back to standing. The cost is real: big commands are no longer tracked (a 0.95 m/s command is walked at about 0.5), and the unloaded robot gets worse (return 127.1 → 100.7, though still no falls). This is a recalibration for the current environment, not a fix that knows about the load.
t01's five submissions (development episodes)
| # | Episodes | Falls | Lin. RMSE | Yaw RMSE | Change, and what it learned |
|---|---|---|---|---|---|
| 1 | 1 | 0 | 0.331 | 0.278 | Starting weights. Backward speed ≈1.5× the command; yaw oscillates. |
| 2 | 2 | 1 | 0.415 | 0.264 | vx command column ×0.70 only. Episode 2 falls forward at 12.08 s while moving fast to the front-right. |
| 3 | 2 | 1 | 0.290 | 0.234 | Stronger pitch feedback (gravity-x ×1.5, pitch rate ×1.25). The forward fall is gone; now it falls at 20.56 s stopping a fast lateral move. |
| 4 | 3 | 2 | 0.354 | 0.342 | Symmetric roll feedback, vy ×0.90. Both still fall when switching to standing at 20 s; hypothesis rejected. |
| 5 | 4 | 0 | 0.416 | 0.223 | Keep the balance feedback; commands down to vx 0.55, vy 0.50, yaw 0.90. All four episodes complete; selected. |
t03: a slope observer inside the MLP
This is the run we find most striking. From a single episode of the starting weights (it fell at 14.3 s), Astra ran static forward kinematics on the logged joint angles together with projected gravity, and found that both foot soles pointed along (−0.259, 0, 0.966) while standing, which is a 15° upslope (sin 15° = 0.259). Its notes said this did not prove the slope was the only difference.
A global ankle correction fixed the first episode, and over the next few submissions Astra added differential knee bend, a crouch and an uphill command bias. The turning point was submission 7. Running the same weights on a second episode, the robot fell at 11.0 s, and just before the fall Astra's own instantaneous slope estimate was far steeper than 15°. It concluded the problem was the estimator itself: when the swing leg is off the ground or an ankle is pinned at its joint limit, treating that foot as flat on the ground gives a wrong slope. The fix needed memory, a filtered estimate that persists across steps, and an MLP has none. Astra created it from the one recurrent path the policy has: its previous action is an input.
Concretely, the observer measures the slope from stance-leg kinematics, using a smooth gate on the gait phase to pick the stance foot:
then rotates the previous estimate into the current heading using the yaw rate and blends:
a low-pass filter with a time constant of about a second at 50 Hz. The rotation needs products of two signals, which an MLP cannot compute directly; Astra approximated them with ELU-built hyperbolic functions (sinh(0.1x)·sinh(0.1y)/0.01 ≈ xy for small inputs). The estimate then drives a correction: ankle pitch +0.75·s_pitch, anti-symmetric knee and hip/ankle roll terms from s_roll, 0.10 rad of extra knee bend, and an uphill command bias. Astra described the bias coefficients as chosen conservatively from a √(g·h) velocity scale, "not fitted". The original walking units are left untouched but are fed corrected inputs: the posture offset is subtracted from the joint-angle inputs and, ×4 because actions are scaled by 0.25 rad, from the previous-action inputs, then added back at the output. In effect the original network keeps walking as if the ground were flat.
The nine submissions read like a short engineering log. The instantaneous estimate failed on a second episode; a bounded, filtered memory then mis-estimated the cross-slope; the final version is stance-weighted, gyro-rotated, slowly updated and clipped. On flat ground the edited policy costs almost nothing: falls 0 → 0 over 64 held-out episodes, linear RMSE 0.586 → 0.600 m/s, yaw 0.135 → 0.156 rad/s. The price is the wrists, whose targets are now confined to ±0.075 rad.
t03's nine submissions (development episodes)
| # | Episodes | Falls | Lin. RMSE | Yaw RMSE | Change, and what it learned |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 0.595 | 0.831 | Starting weights; falls at 14.32 s. Slope diagnosed from foot kinematics. |
| 2 | 1 | 0 | 0.553 | 1.004 | Global ankle correction on both sides. Backward sliding while standing mostly gone, but foot angle drifts when stopping. |
| 3 | 1 | 0 | 0.541 | 0.848 | Correction gains down to pitch 0.75, roll 0.50, keeping some of the original recovery motion. Better; turning still disturbed. |
| 4 | 1 | 0 | 0.629 | 0.917 | Uphill command bias plus extra yaw feedback. Both errors worse; abandoned. |
| 5 | 1 | 0 | 0.657 | 0.533 | Left/right leg-height difference from geometry (differential knee bend) and an overall crouch. Yaw much better, translation still poor. |
| 6 | 1 | 0 | 0.572 | 0.461 | Submission 5 plus only the uphill bias. Both improve; stopping is steadier. |
| 7 | 2 | 1 | 0.775 | 0.523 | Same weights on two episodes. Episode 2 falls at 11.00 s; the instantaneous slope estimate before the fall is far beyond the physical slope. |
| 8 | 2 | 1 | 0.652 | 0.590 | Bounded, filtered slope memory. Episode 2 now survives, but episode 1 falls at 14.12 s: an airborne foot and an ankle at its limit skew the cross-slope estimate. |
| 9 | 2 | 0 | 0.637 | 0.290 | Stance-leg weighting, gyro-rotated estimate, slow update, clipped state. Both complete; selected. |
RMSE in m/s and rad/s, pooled over that submission's development episodes; not comparable with the held-out numbers. Nine submissions used 12 episodes, 288 s; the remaining 12 s was not enough for another episode.
The humanoid results side by side
7What Astra seems to be doing
Several friends read the original thread as a gimmick. We understand why: "an agent edited four weights" sounds like a trick. What interests us is the method, which was consistent across tasks and is recognizably drawn from existing fields.
On large models, it does interpretability. For π0.5 and the WAMs, Astra probed features and attention heads against a specific failure pattern, ranked candidates by how they differ between successes and failures, and tested causal effects on recorded inputs before spending rollouts. That is the toolkit the interpretability community built for language models: probing, attribution through linear readouts, ablation, activation-conditioned rank-1 edits. Here it was applied to a robot policy's action output.
On small controllers, it writes a controller and compiles it into the network. For the humanoid policies, Astra's fixes look like control engineering: a PD gain change derived from statics, a posture preload, a complementary-filter slope observer. It then baked that hard-coded prior into the trained MLP by repurposing its least-influential neurons (run A, t03), or by editing biases and input columns (runs B, C, t01). The from-scratch walking controller we tried before these experiments worked the same way: Astra wrote a 230-line program with a small "compiler" that turned hinges, gates and pass-through pairs into ReLU weights.
Neither ingredient is new on its own: code-as-policy for control, and compiling programs into neural networks, both predate these models. What we have not seen before is one agent combining them on demand: reading a robot's logs like a controls engineer, then editing a network like an interpretability researcher. We think that cross-domain combination is the actual capability being demonstrated, more than any single number.
8Limitations
- Privileged diagnosis. For π0.5, Astra read simulator object poses, gripper contacts, failure labels and task code. For the humanoid "blind" runs, the policy's own observation includes ground-truth torso position error and pelvis velocity, which a real G1 would only get from motion capture or a state estimator. Run A's 9.99 kg estimate and run B's inverse dynamics both used them. "Blind" is accurate about the cause, not about sensor realism.
- Simulation only, noise-free and replayable. Run B reused one seed as a fixed, replayable failure case. Nothing here was run on hardware.
- One run per task. No repeated Astra sessions and no baselines (a config change, CMA-ES, a short PPO fine-tune). Run B's and C's posture offsets are things a config change could also do.
- Development vs. held-out. The one-shot numbers and dose curves are on scenes Astra diagnosed on (n = 11–16). Only the held-out numbers are clean evidence.
- Clean-only wins. handover_block and place_cans improved on clean scenes only; handover_mic's held-out gain is not significant.
- No generalization upward. The spin-kick edits complete 0% at +15 kg, and blind run A falls more than the trained policy at +16 kg.
- Clips are best cases. Every before/after clip here is a rescue chosen from the held-out set; the aggregate numbers are in the text.
- Angchen's walking numbers come from his experiment report; the underlying held-out logs and weight diffs live on his machine and were not re-run for this post. t01 is a recalibration that is worse on the unloaded robot; t03 sacrifices wrist control.
- Different runs, different counts. 4 (click_bell), 8,999 (run A), 520 (run B), 518 (run C), 3,584 and 12,787 (walking) belong to different networks and different results.
9Where this could go
Agents as robot-learning scientists. To find four weights, Astra had to build a working hypothesis of how π0.5 turns a scene into a press. To fix the walking policy on a slope, it had to work out that the policy lacked memory and where memory could live. These are small pieces of scientific understanding about specific models, produced as a side effect of repair. Agents may end up better than we are at this kind of model-level understanding, and unlike us they can carry what they learn about one architecture into another.
Surgery instead of retraining. For foundation-model-scale robot policies, fine-tuning is expensive and diffuse: it changes everything a little. When a failure is specific, a targeted edit that an agent can explain, test on recorded inputs and validate on held-out scenes is a different kind of tool. Our WAM results say it will not always work. The π0.5 and humanoid results say it sometimes works surprisingly well.
What we would do next: repeat sessions per task to measure variance, compare against matched-budget fine-tuning and black-box search, move the humanoid logs to signals a real robot actually has, and try one edit on hardware.
Who did what. Lingxiao and Angchen contributed equally. Lingxiao ran the π0.5, WAM and spin-kick experiments; Angchen ran the walking experiments (hidden payload and slope). This post was inspired by Rikiya Takehi's Weight-Space Programming. The original thread is here.
References
- Rikiya Takehi. Weight-Space Programming. Blog post, 2026.
- Physical Intelligence. π0.5: a Vision-Language-Action Model with Open-World Generalization. 2025.
- Tianxing Chen et al. RoboTwin 2.0: A Scalable Data Generator and Benchmark with Strong Domain Randomization for Robust Bimanual Robotic Manipulation. 2025.
- Qiayuan Liao et al. BeyondMimic: From Motion Tracking to Versatile Humanoid Control via Guided Diffusion. 2025.
Cite this post
@misc{guo2026astraweightedit,
title = {Astra Weight Edit: An Agent That Operates on Robot Policies},
author = {Guo, Lingxiao and Xie, Angchen},
note = {Equal contribution},
year = {2026},
month = {November},
url = {https://lingxiao-guo.github.io/blog/astra-weight-edit/}
}