There is an obstacle in front of a cup. The robot can go around it on the left or on the right. If the demonstration data contains each path half the time, what should the model output?
OFT in Part 2 computes actions directly from the current observation. π0 starts from random numbers and revises them several times to produce actions. This part looks at why it does that, and at how the action expert responsible for this process connects to the VLM.
1Structure: VLM and Action Expert
π0 uses two transformers. A VLM of about 3B parameters, initialized from PaliGemma, processes images and language, and an action expert of about 300M parameters, trained from scratch, processes the robot state and action candidates. Together they come to 3.3B.
Some terminology first. "Action head" is a general term for whatever part handles action output, while "action expert" refers to a separate neural network that, as in π0, processes action tokens with its own weights. The action expert is a trainable transformer, not a classical robot controller. If the VLM deals with "which cup to pick up," the action expert deals with "how to move in order to pick up that cup."
The noisy actions pass through an MLP together with the time τ and become tokens. \(\phi\) is a sinusoidal encoding of τ.
$$\text{embed}(a^\tau,\tau)=W_3\cdot\text{swish}\!\left(W_2\cdot\text{concat}(W_1\cdot a^\tau,\ \phi(\tau))\right)$$2Flow Matching Is Also Regression
It is easy to think of flow matching as abandoning regression. But flow matching is also a regression problem of predicting numbers. What changes is the target of the regression.
Say the correct action is 0.8 and the sampled noise is -0.2. OFT learns to predict 0.8 directly from the observation. π0 takes a point on the straight line connecting the noise and the correct action, and learns to predict which direction to move from that point and how far.
$$A^\tau=\tau A+(1-\tau)\epsilon,\qquad \epsilon\sim\mathcal N(0,I)$$ $$u(A^\tau\mid A)=A-\epsilon$$ $$\mathcal L(\theta)=\mathbb E\,\big\|v_\theta(A^\tau,o_t)-u(A^\tau\mid A)\big\|^2$$In π0's notation, \(\tau=0\) is noise and \(\tau=1\) is data. In the example above, the correct direction is \(0.8-(-0.2)=1.0\). During training the correct action is available, so the direction can be computed, but at inference there is no correct action. So the model moves a small step from the current position in the direction it predicts, then predicts again from there.
$$A^{\tau+\delta}=A^\tau+\delta\, v_\theta(A^\tau,o_t),\qquad \delta=0.1$$| τ | 0 | 0.25 | 0.5 | 0.75 | 1 |
|---|---|---|---|---|---|
| Value (example: four steps at velocity 1.0) | -0.20 | 0.05 | 0.30 | 0.55 | 0.80 |
This is the simplest case, one-dimensional with a constant direction. The real velocity field varies with the current position, time, and observation. π0 integrates with 10 steps of forward Euler.
The derivation and figures are written up separately in the flow matching post on this blog. Here, only the conclusion needs to be remembered.
The distribution used to sample the time τ also involves a choice. Instead of a uniform distribution, π0 uses \(p(\tau)=\text{Beta}(\frac{s-\tau}{s};1.5,1)\), \(s=0.999\). The paper's reasoning is this: the small-τ region, where the model has to predict the mean action from the observation alone, is the hardest problem, so that region is sampled more often. Values of τ greater than s are not sampled.
3Why Start from Noise at All
Back to the opening question. Direct regression with mean squared error risks averaging the left and right paths, and that average could be right in the middle of the obstacle. (As seen in Part 2, OFT's L1 leans toward the median, but the problem of split modes remains.)
Flow matching models a conditional distribution. With a different starting noise, the result can take the left path or the right path. Revising several times is not magic in itself. The key is that a distribution is learned, and the repeated integration is the computational procedure for drawing samples from that distribution.
In terms of ordering, it also differs from OpenVLA. OpenVLA generates tokens one after another, while π0 lays out the entire future action sequence at once as position-wise tokens and refines the whole thing several times.
| OFT (L1 regression) | π0 (flow matching) | |
|---|---|---|
| Target | The action values themselves | The direction from noise to action |
| Inference | 1 forward pass | 1 VLM pass + 10 action expert passes |
| Nature of the output | Deterministic | Varies with the initial noise |
| Strength | Fast and simple | Can represent multiple action patterns |
That raises a question. How many situations in picking up a cup really call for multiple action paths? If the optimal action is mostly determined as a single one, the repeated computation may be wasteful. There are cases, like the LIBERO results in Part 2, where L1 and diffusion came out similar, so this is still an open question.
4Masking and Caching
An attention mask is the rule that determines which tokens can see the information of which other tokens. π0 divides the tokens into three blocks. Within a block, tokens can see each other. Later blocks can see earlier ones, but earlier blocks cannot see later ones.
Asking why this mask exists brings out the difference from OpenVLA. The causal mask in Part 1 prevents the model from seeing target tokens ahead of time, because future actions are used as targets for training but must not be shown as inputs for making a prediction. π0 is different. Action tokens can all see each other. The main role of the mask here is to keep the image and language tokens from seeing the noisy actions, which keep changing.
This is what makes caching possible. The results of the earlier blocks stay the same as τ changes, so if the keys and values are stored, they do not need to be recomputed during the 10 integration steps. The robot state has its own block for the same reason, so that its KV can be cached.
| Stage (RTX 4090, 3 cameras) | Time |
|---|---|
| Image encoder | 14 ms |
| Observation forward pass | 32 ms |
| 10 action forward passes (flow integration) | 27 ms |
| Total (onboard) | 73 ms |
Table I of the paper. With remote inference, 13 ms of network latency is added, for a total of 86 ms.
Running the action expert 10 times takes only 27ms. The VLM runs only once, the action expert is small, and there is a cache on top of that. This is why "computing several times" in flow matching does not directly mean "10 times slower."
5Data and Execution
Another distinguishing feature of π0 is large-scale multi-robot pretraining.
| Item | Value |
|---|---|
| In-house data | 903 million timesteps (106 million single-arm, 797 million dual-arm) |
| Composition | 7 robot configurations, 68 tasks, over 10,000 hours in total |
| Share of public data | 9.1% of the mixture (OXE, Bridge v2, DROID) |
| Per-robot weighting | \(n^{0.43}\) for a task-robot combination with \(n\) samples |
| Dimension matching | States and actions zero-padded to the largest dimension, 18 |
| Training length | 700,000 steps |
Robots with different action dimensions are padded to 18 dimensions and trained in a single model. For robots with fewer than 3 cameras, the missing slots are masked.
On the execution side, \(H=50\) actions are predicted, but not all of them are used. A 20Hz robot executes 16 (0.8 seconds) and a 50Hz robot executes 25 (0.5 seconds) open-loop, then runs inference again. Temporal ensembling, which overlaps and averages predicted chunks, actually lowered performance in the paper.
6Results
The main evaluation numbers in the π0 paper are presented in figures rather than tables, so only the paper's conclusions are relayed here.
- Evaluation without separate fine-tuning: π0 beat OpenVLA and Octo on shirt folding, table clearing, packing grocery items, and the toaster task, and a version trained for the same number of steps (160,000) also did better than the comparison models.
- Language conditioning: π0 improved meaningfully over π0-small, a model of about 470M that does not use VLM pretraining.
- Fine-tuning on new tasks: π0 was generally ahead of ACT, Diffusion Policy, OpenVLA, and Octo.
- Long tasks: On composite tasks taking 5 to 20 minutes, every task exceeded 50% of the maximum score.
Numeric comparisons are in the table in Part 2. In the OFT paper, π0 averaged 94.2% on LIBERO and scored 93.33% on the ALOHA Scoop X task. It should also be kept in mind that these comparisons are not made under fully identical conditions.
7Limitations and the Next Part
- Understanding of data composition. The paper states that how the pretraining data should be composed is still not well understood.
- Reliability. Not all of the evaluated tasks work reliably.
- Model size. A 3.3B model and data at this scale are hard to reproduce as is in a small-scale setting.
Could a model keep flow matching and be made much smaller? SmolVLA in Part 4 is that attempt. It redesigns the VLM, the action expert, and the way the two are connected, all together.
References
- Black et al. π0: A Vision-Language-Action Flow Model for General Robot Control. arXiv:2410.24164, 2024.
- Lipman et al. Flow Matching for Generative Modeling. arXiv:2210.02747, 2022.
- Beyer et al. PaliGemma: A versatile 3B VLM. arXiv:2407.07726, 2024.