Search

Search papers and lessons

OpenVLA: An Open-Source Vision-Language-Action Model

Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti et al. · 2024

OpenVLA is a 7-billion-parameter robot policy that reads camera images and a text instruction and outputs robot actions as tokens, trained on 970k robot demonstrations and released openly.

On this page

  • Colour = topic mix
  • Neural network basics
  • Calculus
  • Discrete math
  • Linear algebra
  • Probability
  • Architectures
  • ReadReady to readNot yet

TL;DR

OpenVLA is a robot control model with 7 billion parameters. It takes a camera image and a sentence such as "put the carrot in the bowl", and it outputs the robot's next action as a short string of tokens. It was trained on 970k robot demonstrations from the Open X-Embodiment collection, and its weights and training code were released publicly. On 29 evaluation tasks across two robots it beat RT-2-X, a closed model with 55 billion parameters, by 16.5% in absolute success rate.

Builds on: vision-language-action models, Fine-Tuning · Leads to: π0 and other robot policies that start from a pretrained vision-language model.

Why it mattered

Before OpenVLA, the strongest generalist robot policy that used a large pretrained vision-language backbone was RT-2-X, and it was closed: its weights were not public, so other labs could not run it, measure it in their own setups or adapt it to their robots. OpenVLA made a model of the same kind available. The paper releases the checkpoints, a fine-tuning notebook and a PyTorch training codebase, and the model can be downloaded and adapted through the Hugging Face hub. This turned a capability that only a few labs could use into a shared starting point. The second change was practical: the paper shows that the model can be fine-tuned with LoRA on a single A100 GPU and served with 4-bit quantization on consumer hardware, which lowered the cost of adapting a large VLA to a new robot.

The problem

A robot policy must map what it sees and what it is told to do onto motor commands. Earlier policies were trained on one robot and one task family, so they did not transfer. The reason to build a generalist is that one network trained on many robots and many scenes should work out of the box and adapt faster to new tasks.

Three things were unclear at the time, and the paper addresses each one. First, the best backbone and data mixture for a vision-language-action model were not known. Second, the most successful VLAs were closed, so their design could not be studied. Third, adapting a large VLA to a new robot setup was largely unexplored, even though adaptation is what most users need.

The model builds on the ideas in the vision-language-action model lesson: a pretrained vision-language model is trained to output actions as text tokens. The paper's question is how to do that well, openly and at a size people can run.

How it works

The pipeline runs from input to output in five stages. The diagram shows the flow for one control step.

flowchart LR
  I["Camera image"] --> V["Vision encoder: DINOv2 and SigLIP features, concatenated"]
  T["Instruction text"] --> L
  V --> P["Projector: a 2-layer MLP into the language embedding space"]
  P --> L["Llama 2 7B language model"]
  L --> K["7 action tokens, one per action dimension"]
  K --> A["Continuous action: a 7-number robot command"]
  1. Input. The model receives one image and one text instruction. The training data all come from setups with a third-person camera. The paper uses one image per step, not a history of images. Check: one image and one sentence go in, nothing else.

  2. Encode the image. Two pretrained encoders, DINOv2 and SigLIP, each turn the image into patch features. The two feature vectors are concatenated channel by channel, so each image patch carries both kinds of features. Check: the features from the two encoders are joined, not averaged.

  3. Project into the language space. A small two-layer MLP maps the visual features into the same space as the word embeddings that the language model reads. Check: after this step the image patches look like extra tokens to the language model.

  4. Predict action tokens. The language model, a Llama 2 model with 7 billion parameters, reads the image tokens and the instruction, then predicts the next tokens one at a time. The action tokens are the last tokens it writes. Check: the output is seven tokens, one for each dimension of the robot's action.

  5. Decode the tokens into an action. Each token is a bin number from 0 to 255. The bin number is converted back into a continuous value for its action dimension. Check: a token of 128 in a dimension whose bin range is from −1-1 to 11 maps to a value near zero.

The training is the same process run in reverse. The bins are fixed from the data, the model is shown demonstrations, and the cross-entropy loss on the action tokens is lowered.

The math

Let a=(a1,…,a7)\mathbf{a} = (a_1, \dots, a_7) be a robot action, with one real number per dimension. For each dimension dd, let q1(d)q^{(d)}_{1} and q99(d)q^{(d)}_{99} be the 1st and 99th percentiles of that dimension in the training data.

Stage 1 and 2 in symbols: the input and the image features

The image is I\mathbf{I} and the instruction is x\mathbf{x}. The two encoders map the image to feature sets FDINO(I)\mathbf{F}_{\text{DINO}}(\mathbf{I}) and FSigLIP(I)\mathbf{F}_{\text{SigLIP}}(\mathbf{I}). The paper concatenates them channel by channel, so each patch jj has feature vector fj=[fjDINO;fjSigLIP]\mathbf{f}_j = [\mathbf{f}^{\text{DINO}}_j ; \mathbf{f}^{\text{SigLIP}}_j]. The paper uses 224 by 224 pixel inputs, and it found that 384 by 384 gave no better results while training took three times longer.

Stage 3 in symbols: the projection

The projector gg maps each fused patch into the language model's embedding space, so zj=g(fj)\mathbf{z}_j = g(\mathbf{f}_j). The language model then receives the sequence of projected image embeddings followed by the embeddings of the instruction.

Stage 4 in symbols: the action tokens

Each action dimension is split into 256 equal bins that cover the interval from q1(d)q^{(d)}_{1} to q99(d)q^{(d)}_{99}. The bin width is

Δ(d)=q99(d)−q1(d)256.\Delta^{(d)} = \frac{q^{(d)}_{99} - q^{(d)}_{1}}{256}.

Using the 1st and 99th percentiles, rather than the minimum and maximum, keeps a few extreme actions in the data from stretching the bins so far that most of them land in one bin. One natural way to write the bin index for a value ada_d is bd=⌊(ad−q1(d))/Δ(d)⌋b_d = \lfloor (a_d - q^{(d)}_{1}) / \Delta^{(d)} \rfloor, clipped to the range from 0 to 255. The model writes the seven indices as tokens. The paper overwrites the 256 least used tokens of the Llama tokenizer with these action bins, because the tokenizer reserves only 100 new special tokens.

The training loss is the standard next-token cross-entropy, computed only on the action tokens:

L=−∑d=17log⁡pθ ⁣(bd∣I,x,b1,…,bd−1).\mathcal{L} = - \sum_{d=1}^{7} \log p_\theta\!\left(b_d \mid \mathbf{I}, \mathbf{x}, b_1, \dots, b_{d-1}\right).

Here pθp_\theta is the model's probability for the correct bin, given the image, the instruction and the earlier action tokens. This is the standard next-token cross-entropy, applied only to the action tokens; the sum adds one term per action dimension.

Stage 5 in symbols: back to a command

Decoding takes the bin index and returns a value inside its bin. The step size is the same Δ(d)\Delta^{(d)}, so the rounding error from one bin is at most half of Δ(d)\Delta^{(d)}. With 256 bins, the largest rounding error in a dimension is Δ(d)/2\Delta^{(d)}/2, which is (q99(d)−q1(d))/512(q^{(d)}_{99} - q^{(d)}_{1})/512.

Results

The paper evaluates on two robots, the WidowX arm from BridgeData V2 and the mobile manipulator used for RT-1 and RT-2. The main numbers are these.

  • Against RT-2-X on 29 tasks. OpenVLA outperforms RT-2-X by 16.5% in absolute success rate, averaged over 29 tasks on the WidowX and Google robot embodiments. On the BridgeData tasks, 170 rollouts were run per method, with 17 tasks and 10 trials each. On the Google robot, 60 rollouts were run, with 12 tasks and 5 trials each.
  • Against Diffusion Policy. The abstract reports that OpenVLA outperforms Diffusion Policy, a from-scratch imitation learning method, by 20.4%. The head-to-head comparison on new robot setups is in Section 5.2.
  • Fine-tuning. Across seven Franka tasks with 10 to 150 demonstrations each, OpenVLA is the only method that reaches at least 50% success on every task. Diffusion Policy still shows smoother and more precise trajectories on narrow, dexterous tasks, and the paper names this as an open limit.
  • Parameter-efficient fine-tuning (Table 1). Full fine-tuning reaches 69.7 plus or minus 7.2% success and trains about 7,188 million parameters. LoRA with rank 32 reaches 68.2 plus or minus 7.5% and trains 97.6 million parameters, about 1.4% of the model. LoRA trains on one A100 GPU in 10 to 15 hours, which the paper calls an 8x reduction in compute compared with full fine-tuning. Freezing the vision encoder drops success to 47.0%, so the vision encoder needs to be fine-tuned.
  • Quantization (Table 2). On eight BridgeData tasks with 80 rollouts per setting, bfloat16 reaches 71.3 plus or minus 4.8% with 16.8 GB of GPU memory. int4 reaches 71.9 plus or minus 4.7% with 7.0 GB. int8 reaches 58.1 plus or minus 5.1% with 10.2 GB, which the paper hypothesises comes from its slower inference speed.

The limits are stated in the paper's Discussion. It accepts only a single image at a time, so it does not use history or sensors other than the camera. It runs at about 6 Hz on an RTX 4090 in bfloat16, which is too slow for high-frequency controllers such as one running at 50 Hz. Its reliability is not very high, typically below 90% success. And RT-2-X is better on semantic generalization, the tasks that depend on knowledge from Internet data, because RT-2-X is co-trained on that data and OpenVLA is fine-tuned on robot data alone.

Reading guide

The paper has six main sections and appendices. Read them in this order, with these prerequisites.

Check yourself

QuestionThe paper uses 256 bins for each action dimension, and each action has 7 dimensions. How many distinct values can a single action token take, and how many distinct values can a whole action take?Show answer

A single token can take 256 values, one for each bin, numbered 0 to 255. A whole action is seven bin indices, one per dimension. Each dimension has 256 choices, so the total number of distinct discretised actions is 2567256^7, which is about 7.2×10167.2 \times 10^{16}.

QuestionThe bin width for a dimension is set from the 1st and 99th percentiles of its training data, not from the minimum and maximum. Why would the minimum and maximum be a worse choice?Show answer

An outlier action, very far from the others, would widen the interval from the minimum to the maximum. Each bin would then be wider, so the normal actions would share fewer bins and lose precision. Using the 1st and 99th percentiles ignores the most extreme 2% of actions, so the bins cover the typical range more finely.

QuestionIn the fine-tuning experiments, LoRA with rank 32 trains 97.6 million parameters and reaches 68.2% success. Full fine-tuning trains about 7,188 million parameters and reaches 69.7%. What is the ratio of trained parameters, and why might a lab prefer LoRA?Show answer

The ratio is 97.6/7,188.1≈0.013697.6 / 7{,}188.1 \approx 0.0136, or about 1.4%. The success rates differ by 1.5 points, which is inside the standard error of about 7 points in the paper's table. LoRA needs much less GPU memory and time, so a lab with one GPU can fine-tune it, which is the paper's point.

QuestionA robot runs its control loop at 6 steps per second with OpenVLA, and the task needs 50 steps per second. By how much must the speed rise, and what does the paper suggest for this?Show answer

The speed must rise by a factor of 50/6≈8.350 / 6 \approx 8.3. The paper identifies inference throughput as the bottleneck for high-frequency control and names action chunking and speculative decoding as possible remedies.

QuestionOpenVLA matches RT-2-X on the Google robot tasks, beats it on the BridgeData V2 tasks, and is worse on semantic generalization. What explains the difference, according to the paper?Show answer

RT-2-X is co-fine-tuned on both robot action data and Internet vision-language data, which helps it keep knowledge about objects and concepts it has not seen in robot data. OpenVLA is fine-tuned on robot data alone. The paper attributes its advantage in other categories to a larger curated dataset of 970k trajectories against 350k for RT-2-X, and to a fused vision encoder.

Sources

Read the full paper

Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti et al., 2024. arXiv:2406.09246