Research note /
How OpenVLA turns images into robot actions
Follow original OpenVLA from image and instruction to numerical actions, then see exactly what action tokenization loses.

Imagine showing a robot a photo and saying “pick up the blue cube.” A language model usually replies with words. Original OpenVLA instead predicts tokens that decode into numerical action values. The interesting part is the bridge between those two worlds: an action becomes a vocabulary token, and a token becomes a number again.
Let’s follow that bridge, then test what gets lost along the way. This walkthrough covers the original OpenVLA paper, rather than every later model with a similar name.
A ruler with discrete marks
Think of one action coordinate as a ruler whose measurements must be recorded using a fixed set of marks. Several nearby measurements receive the same mark. Reading it back gives a representative value, rather than the original measurement.
OpenVLA describes discretizing each action dimension into 256 bins over its training-data 1st-to-99th-percentile interval. It reuses the last 256 vocabulary tokens and trains with next-token cross-entropy loss on action tokens. This lets action prediction use the language model’s existing training machinery. Paper, Section 3.2.
Each coordinate is discretized separately, but the predictions are not independent: successive tokens are generated with preceding tokens as context.
From image to action
The diagram has three stages:
- See. DINOv2 and SigLIP extract patch features from the image. Those features are concatenated, then an MLP projector maps them into the language model’s embedding space.
- Predict. Llama 2 receives visual and instruction embeddings together and generates action token IDs.
- Decode. Token IDs select normalized reconstruction values. Dataset statistics rescale the dimensions whose normalization mask is true; the result is a numerical action array.
The model architecture comes from Figure 2 and Section 3.1. The embedding insertion and masked rescaling are explicit in the official inference wrapper.
A token has no universal meaning in centimetres or degrees. The selected dataset’s statistics and the controller’s conventions determine how to interpret the array.
A tiny example you can run
Here’s a detail that is easy to miss: the paper says “256 bins,” while the official tokenizer’s default configuration creates 256 boundaries and 255 reconstruction centers. The endpoint indices are clipped to the available centers. That wording difference matters when calculating spacing.
Our example uses one synthetic dimension with q01 = 0 and q99 = 1, in arbitrary units, and a made-up vocabulary size of 1,000. We assume linear normalization to [-1, 1]; this illustrates the mapping rather than verifying OpenVLA’s training preprocessing.
The core round trip looks like this:
// boundaries: 256 evenly spaced values from -1 to 1
// centers: midpoints of the 255 adjacent boundary pairs
const normalized = 2 * input - 1;
const clipped = Math.max(-1, Math.min(1, normalized));
const index = boundaries.filter(b => clipped >= b).length;
const tokenId = 1000 - index;
const centerIndex = Math.max(0, Math.min(254, 1000 - tokenId - 1));
const decoded = (centers[centerIndex] + 1) / 2;
Download the complete dependency-free example, then run node action-toy.mjs. This scalar example was run under Node 24.21.0; these are its results, rounded for display:
| Input | Synthetic token ID | Decoded value |
|---|---|---|
| 0.5001 | 872 | 0.500000 |
| 0.5010 | 872 | 0.500000 |
| 1.0000 | 744 | 0.998039 |
| 1.2000 | 744 | 0.998039 |
The first two inputs differ, but the token and reconstructed value are identical. The last two also collapse: clipping removes the distinction between an endpoint and a value beyond it.
The script checks these cases and sweeps 10,001 inputs within [0, 1]. Its assertions passed. This is a synthetic arithmetic check, not model inference or a robot experiment.
What the numbers tell us
Two kinds of information disappear: small differences within an interval, and differences outside the range after clipping. Decoding cannot recover either.
With 256 boundaries and matching linear normalization, adjacent decoded centers for a rescaled dimension are separated by:
spacing = (q99 - q01) / 255
More generally, the denominator is the boundary count minus one. Within a nondegenerate represented interval, replacing a value with its interval’s center introduces at most half that spacing in scalar error. Our sweep reached about 0.001961, matching 1 / 510 for the synthetic unit interval.
That bound excludes clipped outliers and predicting the wrong token. It is a property of this mapping, not a guarantee of robot accuracy. The actual inference wrapper also leaves dimensions with a false normalization mask in normalized coordinates. Official decoding implementation.
Before putting it on a robot
Start with a small representation check:
- Inspect the dataset’s
q01,q99and normalization mask. - Calculate decoded spacing for each rescaled dimension.
- Compare half that spacing with the task’s tolerance, using the controller’s actual units.
- Count actions outside the represented interval and examine what clipping would erase.
If the representation itself is too coarse, a better predictor cannot restore values that are absent from its decoded output set. If the spacing fits, that is only the first check: perception, feedback and control timing still need evaluation.
Original OpenVLA’s single-image setup also lacks observation history, proprioception inputs and action chunking. Those are separate limitations; quantization did not remove those inputs. Paper, Section 6.
The useful habit here is simple: inspect what your model can represent before measuring how well it predicts. A ten-line calculation can expose a constraint that a large training run would otherwise hide.
Prepared with AI assistance. Sources and a worked example are provided so you can check the reasoning.
