Editing 65 Token Embedding Rows to Make Robot Policies Understand Paraphrased Instructions

    This article examines why vision-language-action robot policies can fail when users paraphrase commands, and how a large language model agent can diagnose and locally edit a small set of token embedding rows to improve command following. It outlines the VLA embedding pipeline, a six-step editing workflow with code, reported held-out results, and the limits of local edits. Readers get a practical view of when targeted embedding edits may be a cheaper alternative to retraining and what to verify before citing or reproducing the results.

    1. Problem Background: A Paraphrase Can Break the Same Task

    Robot policies are often trained on demonstration data. During training, the mapping between instructions and actions is relatively fixed. After deployment, users may paraphrase an instruction—for example, saying “activate the heat source of the cooking appliance” instead of “turn on the stove.” The policy may fail to map the new phrasing to the correct action.

    The original study gives a concrete example. The robot was instructed with activate the cooking appliances heat source. The original policy did not understand the instruction and instead went to pick up a plate. After 300 steps, it still had not completed the task.

    This kind of failure does not necessarily mean the robot lacks manipulation ability. The policy may already have learned the action for operating the heat source; the language input simply did not reliably trigger that action. The research question is whether existing manipulation capabilities can be invoked more reliably across different language expressions by modifying a small number of weights.

    Why not simply retrain? Retraining requires new demonstration data and substantial compute, and it takes time. If the problem is concentrated in the understanding of a few words, editing only the relevant rows of parameters is much cheaper. This is why the study chose local editing.

    2. Vision-Language-Action Models and Token Embeddings

    A Vision-Language-Action (VLA) model typically receives three types of input: camera images, language instructions, and the robot’s current state. Based on these inputs, the model outputs the next action to execute.

    A common pipeline has three steps. First, the vision component converts images into feature representations. Second, the language component tokenizes the instruction and looks up a vector for each token in a token embedding table. Third, a fusion component combines visual features, language vectors, and robot state to output an action.

    The token embedding table can be understood as a lookup table from tokens to vectors. Each token corresponds to one row of vectors in the table. Modifying a row changes how that token is represented after it enters the model. This change propagates through subsequent attention layers and feed-forward layers, ultimately affecting action outputs. Therefore, editing only 65 rows can affect specific instructions without changing the entire network.

    This also introduces a limitation. The same token can be processed differently by later layers in different contexts, so the effect of editing one row is not necessarily stable. Section 5 discusses this further.

    3. Large Language Models as Debuggers

    In the study, the role of the large language model agent is to inspect and modify the policy, not to directly control the robot. Its working environment includes three parts:

    • A persistent Python workspace that keeps state, with variables remaining unchanged across multiple calls, making it easier to record intermediate results step by step;
    • Callable forward tools for running the policy in simulation and returning actions and results;
    • Tensor read and write capabilities for inspecting the token embedding matrix and replacing vectors in specified rows.

    Around this environment, the debugging workflow can be broken down into the following steps. These steps are organized from the working environment described in the original text; implementation details should follow the original study.

    Step 1: Collect failure samples. For instructions that the policy fails, record the original text, simulation result, and number of execution steps. At the same time, prepare a set of synonymous rewritten instructions to determine which expressions succeed.

    Step 2: Locate candidate tokens. Use the model’s own tokenizer to split instructions and find the tokens with the most obvious differences between successful and failed instructions. If a token appears only in successful instructions, or is missing only from failed instructions, it is a priority candidate.

    Step 3: Back up the original matrix. Save a copy of the token embedding matrix before modification to ensure that any step can be rolled back.

    Step 4: Generate replacement vectors. Replacement vectors can come from multiple sources, such as referencing the vector of the corresponding token in a successful instruction, or interpolating between existing vectors. The agent needs to record the basis for each replacement so that it can be reviewed later.

    Step 5: Write and check. Write only to the target row and do not modify other rows. After writing, immediately compare action outputs before and after the modification to confirm that only the behavior for the target instruction has changed.

    Step 6: Evaluate on a holdout set. Evaluate with instructions that were not involved in selection, calculate the success rate, and keep per-instruction results.

    Below is a simplified illustration of the write operation. Attribute names need to be adjusted according to the actual code of the model used:

    1. import torch
    2. emb = model.token_embedding.weight # token embedding matrix; attribute name depends on the model
    3. backup = emb.detach().clone() # back up before modification
    4. with torch.no_grad():
    5. emb[token_id] = new_vec # write only the target row; no gradient update
    6. # Rollback: emb.copy_(backup)

    This code uses torch.no_grad(), indicating that the write process does not compute gradients. This is consistent with the original study’s setting of “no gradient updates.”

    4. Experimental Setup and Results

    According to the abstract of the original study, the experimental results are as follows.

    On 335 held-out instructions containing the edited token, the task success rate rose from 74.3% to 87.5%. These instructions were not used for token selection and were used to test whether the edit generalizes. In addition, the results for the other 430 episodes remained unchanged, indicating that in these episodes the edit did not introduce observable degradation.

    The model used in the experiment had already been pretrained and fine-tuned. The test environment was a public robot simulation manipulation benchmark, with an added test set of paraphrased instructions.

    These numbers need to be interpreted cautiously. The original abstract does not disclose the number of test repetitions, random seeds, confidence intervals, or statistical test methods. Therefore, whether the difference between 74.3% and 87.5% is stable cannot be judged from the abstract alone. Before citing these numbers, consult the original paper to confirm the measurement conditions.

    When reproducing the work, evaluation should record the following:

    • The original text and rewritten text of each instruction;
    • The token, row index, and replacement vector source for each write;
    • Whether each episode succeeded and how many steps it took;
    • Random seeds and number of repeated runs;
    • Differences in action outputs before and after modification, to confirm the scope of side effects.

    5. Applicability Boundaries and Risks

    Local editing is suitable for cases where failures mainly come from misunderstandings of a small number of keywords and the target tokens are relatively clear. In such cases, modifying a few vector rows may solve the problem at a much lower cost than retraining.

    However, as noted in Section 2, the same token can be processed differently in different contexts by later layers. Therefore, editing one row does not guarantee a stable effect. The write-and-check step and holdout evaluation are important for confirming that the intended instruction behavior changes while other behavior remains unaffected.