↑↓ move Enter open ⌘K find from any page 256 of 256 tabs
Loading the recording…

A VLM with an action expert

OpenVLA writes actions as tokens, one bin at a time, and so produces coarse, single-step actions slowly. π0 (Black et al., Physical Intelligence) keeps a pretrained vision-language model for what it knows about images and language, but adds a second, smaller transformer, the action expert, that generates a continuous chunk of 50 actions with flow matching. The two share every attention layer, so the expert reads the VLM's representation of the scene at every depth.

This page runs LeRobot's π0 fine-tuned on LIBERO, in bfloat16 on a Mac, on the LIBERO-Spatial task “pick up the black bowl between the plate and the ramekin and place it on the plate”. The VLM is PaliGemma (SigLIP So400m and Gemma 2B: 18 layers, 2,048 wide) and the expert a Gemma 300M model 1,024 wide: 3.24 B parameters in use. It finishes the task in 67 steps at 20 Hz with two chunks.

Prefix and suffix

The Prefix and suffix panel lays out the tokens by stream. The prefix is what the VLM reads: each camera image at 224 × 224 in 14-pixel patches, 256 SigLIP tokens per camera with nothing merged (the SigLIP image tokens panel), for the front camera, the wrist camera and an empty third slot, then the instruction padded to 48 tokens, 816 prefix tokens in all. The suffix is the expert's: one token for the robot's 8-number state and 50 tokens for the actions being generated.

Shading shows where one layer's 50 action queries look at the selected flow time, averaged over them and the 8 heads, with each part's share. The prefix depends only on the observation, so it runs once per chunk and its keys and values are cached; the suffix runs again at every step of the flow.

One attention, two sets of weights

In each of the 18 layers both streams compute queries, keys and values with their own weights: 8 query heads of 256 dimensions and one key/value head shared by all of them. The projections are concatenated, attend together under one mask, and are split again for each stream's own output projection and MLP (the VLM and action expert panel). Writing for prefix and for suffix tokens,

a mixture-of-experts by token type in the sense of Transfusion: one sequence, two sets of weights. The Block-wise causal mask has three blocks. The prefix sees only itself, so it can be cached; the state sees the prefix and itself, so it too is the same at every flow step; the actions see everything, including each other in both directions, which the Actions reading actions map shows as one dense block.

Flow matching over the chunk

Flow matching learns a velocity field that carries noise to data along straight lines. With the chunk (50 × 7 numbers, normalised) and noise , the page's code writes the path from (noise) to (actions):

Black et al. write the same path with time reversed, from 0 at the noise to 1 at the actions, and sample training times more often near the noisy end. At run time the expert integrates the learned velocity with 10 Euler steps:

The Flow matching over the chunk panel shows and the velocity at the selected step, and every step's values of one action dimension drawn over the chunk, from noise to the finished actions; the Flow matching strip plays the chunk forming. Straight paths are what let 10 Euler steps suffice; the Diffusion Policy tab's checkpoint runs 100 DDPM steps.

Executing chunks, and FAST

The episode strip plays the run with each chunk's executed actions outlined: the first chunk, predicted at step 0, is played in full, 50 actions; the second, predicted at step 50, for 17 more until the task is done. Each chunk took about a second to predict on the Mac that recorded it.

π0 has an autoregressive sibling, π0-FAST, which predicts the chunk as tokens with the VLM itself and no flow-matching expert. FAST compresses a chunk before tokenising it: quantile-normalise each dimension, take a discrete cosine transform along time, scale and round the coefficients, many of which become 0, then merge them into tokens with byte-pair encoding. The FAST: the same chunk as tokens panel runs this page's first chunk through the released tokenizer, normalised as openpi does without clamping, so 58 of its 350 numbers lie outside ±1. The FAST tab takes the same chunk apart step by step.

Where it came from

Flow matching (Lipman et al., 2022) and rectified flow (Liu et al., 2022) trained continuous normalising flows by regressing a velocity along simple paths between noise and data. π0 (2024) put such a model on top of PaliGemma, inheriting its web-scale pretraining, and pretrained it on a large mixture of data from several kinds of robot before fine-tuning on tasks such as laundry folding. FAST (2025) gave the autoregressive route a better tokenizer. SmolVLA (next tab) keeps π0's design at about an eighth of the size, and GR00T replaces the expert with a diffusion transformer.

Papers

  1. π0: A Vision-Language-Action Flow Model for General Robot Control Kevin Black et al. · RSS 2024 Introduces π0: a PaliGemma VLM with a flow-matching action expert that shares its attention layers and generates 50-action chunks.
  2. Flow Matching for Generative Modeling Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, Matt Le · ICLR 2022 Training a generative flow by regressing the velocity of a fixed path between noise and data, the objective of the action expert.
  3. Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow Xingchao Liu, Chengyue Gong, Qiang Liu · ICLR 2022 Rectified flow: straight-line paths between noise and data that few Euler steps can follow.
  4. PaliGemma: A versatile 3B VLM for transfer Lucas Beyer et al. · arXiv 2024 The SigLIP + Gemma 2B vision-language model that is π0's prefix stream.
  5. FAST: Efficient Action Tokenization for Vision-Language-Action Models Karl Pertsch et al. · arXiv 2025 DCT and byte-pair-encoding action tokens, used by π0-FAST and shown on this page for one recorded chunk.
  6. Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model Chunting Zhou et al. · arXiv 2024 One transformer trained with next-token loss on text and diffusion loss on images, the design π0 adapts with separate weights per token type.
  7. LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning Bo Liu et al. · NeurIPS 2023 The simulated suites this checkpoint is fine-tuned on; the page runs LIBERO-Spatial's first task.

See also