Vision-Language-Action Models
How vision-language-action models turn images and instructions into robot commands. Compare action heads, controller timing, and evaluation methods.
Language AI HandbookAll chapters Vision-Language-Action Models
A vision-language model can identify a red mug in an image. A vision-language-action (VLA) model can also propose how a system should move it. The proposal depends on the images and instruction it received, then passes through the action interface defined for the robot.
A policy can emit target poses, discretized commands, continuous trajectories or higher-level actions that a controller interprets. The action specification determines what the output means, when it must arrive, and how execution is bounded. Joint training can let a policy reuse visual and language features when selecting actions. Recognizing a novel object and manipulating it successfully are separate tests. Compare generalization under a documented task and control interface.
We will distinguish action representation from controller timing, then compare two imitation policies in a synthetic tabletop simulator. The simulator exposes its state and a two-choice instruction, so the toy isolates what happens after perception identifies the target. It measures no real robot. The examples separate representation, controller timing and evaluation. The simulator compares two action heads and two controlled perturbations. Action chunking and hardware timing are explained separately.
This chapter builds on vision encoders and projection layers and the policy gradients.
The control problem a VLA solves
A policy conditions an action on what the system observes and the task it has been asked to perform. Write for the current available observation and for the instruction. A stochastic policy gives a distribution ; a deterministic policy returns one action for that input. A partially observed system can condition on a history of observations or internal state. The environment then responds to the applied action, and the next policy call can condition on the new observation.
The observation can contain one or more RGB cameras and a proprioceptive reading such as gripper width or current joint angles. Some architectures use only images and text. Extra sensors can help distinguish states which look similar in an image, but a real pipeline still has to align these channels in time. The image acquisition time, the controller's state timestamp, and the time an action reaches the controller are separate measurements.
Specify the action interface before choosing a head. Joint targets, end-effector pose targets and short Cartesian increments are different commands. For a Cartesian displacement, name the coordinate frame and units and define how orientation is represented. A representation with six end-effector displacement coordinates and one gripper command does not necessarily specify seven independently actuated joints. The same target vector may be impossible for a given arm, or require an interpretation that depends on its current state.
Why local prediction and closed-loop control differ
One-step prediction scores compare a proposed action with a label at a known observation. Closed-loop evaluation feeds each applied action back into the next observation. A small early error can take the policy to observations the expert rarely visited, where the model has less training support. In our tabletop example we will use the same initial state for both heads and still allow their later states to diverge. Task completion and violations of a separately specified boundary can both be measured on a rollout.
An observation is a record with a reference time
In a closed-loop policy, “current” means current with respect to a declared instant. An RGB frame can describe a scene at its exposure time, while a joint reading describes the mechanism when its encoder was sampled. Both may arrive before inference begins, at different ages. Motor state could change in between. When inspecting a rollout, keep acquisition, policy start, policy finish and controller acceptance as distinct times. If a training log only stores the time a message reached the program, make that limitation visible before using the log for latency or state-alignment claims.
Consider a stationary block viewed by a moving camera. The frame is consistent with both a block that moved and a camera that moved unless the observation includes enough pose evidence. Position, gripper width and other body-related readings are forms of proprioception. Vision is one source of evidence about the outside scene, and some practical systems also include depth, force or tactile inputs. More channels can resolve ambiguities if their interpretation and timing agree. A stale reading can instead create contradictions. The representation needs enough information to make the demonstrated decision meaningful, and the evaluator needs enough information to identify which evidence was available when that decision was made. The tabletop program supplies direct positions and a binary task label, so it bypasses the question of recovering these positions from sensor signals.
An observation history can expose a variable that is ambiguous in a single frame. A tracked feature that moves left between consecutive images suggests relative motion even if neither image alone reveals velocity. The relation depends on frame spacing and on whether the camera moved. Stacking frames at training time and reading a single frame at test time changes the information available to the policy. A controller that repeats the last image whenever a camera stalls can also change the meaning of a frame stack. Mark repeated or missing observations in a trace instead of treating each array as an independent new measurement.
It is easy to mistake the human instruction for a complete task specification. A request to move a blue object can be satisfied only after the policy distinguishes a particular object from its neighbors and the evaluator defines what counts as a completed move. In an ambiguous scene, one valid system behavior is to pause and ask for a disambiguating description. Evaluators should distinguish an incorrect target, an unavailable target, a correct target that cannot be reached and a successful attempt on the intended target. These conditions can yield the same final score if completion is the sole recorded variable. The simulator uses a fixed binary target identity, encoded as a one-hot input, with one designated object. Evaluating ambiguous wording would require another task setup.
A textual command can refer to a relative location like “to its left” even when the speaker and camera see different directions. If a benchmark permits relative references, keep the reference convention and the evidence required to resolve it in the task definition. Image-left and robot-base-left coincide only for some setups. With a changed view, the same phrase can require a different physical direction. That difference is a reason to record an interface convention explicitly, rather than trusting a learner to infer which alignment the benchmark assumes.
An action has units, a frame and a meaning
Joint-space control can specify desired joint positions or velocities. A Cartesian interface may specify a desired pose or a small displacement relative to the current pose. A target pose does not uniquely identify the joint angles of a redundant arm, and a Cartesian increment expressed in a gripper frame points in a different world direction when the gripper is rotated. Thinking of every number as “just a move” obscures the conversion problem. If the controller reads an absolute command from a dataset that recorded per-tick displacement, rescaling the vector will not restore its meaning. If the dataset stores velocities rather than deltas, the displacement over a sample interval also depends on the interval.
A safe diagnostic can use a two-dimensional coordinate transform without involving a robot. Suppose a local unit vector along the tool's horizontal axis corresponds to the world vector . A local displacement then means a world displacement for a pure ninety-degree rotation and unchanged units. Treating the same pair of numbers as world coordinates produces instead. The displacement magnitudes agree, so comparing their magnitudes would miss the error. In general for a displacement represented in a rotated frame, multiplication by its rotation matrix changes axes without adding the origin translation. Converting an absolute point between those frames additionally requires translating the origin. Keep these representations separate in dataset schemas and controller interfaces.
The two action dimensions in the toy are independent coordinates, which does not imply that a useful policy should draw them independently. As examples later in the chapter show, the physical or task-dependent requirement applies to their combination. The benchmark gives a simulated hand a bounded two-dimensional delta, and the contact rule uses the resulting hand position. It never interprets a component as force, velocity tracking, torque or a joint limit. Respecting that displacement bound says exactly which inputs the toy transition receives. A physical safety claim would require separate evidence about the authenticated controller, environment and failure handling, none of which this fixture models.
An uncorrected additive error of one millimeter per move would accumulate to one hundred millimeters after one hundred moves if every error pointed in the same direction. This arithmetic becomes invalid as a prediction once feedback changes subsequent commands or errors cancel. A closed-loop control experiment should record how error changes over time. In a useful trace you can point to the step where the hand started approaching the wrong region, where contact became possible, or where a correction recovered the task. A final position alone cannot tell you which of those transitions was responsible.
From images and words to actions
A vision encoder can embed image patches, while a text tokenizer and embedding layer supply instruction representations. A model can fuse them by concatenating projected inputs or using cross-attention. A robot-state vector can be projected separately when the architecture and observation contract include it. The action head then selects or constructs a command from the fused representation. The diagram shows one possible arrangement.
VisualizationOut [3]Expand

What makes the representation actionable
The architecture of a VLA contains more than a shared vision-language model and a final linear layer. The observation contract specifies which views, resolution and robot-state fields are present. The action contract specifies which commands the trained head can emit and how those commands are interpreted by the consumer. A useful design review traces a single training pair all the way across both contracts. Which image belongs to the observed state? Which text refers to the target? Is the action label immediately following that observation, or does it describe a future segment? Without those details, the model can learn a reproducible mapping that is consistently shifted in time or expressed in the wrong units.
A vision encoder can represent an image as patch features. Projecting those features into the backbone's input dimension makes an interface possible, but does not tell the model the physical size of a patch or the depth of an object. A state encoder can project a joint vector as one representation or split it into several inputs. In a token-concatenation architecture those representations can share an attention context with the instruction. Cross-attention is another option when the visual representation and the consuming sequence are kept separate. Both can expose the action head to image information. Whether the resulting policy uses the particular cue that distinguishes otherwise similar scenes is an empirical question.
Where multiple camera views are available, one design choice is how to preserve which camera produced a piece of evidence. Two images can contain similar-looking regions that correspond to different parts of the same scene. If a calibration fixture swaps the camera identifiers while leaving the pixels unchanged, a policy that uses their declared roles can change its predictions. The swap does not by itself constitute a realistic setting, but can expose a hidden assumption about view order if the underlying data flow is documented. A separate test can remove a view and report behavior for that legitimately missing-data case. Missingness should use the representation the model actually expects, since replacing an array with zeros is not always equivalent to omitting it.
The instruction can be used as a conditioning input without making the policy reliable across paraphrases. “Push the red block” and “Move the red one toward the line” may refer to the same benchmark task, but that equivalence is a property of the evaluation contract and the scene, not of the strings. A language sensitivity test holds object placement and desired outcome fixed across paraphrases. An object sensitivity test holds the wording template fixed while changing which target is specified. If both change at once, a failure cannot be attributed cleanly to the language channel or the scene. A vision-only test can deliberately mask the instruction and examine whether success depends on spurious object frequencies. A policy that simply pushes the visually nearest object might score well in an unbalanced task suite.
The toy combines relative target coordinates, commanded label and hand position in an explicit feature record. It avoids RGB perception so changes in the comparison can be traced to the action representations and rollout conditions. That simplification buys control over the experiment. It also removes the opportunity to evaluate visual grounding, spatial localization from images, language generalization or the usefulness of pretrained representations. Report those limits when showing a table of policy success. A figure marked “VLA architecture” can be physically meaningful even when the executable fixture isolates only the action-head portion of that architecture.
Training and execution need the same feature interpretation
A model can appear stable on held-out demonstrations because training and evaluation receive feature vectors from the same preprocessing code. A later caller may pass normalized readings in a different order, change the reference frame, or reverse which index denotes a particular object. Those errors are neither improvements nor deficiencies in the action head. They are mismatches at the interface. For a small numerical problem, write a test that independently reconstructs the feature vector from a declared scene and label. Checking one expected vector by hand is often cheaper than comparing large aggregate success rates before establishing the input order.
A representation that uses coordinates relative to a hand is naturally insensitive to a common translation away from boundaries. If both objects and the hand move by the same vector, differences like object position minus hand position remain unchanged. A policy that also observes the hand's absolute position can still detect the translation, which may matter when the workspace has hard edges. An apparent invariance is therefore a property of the full feature record and transition, not of one component. To test it, choose states clearly inside the feasible region and compare the actual encoded vectors before drawing a conclusion about control.
The same reasoning applies to target identity. For a swap test let the object positions be fixed, change only the target label, and recompute every target-role feature by the same procedure. That changes the meaning of the features without changing underlying scene geometry. A policy that continues to approach the old target may be depending on one property's position or an implicit default. The current tabletop evaluation already records unintended block displacement, a separate outcome from reaching the goal with the right block. A fuller feature test can inspect the predicted command under both labels before the environment is advanced; the rollout then tells you whether the difference persists over several decisions.
An image or state embedding alone has no execution semantics. A useful logging unit pairs the declared observation and timestamp with the exact proposed command, the decoded command after representation mapping, and the applied command after any limits. If a later analysis compares expert commands with applied learned commands, specify whether both have passed through the same bound and whether those values are in normalized or simulator units. Recording only the proposed command would miss systematic changes at the mapping boundary. Recording only the applied command would hide whether the head repeatedly asked for values outside that boundary.
Action representations
Direct regression
A regression head can output before any output-bound mapping. Under squared error and finite second moments, its population optimum for a fixed input is the conditional mean. For equal demonstrations with scalar actions and , the mean is zero. If those actions go around opposite sides of an obstacle, the average has no reason to be feasible. Data with a single consistent action at each observed state may work well with a deterministic head.
Discrete bins
Let a scalar action be bounded on . For equal-width bins with midpoint decoding, define . Map an in-range action to and decode to . The minimum handles the upper endpoint. Ideal rounding error is at most inside the range, conditional on selecting the proper bin. For a one-meter range and 256 bins this gives about 3.91 mm per bin and 1.95 mm maximum midpoint error. Prediction, clipping, controller and coordinate errors are separate.
RT-2 treats discretized actions as text tokens and uses 256 uniform bins for its continuous dimensions. OpenVLA likewise encodes robot actions as discrete tokens, using its own normalization and tokenizer convention. A factorized head can emit one independent categorical distribution for each dimension. That cannot represent arbitrary conditional correlations. An autoregressive head can condition later tokens on earlier ones, while a joint codebook can assign one code to an entire vector. Explicitly mark which representation a specific system uses.
Continuous generative heads
A continuous generative policy can represent several likely action sequences. Diffusion Policy uses conditional denoising diffusion to generate action sequences. The paper describes a continuous action expert trained with conditional flow matching. Inference integrates a learned vector field; the paper reports ten integration steps for its benchmarked implementation. Measure end-to-end observation-to-action time under the actual deployment rather than inferring latency from the architecture label.
Interpreting a conditional mean
Let denote an expert command with a finite second moment for a fixed observation and instruction. Let its conditional mean be and let be a deterministic prediction. Expanding the squared error gives
The expectations here are conditional on the fixed input. The omitted cross term is zero because . The first term does not change with the predicted , so the conditional mean minimizes the loss when the head and action constraints allow the mean. If the learned head cannot express that optimal mapping at every input, its fitted prediction can differ from the mean. If a downstream projection changes the output, the deployed mapping differs from the unconstrained prediction optimized in this derivation.
The issue is more pronounced when the demonstrations differ because an important condition was hidden. Suppose two skilled demonstrators choose distinct safe directions around a virtual obstruction. If the policy cannot observe the condition that made each direction appropriate, the same input can be paired with two good, well-separated labels. An average could point directly toward the obstruction in this constructed case. Providing an extra route choice as conditioning information may make each conditional distribution narrower. Alternatively, a stochastic model can represent both modes. Neither choice proves that sampled commands are valid inside the actual environment: the downstream control and evaluation still need to detect invalid paths.
A robust point loss can change which representative prediction is preferred. In one dimension absolute error is minimized by a median under ordinary assumptions, while squared error is minimized by a mean. A median still returns a point or interval of optimizers, not a mechanism that deliberately samples among modes. Changing from an absolute pose to a small relative displacement may reduce variability on some tasks, but it does not repair missing state information or guarantee that demonstrated modes merge. That distinction is important when comparing “continuous” with “discrete”: command geometry and the uncertainty represented by the prediction are different properties.
A diagnostic for the tabletop predictor can compare the same set of observations using decoded command error, then compare closed-loop outcomes. One may be tempted to treat a smaller squared error as proof that one head is better. The loss averages across transitions sampled from the experts, whose states can be dominated by easy straight pushes. A deviation during approach may have a larger effect on the final outcome even if it affects relatively few training rows. Conversely, two predictors may disagree numerically near the goal, yet both complete the episode. The fixture deliberately exposes that disagreement instead of declaring one metric the definitive ranking.
Quantization error, token mistakes and clipping
For the uniform midpoint representation, an in-range target known to lie in a bin can be reconstructed to within half a bin width if the correct bin is selected. A model that predicts the neighboring bin can have a larger error. A model that predicts the far end of the range can make a large error even with fine bins. Reporting a smaller bin width says something about representation capacity, not classification accuracy. Error from selecting the wrong bin belongs to a different part of the training and inference chain.
For a sample in the interior of one bin, its midpoint can be at most away. At the included upper endpoint , the index is clamped to , and the distance to the final midpoint is also . For a target larger than , that bound no longer follows. If the target is first clipped to , the half-bin bound applies relative to the clipped target, while the total error relative to the original also includes the distance clipped away. The same logic applies at the lower endpoint. Separately recording whether clipping occurred lets a reader ask whether small errors came from predictable rounding or a command representation whose range is unsuitable for the observations.
Coordinate-wise categorical distributions can be audited in a tiny joint example. Suppose every observed good action in a particular state is either or , each with probability one half. Two independent marginal distributions that match the demonstrations assign probability one quarter to each of the four sign combinations. The two opposite-sign combinations get one half of the joint probability even though no expert action in this example used them. A conditional sequence model can draw the first sign and let its second prediction depend on the first. A joint codebook restricted to those two vectors can make the same combinations representable. A pair of independent heads used greedily has a different problem: even if sampling never happens, inconsistent tie-breaking across coordinates can select a combination that was not observed.
Using a joint vocabulary is not free. With possible bins for each of coordinates, listing every Cartesian combination would require codes. A smaller empirical codebook only lists selected joint patterns, so it loses the ability to express some commands. Its reconstruction error depends on how well prototypes cover action vectors in the relevant contexts. A coarse/fine sequence can trade vocabulary size for more decisions per command: a coarse token selects a region and a fine token selects a location within it. A hierarchy can increase capacity, but extra decoding steps and error propagation across those decisions still need measurement.
A magnitude check can distinguish geometry from modeling claims at the representation interface. The meter, -bin example above has a scalar width of meters. Two independently rounded components each with absolute error at most imply a Euclidean error at most for the ideal two-dimensional midpoint operation, since the squared Euclidean error sums the squared component errors. This bound says nothing about the position of an actual object after applying a command. Whether the environment moves the object at all depends on the control rule and state at the time of application.
Continuous sequence heads and when their latency matters
A diffusion policy iteratively refines action samples conditioned on an encoded observation. A learned conditional flow can instead specify a vector field along an inference path from a base sample to an action sample. Either construction can represent several likely commands or action sequences without replacing them with a single average. The architecture and training determine what distributions a particular model can learn, and the number and arrangement of sampling steps determine part of the inference cost. A model that learns multiple modes can still miss valid alternatives or assign load to an invalid mode. Treat model outputs as hypotheses about commands under the stated control contract.
Two inference comparisons can use the same output sequence length but different numbers of network evaluations. A recurrent or autoregressive head may produce tokens sequentially. A factorized head may return all its logits together, after which a simple midpoint decoder reconstructs the vectors. An iterative generative method may use a fixed number of repeated updates. Comparing the number of action vectors in those outputs does not determine equal end-to-end latency. Useful timings state the observation preparation cost, how the head uses the backbone representation, the decoding process, and which computations are repeated when a new observation arrives.
When the action is a sequence, one training example needs a declared alignment for the sequence start and end. A later command can refer to an observation made several policy ticks before execution if a prefix from an old plan is still in use. A benchmark that times only network computation can miss this difference. The next section measures command cadence separately and shows why the number of predicted commands, the number executed and the latency budget have to be stated together.
Temporal alignment and action chunking
The servo update rate, controller's command-consumption rate and policy inference rate need not match. A servo can run at 100 Hz while a slower policy refreshes commands at 10 Hz. If the controller consumes one planned action every 20 ms, a five-action prefix represents 100 ms of scheduled control. The low-level servo may take two inner updates per action. Record these intervals separately; a claimed 100 Hz control loop alone does not establish that vision is refreshed every 10 ms.
A chunk predicts future actions. Executing a prefix of steps before querying again gives a replanning interval of at action consumption rate , assuming no missed deadlines. The policy can overlap inference with execution, and a separate supervisory rule can interrupt the prefix. Fewer committed steps let the learned policy incorporate fresh observations sooner when computation permits. ACT distinguishes chunk prediction from temporal ensembling, which queries frequently and combines overlapping predictions for the same action time.
Predicting a longer chunk and executing a shorter prefix
Perception latency, planning latency and servo cadence enter a closed loop through different mechanisms. A fast servo can update the response to the last target while the slower policy is still reading data or producing the next target. A chunk lets the controller consume several previously predicted commands during that gap. If the old chunk remains valid, later accepted commands may arrive on time. If a new observation invalidates it, consuming more of that chunk can increase the length of time the learned policy acts on stale evidence. An independent supervisory stop, if present, has its own input and latency path. Measure the response to that supervisory signal separately.
Take a hypothetical command consumer running at 50 Hz. It consumes one action every 20 milliseconds. A predicted horizon of eight actions covers 160 milliseconds from the start of consumption if deadlines are met. Consuming only the first three actions before the next policy request gives a nominal consumption prefix of 60 milliseconds. A concurrent policy that asks for a new chunk earlier can finish inference before the active commands are exhausted. A policy that waits until all three actions are consumed before requesting a new chunk must also account for the next inference duration. That sequential schedule adds the inference duration to the 60-millisecond prefix.
In temporal ensembling, several previously predicted chunks can include a prediction for the same future time. The ensemble combines predictions made for that time. Define the average across overlapping chunks in a command representation where such averaging is meaningful. Averaging nearby scalar increments can be straightforward. Averaging rotations or combining plans that choose opposite sides of an obstacle has additional structure. A controller that selects the latest valid prefix discards earlier proposals. Check the resulting trajectory when choosing between these policies, especially near a contact boundary.
An action-replay evaluation should record the tick that would have used each element of the plan and which elements were actually consumed. A head can emit eight planned commands consistently and still have its last five proposals discarded almost every episode. Comparing unused commands to expert labels measures planned sequence agreement as a training diagnostic. A policy that uses open-loop predictions in a simulator without paying inference latency may look responsive despite its planned prefix being old by the time a real system could apply it. Keep offline sequence loss, closed-loop per-step evaluation and actual command timing as distinct measurements.
Registering observations and commands
The nominal policy period is only one input to a timing analysis. A frame can wait for preprocessing. The backbone can compute on queued work. The action decoder can make several calls before producing the sequence. An action can then wait for the controller to accept it. If all of those stages are serial, the durations add. If they overlap, a trace needs to say which parts lie on the critical path for the particular issued command. Measure latency using individual commands and their originating observations. Batch throughput answers a separate capacity question.
Suppose a trace uses a frame captured at time zero, begins policy inference 12 milliseconds later, and accepts the first command at 70 milliseconds. The observation age when that command is accepted is 70 milliseconds. The 58 milliseconds from inference start to controller acceptance omits the first 12 milliseconds of age. If another command from the same prefix is accepted 20 milliseconds later, that command uses the same 90-millisecond-old observation unless the plan has been updated. Both actions can meet a controller's consumption deadline while relying on observations of different ages. A latency review therefore needs expected freshness as well as delivery deadlines.
A deliberately deterministic offline schedule makes such arithmetic reproducible. For a timing evaluation of an actual system, record the all-attempt latency distribution including timeouts and stopped tasks, distinguish warm and cold runs if initial inference changes behavior, and report the clock used at each stage. When a timestamp comes from another clock, synchronize the clocks or bound the measurement error before subtracting it from local values. Record missing ages explicitly.
The tabletop program advances one simulator step per command. Camera acquisition and servo updates are outside this abstraction. Interpreting a trajectory of 13 steps as a 130-millisecond manipulation would require imposing a 100 Hz command rate externally. The earlier 100 Hz example was a servo rate and used a different command period. The notebook can report applied steps and clipping frequencies exactly. A time-and-motion experiment would need timestamps and calibrated dynamics before interpreting those steps as robot latency.
A tabletop push in simulation
PythonIn [4]Expand
import numpy as np
import torch
from torch import nn
from torch.nn import functional as F
SEED = 19
LIMIT = 0.045
GOAL = 0.72
TARGETS = ("red", "blue")
torch.manual_seed(SEED)
torch.set_num_threads(1)
class TabletopPush:
"""Two lanes and a bounded hand in a dimensionless unit square."""
def __init__(self, seed, radius=0.055):
rng = np.random.default_rng(seed)
self.hand = np.array([0.15, rng.uniform(0.25, 0.75)])
self.blocks = np.column_stack(
[rng.uniform(0.34, 0.47, size=2), rng.permutation([0.34, 0.66])]
)
self.radius = radius
def observe(self, target):
color = np.eye(2, dtype=np.float32)[target]
offset = self.blocks[target] - self.hand
return np.concatenate(
(self.hand, self.blocks.ravel(), color, offset)
).astype(np.float32)
def step(self, action):
dx, dy = np.clip(action, -LIMIT, LIMIT)
x, y = self.hand
proposed = np.clip([x + dx, y + dy], 0.09, 0.91)
near_lane = np.abs(self.blocks[:, 1] - proposed[1]) <= self.radius
face = self.blocks[:, 0] - self.radius
approaching = (x <= face + 1e-10) & (proposed[0] > face)
contacts = near_lane & approaching
if contacts.any():
advance = np.maximum(0.0, proposed[0] - face[contacts])
self.blocks[contacts, 0] = np.minimum(
0.91, self.blocks[contacts, 0] + advance
)
proposed[0] = min(
proposed[0], np.min(self.blocks[contacts, 0] - self.radius)
)
self.hand = proposed
def scripted_action(env, target):
lane_y = env.blocks[target, 1]
error = lane_y - env.hand[1]
forward = LIMIT if abs(error) <= env.radius * 0.45 else 0.0
return np.array([forward, np.clip(error, -LIMIT, LIMIT)], dtype=np.float32)
def collect(seeds, radius_range=None):
radius_rng = np.random.default_rng(202)
features, actions = [], []
successes = []
for seed in seeds:
radius = (
0.055 if radius_range is None else radius_rng.uniform(*radius_range)
)
target = seed % 2
env = TabletopPush(seed, radius=radius)
for _ in range(48):
action = scripted_action(env, target)
features.append(env.observe(target))
actions.append(action)
env.step(action)
if env.blocks[target, 0] >= GOAL:
break
successes.append(env.blocks[target, 0] >= GOAL)
return (
torch.tensor(np.asarray(features)),
torch.tensor(np.asarray(actions)),
int(sum(successes)),
)The simulator uses two horizontal lanes. The red and blue blocks can appear in either lane. The observation carries the hand and both block coordinates, a one-hot instruction, and the relative offset to the selected block. This last quantity is computed from simulator state. The scripted expert aligns the hand with the selected lane, then moves the hand to the right. When its next move crosses a block's left face in the permitted lane, the hand and block move together. The contact rule omits friction, rotation and dynamics between discrete ticks. Neither policy reads an image or interprets free-form text.
PythonIn [5]Expand
class ActionHead(nn.Module):
def __init__(self, bins=None):
super().__init__()
self.bins = bins
self.backbone = nn.Sequential(
nn.Linear(10, 56), nn.Tanh(), nn.Linear(56, 56), nn.Tanh()
)
self.projection = nn.Linear(56, 2 * bins if bins else 2)
def forward(self, features):
score = self.projection(self.backbone(features))
if self.bins is None:
return LIMIT * score.tanh()
return score.reshape(-1, 2, self.bins)
def encode_bins(actions, bins):
return (
(((actions + LIMIT) / (2 * LIMIT)) * bins)
.floor()
.long()
.clamp(0, bins - 1)
)
def decode_bins(indices, bins):
return -LIMIT + (indices + 0.5) * (2 * LIMIT / bins)
def decoded_actions(model, features):
score = model(features)
if model.bins is None:
return score
return decode_bins(score.argmax(dim=-1), model.bins)
def train(data, bins=None, epochs=165):
torch.manual_seed(SEED)
model = ActionHead(bins)
opt = torch.optim.Adam(model.parameters(), lr=0.005)
features, actions, _ = data
for _ in range(epochs):
scores = model(features)
if bins is None:
loss = F.mse_loss(scores / LIMIT, actions / LIMIT)
else:
loss = F.cross_entropy(
scores.reshape(-1, bins), encode_bins(actions, bins).reshape(-1)
)
opt.zero_grad()
loss.backward()
opt.step()
return model.eval()The two heads use the same state representation and hidden layer widths. The regression head bounds each output component with tanh. The nine-bin head predicts two independent categorical distributions and decodes their greedy bins to midpoints. Both train with Adam for a fixed 165 epochs. The regression loss is rescaled by the squared action limit, while the held-out comparison reports unscaled decoded action MSE in the same units for both heads. These are two implementations under a shared protocol. The head parameter counts and objectives differ.
PythonIn [6]Expand
@torch.no_grad()
def rollout_one(model, seed, *, radius=0.055, noise=0.0):
env = TabletopPush(seed, radius=radius)
target = seed % 2
other_x = env.blocks[1 - target, 0]
rng = np.random.default_rng(10000 + seed)
hand = [env.hand.copy()]
block = [env.blocks[target].copy()]
clippings = 0
for _ in range(48):
features = torch.from_numpy(env.observe(target)).unsqueeze(0)
action = decoded_actions(model, features)[0].numpy()
action = action + rng.normal(0.0, noise, size=2)
clippings += int(np.any(np.abs(action) > LIMIT))
env.step(action)
hand.append(env.hand.copy())
block.append(env.blocks[target].copy())
if env.blocks[target, 0] >= GOAL:
break
return dict(
success=bool(env.blocks[target, 0] >= GOAL),
wrong_block=bool(env.blocks[1 - target, 0] - other_x > 0.02),
time_steps=len(hand) - 1,
clips=clippings,
hand=np.asarray(hand),
block=np.asarray(block),
)Use a disjoint episode split for the training, development and execution sets. Comparing rows that came from the same trajectory across a random split would test interpolation within familiar episodes. Here the split is by initial-state seed. The development set contains scripted state-action pairs from 20 separate episodes. The closed-loop set uses 24 other seeds in each condition, and every head starts the corresponding episode from the same initial state.
PythonIn [7]Expand
nominal = collect(range(80))
dev = collect(range(80, 100))
randomized = collect(range(80), radius_range=(0.045, 0.100))
regression = train(nominal)
tokenized = train(nominal, bins=9)
regression_randomized = train(randomized)
conditions = {
"Nominal": {},
"Larger radius": {"radius": 0.085},
"Actuation noise": {"noise": 0.012},
"Both shifts": {"radius": 0.085, "noise": 0.012},
}
models = {
"Regression": regression,
"Binned": tokenized,
"Radius-trained": regression_randomized,
}
results = {
name: {
condition: [
rollout_one(model, seed, **settings) for seed in range(100, 124)
]
for condition, settings in conditions.items()
}
for name, model in models.items()
}
with torch.no_grad():
dev_mse = {
name: F.mse_loss(decoded_actions(model, dev[0]), dev[1]).item()
for name, model in models.items()
}ConsoleOut [8]Expand
Nominal training: 1279 transitions, expert 80/80 Development: 333 transitions, expert 20/20 Radius training: 1234 transitions, expert 80/80 Regression: decoded development MSE 0.0000560 Nominal: 18/24 reach goal; 0/24 move other block by >0.02; 0/549 steps clipped Larger radius: 18/24 reach goal; 0/24 move other block by >0.02; 0/535 steps clipped Actuation noise: 19/24 reach goal; 0/24 move other block by >0.02; 156/593 steps clipped Both shifts: 19/24 reach goal; 0/24 move other block by >0.02; 149/580 steps clipped Binned: decoded development MSE 0.0000515 Nominal: 14/24 reach goal; 0/24 move other block by >0.02; 0/718 steps clipped Larger radius: 14/24 reach goal; 0/24 move other block by >0.02; 0/718 steps clipped Actuation noise: 12/24 reach goal; 0/24 move other block by >0.02; 264/854 steps clipped Both shifts: 17/24 reach goal; 0/24 move other block by >0.02; 215/707 steps clipped Radius-trained: decoded development MSE 0.0000551 Nominal: 18/24 reach goal; 0/24 move other block by >0.02; 0/545 steps clipped Larger radius: 18/24 reach goal; 0/24 move other block by >0.02; 0/533 steps clipped Actuation noise: 19/24 reach goal; 0/24 move other block by >0.02; 155/577 steps clipped Both shifts: 19/24 reach goal; 0/24 move other block by >0.02; 148/562 steps clipped
The decoded development MSE is smaller for the binned head in this run, yet the regression head completes more nominal rollouts. Those measures weight different events. The development loss weights individual scripted transitions, while success asks whether a learned trajectory reaches the goal. The rollout can also count off-target movement and command clipping. No rollout moved the other block more than 0.02 in this experiment. That is an observed result for these seeds and this two-lane contact rule.
The noise perturbation uses a separate per-episode generator. Each model sees the same sequence of noise draws up to the length of its rollout on the corresponding seed. Noise results therefore compare paired initial states and noise streams. A rollout that finishes early consumes fewer commands; the clipping denominator counts only applied steps and differs across policies. The radius change affects whether a hand position counts as being in contact. The fixture keeps initial states fixed across radius conditions.
VisualizationOut [9]Expand

The displayed seed was selected by its index in the fixed closed-loop range. The full output gives the denominator and outcomes for the other initial states. A plotted path can show where contact was made or missed, but one path cannot establish what caused the aggregate ranking.
VisualizationOut [10]Expand

Radius randomization matches the baseline on demonstration episode count and seed identities, and both train with the same number of gradient updates. Earlier completion gives different transition counts. The radius-trained policy ties nominal regression on all four success counts here, so this run provides no evidence of an improvement in success count from that training change. The shifts are changes inside a simulator; they are not a physical transfer result.
Beyond behavior cloning
A diagnostic can start by finding initial states or phases in which traces diverge. Separate navigation to the right lane, contact with the intended block, and continued movement after contact. Collecting more demonstrations at the same initial states may add little information about the states a learner visits after a mistake. DAgger constructs a training dataset by adding expert labels on states encountered during interactive rollouts. It needs access to an expert or labeling scheme for those visited states. Augmentation that perturbs the observation while keeping the label fixed needs its own validity check, since some changes also change the right action.
Which data change the policy's coverage?
Training from expert trajectories directly fits an action mapping on observed expert states. It is useful to know how those states were generated. Demonstrations collected from the same initial placement or controller can share almost all their approach motions. New recordings under an unchanged script can add transitions without adding the mistakes, recoveries and unusual contact states that a learned policy needs to handle. A train/development split at the level of entire episodes limits leakage of neighboring transitions. To test generalization across physical setups, split at the level of setup too. Different leakage questions need distinct grouping variables.
A diagnosis of compounding error starts with a comparison across time. Use common initial placements, note the first visible loss of contact or targeting error, and inspect later states relative to training coverage in the chosen observation representation. A nearest-neighbor distance in raw coordinates may reveal that a learned trajectory reaches unfamiliar hand-block relationships. It can also assign large distances to features irrelevant to action. Report both the features and the metric when using this diagnostic, and avoid assigning unwarranted meaning to tiny numeric differences. The expert's ability to label a state still depends on what was retained in the representation.
Correcting one source of shift may change the conditions relevant to another. Randomizing camera brightness can leave the desired action unchanged for some images, but a crop can remove the only evidence for the target. Adjusting hand and object poses can change the correct command even when the language remains constant. An augmented tuple should either recover a valid label for the changed state or restrict the changes to settings where the original label remains valid. A useful test applies each augmentation to a few explicit examples and asks whether the annotation procedure, which targets state and instruction together, would produce the same action.
In interactive imitation learning, the evaluator can separate how often the policy reaches a difficult state from how often those visited states are available for expert annotation. The annotator might be a human, a planner under a declared simulation model, or a previously specified controller with a narrower range of admissible states. Data aggregation changes what states enter training. The collection mixture and deployed policy can still visit different states. When results improve, report which rounds added more observations, which portions were relabeled, and whether the final test episodes were kept apart from the interaction used for training.
There is a different rationale for reward-driven updates. A learning objective based on task success can reward actions that differ from recorded demonstrations but reach the target. An action-level imitation loss compares a chosen prediction with a supplied label at a state. The two objectives can produce different behavior on the same worlds. For example, if the toy reward measured the selected block's horizontal coordinate alone, it could overlook unwanted movement of the other block. Record relevant behavior separately from the reward so an improvement on the optimized objective can be compared with the broader outcome.
A recovery policy, a scripted fallback or a human intervention also changes the object being evaluated. Record which component made each decision and whether the learned policy would otherwise have continued. If a benchmark measures the combined system, its task success can include successful fallback when that condition is stated. For diagnosis, report interventions alongside unaided outcomes. The same final state can come from immediate completion, retries initiated by the learned policy or an externally corrected trajectory. A trace then helps you decide whether more demonstrations or a better recovery rule would address a particular failure.
Reading the attempted trajectory
In the present toy, the hand first approaches an indicated lane, then contacts the selected block, then may move that block toward its goal. Under small actuator noise, command clipping can occur in trajectories that succeed. It is a measure of how the bounds are used. Separate a policy asking for an out-of-bounds action from a paired perturbation moving an otherwise allowable action outside the limit before clipping.
Check whether the same initial-state policy pair experiences the same outcomes before aggregating differences between conditions. Two policies can have equal marginal counts even when one succeeds on episodes the other fails. A paired table of both-success, baseline-only, alternative-only and neither makes that distinction visible. The unit of comparison for that table is the held-out episode identifier. If one policy reaches the goal sooner, its shorter step count is relevant for clipping rates, while the count of matched episode pairs stays fixed. A later bootstrap across independent episode pairs or independent task groups should respect that sampling unit.
For shift experiments, keep a record of what the change affects. Here a wider radius changes the threshold for contact, so it can affect the transition at the first interacting step. The task text, evaluation horizon and initial placements stay fixed. The actuator noise changes the proposed displacement before clipping. Combining two changes can produce an effect that differs from the sum of the changes measured separately. The same experiment can support useful local comparisons while leaving some deployment mechanisms entirely unmeasured.
Embodiment and transfer
An embodiment includes sensing, geometry, available commands and the low-level control interface. Two systems can share end-effector coordinate conventions and still differ in reach, gripper operation or which commands the controller accepts. Normalize or map the data into declared coordinate frames and retain the original control rate where it affects labels. With shared training, a robot identifier can condition a policy on the appropriate command interpretation. Open X-Embodiment pools trajectories from different robots and evaluates transferable policies under a particular data and evaluation recipe. A model evaluated on pooled data still needs a separate test on a genuinely held-out setup before claiming transfer to it.
In simulation-to-reality work, the source and destination differ in sensing and dynamics. Lighting, occlusion, friction, actuation delay and calibration errors can alter which state the model infers or what follows an action. Dynamics randomization varies selected simulation parameters during training. It works to the extent that the parameter changes expose useful variation and the policy can cope with it. The synthetic radius and actuator perturbations above isolate two known differences between training and trial conditions. They cannot model the full difference between a renderer and physical hardware.
Constructing a transfer test
Transfer can refer to new task instances on the same body, new sensing conditions, different physical dynamics, or a new command interface. A move from overhead to oblique cameras with the same scene can affect the evidence available to the policy while leaving the command processor unchanged. A new mechanism can change which actions are reachable even with unchanged observations. State how the training and test setups differ before attaching a claim to a success number. More than one factor can change at once in deployment. Isolating factors in simulation helps diagnose mechanisms and can inform a separate test of their combination.
A shared Cartesian representation can make data from two bodies easier to compare, because both can record displacement in a declared task frame. Store the sensor and command mappings separately. A common action may be acceptable for one mechanism and outside the range of another. An embodiment identifier can let a shared model condition on those differences. A body-specific decoding head can instead translate a shared representation into an appropriate command vocabulary. A pooled training score measures that mixture. An evaluation on a reserved embodiment measures generalization under the declared transfer conditions.
A transfer ledger can record training and evaluation setup independently for every result. Include which combinations of camera, body and task are seen during fitting, which have only development data, and which are completely held out. A held-out sequence from a known robot is evidence for that robot under that sampling procedure. A held-out robot identifier indicates a different split, which still might share a camera rig, task templates and controller conventions with training. Report what kind of novelty remains after accounting for those shared ingredients. If a model is fine-tuned on target-body data before evaluation, label the result as adapted transfer and report how much data were used.
The unit and rate conventions are easy to miss when assembling pooled trajectories. Two files may have columns with the same displacement label but record movements in centimeters and meters, or at different controller intervals. Even after units are reconciled, a trajectory replay requires settling whether the same vector means a relative move or a velocity to sustain. Resampling commands changes the relationship between labels and motion, so check it on a small synthetic trajectory and store the original timing. If any representation used in evaluation constrains the outgoing command, retain how much of the original action range becomes unavailable. A conversion that silently clips a large fraction of commands can improve apparent boundedness while losing information needed for the task.
Simulation allows a researcher to control initial state and conditions, generate exact observations for the selected abstraction and run paired experiments without touching hardware. Those advantages depend on the simulator's design and validation. Parameter range, sampling distribution and coupling matter. Varying the contact threshold explores one feature of the simulator. Friction, latency and flexible materials would need different parameters and validation. Excessively broad variation may create demonstration states irrelevant to the intended setup, and convenient parameter choices can omit the most important source of mismatch. Report the observed transfer conditions and state which results require further evidence.
The radius experiment in this chapter supports a narrow comparison. When the contact threshold and actuator perturbations are changed within this toy, the reference and radius-trained regressors yield equal marginal counts under the pinned recipe. The paired result below checks whether the same episodes succeeded. Increasing data variety is an intervention whose value depends on what changed and how you measure the resulting trajectories.
What a deployment evaluation measures
One benchmark might report successful motion over a known set of tasks. Another might evaluate the proposal before any action is applied. A third might combine a learned policy, an independent controller and a recovery path. Report which is being evaluated. Checking a proposed command for validity can catch interface errors, while executing a trajectory tests a different relationship between state and command. If stop behavior matters, record its outcome separately and distinguish an intentional stop from timeout, command refusal or apparent inactivity.
Open-loop replay of human examples can support reproducibility and visualization without exposing a real apparatus to a learned controller. A simulated closed loop exercises the interaction of state and action under stated transition rules. A physical evaluation asks a different question, with additional safety and measurement obligations. Bound checks in the toy concern only its dimensionless transition. A physical evaluation needs its own validated assumptions about the apparatus. Tie every reported score to the experiment actually executed.
For a task set with unequal difficulty, a single pooled success rate can hide changes in who benefited. An approach could improve successes on short single-contact tasks while losing successes on long sequences with recovery. The measured mean describes its own task mixture. Interpreting that mean for a different deployment requires evidence about the tasks and their weights. Retain per-episode results and task group identifiers so the evaluation can be recomputed for relevant slices without rerunning unrelated conditions.
Paired outcomes with identical initial states
The plotted success bars show one count per policy and condition. They cannot tell us if the same individual episodes succeeded under two policies. Here we can recover that information because all models were evaluated in the same seed order for each condition. Treat an episode as one paired comparison. Count outcomes with a joint table, including the hardest cases that neither policy completed.
PythonIn [11]Expand
def paired_success_counts(left, right):
if len(left) != len(right):
raise ValueError(
"Use the same ordered episode identifiers for each policy."
)
counts = dict(both=0, baseline_only=0, alternative_only=0, neither=0)
for first, second in zip(left, right, strict=True):
a, b = first["success"], second["success"]
if a and b:
counts["both"] += 1
elif a:
counts["baseline_only"] += 1
elif b:
counts["alternative_only"] += 1
else:
counts["neither"] += 1
return counts
comparisons = {
alternative: {
name: paired_success_counts(
results["Regression"][name], results[alternative][name]
)
for name in conditions
}
for alternative in ("Binned", "Radius-trained")
}The helper checks list lengths. Alignment still depends on the suite producer passing the same seed order to both policies. In this fixture the shared seed loop establishes that order. If records were loaded from separate runs, each would need its explicit episode identifier to check both membership and alignment before computing the paired outcomes.
ConsoleOut [12]Expand
Regression versus Binned: Nominal: both 12, regression only 6, alternative only 2, neither 4 Larger radius: both 12, regression only 6, alternative only 2, neither 4 Actuation noise: both 9, regression only 10, alternative only 3, neither 2 Both shifts: both 13, regression only 6, alternative only 4, neither 1 Regression versus Radius-trained: Nominal: both 18, regression only 0, alternative only 0, neither 6 Larger radius: both 18, regression only 0, alternative only 0, neither 6 Actuation noise: both 19, regression only 0, alternative only 0, neither 5 Both shifts: both 19, regression only 0, alternative only 0, neither 5
Subtract the two discordant counts to recover the difference in total successes. That subtraction is valid because the both-success count appears in both marginals. However, the difference of the two marginals alone cannot determine the discordant counts. The paired table also gives a starting point for tracing the actual conditions that differentiated two methods. It identifies which outcome pairs diverged, while the stored paths help inspect the states where they diverged. Use a trace and the transition rule before attributing the divergence to contact behavior.
Under nominal conditions, the binned head completes 2 episodes that regression misses and regression completes 6 that binning misses. The total regression advantage is therefore 4 successes in this condition. Radius-trained regression and nominal regression agree on every paired success indicator in all four conditions. Comparing their path coordinates or episode lengths would answer a different question about behavior within those same successful or failed episodes.
Limitations and impact
The tabletop results are conditional on one training seed, a fixed observation representation, two simple instructions and a dimensionless transition rule. Vary the demonstration seed, action-head width, training budget and rollout population to learn whether an observed ranking persists. A policy that succeeds under greedy per-dimension decoding in a simple state can still mishandle coordinated actions or ambiguity. Report task success, off-target effects, stop behavior and an observation-to-command latency breakdown separately. A content recheck on the same episodes does not certify physical behavior. For this experiment, no command is sent to hardware and the bounds constrain only the simulator.
When comparing real model papers, read the robot and environment setup and distinguish changes in model, data, action space and controller. Published success rates measure the stated tasks under those conditions. Report which failures were counted and whether an external controller refused or corrected an action before counting the completion. Success after recovery answers a different evaluation question from success with no intervention.
Summary
A vision-language-action model is part of a sequential policy. Its observation interface, command representation, execution cadence and evaluation protocol jointly determine what the results mean. Regression, discretization and continuous generative heads represent actions differently. Chunk prediction can keep a planned prefix available between policy calls, while consuming a shorter prefix can make fresh observations useful sooner. The tabletop comparison illustrates why low error on expert states, goal completion and boundary behavior require separate measurements. The paired shifts were useful for diagnosis inside the simulator. Transferring to a new body or physical setting requires evidence from that setting.
Quiz
Vision-Language-Action Models
Join the discussionAsk a question or share what you learned.
Keep exploring
Reference
Citation details
Cite or share this article.


Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!