Lingxiao Guo
Agents × robot learning

Astra Weight Edit: An Agent That Operates on Robot Policies

We gave GPT-6 Astra white-box access to trained robot policies and let it change their weights by hand: no gradients, no optimizers, no fitting. Across a 3.6B-parameter VLA, three world action models and two humanoid controllers, this is what it changed, how it found what to change, and where it did not work.

Lingxiao Guo*, Angchen Xie* * Equal contribution Carnegie Mellon University November 27, 2026 ~25 min read
weight editingVLAhumanoid controlinterpretabilityagents
Three edits, original policy vs. edited policy on the same scene. π0.5 hovers above the bell; after four weights change it presses. A G1 spin-kick policy with a hidden 10 kg torso load breaks its tracking limit; after a blind rewiring it finishes. A G1 walking policy on a hidden 15° slope falls; after Astra builds a slope observer inside the network it keeps walking. The clips are best cases; the numbers that matter are in the text.
TL;DR
  • π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:

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:

GPT-6 Astra codex exec · effort max all Codex tools off one block per reply ```python``` → CPU kernel weights read-only · numpy, torch (CPU) · 900 s per call no gradients · no optimizer · may not run the network ```probe``` → real model on GPU ≤64 saved inputs, original or edited weights, same noise returns actions, module outputs, attention · ~1 min ```rollout``` → simulator paired episodes, original vs edited, ≤16 practice seeds success, flips, logs, failure labels · 12–15 min (π0.5) budget: 20 passes probe or rollout save_edit() final weights, frozen held-out evaluation run by us, after the session unseen seeds and phrasings session ends
The π0.5 / WAM harness. Astra never touches the simulator or the GPU directly. It reads, computes and proposes; the driver runs probes and rollouts and reports back. The humanoid harness has the same shape, with a numpy-only sandbox and a robot-time meter instead of a pass count.

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:

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:

VISION-LANGUAGE PREFIX (once per model call) 3 cameras 224² RGB each SigLIP So400m 27 layers · 256 tok/img projector 1152 → 2048 Gemma-2B 18 layers · width 2048 + instruction + robot state handover_mic rank-1 change, 2.36M values per-layer keys / values ACTION EXPERT (velocity v integrated by 10 Euler steps) 50 noisy action tokens + time t action_in_proj 32→1024 Gemma-300M expert 18 layers · width 1024 adaptive RMSNorm on t final norm h ∈ ℝ¹⁰²⁴ per token, per step action_out_proj 32 × 1024 (14 rows used) v = W h + b 50 × 14 chunk place_cans: L10 MLP row 1243 handover_block: L14 head 1 out-proj click_bell: 4 weights
π0.5 and the four places Astra edited (orange diamonds). Every edit is a fixed change to stored weights; nothing switches at runtime. The click_bell edit sits in the last linear layer, where a feature's effect on an action is a single multiplication.

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

$$ v \;=\; W h + b, \qquad W \in \mathbb{R}^{32\times 1024}, $$

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:

$$ p_f = u^\top\!\begin{pmatrix} W_{\text{elbow},f} \\ W_{\text{wrist},f} \end{pmatrix}, \qquad \text{score}_f = \bigl|\,p_f\,(\bar h_f^{\,\text{succ}} - \bar h_f^{\,\text{fail}})\bigr| . $$
Scores of all 1024 features for each arm, with features 141 and 369 highlighted The 32 by 1024 action_out_proj matrix with four boxed entries and their original and final values
Left: every last-layer feature scored by how differently it drives the press in successes and hovering failures, per arm. Right: the whole edit, 4 of the 32,768 numbers in 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\):

$$ w_f = \begin{pmatrix} W_{\text{elbow},f} \\ W_{\text{wrist},f} \end{pmatrix}, \qquad \Delta_f = -\,u\,(u^\top w_f), \qquad w_f' = w_f + s\,\Delta_f . $$

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.

EntryJointoriginals = 1s = 2s = 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:

0 8 16 original: clean 3/16, randomized 7/16 37 original strength 1: clean 5/16 (+2, −0); randomized not run 5n/a s = 1 strength 2: clean 12/16 (+9, −0); randomized 11/16 1211 s = 2 strength 3 (submitted): clean 15/16 (+12, −0); randomized 14/16 1514 s = 3 (submitted)
Dose response on Astra's development scenes. No success was lost at any strength. Strength 2 fixed all ten right-bell scenes but only two of six left-bell scenes; strength 3 fixed most of the rest. These are the scenes Astra diagnosed on (n = 16, standard error about ±12 points), so treat them as development numbers.

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.

4 / 3.6B
weights changed (1.1 × 10⁻⁹ of the model)
17 → 55/60
held-out, clean scenes
11 → 27/32
held-out, cluttered scenes (out of distribution)
2.9 h
wall clock for the whole session, 20 passes
Held-out cluttered scenes, never seen by Astra. Same scene and sampling noise in each column. Top: original π0.5 hovers and never presses. Bottom: with four weights changed, it presses. These three are rescues chosen to show the effect; across all held-out cluttered scenes the rate went 11/32 → 27/32.

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.

The click_bell case as a single explainer: probe ranks the 1,024 features, test checks the action change on recorded inputs, validate spends rollouts at ×1, ×2, ×3. Layout is schematic; all values are measured. The dose footage is clean practice seed 400005.

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:

$$ O_{\text{head}} \;\leftarrow\; O_{\text{head}} \;-\; 0.5\,\frac{m\,u^\top}{\mathbb{E}_{\text{clean}}[u^\top h]} . $$

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.

handover_block: a head that mostly reads the wrist camera feeds the push that topples the block. Halving its output helped on clean scenes but cost elsewhere; a single rank-1 change aimed at the clean approach kept the gain. The gate was built from in-sample inputs.

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

original weightsAstra's editcandidate Astra rejected (evaluated afterwards)★ setting Astra was asked to improve
0%25%50%75%100% click_bell, clean (target): 17/60 → 55/60; 39 fixed, 1 lost ★ click_bell · clean 17/60 → 55/60 click_bell, randomized: 11/32 → 27/32; 16 fixed, 0 lost click_bell · randomized 11/32 → 27/32 place_cans_plasticbox, clean (target): 23/58 → 50/59; 30 fixed, 4 lost ★ place_cans · clean 23/58 → 50/59 place_cans_plasticbox, randomized: 23/32 → 22/32; 3 fixed, 4 lost place_cans · randomized 23/32 → 22/32 handover_block, clean (target): 16/51 → 32/51; 18 fixed, 2 lost ★ handover_block · clean 16/51 → 32/51 handover_block, randomized: 2/30 → 3/30 handover_block · randomized 2/30 → 3/30 handover_mic, randomized (target): 6/59 → 11/58; 9 fixed, 4 lost; p = 0.27, not significant ★ handover_mic · randomized 6/59 → 11/58 (n.s.) handover_mic, clean: 27/27 → 27/27 handover_mic · clean 27/27 both beat_block_hammer, randomized (target): no edit submitted. The candidate Astra rejected, evaluated afterwards: 10/43 → 22/48 ★ beat_block_hammer · rand. no edit submitted · rejected candidate 10/43 → 22/48
Held-out success per task. ★ marks the setting Astra was asked to improve; the other row is a regression check. Denominators vary because RoboTwin's expert planner rejects some seeds. place_cans, handover_block and click_bell improved strongly in their target setting; handover_mic's gain is not significant (p = 0.27).
Show the numbers
Task (target)First edit tested (dev)Held-out, targetHeld-out, otherEdits runWhat was edited
click_bell (clean)3/16 → 5/1617/60 → 55/60 (39 / 1)11/32 → 27/3234 entries of action_out_proj
place_cans (clean)6/16 → 7/1623/58 → 50/59 (30 / 4)23/32 → 22/324one input row of expert L10 mlp.up_proj (1,024 weights)
handover_block (clean)7/15 → 11/1516/51 → 32/51 (18 / 2)2/30 → 3/305rank-1 change in L14 head 1 out-projection
handover_mic (rand.)2/14 → 5/14, reverted6/59 → 11/58 (n.s.)27/27 → 27/273rank-1 correction of the vision projector
beat_block_hammer (rand.)4/11 → 6/11none submitted—5none (original weights)

The thread's aggregate numbers, stated precisely:

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:

PROBE re-run the real model on saved inputs; read features, attention rank by success − failure gap ~1 min · no simulator TEST write a closed-form edit, re-probe the same inputs: does the action move as predicted? ~1 min · no simulator VALIDATE paired rollouts at 2–3 strengths freeze, then untouched seeds; held-out run by us afterwards 12–15 min per 16-seed pass rejected: L9H1 moved near-bell actions 0.0014 rad regression found (handover_block randomized) → narrower edit
Probe, test, validate. The expensive resource is rollouts, so most of the reasoning happens on recorded inputs, where an edit's effect can be measured exactly in a minute. Rollouts are spent only on edits that already move the action in the intended direction.

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 · taskBaselineBest observedOutcome
FastWAM · place_mouse_pad10/16L14 H8 output ×1.5: 29/60 → 37/60 on all practiceSubmitted. Untouched holdout 13/32 → 16/32
FastWAM · stamp_seal4/113-head query ×1.5: 17/32 → 22/32Untouched 10/16 → 11/16; original weights submitted
FastWAM · place_fan11/15wrist-neuron gain: 36/54 → 37/54Tie on untouched scenes; original submitted
FastWAM · turn_switch5/15L13 H1 ×2.5: 11/26 → 12/26Untouched 6/14 → 5/14; original submitted
FastWAM · click_bell (rand.)0/160/16 → 3/16, always the same three seedsUnseen 2/32 → 2/32; no submission
PrismWAM · handover_mic (rand.)~7/148 edit versions across 5 unrelated componentsValidation 19/57 → 18/57; original submitted
PrismWAM / X-WAM · 4 more tasks1–5 of 16+1 or +2 on development scenesStopped 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.

successfailurerescued by the editlost by the edit
seed 4000… 00010203040506070809101112131415 original weights head L14·H8 ×1.5 (submitted) same head ×0.5 (opposite) same head ×2 control: head L14·H7 same head off (×0) 10/1613/1612/1611/1610/1611/16
FastWAM place_mouse_pad, the same 16 clean practice scenes and sampling noise in every row. The submitted edit, its opposite, a stronger version, a neighbouring control head and switching the head off all rescue subsets of the same borderline seeds (01, 05, 14). That pattern looks like sensitivity to small perturbations, not a repaired mechanism.
"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:

  1. 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.
  2. 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

What "fails" means here At +10 kg the trained policy does not fall. It completes the motion slightly low and trips the hand-height rule at about 2.24 s (right hand 0.26 m below the reference, limit 0.25 m). The visual difference between failure and success is subtle; the +16 kg clip further down is where the difference is obvious.

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.

Airborne centre-of-mass vertical acceleration for training and target robots, and a histogram of per-sample mass estimates with median 9.99 kg
Weighing the robot in mid-air. With both feet off the ground only gravity acts, so the CoM computed from the known masses must fall at 9.81 m/s². The target robot falls slower; Newton's law puts 9.99 kg of unmodelled mass on the torso (truth: 10.0). This uses the torso position error in the policy's own observation, which in simulation is ground truth (see caveats).

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:

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

$$ a' = g\,a \;-\; (g-1)\,\frac{q + (k_d/k_p)\,\dot q}{S} . $$

Substituting into the PD law shows why:

$$ \tau' = k_p(S a' - q) - k_d \dot q \;=\; g\,\bigl[k_p(S a - q) - k_d \dot q\bigr] \;=\; g\,\tau . $$

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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
Seven panels: the failure, weighing the robot mid-air, computing gains, finding least influential neurons, disconnecting them, building three wires, and the result
Run A end to end: the failure, the mid-air weighing, the gain derivation, the salience ranking, the nine disconnected units, the three wires, and the held-out result. About 20 distinct numbers carry the mechanism. Most of the 8,999 changed entries are zeros that disconnect units, and row rescalings that cancel the previous-action echo.

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.

Blind run A, hidden +10 kg torso load, same start state. Left: the trained policy exceeds the 0.25 m hand-height limit at 2.24 s. Right: after Astra's weight edit it completes the kick. Real time, then a 0.2× replay of the failure moment.

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⁻⁷):

$$ b^{\text{out}}_j \mathrel{+}= \delta_j / S_j, \qquad b^{(1)} \mathrel{-}= W^{(1)}_{:,\,\text{prev}}\;(\delta / S) . $$

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.

Blind run B, capped at 180 s of simulated robot time: 520 bias changes (constant posture offsets). It squeaks through. Rescued episodes stay within 1–15 mm of the height limits and drift up to 0.42–0.53 m sideways off the blue reference ghost. Only heights are judged.

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:

NetworkFall rate at +16 kg (of 64)Kick completed
Trained policy84.4% (54)0/64
Run C, informed edit18.8% (12)0/64
Run A, blind rewiring96.9% (62)—
Run C (Astra was told +10 kg), tested at +16 kg with the failure rule off. The trained policy buckles; the edited one stays upright but off the reference. Neither completes the kick. This is past the load the edit was designed for.

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.

t01 · hidden +10 kgt03 · hidden 15° slope
Falls (of 64 held-out)60 → 131 → 3
Linear-velocity RMSE0.647 → 0.454 m/s0.852 → 0.685 m/s
Yaw-rate RMSE0.477 → 0.229 rad/s0.902 → 0.387 rad/s
Robot time used288 s (5 submissions)288 s (9 submissions)
Parameters changed3,584 (1.6%)12,787 (5.8%)
Cause identified?no, recalibrated by symptomyes, 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)
#EpisodesFallsLin. RMSEYaw RMSEChange, and what it learned
1100.3310.278Starting weights. Backward speed ≈1.5× the command; yaw oscillates.
2210.4150.264vx command column ×0.70 only. Episode 2 falls forward at 12.08 s while moving fast to the front-right.
3210.2900.234Stronger 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.
4320.3540.342Symmetric roll feedback, vy ×0.90. Both still fall when switching to standing at 20 s; hypothesis rejected.
5400.4160.223Keep the balance feedback; commands down to vx 0.55, vy 0.50, yaw 0.90. All four episodes complete; selected.
t01, hidden +10 kg, held-out episode 40. Left: the starting weights overspeed to about 2.4 m/s and fall at 5.98 s. Right: after the edit the robot walks the full 24 s, more slowly. This is the episode with the largest improvement of the 64; across all 64, falls went 60 → 1.

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.

policy inputs at t projected gravity g yaw rate ω_z joint angles q, velocities gait phase φ command (vx, vy, yaw) previous action a(t−1) wrist #20, #27 = s(t−1) frozen walking MLP (100 → 512 → 256 → 128 → 29) original units 496 / 254 / 122 kept fed corrected inputs: q − offset(s) a(t−1) − 4·offset(s) vx − 1.5 s_p, vy + 1.5 s_r "walks as if on flat ground" 24 repurposed units (16 / 2 / 6 per layer) rotate s(t−1) by ω_z Δt blend 0.98 · old + 0.02 · stance-leg measurement clip to ±0.30 wrist #20, #27 ← s(t) wrist motion sacrificed 27 joint targets + offset(s) added back z⁻¹: the previous-action input is the only memory
How a stateless MLP got state. The left and right wrist-pitch outputs are overwritten to emit a 2-D slope estimate \(s = (s_{\text{pitch}}, s_{\text{roll}})\). At the next step they come back through the previous-action input as \(s(t-1)\). Twenty-four low-contribution hidden units update the estimate, and the original units are fed slope-corrected inputs, so the rest of the network still walks as it learned to. Redrawn from Angchen's report.

Concretely, the observer measures the slope from stance-leg kinematics, using a smooth gate on the gait phase to pick the stance foot:

$$ \begin{aligned} m_{\text{pitch}} &= g_x + \Delta q_{\text{hip,p}} + \Delta q_{\text{knee}} + \Delta q_{\text{ankle,p}} - 0.006, \\ m_{\text{roll}} &= -g_y + \Delta q_{\text{hip,r}} + \Delta q_{\text{ankle,r}}, \end{aligned} $$

then rotates the previous estimate into the current heading using the yaw rate and blends:

$$ s(t) = \operatorname{clip}_{\pm 0.30}\!\bigl(0.98\, R(\omega_z \Delta t)\, s(t-1) + 0.02\, m_{\text{stance}}(t)\bigr), $$

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)
#EpisodesFallsLin. RMSEYaw RMSEChange, and what it learned
1110.5950.831Starting weights; falls at 14.32 s. Slope diagnosed from foot kinematics.
2100.5531.004Global ankle correction on both sides. Backward sliding while standing mostly gone, but foot angle drifts when stopping.
3100.5410.848Correction gains down to pitch 0.75, roll 0.50, keeping some of the original recovery motion. Better; turning still disturbed.
4100.6290.917Uphill command bias plus extra yaw feedback. Both errors worse; abandoned.
5100.6570.533Left/right leg-height difference from geometry (differential knee bend) and an overall crouch. Yaw much better, translation still poor.
6100.5720.461Submission 5 plus only the uphill bias. Both improve; stopping is steadier.
7210.7750.523Same weights on two episodes. Episode 2 falls at 11.00 s; the instantaneous slope estimate before the fall is far beyond the physical slope.
8210.6520.590Bounded, 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.
9200.6370.290Stance-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.

t03, hidden 15° slope, held-out episode 18 (side view), with commanded and actual velocities below. The starting weights fall at 9.58 s climbing diagonally; the edited policy completes all 24 s. Best of 64 held-out episodes; across all 64, falls went 31 → 3. Linear velocity is still under-tracked.

The humanoid results side by side

trained / starting weightsafter Astra's edit
Spin kick, +10 kg · completion on 256 held-out episodes 0%50%100% Run A, blind, pass budget: 41.4% → 98.8%; 8,999 weights; about 2.8 h simulated practice A · blind 8,999 weights · ~2.8 h sim Run B, blind, 180 s budget: 36.7% → 82.4%; 520 weights; 174.5 s simulated robot time B · blind, 180 s 520 weights · 174.5 s sim Run C, informed (told +10 kg): 39.1% → 100%; 518 weights C · informed 518 weights · told the load 41 → 99%37 → 82%39 → 100% Walking (Angchen) · falls out of 64 held-out 03264 t01, hidden +10 kg: falls 60 → 1 of 64; 3,584 weights; 288 s robot time t01 · +10 kg 3,584 weights · 288 s t03, hidden 15° slope: falls 31 → 3 of 64; 12,787 weights; 288 s robot time t03 · 15° slope 12,787 weights · 288 s 60 → 131 → 3 fewer is better · numbers from Angchen's report
Two different metrics in two panels, never mixed. Left: spin-kick completion, higher is better. Right: walking falls, lower is better. Each run changed a different number of weights in a different network (250,397 vs. 219,677 parameters).

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

Read these before citing a number
  • 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

  1. Rikiya Takehi. Weight-Space Programming. Blog post, 2026.
  2. Physical Intelligence. π0.5: a Vision-Language-Action Model with Open-World Generalization. 2025.
  3. Tianxing Chen et al. RoboTwin 2.0: A Scalable Data Generator and Benchmark with Strong Domain Randomization for Robust Bimanual Robotic Manipulation. 2025.
  4. 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/}
}
← All posts An Agent in the Physics Sandbox: Real2Sim and Dexterous Retargeting with GPT-6 →