Fixing Robot Instruction Following with Targeted Word Embedding Edits

    Vision-language-action policies often fail not because they lack a skill, but because an unfamiliar phrasing of an instruction routes them to the wrong behavior. This article examines a debugging approach that uses a large language model to inspect and edit a small number of word embedding rows in an already-trained policy, rather than retraining or fine-tuning the whole network. It covers the workflow for locating failure-causing tokens, proposing and validating replacement vectors, and the evaluation discipline needed to confirm that fixes work on held-out instructions without breaking previously correct behavior.

    The Problem Isn’t the Action, It’s the Language Entry Point

    Vision-language-action policies take in camera images, natural language instructions, and proprioceptive state, and output the next control command. After pretraining and task-specific fine-tuning, skills like grasping, placing, or operating switches are often already present inside the policy. What tends to be fragile is which exact phrasing can trigger the right skill.

    Give the same goal in a short sentence that matches the training distribution, and the policy completes the task in a few dozen steps. Rephrase it with a less common synonym, and the policy may grab an unrelated object and run out its step budget without finishing. The failure pattern is consistent: it’s not a motor control failure, it’s the language conditioning routing the policy into the wrong skill branch. Adding more demonstrations or doing full fine-tuning is expensive, and risks breaking episodes that already work correctly.

    The more useful question to ask first: can a capability the policy already has be invoked more reliably under different phrasings, using only localized weight edits?

    Putting the LLM in the Debugger, Not the Policy

    One workable approach is to have a large language model inspect and propose edits to policy weights, instead of letting it output robot actions directly. Actions are still computed by the forward pass of the edited policy. The model only gets a stateful workspace and tools to inspect tensors, write replacement values, and run simulation rollouts.

    A typical loop looks like this:

    1. Fix the scene, instruction, random seed, and initial state, and record a trajectory where the original policy times out or goes wrong.
    2. Locate the tokens tied to the failing instruction, and read their embedding rows and nearby representations.
    3. Propose a small number of candidate replacements on practice samples, and check whether the resulting actions move toward the target object and whether the internal language conditioning shifts closer to successful samples.
    4. Cap the number of tool calls with a budget. Keep held-out test outcomes hidden from the debugging model so it can’t game the test set.
    5. Once an edit is chosen, replay it on the same random seed, then run a regression check over a larger set of episodes.

    “No gradient updates” doesn’t mean “no feedback.” Success and failure on the practice set, key-frame actions, and internal signals all serve as the debugger’s observations. Removing gradients lets the scope of changes be locked down deliberately, which makes the process easier to audit and roll back.

    Why Edit Only the Word Embedding Rows

    Word embeddings are the first learnable interface where language enters the policy. In a given instruction, skill routing is usually determined by a handful of content words: the tool, the heat source, the switch, the target location. When these words rarely co-occur with certain combinations during training, their vectors end up misaligned with the direction that signals “which object category to act on,” and no amount of downstream attention can fully compensate.

    This is why the edit can be scoped down to the embedding rows corresponding to the changed tokens, rather than the whole network, the full projection layer, or all action heads. In public experiments, the better-performing runs replaced only a few dozen embedding rows at a time: held-out instructions containing those tokens saw success rates rise from roughly 70% to near 90%, while a separate set of episodes unaffected by the edit kept identical pass/fail outcomes episode by episode. Under the same held-out instruction, scene, and random seed, the original policy failed to finish within the step budget, while the edited version completed the task in far fewer steps and settled into the correct terminal state.

    This points to two things. First, failure doesn’t necessarily mean a missing skill, it can just mean a misaligned entry vector. Second, a localized replacement can satisfy both “fix the failing cases” and “don’t change the cases that already work,” as long as the edit set and the regression set are kept separate from the start.

    A sketch of the edit constraints might look like this:

    1. Allowed to write: embedding rows for specified tokens
    2. Not allowed to write: vision backbone, action heads, normalization statistics
    3. Selection basis: forward-pass results on practice episodes only
    4. Acceptance basis: held-out instruction success rate + per-episode stability on control episodes
    5. Rollback trigger: any key regression episode flips from success to failure

    New vectors should be drawn from representations already present in the policy that are strongly tied to the target skill, or small combinations of them, rather than invented directions never seen during training. This keeps the edit a case of realigning phrasing rather than quietly injecting a new skill.

    Evaluation Must Separate “Fixed” from “Not Broken”

    Reporting only the post-edit success rate hides selection bias. A debugger that has seen the failure cases will naturally gravitate toward fixes that look good. Rigorous evaluation needs at least three parts.

    Held-out instructions. Instructions must be scored only after the edit is finalized, and must contain the changed tokens. Metrics should be task success rate and steps to completion, not the debugger’s own confidence score.

    Control episodes. A separate set of episodes that are weakly related or entirely unrelated to the edited rows should be checked for identical pass/fail outcomes episode by episode, not just similar average scores. Averages can mask a few large gains hiding individual regressions.

    Same-seed reproduction. Only after scene, initial state, and random seed are locked down can behavioral differences be attributed to the weight edit rather than simulation noise. A cherry-picked recovery video should only serve as a mechanism illustration; complete statistics must include any degraded episodes.

    Tool budgets should also be logged. If unlimited replay against the test set is allowed, the debugging process becomes equivalent to searching against the test set, and the conclusions won’t generalize.

    Making Localized Edits a Routine Engineering Practice

    Build a failure taxonomy first. Separate timeouts, wrong-object grasps, and correct-object-but-no-state-change cases. Only the subset where rephrasing causes failure while the original phrasing succeeds is a good candidate for word embedding patching. Missing perception, insufficient dynamics modeling, or saturated action heads shouldn’t be patched by tweaking a word vector and calling it fixed.

    Lock down writable parameters. Use a whitelist of names or tensor slices to restrict what can be written. Save a diff for every proposal: which rows, the displacement from the original value, and the list of affected tokens. Archive weight versions together with simulation logs for reproducibility.

    Validate in small steps. Edit one semantic cluster at a time, such as heat sources, containers, or spatial relations. After each edit, run both positive and negative practice cases before moving to the held-out set. Positive cases confirm the skill can still be invoked by the original phrasing; negative cases confirm the new phrasing no longer misfires.

    Write regression thresholds into the process. Check three things together: whether held-out success rate goes up, whether median steps-to-completion goes down, and whether any control episode flips from success to failure. Any one of these crossing a threshold triggers a rollback. Don’t treat “overall improvement” alone as a release criterion.

    Don’t let the debugger’s context leak into the policy. Notes, candidate vectors, and failure logs in the workspace should only inform the editing decision. At deployment, the policy’s input should still be limited to images, instructions, and state. Otherwise the deployed system ends up depending on side-channel information that only existed during debugging.

    Risks and Limitations

    When an embedding row is shared or nearly shared across multiple words, editing it can affect instructions that appear unrelated. This calls for a token-level impact scan: list every evaluation instruction that uses the same row or a neighboring row, rather than relying only on the instruction a researcher happened to pick.

    Also, success in simulation doesn’t guarantee success on real hardware. Camera noise, contact friction, and elliptical phrasing in real instructions can all cause words like “heat source” or “tool” to misalign again. Localized editing is best suited as a patch and diagnostic tool for language robustness, not a replacement for demonstrations that cover the key distribution and for safety constraints.

    The debugging model can also overfit to incidental cues in the practice samples, such as an object’s position in a single frame. Same-seed comparisons can catch this kind of shortcut: if the fix stops working under a different initial perturbation, it means the edit didn’t actually fix the language routing.

    Summary

    When a robot “can do the task but doesn’t understand a different way of phrasing it,” check the language entry point before retraining the whole network. Restricting a large language model to an auditable weight-debugging role, limiting it to replacing a small number of word embeddings, and validating with held-out instructions plus per-episode-stable control sets can improve invocation reliability with a small amount of change. Gradients are optional; feedback and regression testing are not. The release bar should be: failing phrasings are fixed, previously successful episodes keep their original outcome, and every write can be rolled back.