Skip to main content
OpenVLA is a 7B-parameter vision-language-action model trained on 970k robot episodes from the Open X-Embodiment dataset (Kim et al., 2024). In this chapter you read it as a policy πθ(a∣o,ℓ)\pi_\theta(a \mid o, \ell): a probability distribution over robot actions aa, given a camera image oo and an instruction ℓ\ell. This view tells you what behavioral cloning minimizes, what you sample from at run time, and which number PPO needs when you fine-tune the model with rewards. The MiniVLA in Behavioral cloning and RL on a claw machine is the same design at toy scale: an image encoder, an instruction, a transformer, and a head that emits one token per action dimension. Everything on this page applies to it, with three action tokens instead of seven.

Architecture

OpenVLA starts from the Prismatic-7B vision-language model. A visual encoder passes each image patch through both SigLIP and DINOv2 and concatenates the two feature vectors. A small MLP projects these patch features into the embedding space of a Llama 2 7B language model, which reads them together with the tokenized instruction, framed as the prompt “What should the robot do to {task}? A:”. The model sees one 224 x 224 image per step. The authors tried 384 x 384 inputs and found no gain for three times the training cost. Two training choices differ from ordinary VLM fine-tuning. The vision encoder is not frozen: freezing it cost performance, and the authors suspect the pretrained features miss the fine spatial detail that control needs. Training also runs for 27 epochs, until the accuracy of the training action tokens passes 95%. A language model usually stops after one or two. The final run used 64 A100 GPUs for 14 days.

Actions as tokens

The robot action is a 7-dimensional vector: three numbers for the change in end-effector position, three for the change in orientation, and one for the gripper. OpenVLA discretizes each dimension separately into 256 bins. The bins divide the range between the 1st and 99th percentile of that dimension in the training data evenly, so a few outlier actions do not stretch the range and waste resolution. A continuous action a∈R7a \in \mathbb{R}^7 becomes seven integers z1,…,z7∈{0,…,255}z_1, \dots, z_7 \in \{0, \dots, 255\}. The Llama tokenizer has only 100 reserved special tokens, too few for 256 new symbols. OpenVLA follows RT-2 (Brohan et al., 2023) and overwrites the 256 least used tokens of the Llama vocabulary, the last 256, with the action tokens. No layer of the language model changes. Its output softmax already ranges over the whole vocabulary, so predicting an action is predicting the next seven tokens of the answer. To act, the model generates the seven tokens one after another, and a de-tokenizer maps each token back to the center of its bin. The policy therefore puts mass only on 2567256^7 grid points of the action space, and each executed action is accurate to half a bin width.

The policy and its log-probability

Because the tokens are generated autoregressively, the probability of a whole action factorizes by the chain rule: πθ(z1:7∣o,ℓ)=∏j=17pθ(zj∣o,ℓ,z<j),\pi_\theta(z_{1:7} \mid o, \ell) = \prod_{j=1}^{7} p_\theta(z_j \mid o, \ell, z_{<j}), where pθ(zj∣o,ℓ,z<j)p_\theta(z_j \mid o, \ell, z_{<j}) is the softmax output of the language model at the jj-th action position. The log-probability is the sum of seven terms that the forward pass already computes: log⁡πθ(z1:7∣o,ℓ)=∑j=17log⁡pθ(zj∣o,ℓ,z<j).\log \pi_\theta(z_{1:7} \mid o, \ell) = \sum_{j=1}^{7} \log p_\theta(z_j \mid o, \ell, z_{<j}). You use this sum in three ways. The first is behavioral cloning. OpenVLA is trained with next-token cross-entropy on the action tokens only. Given a demonstration (o,ℓ,a⋆)(o, \ell, a^\star) with tokens z⋆=tok(a⋆)z^\star = \text{tok}(a^\star), the loss is LBC(θ)=− E(o,ℓ,a⋆)[log⁡πθ(z⋆∣o,ℓ)],\mathcal{L}_{\text{BC}}(\theta) = -\,\mathbb{E}_{(o, \ell, a^\star)}\left[\log \pi_\theta(z^\star \mid o, \ell)\right], which is maximum likelihood of the demonstrated actions under the policy. Teacher forcing feeds the true earlier tokens z<j⋆z^\star_{<j}, so all seven terms come from one forward pass. The second is acting. You can take the most likely token at each position (greedy decoding) or sample each token from pθp_\theta. Sampling makes the policy stochastic, which is what an RL algorithm needs to explore. A softmax temperature TT, replacing the logits ss by s/Ts / T, interpolates between the two. The third is policy-gradient fine-tuning. REINFORCE and PPO need log⁡πθ(a∣o,ℓ)\log \pi_\theta(a \mid o, \ell) for the action that was taken, and PPO needs the ratio of new to old policy, rt(θ)=exp⁡ ⁣(log⁡πθ(zt∣ot,ℓ)−log⁡πθold(zt∣ot,ℓ)).r_t(\theta) = \exp\!\Big(\log \pi_\theta(z_t \mid o_t, \ell) - \log \pi_{\theta_{\text{old}}}(z_t \mid o_t, \ell)\Big). With token actions, both log-probabilities are exact, and each costs one forward pass. PPO and GRPO therefore apply to OpenVLA as they apply to a language model. The difference is that the episode return comes from a robot or simulator instead of a reward model. The continuous-action VLAs in Continuous-action VLAs lose this property, and that is why RL for them needs its own treatment.

Cost of the token interface

The token interface is simple and gives exact likelihoods, but it is slow. Seven sequential decoder passes per action make OpenVLA run at about 6 Hz on one RTX 4090 in bfloat16, where it needs 15 GB of GPU memory. Action chunking, which predicts several future actions at once, would multiply the number of sequential passes by the chunk length, so OpenVLA predicts one action per step. The authors list three limitations: a single image with no observation history or proprioception, throughput too low for 50 Hz robots such as ALOHA, and success rates usually below 90% on the tested tasks. Two results make the model practical on a single GPU. LoRA fine-tuning matches full fine-tuning on their benchmark while training 1.4% of the parameters, and adapts the model to a new task in 10 to 15 hours on one A100. At inference, 4-bit quantization reduces memory from 16.8 GB to 7.0 GB with the same success rate on their BridgeData V2 tasks, while 8-bit quantization lost success in that test. Out of the box, OpenVLA beat the 55B-parameter RT-2-X by 16.5% absolute success rate across 29 tasks on two robot embodiments, with seven times fewer parameters.

Further reading

Key references: (Kim et al., 2024; Brohan et al., 2023)

References

  • Brohan, A., Brown, N., Carbajal, J., Chebotar, Y., Chen, X., et al. (2023). RT-2: Vision-language-action models transfer web knowledge to robotic control. arXiv [cs.RO]. Link
  • Kim, M., Pertsch, K., Karamcheti, S., Xiao, T., Balakrishna, A., et al. (2024). OpenVLA: An Open-Source Vision-Language-Action Model. arXiv [cs.RO]. Link

Found an error on this page? Report an issue.