OpenVLA

A 7-billion-parameter model writes each robot move as seven words from a 256-word vocabulary, and beats a 55-billion-parameter rival by 20 points of success on a real robot arm.

Learn how a chat-style model that reads pictures and words is taught to move a robot arm, and why that simple recipe works.

Pick a robot policy, then press Run 10 trials. Watch how often each one puts the object in the pot. Then we build, piece by piece, everything underneath: the action words, the two-eyed vision encoder, the training recipe, the speed limit of the control loop and the tricks that make it run on one graphics card.

You need a feel for what a neural network is (a function with adjustable numbers) and a little Python for the code. We build the rest from zero.

Based on OpenVLA: An Open-Source Vision-Language-Action Model by Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov, Ethan Foster, Pannag Sanketi, Quan Vuong, Thomas Kollar, Benjamin Burchfiel, Russ Tedrake, Dorsa Sadigh, Sergey Levine, Percy Liang and Chelsea Finn (2024). This is an assigned reading of MIT MMAI Lecture 13, Multimodal Interaction. Every idea is re-taught here in our own words and devices.

Run the robot policies

Instruction: put the eggplant in the pot

The success rates are the paper’s: mean success on the 17-task BridgeData V2 WidowX suite, 170 rollouts each, Table 4 (RT-1-X 18.5%, Octo 20.0%, RT-2-X 50.6%, OpenVLA 70.6%). The table, the paths and the ten random trials are a toy drawn in your browser: each trial succeeds with the policy’s measured rate.

Chapter 0

A Robot That Understands Sentences

See why robot policies fail outside their training room, and why borrowing a model that already knows words and pictures is the way out

A robot arm sits at a kitchen sink. On the counter lie an eggplant, a red bottle and a steel pot. You type one sentence: “Put the eggplant in the pot.” The arm must find the eggplant, grab it, carry it and let go in the right place. It does this by looking at one camera image about five times a second and choosing a small move each time.

Now change the room a little. Add a cup. Swap the eggplant for a toy skull. Ask for something the robot never practised, like “Take the purple grapes out of the pot.” Most robot policies fall apart here. They wave the arm around, grab the wrong object, or freeze. The paper measures this carefully, and Chapter 6 shows the numbers.

Why robots break outside the lab

A policy is the function that turns what the robot sees and what you said into the next move. Most policies learn by imitation learning: people steer the robot by hand, the machine records pictures and moves, and the network learns to copy them. Each recorded run is a demonstration or episode.

The trouble is the supply of demonstrations. The paper says even the largest robot datasets hold only 100 thousand to one million examples. A policy trained on such a set knows its own training scenes very well and little else. A new background, a new object or a new sentence is outside what it saw.

Language and vision models live in a different world. A model like Llama 2 learned from a huge pile of web text. An image model like SigLIP learned from a huge pile of web pictures. The paper says the makers do not publish the data, but it likely holds trillions of tokens. These models already know what an eggplant is, what a pot is and what “in” means. The idea of the paper is to use that knowledge as the starting point for a robot.

Compare the supplies of data

Each bar counts one kind of training example. Switch between a straight scale and a scale where every gridline is ten times bigger. Watch where the web bar goes.

Robot counts are the paper’s: 350k trajectories for RT-2-X, 970k for OpenVLA, more than 2M in the full Open X-Embodiment set (Section 3.3). The web bar is a floor, not a count: the paper says the parts were pretrained on “likely” trillions of tokens, so we draw one trillion. Units differ (trajectories against tokens), so read the gap as a size of ambition, not a ratio of like with like.

On the straight scale the three robot bars are visible and the web bar leaves the chart. On the log scale it fits, and it still sits six steps to the right of the robot bars. No robot lab can close that gap by collecting demonstrations alone. The only road is to start from a model that already holds the web’s knowledge.

What a VLA is

A vision-language model (VLM) reads an image and a text prompt and writes text. Chat assistants that describe photos are VLMs. A vision-language-action model (VLA) is a VLM that has been taught to write robot moves instead of, or as well as, sentences. Its input is a camera image and an instruction. Its output is the next action for the arm.

The idea was not new. Google’s RT-2 used it, and so did RT-2-X, a 55-billion-parameter model. But the paper names two reasons that stopped people from using these systems. First, they were closed: nobody outside could see the architecture, the training recipe or the data mix. Second, nobody had shown how to adapt one to a new robot on ordinary hardware.

OpenVLA answers both. It is a 7-billion-parameter VLA trained on 970 thousand robot episodes, released with weights, code and data recipes. It beats RT-2-X by 16.5 points of absolute success across 29 tasks. And it fine-tunes on a consumer graphics card, with a method called LoRA that Chapter 8 explains.

The trade in one line. OpenVLA gets more done than a model eight times its size, because it spends its parameters on a better vision encoder and a larger, cleaner set of demonstrations, and because it treats an action as just another word.

The road

This lesson follows the paper’s own order, with the background it assumes taught inline. It belongs to Lecture 13 on multimodal interaction, where models stop only describing the world and start acting in it.

  1. How a vision-language model works: patches become tokens, and one network reads them with the words.
  2. Actions as words: cut each motion into 256 bins and give every bin a token.
  3. The model, tensor by tensor: two vision encoders, a projector, a language model, with real shapes.
  4. The training recipe: next-token loss on action tokens only, 970k episodes, 27 passes.
  5. Reading an action back out: seven tokens in, a move for the arm out, six times a second.
  6. The results: Bridge, the Google robot and new robot setups.
  7. What mattered: the ablations, and the bug that made robots freeze.
  8. Cheap to adapt, cheap to serve: LoRA and 4-bit weights.
  9. Field guide: numbers, checklist, core code, and limits.
Why does the paper start from a pretrained vision-language model instead of training a policy from scratch on robot demonstrations?

Chapter 1

How a Vision-Language Model Reads a Picture

Cut an image into squares, turn each square into a token, and let one language model read the squares and the words together

Show a friend a photo of a kitchen sink and ask, “What is in the pot?” Your friend looks, finds the pot, and answers in words. A vision-language model (VLM) does the same job with numbers. It takes the photo and your question, and it writes the answer one piece of text at a time. OpenVLA is built on one of these, so we start by opening it up.

A VLM has three parts. A vision encoder turns the image into a list of number vectors. A projector translates those vectors into the form the language side understands. A language model reads the translated image vectors and the question, then writes the answer. Figure 2 of the paper draws exactly this chain.

Step one: cut the picture into patches

A network cannot swallow a whole photo as one object. The standard trick is to cut the image into a grid of small squares called patches. A patch is 14 by 14 pixels in the encoders OpenVLA uses. A 224 by 224 image gives a 16 by 16 grid, which is 256 patches.

The vision encoder is a vision transformer (ViT). It reads all patches together and outputs one feature vector per patch. A feature vector is a list of numbers that describes what a patch contains, such as an edge, a colour or part of an eggplant. Patches that look alike get vectors that are close.

Cut an image into tokens

The grid is one camera image. Each square is one patch, and each patch becomes one token. Change the image size and the patch size, and watch the token count.

14 px

The 224 and 384 pixel sizes are the two the paper compared (Section 3.4). The 14 pixel patch is the size of the SigLIP and DINOv2 encoders in Prismatic; the paper does not state it, so treat the exact counts as our arithmetic. The scene in the grid is a toy picture.

At 14 pixels the 224 pixel image gives 256 tokens and the 384 pixel image gives 729. The second is about 2.8 times as many, and the paper reports that training took 3 times longer for no gain. Drag the patch size down and the count explodes: smaller patches mean more tokens, and every token costs compute.

Step two: translate the patches into the language model’s space

The language model reads tokens. A token is a piece of text, such as a word or part of a word, with an integer id in a fixed list called the vocabulary. Inside the model each token id looks up a vector, called an embedding, of fixed width. For Llama 2 7B that width is 4,096 numbers.

The image vectors from the encoder have a different width and a different meaning. The projector fixes that. In OpenVLA it is a small network of two layers, a multi-layer perceptron (MLP). It maps each patch vector to a 4,096-number vector that sits among the word embeddings. Now an image patch is a “token” the language model can read, even though it has no word id.

The paper calls this the “patch-as-token” design. Older VLMs used special cross-attention layers to link vision and language. Newer open ones converged on this simpler way, because it lets builders reuse all the tools made for training language models.

Step three: predict the next token

Now the sequence is: 256 image tokens, then the text prompt. The language model reads them all with attention, the mechanism that lets every position look at every earlier position and mix in what it finds. Then it predicts the next token. It gives each of the 32,000 tokens in the Llama vocabulary a probability, and one is chosen. Append it, repeat.

VLM training uses one objective: next-token prediction. For each position, the model's guess is compared with the true next token using cross-entropy, a score that is low when the model gave the true token a high probability. This is the same loss that trains a chatbot. Chapter 4 reuses it unchanged for robot actions.

The backbone the paper picks

OpenVLA starts from Prismatic-7B, an open VLM built by Karamcheti and colleagues, several of whom are authors of this paper. It has a vision encoder of about 600 million parameters, a two-layer MLP projector and a 7-billion-parameter Llama 2 language model. It was fine-tuned on the LLaVA 1.5 data mix, roughly one million image-text and text-only samples.

The twist is that the vision encoder is really two encoders. SigLIP learned from image and caption pairs, so its features carry meaning: this is a bottle. DINOv2 learned from images alone, so its features carry shape and position: this edge is here. Each patch goes through both, and the two vectors are glued together side by side. Prior work found the extra DINOv2 features help spatial reasoning, which a robot needs to grasp things.

What does the projector do in a vision-language model?

Chapter 2

Actions Become Words

Slice every motion number into 256 bins and give each bin a token, so a language model can write a robot move the way it writes a sentence

Imagine you must tell a friend over the phone how to nudge a mug. You cannot say “move 0.0073 metres” with perfect precision, but you can say “a little to the right”. Pick a scale of 256 phrases from “far left” to “far right”, and you can say anything useful with one phrase. That is the whole idea of this chapter.

What the robot needs to hear

A robot arm in the paper’s experiments moves its hand, called the end effector, a small step each time it looks at the camera. One step is an action with seven numbers. Three give the translation: how far to move along x, y and z. Three give the rotation: how far to turn about each axis. The seventh sets the gripper: open or closed. The paper calls this a 7-dimensional action, and the arm uses relative control: the numbers are changes from where the hand is now.

These seven numbers are continuous. A language model, however, can only write tokens from a fixed vocabulary. Somehow a real number must become a token and back. This step is called discretization: replacing a smooth range of values by a short list of allowed ones.

Slice each number into 256 bins

OpenVLA copies the recipe of RT-2. Treat each of the seven dimensions on its own. For one dimension, take a bin to be a small interval of values. Cut the allowed range into 256 equal bins, and number them 0 to 255. An action value then becomes the number of the bin it falls in. Seven dimensions give seven bin numbers, and each bin number gets its own token.

Why 256 and not a million? Each token costs one step of the language model when it writes the answer. Seven tokens means seven steps. Fewer bins would make moves too coarse; many more would swell the vocabulary. 256 is the paper’s choice, copied from RT-2, with no further sweep reported.

Which range? Use quantiles, not the extremes

The range matters a great deal. The obvious choice is the smallest and largest value in the training data, the min and max. RT-2 did that. The danger is a single wild value: one glitchy demonstration where the arm jumped 30 centimetres. That one number stretches the range, every bin gets wider, and ordinary moves collapse into a few bins.

OpenVLA instead uses the 1st and 99th quantiles. A quantile is a cut point in sorted data. The 1st quantile is the value below which 1% of the data fall; the 99th is the value below which 99% fall. The bins span only that middle 98%. The paper’s reason: outliers “could otherwise drastically expand the discretization interval and reduce the effective granularity.” Try it.

Bin an action dimension

Bars show 2,000 toy x-moves of the hand, in millimetres. The teal band is the interval cut into 256 bins. Add outliers, then switch how the interval is chosen.

0 mm

Toy data, seeded so it is the same on every visit: 1,980 moves from a bell curve with spread 7 mm, plus 20 outliers, half at each end, at the size you pick. The 256 bins and the 1st and 99th quantile rule are the paper’s (Section 3.2); the numbers are not from any real dataset.

With no outliers the two choices give bins of similar size, a fraction of a millimetre each. Add 300 mm outliers and the min-max bins swell. Every ordinary move now lands in a handful of bins, so the policy cannot tell a 3 mm move from a 9 mm one. The quantile interval barely changes, because the outliers sit outside the middle 98%.

The arithmetic, with a worked example

For dimension i, let q1 and q99 be its two cut points. The bin number of an action value a is a rescaling of a onto 0 to 256, rounded down.

b
The bin number, a whole number from 0 to 255. This is what becomes a token.
clip
Keep the answer between 0 and 255. A value beyond the interval lands in the first or last bin.
a − q1
How far the action is above the lowest allowed value.
q99 − q1
The width of the whole interval. Dividing by it turns the distance into a fraction from 0 to 1.

A worked case, with illustrative numbers. Say the x-move has q1 = −20 mm and q99 = +20 mm. The width is 40 mm, so each bin is 40 / 256 = 0.156 mm wide. The robot should move +7.3 mm. First, a − q1 = 27.3 mm. Divide by 40 mm to get 0.6825. Multiply by 256 to get 174.7. Round down: bin 174.

To use bin 174 later, run it backwards and take the middle of the bin: −20 + (174.5 / 256) × 40 = +7.27 mm. The error is 0.03 mm, far below what a gripper can feel. The most the rounding can ever cost is half a bin, 0.08 mm here.

Bin numbers need token ids

The last step is practical. The language model’s tokenizer (the Llama tokenizer) has a fixed vocabulary of 32,000 tokens and only 100 spare “special” slots for new ones. The robot needs 256. The paper’s fix is blunt and simple: overwrite the 256 least-used tokens, which are the last 256 in the list. Those tokens used to be rare word pieces nobody will miss. Now they mean “bin 0” to “bin 255”.

Every dimension shares the same 256 tokens. Which dimension a token belongs to comes from its position in the output: first token is x, second is y, and so on. The model must learn that order. No new layers are added, and no output head is bolted on. The only change to the model is which text the training labels contain.

One bad demonstration contains an action 100 times larger than all the others. Why do OpenVLA’s quantile bins handle this better than min-max bins?

Chapter 3

The Model, Tensor by Tensor

Follow one camera image and one sentence through the two vision encoders, the projector and the language model, and track every shape

Suppose the camera takes a picture of the sink and you have typed “put the eggplant in the pot”. Between that picture and a move of the arm lie four stages. This chapter walks through them with real shapes, so that you could write the forward pass yourself. A tensor is just a grid of numbers, and its shape lists the size along each direction, such as [256, 4096] for 256 rows of 4,096 numbers.

Stage 1: the image goes in as a 224 by 224 grid

The camera frame is resized to 224 by 224 pixels with 3 colour channels. Its shape is [3, 224, 224]. The paper uses one third-person camera image and nothing else: no wrist camera, no history of earlier frames, no robot joint readings. Section 6 lists this as a limit.

Stage 2: two eyes look at every patch

Both vision encoders cut the image into 14 pixel patches, so each makes 256 feature vectors. SigLIP gives each patch a vector of 1,152 numbers. DINOv2 gives each patch 1,024 numbers. (These widths come from the public model files of these encoders, not from the paper.) The two are glued along the feature direction, which the paper calls “concatenated channel-wise”. The result per patch is 1,152 + 1,024 = 2,176 numbers.

Why two? Think of a detective with two helpers. One is a librarian who recognises things: that is a bottle. The other is a surveyor who measures where edges and surfaces lie. The librarian is SigLIP, the surveyor is DINOv2. A grasp needs both: which object, and exactly where its edge is. The ablation in Chapter 7 puts a number on how much the surveyor adds.

Stage 3: the projector translates

The projector is an MLP with two layers. It takes each 2,176-number vector and returns a 4,096-number vector. The same small network is applied to all 256 patches separately. The output shape is [256, 4096]: 256 image tokens, each the same width as a word embedding in Llama 2.

The projector is the only piece that is small and new. Everything else was pretrained. In the Prismatic VLM it was already trained to hand image tokens to Llama 2, so OpenVLA starts with a working translator.

Stage 4: the language model reads the whole tape

The text prompt follows a fixed template, shown in the paper’s Figure 2: “What should the robot do to {task}? A:”. After tokenizing, a short prompt is about 20 tokens. Each becomes a 4,096-number embedding. We will use 20 as an illustrative length.

The model sees one long row, the sequence: 256 image tokens, then 20 prompt tokens, so 276 positions of 4,096 numbers. Llama 2 7B runs this through its stack of transformer layers (32 in the public model). In each layer, every position attends to the earlier ones. This is causal attention: a position may look back, never ahead. The picture is read first, then the question, then the answer is written.

At the last position the model produces a score for every one of the 32,000 vocabulary entries: shape [32000]. The highest-scoring token is usually the pick. Because we overwrote 256 entries with bin tokens, 256 of those 32,000 scores now mean “bin 0” to “bin 255”. The model writes seven of them, one after another, each fed back as input for the next.

Follow the tensors

Slide through the five stages. The highlighted box is the stage you are on, with the shape of what it holds. The tape at the bottom shows how long the sequence is.

1 of 5

The 256 patches, the 224 pixel input, the two-layer projector, Llama 2 7B and the seven output tokens are the paper’s. The feature widths 1,152 and 1,024, the hidden width 4,096 and the 32 layers are the public settings of SigLIP, DINOv2 and Llama 2 7B. The 20-token prompt is an illustrative length.

At stage 4 the sequence holds 276 positions. At stage 5 it holds 283, because each action token joins the tape as it is written. Only the final seven positions are new.

Counting the parts

The vision encoders hold about 600 million parameters (the paper’s figure for Prismatic). The projector is tiny. Llama 2 holds roughly 6.7 billion. Together this is the paper’s “7B”. In bfloat16, a number format that stores each weight in 2 bytes, the weights take about 15 GB (Section 3.5). Every parameter is used on every move, which is why Chapter 5 spends so much effort on speed.

about 7.2 billion weights × 2 bytes = 14.4 GB (the paper reports 15 GB to load the model, and 16.8 GB of card memory in use)

That one line of arithmetic explains the memory number. It also hints at the speed number: to write one token, the card has to read about 15 GB. The vision encoders run once per move. The language model runs once for every token it writes.

Which statement correctly describes what enters the language model of OpenVLA for one move?

Chapter 4

The Training Recipe

Turn 970 thousand human-steered robot runs into flashcards, and grade the model on the seven action tokens only

Picture a teacher with a stack of flashcards. The front shows a camera picture and a sentence: “put the eggplant in the pot”. The back shows the move a human operator made at that instant. The student studies the front, guesses the back, and gets graded on the guess. This is behavior cloning: copy the human, one moment at a time. OpenVLA trains this way, and nothing about the language model changes except what is on the back of the card.

One flashcard, in tensors

A demonstration is a list of timesteps. At each timestep we have an image, the instruction for the whole task, and the action the human took. We make one training example per timestep. The 7 numbers of the action become 7 bin numbers (Chapter 2), which become 7 tokens. The tape is then: image tokens, prompt tokens, and, as the answer, seven action tokens.

The model reads the tape and, at each answer position, outputs 32,000 scores. Softmax turns the scores into probabilities (numbers between 0 and 1 that add to 1). We look up the probability the model gave to the true bin token. High is good. This is teacher forcing: at every answer position the true earlier tokens are fed in, so all seven predictions can be computed in one pass.

The loss: cross-entropy on the answer, nothing else

The score for one example is the average of the minus-log probability of each true action token. Call the true bins b1 to b7.

L
The loss for one training example. Lower is better. It is zero only if the model is certain of every true bin.
1/7
Average over the seven action tokens. No image token and no prompt token counts.
∑j=17
Add up over the seven action dimensions: x, y, z, three rotations and the gripper.
pθ(bj | I, x, b<j)
The probability the model, with weights θ, gives to the true bin bj, after seeing the image I, the instruction x and the true bins before it.

The log has a useful feel. If the model gives the true bin probability 0.9, the term is 0.105. At 0.5 it is 0.693. At 0.1 it is 2.303. A confident wrong answer costs far more than a hesitant one, so the model learns to put its probability on the right bin.

A worked case. Say the model gives the seven true bins the probabilities 0.80, 0.50, 0.90, 0.95, 0.97, 0.90 and 0.99. The seven terms are 0.223, 0.693, 0.105, 0.051, 0.030, 0.105 and 0.010. Their sum is 1.217, and the average is 0.174. The weak spot is the second dimension, at 0.50. Training will push on that term hardest.

Grade the answer tokens

Grey tokens are the question: nobody grades them. The seven pink bars are the probabilities the model gives the true bins. Slide the model’s confidence. Then try counting the prompt too.

0.80

Illustrative. Each bar is the confidence times a fixed difficulty for that dimension (1.00, 0.88, 1.00, 1.00, 1.00, 0.95, 1.00, so the second is hardest). A token counts as correct above 0.5, a simplification of “the true bin has the top score”. With the prompt graded, 20 prompt tokens are given an illustrative probability of 0.15. The rule of grading action tokens only is the paper’s (Section 3.2).

Count the prompt too and the picture changes. The average now mixes in twenty hard word guesses, so the loss reads about 1.4 even when the actions are nearly perfect. Worse, the model spends effort learning to predict instructions, which the robot never needs to write.

The data: from 2 million to 970 thousand

The raw material is the Open X-Embodiment (OpenX) collection, a community effort that pooled more than 70 robot datasets, over 2 million trajectories, into one format. Two goals guided the cleanup. First, all data should share an input and output space: the paper keeps only manipulation datasets with at least one third-person camera and a single arm under end-effector control. Second, the mix should be balanced. For this the paper reuses the weights of Octo, which down-weights samey datasets and up-weights ones with many tasks and scenes.

The authors also tried adding DROID, a newer set, at a cautious 10% weight. The model’s accuracy on DROID action tokens stayed low, which suggested it needed a bigger model or a larger weight. To protect the final model, they dropped DROID for the last third of training.

The settings that were not what you would guess

Most are ordinary: batch size 2,048, a fixed learning rate of 2e-5 (the rate used when Prismatic itself was trained, no warmup), the whole model trained including the vision encoders. Two choices break habit. Language models train for one or two passes over the data. OpenVLA trains for 27 epochs, where an epoch is one pass over every example. The authors found robot performance kept rising until action-token accuracy passed 95%.

The cost: 64 A100 graphics cards for 14 days. That is 64 × 14 × 24 = 21,504 card-hours, the paper’s “21,500 A100-hours”. It is a serious but not enormous run, and everything in it was released.

Why is the cross-entropy loss computed on the seven action tokens only, not on the image and prompt tokens?

Chapter 5

Reading an Action Back Out

Decode seven tokens, turn them into millimetres and degrees, and see why the speed of the loop sets what the robot can do

You say “put the eggplant in the pot” and the arm starts to move. Behind that smooth motion is a loop that runs about six times a second. Each turn of the loop takes a picture, asks the model for one small move, and sends it to the arm. This chapter follows one turn from the picture to the motor command and then asks what limits the speed.

One turn of the loop

  1. Look. Grab one camera frame and resize it to 224 by 224.
  2. Read. Run the image and prompt through the model once. This first pass is the prefill: all 276 positions are processed together.
  3. Write. Pick the highest-scoring token. Append it. Run the model for one more position. Repeat until seven tokens are written. Each of these passes is a decode step.
  4. Un-bin. Turn each token id back to a bin number, then to a physical value (below).
  5. Move. Send the seven numbers to the arm as a change from where the hand is now.

The paper does not spell out the rule for picking each token. This lesson assumes the top-scoring bin, which gives the same move for the same input. Treat it as our reading.

Un-binning: the reverse of Chapter 2

Chapter 2 mapped a value to a bin. The way back takes the middle of the bin: value = q1 + ((bin + 0.5) / 256) × (q99 − q1). The two cut points for each dimension come from the training data, so the robot code needs them too. A model fine-tuned on a new robot has that robot’s own numbers.

One side effect is worth knowing. The result can only take 256 values per dimension. The move is quantized, but at 0.16 mm per bin in our earlier example the steps are far smaller than the noise in the arm.

Write one action

Press Write next token to run one decode step. The table fills in with a token id, a bin and a physical value. The bar under it shows time, and the buttons choose how many actions are written per call.

Illustrative throughout. The bins and the cut points (plus or minus 20 mm for movement, plus or minus 3 degrees for rotation, 0 to 1 for the gripper) are made up for this example, and the ids assume bin 0 sits at the first of the last 256 slots. The timings are our back-of-envelope arithmetic, not the paper’s: 55 ms for the prefill and 15 ms per token, the time to read the 15 GB of weights once at about 1 TB/s. They land near the paper’s measured 6 Hz on an RTX 4090. Writing several actions per call is a what-if the paper only suggests as future work.

Watch the bar. The prefill is one block. Every token after it is another full pass through all 7 billion weights, so the seven tokens take about twice as long as the prefill. With seven tokens the loop takes roughly 160 ms, which is about 6 turns a second. That matches the paper’s measurement of about 6 Hz on one RTX 4090, with no compilation or other speed tricks.

Why speed decides what the robot can do

Control frequency is how many moves the robot gets per second. We write it in hertz (Hz): 5 Hz means five moves a second. In the paper’s setups the arms ran at 5 Hz (Bridge and Franka-Tabletop) and 15 Hz (Franka-DROID). A policy must keep up, or the arm acts on old information. The paper names a limit: tasks like ALOHA run at 50 Hz, far beyond what a 7B model can do with a token per dimension.

Two remedies appear in the paper’s own discussion. One is action chunking: predict several future moves in one call and execute them in order without asking again. The other is speculative decoding, a trick in which a small fast model drafts tokens and the big one checks them in a batch. Both aim to get more moves out of each expensive pass. Try the what-if buttons: eight actions in one call take far longer per call, but they give you more moves per second.

Why the later tokens are cheaper than the first

A decode step does not redo the work for the 276 positions already read. During the prefill the model saves two vectors per position and per layer, called the keys and values. This store is the KV cache. A new token only computes its own keys and values, and attends to the saved ones. So a decode step handles one position, but it still needs every weight once, and that read is the cost.

15 GB ÷ 1,000 GB per second = 15 ms per token (our arithmetic, for a card with 1 TB/s of memory speed)

That is the number inside the device above. The prefill is different. It handles 276 positions in one pass, so the card does a lot of arithmetic for each weight it reads, and it is limited by compute instead. This is why the prefill, with 276 positions, costs only a few times more than one decode step.

When the loop runs too slowly

Symptom. The arm lurches, pauses, then lurches again, and it overshoots small targets. Measurement. Log the time between two model answers. If it reads 800 ms where the demonstrations were recorded at 200 ms, each move is repeated for four ticks of the controller. Fix. Make each pass cheaper: smaller weights (Chapter 8), a faster card, or fewer tokens per move. Chapter 8 builds a toy of exactly this failure.

The shape of the whole thing, in code

pythondef control_loop(model, robot, instruction, q1, q99):
    while not robot.done():
        image  = robot.camera().resize((224, 224))                 # [3, 224, 224]
        prompt = f"What should the robot do to {instruction}? A:"
        ids    = model.generate(image, prompt, max_new_tokens=7)   # 7 ids in the last 256 slots
        bins   = ids - (VOCAB - 256)                                # 0 to 255
        action = q1 + (bins + 0.5) / 256 * (q99 - q1)           # 7 numbers, back in robot units
        robot.step_relative(action)                                  # change from the current pose
Why does writing seven tokens per action make OpenVLA slow compared with a model that outputs the whole action at once?

Chapter 6

What the Experiments Show

Read the main results the way the paper measures them: fair A/B trials on two real robots, then adaptation to new arms

A claim like “beats a model eight times bigger” deserves suspicion until you see how it was measured. So this chapter starts with the test, then the numbers. Think of a driving test. Every driver gets the same route, the same weather and the same examiner. That is what the paper does with robots.

How the test was built

The paper tests two real robots. The WidowX arm from the BridgeData V2 project works at a sink. The Google robot is a mobile arm from the RT-1 and RT-2 papers. On the WidowX there are 17 tasks with 10 trials each, 170 rollouts per policy. On the Google robot there are 12 tasks with 5 trials each, 60 rollouts.

The tasks probe five kinds of generalization, meaning success on things not seen in training. Visual: new backgrounds, distractor objects or colours. Motion: new positions and orientations. Physical: new object sizes and shapes. Semantic: new objects, new instructions, concepts from the Internet. And language grounding: with two objects in view, does the robot move the one you named? Some tasks give half credit, for example when the arm heads toward the right object.

All comparisons are paired: the same tasks with the same starting positions for every policy. The paper also says it rebuilt the sink scene at a new location and could not get the exact objects, so some shift from the training scenes is always present. The authors say their tests ask for even more generalization than earlier papers did, so low scores for models without Internet pretraining are expected.

The rivals

RT-1-X (35 million parameters) and Octo (93 million) are transformer policies trained from scratch on subsets of OpenX, with no Internet pretraining. RT-2-X (55 billion) is a closed VLA, the closest cousin of OpenVLA. It was co-trained on web data as well as robot data, which helps it keep its web knowledge.

The numbers: predict first

Guess where OpenVLA lands, then look. The bars show mean success with a whisker for the standard error, which says how much the number would wobble with a different set of trials.

Guess, then reveal

Pick a robot. The teal mark is your guess for OpenVLA. Press Reveal to draw the paper’s bar.

50%

The means and standard errors are the paper’s: Table 4 for the WidowX (18.5 plus or minus 2.7, 20.0 plus or minus 2.6, 50.6 plus or minus 3.5, 70.6 plus or minus 3.2) and Table 6 for the Google robot (33.3 plus or minus 6.1, 26.7 plus or minus 5.8, 78.3 plus or minus 5.4, 85.0 plus or minus 4.6).

On the WidowX, OpenVLA scores 70.6%, and RT-2-X scores 50.6%. That is a 20-point gap, far larger than the 3-point whiskers. On the Google robot the two are close, 85.0% against 78.3%, and the paper bolds both because their whiskers overlap. Pooled over all 230 rollouts the gap is the abstract’s 16.5 points, and the arithmetic reproduces it: (170 × 20.0 + 60 × 6.7) / 230 = 16.5.

RT-1-X and Octo do much worse. The paper reports they often reach for the wrong object when a distractor is present, and sometimes wave the arm aimlessly. RT-2-X still beats OpenVLA on one axis: semantic generalization on the WidowX. The paper credits its web co-training and bigger web-scale pretraining.

Why the gap on Bridge?

The authors list three causes and test them in Chapter 7. OpenVLA trained on 970k trajectories to RT-2-X’s 350k. It uses the fused SigLIP and DINOv2 encoder. And it used cleaner Bridge data: the first step of every Bridge demonstration records an all-zero action, and a model trained on those often froze at test time. The OpenVLA team dropped those steps. RT-2-X could not be retrained, so the authors queried its second-most-likely action instead, the same workaround the RT-2-X team used.

Adapting to a new robot

A generalist is only useful if it adapts. The second experiment fine-tunes on a new arm with 10 to 150 demonstrations per task. The arm is a Franka Panda, in two setups: a tabletop one at 5 Hz and the DROID one at 15 Hz. Rivals are Diffusion Policy, a strong policy trained from scratch on just the new data; Octo fine-tuned; and OpenVLA (scratch), which fine-tunes the base VLM without the 970k-episode pretraining. Across 129 rollouts per approach the paper finds a clear division of labour.

Diffusion Policy is as good or better on narrow, single-instruction tasks such as “Put Carrot in Bowl”, and it moves more smoothly. The pretrained generalists win on diverse tasks with several objects and several instructions, where language grounding matters. OpenVLA is the only approach with at least 50% success on every tested task, and has the highest average. OpenVLA (scratch) does worse, which is the evidence that robot pretraining matters.

On the Google robot tests, OpenVLA scores 85.0 plus or minus 4.6 and RT-2-X scores 78.3 plus or minus 5.4. What is the fair reading?

Chapter 7

What Mattered, and the Bug That Froze the Robot

Remove one ingredient at a time and measure the loss, then see how a single zero in the data made trained robots stand still

A cook who wants to know which spice makes the soup leaves it out and tastes again. An ablation does the same for a model: remove one part, keep everything else, and measure the drop. A part that costs a lot when removed was doing real work. A part that costs nothing was waste, and sometimes a waste of three times the compute.

Ablation 1: does robot pretraining on OpenX matter?

The authors took the same Prismatic VLM and trained it only on BridgeData V2, the data from the test robot, instead of the whole OpenX mix. They tested both on 8 representative WidowX tasks, 80 rollouts each. The full OpenVLA scored 76.3%. The Bridge-only version scored 45.6%. A loss of about 31 points.

The drop appeared in every generalization category except language grounding. So the diversity of scenes, objects and tasks in OpenX is what unlocks generalization. Training on many robots helps even a policy that only has to drive one.

Ablation 2: does the second vision encoder matter?

Next, the Bridge-only model lost its DINOv2 encoder and kept only SigLIP. Success fell from 45.6% to 40.6%, a drop of 5 points. This is real but modest, and the whiskers on each number are about 5 points wide. The paper says the low-level spatial features seem to help generalization “in only some cases”. Fair reading: DINOv2 helps a little, and OpenX data helps a lot.

Remove one ingredient

Choose an ablation. The bars compare the full recipe with the version missing one ingredient. The last choice puts the three effects side by side.

Success rates and standard errors are Table 9 of the paper: OpenVLA 76.3 plus or minus 4.8, OpenVLA-Bridge 45.6 plus or minus 5.6, OpenVLA-Bridge-SigLIP 40.6 plus or minus 5.5, on 8 WidowX tasks with 80 rollouts each. For image size the paper reports no difference in performance and a 3 times longer training run for 384 pixels (Section 3.4), so that bar is relative time, not success.

How to read a drop fairly

Each success rate comes from 80 trials, so each has a standard error, the wobble you would expect from a different set of trials. The paper gives it after the plus-or-minus sign. When two rates each wobble, the wobble of their difference is larger. Add the squares and take the root.

OpenX: 30.7 ÷ √(4.8² + 5.6²) = 30.7 ÷ 7.4 = 4.1 wobbles.   DINOv2: 5.0 ÷ √(5.6² + 5.5²) = 5.0 ÷ 7.9 = 0.6 wobbles.

A gap of four wobbles is hard to explain by luck. A gap of 0.6 wobbles is easy to explain by luck. That is why we say the OpenX effect is solid and the DINOv2 effect is only a hint. (This is our own check; the paper does not run a significance test.)

Ablation 3: the choices that went against habit

Not every finding is in a table. The authors tried three VLM backbones. LLaVA beat IDEFICS-1 by 35 points on five language-grounding tasks, and Prismatic beat LLaVA by about 10 more. They credit the fused SigLIP and DINOv2 features for the spatial sense.

They also found that freezing the vision encoder, a habit from VLM training that protects its web-learned features, hurt. Fine-tuning it was “crucial”. Frozen-encoder policies were also qualitatively unstable. The explanation they offer: the web-trained encoder does not capture fine spatial detail about the parts of a scene that matter for precise control.

Higher resolution gave no gain. The 384 pixel image makes 729 tokens instead of 256, and the run took three times as long. And training for 27 epochs, far more than a language model, was needed to push action-token accuracy past 95%.

The bug: a robot that stands still

Symptom. Policies trained on BridgeData V2 would sometimes stop in the middle of a task and do nothing. The arm froze and the trial ran out of time. Measurement. The raw Bridge data has many no-op steps whose action is all zeros. In every demonstration, the very first step records an all-zero action. The paper reports that such a model “frequently predicted all-zero actions and froze”. The likely loop: zero is a common target, so when the model is unsure its top choice is the zero bin; the arm stays still, the next image is almost the same, and the model predicts zero again. Fix. Drop the first step of every demonstration. For OpenVLA that sufficed. The paper reports the same lesson on the LIBERO simulator, where filtering all near-zero actions was “crucial” for expressive single-step policies.

The fix is not available for a closed model. RT-2-X was trained without it, and its top choice was often all zeros. The authors queried its second-most-likely action at all times, the workaround used by the RT-2-X team. Querying the second choice only when the first was zero worked worse, because the stop-and-restart changed the arm’s movement.

Which ingredient had the largest measured effect in the paper’s ablation on 8 WidowX tasks?

Chapter 8

Cheap to Adapt, Cheap to Serve

Train 1.4% of the weights with LoRA, store the rest in 4 bits, and fit a 7-billion-parameter robot brain on one graphics card

You bought a robot arm and a single graphics card with 24 GB of memory. The base OpenVLA is free, but adapting it to your arm and your task looks out of reach. Full fine-tuning in the paper used 8 A100 cards for 5 to 15 hours per task. This chapter shows how the paper brings it down to one card, and how to run the result without losing quality.

Why full fine-tuning is heavy

Training needs more memory than running. Besides the 7 billion weights, the card must hold their gradients (the direction each weight should change) and the optimizer’s running averages. In the paper’s table, full fine-tuning at batch size 16 needs 163.3 GB, spread over two GPUs. Most of that is not the weights. It is the bookkeeping for updating every one of them.

LoRA: change a little by adding a thin matrix

A weight matrix W in a linear layer is a big grid of numbers, d by d, that turns an input vector into an output vector. Low-rank adaptation (LoRA) freezes W and learns a small correction next to it. The correction is the product of two thin matrices.

h
The layer’s output, a vector of d numbers.
W
The original weight matrix, d by d. Frozen: it never changes during LoRA training.
x
The layer’s input vector of d numbers.
A
A thin matrix, r by d. It squeezes the input down to r numbers. Trained.
B
A thin matrix, d by r. It expands the r numbers back to d. Trained, and starts at zero so the model begins unchanged.
α/r
A scale factor. The rank r is the width of the squeeze; the paper recommends 32.
x
The same input again, passed through the thin path.

Count the numbers. One 4,096 by 4,096 matrix holds 16.8 million. The two thin matrices at rank 32 hold 2 × 4,096 × 32 = 262,144, which is 1.6% of that. LoRA is added to every linear layer, and the total trainable count is 97.6 million of 7,188 million, the paper’s 1.4%. Few trained numbers means little gradient bookkeeping, so memory drops. After training, B and A can be multiplied and added into W, so serving costs nothing extra.

Compare ways to fine-tune

Six ways to adapt OpenVLA to a new task. Switch what the bars measure. Look for the strategy that keeps the success bar long while shrinking the other two.

All numbers are Table 1 of the paper, measured on select Franka-Tabletop tasks with 33 rollouts each. The memory for full fine-tuning (163.3 GB) and for the frozen-vision run (156.2 GB) is split across 2 GPUs. This table uses a smaller variant of the model (one vision encoder, smaller robot data mix), as the paper notes.

Look at the failures. Training only the last layer reaches 30.3%. Freezing the vision encoder reaches 47.0%. Both confirm Chapter 7: the eyes must adapt to the new scene. “Sandwich” tuning, which unfreezes the vision encoder, the embedding matrix and the last layer, gets 62.1%. LoRA at rank 32 gets 68.2%, within error of full fine-tuning at 69.7%, with 1.4% of the trained numbers and 59.7 GB. Rank 64 scores the same 68.2%, so the rank hardly matters. With LoRA a new task takes 10 to 15 hours on one A100, an 8 times cut in compute.

Quantization: store the weights in fewer bits

Serving has its own cost: the weights must sit in memory. In bfloat16 each weight takes 2 bytes, so 7 billion weights take about 15 GB. Quantization stores each weight in fewer bits: 8 bits (1 byte) or 4 bits (half a byte), and converts back to a usable number when needed. The model shrinks, and the rounding adds a little noise.

The paper measures three settings on 8 representative Bridge tasks (80 rollouts). Bfloat16 uses 16.8 GB and scores 71.3%. Int8 uses 10.2 GB and scores 58.1%. Int4 uses 7.0 GB and scores 71.9%. The surprise is that the middle one is worst. The cause is speed.

Slow models overshoot

A toy arm must reach the dashed target. The controller ticks at 5 Hz, and the arm keeps repeating the model’s latest move until a new one arrives. Pick how fast the model answers.

The speeds and the success rates are the paper’s (Section 5.4: 8-bit ran at 1.2 Hz and 4-bit at 3 Hz on the A5000 used for evaluation; the 6 Hz figure is the paper’s RTX 4090 speed, a different card). The arm is a toy: each model answer is a move of half the remaining distance, repeated until the next answer. The real policy is not a proportional controller.

On the A5000 used for the tests, 8-bit ran at only 1.2 Hz because the extra convert-and-compute steps cost time. The robot was driven at 5 Hz and trained on demonstrations at that pace. At 1.2 Hz each move is repeated for about five ticks, so the arm lunges, overshoots and swings back. Int4 ran at 3 Hz: the smaller memory traffic more than paid for the conversions. The paper’s check (Appendix D.4) makes the proof: with a controller that waits for the model, all three precisions score alike. So 8-bit lost accuracy to latency, not to rounding.

Why did the paper find that LoRA matched full fine-tuning while training only 1.4% of the weights?

Chapter 9

Field Guide: OpenVLA on One Page

Keep the numbers, the checklist and the core code, and know where the method stops working

You can now rebuild OpenVLA from memory: why robot data alone is too thin, how a vision-language model reads a picture, how a motion becomes seven tokens, how the loss grades only those tokens, what the experiments show, which parts mattered, and how to adapt and serve it cheaply. This page gathers it, and then says honestly where it ends.

The one-paragraph summary

OpenVLA is a vision-language-action model: Prismatic-7B, a SigLIP plus DINOv2 vision encoder, a two-layer projector and Llama 2 7B, fine-tuned to write robot actions. Each of the seven action dimensions is cut into 256 bins between the 1st and 99th quantile of the training data, and each bin takes over one of the 256 least-used tokens. Training is plain next-token prediction with loss on the seven action tokens only, for 27 epochs over 970 thousand OpenX episodes. It beats the 55B RT-2-X by 20 points on the WidowX, matches it on the Google robot, fine-tunes with LoRA on one card, and serves in 4 bits at 7 GB.

The numbers that matter

WhatNumberWhy it matters
Model7B parameters; vision about 600M; Llama 2 7BOne eighth of RT-2-X (55B)
Action encoding7 dimensions, 256 bins each, 1st to 99th quantileQuantiles keep outliers from blurring the bins
Inputone 224 by 224 image, 256 patches, plus the prompt384 pixels trained 3 times slower for no gain
Training data970k OpenX episodes; 27 epochs; batch 2,048Train until action-token accuracy passes 95%
Training compute64 A100 for 14 days, 21,500 A100-hoursLearning rate 2e-5, no warmup
WidowX, 170 rolloutsOpenVLA 70.6%, RT-2-X 50.6%, Octo 20.0%, RT-1-X 18.5%Beats the closed 55B model
Google robot, 60 rolloutsOpenVLA 85.0%, RT-2-X 78.3%, RT-1-X 33.3%, Octo 26.7%Comparable to RT-2-X
OpenX ablation, 8 tasks76.3% with, 45.6% Bridge only; 40.6% SigLIP onlyData diversity matters most
LoRA, rank 3268.2% against 69.7% full; 97.6M of 7,188M weights (1.4%)One A100, 10 to 15 hours
Precision, Bridgebf16 71.3% (16.8 GB), int8 58.1% (10.2 GB), int4 71.9% (7.0 GB)int8 lost to latency, not rounding
Speedabout 6 Hz on an RTX 4090; 15 GB in bf16Seven sequential tokens set the speed limit

Checklist: could you rebuild it?

The core, as code

These few functions hold the whole idea. They assume numpy, a log_softmax helper, and the Llama vocabulary size of 32,000. They are our sketch of the paper’s recipe, not its released code.

pythonimport numpy as np
BINS, VOCAB = 256, 32000

def fit_bins(actions):                       # actions: [N, 7], all training steps
    return np.quantile(actions, 0.01, axis=0), np.quantile(actions, 0.99, axis=0)

def tokenize(a, q1, q99):                    # a: [7] -> 7 token ids
    b = np.clip(np.floor(BINS * (a - q1) / (q99 - q1)), 0, BINS - 1).astype(int)
    return VOCAB - BINS + b                      # the last 256 slots of the vocabulary

def detokenize(ids, q1, q99):
    b = ids - (VOCAB - BINS)
    return q1 + (b + 0.5) / BINS * (q99 - q1)      # the middle of the bin

def action_loss(logits, ids):                # logits: [7, 32000] at the answer positions
    logp = log_softmax(logits)                     # image and prompt positions are never scored
    return -logp[np.arange(7), ids].mean()

def lora_linear(W, A, B, x, alpha, r):          # W [d, d] frozen; A [r, d]; B [d, r]
    return W @ x + (alpha / r) * (B @ (A @ x))

Limits, in the paper’s words and ours

The authors list four. First, one image only: no wrist camera, no robot state, no history of frames. Second, speed: 6 Hz cannot drive a 50 Hz bimanual arm such as ALOHA, and the paper names action chunking and speculative decoding as possible remedies. Third, reliability: success is typically below 90% on the tested tasks. Fourth, open questions: how base-model size matters, whether co-training with web data helps, and which visual features are best, all untested for lack of compute.

Three more come from reading the results. Diffusion Policy still wins narrow, dexterous tasks and moves more smoothly. RT-2-X keeps the lead on semantic generalization. And all tests use real-world data on a handful of robots, so what this recipe does on other arms, or in simulation without simulated pretraining, is mostly an open bet. Where the paper tried a simulator (LIBERO), the fine-tuned OpenVLA again had the best average rank, but the gaps were smaller.

Where this sits

This reading belongs to Lecture 13, Multimodal Interaction. The lecture asks how a model that sees and reads can also act. OpenVLA gives the simplest answer: treat action as one more language, and reuse the whole language-model toolkit. Later work attacks its two weak spots, speed and smooth precision.

Keep going

Credit

OpenVLA is by Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov, Ethan Foster, Pannag Sanketi, Quan Vuong, Thomas Kollar, Benjamin Burchfiel, Russ Tedrake, Dorsa Sadigh, Sergey Levine, Percy Liang and Chelsea Finn, from Stanford, UC Berkeley, Toyota Research Institute, Google DeepMind, Physical Intelligence and MIT. Read the original: arXiv 2406.09246, and the project page. All devices and prose here are our own re-teaching; toy numbers are marked as such.

The takeaway. The robot did not need a new kind of model. It needed its moves written as words from a small vocabulary, a backbone that already understood pictures and sentences, 970 thousand clean demonstrations, and enough passes to copy them exactly.
A colleague wants to adapt OpenVLA to a new arm on one 24 GB card. Which plan follows the paper?

Now press Present or Teach and explain, from memory, how one camera image and one sentence become seven tokens and one move of the arm. Then go back to the policy race and run the ten trials again.

OpenVLA: An Open-Source Vision-Language-Action Model
Read the paper · Project page · Back to Lecture 13 · Back to Gleams