RL for Robot Foundation Models

A robot policy trained by imitation copies its teachers, mistakes included, and stalls near 80% success. Practice with a success signal keeps the good habits, drops the bad ones, and passes the teachers in success and in speed.

Learn why big vision-language-action models are hard to train with RL, and the three ways the field gets around it.

Press More demos twice and watch the success rate stay put. Then press Practice round a few times. Then we build it piece by piece: the plateau, the model, why RL fits it badly, and the three fixes.

You need a little Python and what a probability is. A first look at imitation learning helps. We build the rest from zero.

Re-taught from Lecture 17, RL for Robot Foundation Models (Chelsea Finn), of Stanford CS 224R: Deep Reinforcement Learning. It covers these papers: π*0.6, DSRL, EXPO and EXPO-FT. The toys and their numbers are our own.

Teach by demos, then let it practice

Illustrative toy. The policy picks one of five grasps, each with its own success rate and time. The teachers use all five, so imitation lands at 81.4% and 13.3 s. A practice round keeps the trials whose return beat the average (the time, plus 30 s for a drop) and refits, as in Chapter 5.

Chapter 0

Why Imitation Stalls

See why four successes in five is not enough, and name the score that practice raises

A robot makes coffee in a kitchen it has never seen. It learned from thousands of demonstrations by people with joysticks. On a new counter with new cups, it finishes about four tries in five. The lecture puts the best imitation-trained robot models near that 80% mark.

Four in five is not enough for a robot that works alone. A job is a chain of steps, and every step must work. Set the numbers below.

Chain the steps of a job

Each box is one step of the job. The dots are 100 jobs: green finished, red failed somewhere. Raise the per-step success and watch the red shrink.

80.0%
10

Illustrative. It treats the steps as independent, which real jobs are not, but the shape holds.

With made-up numbers: a 10-step job where each step works 80% of the time works 0.8 to the 10th, which is 10.7%. At 99% per step the job works 90.4% of the time.

Why does imitation stop near 80%? Imitation learning trains the model to copy what the teacher did in each situation. It copies the teachers' slow habits and sloppy habits too, and more demos add more copies of the same mix. Reinforcement learning (RL) adds the missing signal: the robot practices, gets a score for each try, and shifts toward what scored well. Language models went the same way, from fine-tuning on examples to RL on top. The imitation-trained model is the starting point, not waste.

What score does practice raise? Give the robot a reward of −1 for each step, 0 when it succeeds, and a large penalty C when it fails. Call the reward at step k rk and the last step T.

Say it aloud

G-t equals the sum, over k from t to T, of r-k.

Gt
G-t the return from step t: what the rest of the episode is worth.
Σk=tT
the sum over k from t to T add one term for each step from now to the last step.
rk
r-k the reward at step k: −1 for a step, 0 for the success, −C for a failure.
In plain words

Add every reward r-k from step t to the end. Each step costs 1, so a fast success scores near 0 and a failure scores lowest.

With numbers

With made-up numbers: at step 10 the robot needs 30 more steps and succeeds, so G-10 = −30. If it fails at step 60 with C = 100, G-10 = −50 − 100 = −150. A higher G means more successes and faster ones.

The failure. Success climbs with the first demos, then stays flat as you add more. To measure it, plot success against the number of demos on a fixed set of new scenes. A flat line is the plateau. The fix is practice with a success signal, or DAgger, where a person corrects the robot in the states it reaches.

The road

  1. Anatomy of a VLA: a backbone, a training mix and an action expert.
  2. Why RL on a VLA is hard: size, no critic, no log-probability, chunks.
  3. Online or offline: what a bug costs you.
  4. Can we just use PPO?: yes, if you can pay for the episodes.
  5. Theme 1, offline RL as supervised learning: the hero's practice round.
  6. Theme 2, RL on the representation: choose the noise, not the weights.
  7. Theme 3, small edit policies: correct the action, pick the best.
  8. Diffusion steering, interactive: steer a frozen model yourself.
  9. The field guide: terms, numbers, code and links.
Each step of a 10-step job works 80% of the time, independently. About how often does the whole job work?

Chapter 1

Anatomy of a VLA

Follow camera images and an instruction through the model to a chunk of motor commands

You type "put the cup on the plate". Two cameras watch the counter. What turns pixels and words into motor commands?

A vision-language-action model (VLA) takes camera images and an instruction and outputs robot actions. The common design has three parts.

  1. A backbone. A pretrained vision-language model (VLM) that already captions photos and answers questions. It brings what it knows about objects and words.
  2. A training mix. Robot demonstrations, plus ordinary VLM tasks so the model keeps its general knowledge, plus human video for how things move.
  3. An action expert. A small network that reads all of the backbone's activations and outputs continuous actions with diffusion or flow matching.

The action expert makes a chunk: the next H actions at once. It starts from random noise and refines it in K small steps. The backbone runs once per chunk and only the small expert repeats. Often no gradient flows back into the backbone, so its weights stay frozen.

Run one chunk through the model

The big box runs once. The small box loops K times. Set K and H and read the cost of one chunk.

10
50

Illustrative sizes: a 7-joint arm and 50 actions per second.

How is it trained? By imitation. Call the images and instruction at moment i oi, the teacher's chunk ai, and the model's weights θ.

Say it aloud

L of theta equals minus one over N, times the sum over i of log pi-theta of a-i given o-i.

L(θ)
L of theta the imitation loss for weights θ. Lower is better.
N
N the number of demonstration moments in the batch.
Σi
the sum over i add one term for each moment.
log
log the natural log, so a small chance gives a large negative number.
πθ(ai | oi)
pi-theta of a-i given o-i how likely the model finds the teacher's chunk a-i in situation o-i.
In plain words

For each moment, ask how likely the model finds the teacher's chunk a-i. Take the log, average over the N moments, and flip the sign.

With numbers

With made-up numbers: three moments where the model gives the teacher's chunk 0.8, 0.5 and 0.1. L = (0.22 + 0.69 + 2.30)/3 = 1.07. The 0.1 moment costs the most.

A flow-matching expert cannot compute this log-probability. It trains on a denoising loss with the same goal. Chapter 2 shows why that matters for RL.

The failure. The arm jerks where one chunk ends and the next begins. To measure it, log the jump between the last action of a chunk and the first action of the next. To fix it, overlap the chunks and blend them, or run only part of each chunk before you predict again.

Why does the action expert repeat K times while the backbone runs once per chunk?

Chapter 2

Why RL on a VLA Is Hard

List the assumptions textbook RL makes, and find the ones a VLA breaks

Textbook RL assumes a small network, trained from scratch, that gives a probability for each action. A VLA breaks each of these assumptions.

Property of a VLAWhat it breaks
Billions of weightsEach gradient step costs time and money.
Train in the cloud, act on a robotEvery round trip adds delay.
Slow experimentsFew hyperparameter tries per week.
Trained by imitationNo value function, so actor-critic starts without a critic.
Diffusion or flow headNo log-probability for a policy gradient.
Action chunksRL usually reasons one action at a time.

The missing critic hurts too. Actor-critic methods and RLHF both compare each action with a learned value. Imitation never trains one, so RL on a VLA starts with an actor and no critic.

Look closer at the head. A policy gradient such as REINFORCE pushes up log π of each action by how well it paid. A Gaussian head gives log π with one formula. A diffusion head gives you samples, not a formula. To know how likely one action is, you count how many samples land near it.

Ask each head for log π

The blue band is a window around the action you took. Pick the diffusion head and add samples until the estimate settles.

100

Illustrative one-dimensional action. The diffusion head here is a two-bump mixture you can only sample.

With numbers: say the window catches q = 2% of samples. The count's relative error is the square root of (1 − q)/(N q). With N = 100 samples that is 70%. With N = 10,000 it is 7%. That is one axis. A chunk of 50 actions for a 7-joint arm has 350.

The failure. A policy-gradient run on a diffusion head with a rough log π makes updates that point a new way each batch. To measure it, compute the gradient on two batches and take the cosine between them. Near 0 means noise. The fix is to avoid log π, which all three themes ahead do.

You want the REINFORCE update, which needs log π of the action taken. Which property of a VLA blocks it most directly?

Chapter 3

Online or Offline RL

Decide how data collection and training meet, by asking what a mistake costs

Before any algorithm, decide how collection and training meet.

Online RL (for example SAC)Iterated offline RL
The loopCollect about one step, take about one gradient step, repeat.Collect a big batch (say 1,000 episodes), then about 10,000 gradient steps. Repeat a few times.
A wrong settingRun everything again, robot included.Train again on the saved data.

Say the learning rate is wrong. In online RL the bad updates steered the robot while it collected. So the data after the bug came from a broken policy, and you start over with the robot. In iterated offline RL the data sits on disk. You fix the setting and train again.

Inject a bug and count the redo

Warm is robot time. Purple is training. Press the button to plant a bug at a random hour.

Illustrative: 1,000 episodes of 1 minute, and 10,000 gradient steps of half a second.

With made-up numbers: 1,000 episodes at 1 minute each is 16.7 hours of robot time. Retraining with 10,000 gradient steps at half a second each is 1.4 hours of GPU time. A bug costs the online run the robot hours and the offline run the GPU hours.

Online RL has its own strength. It tries new things as soon as it learns them, so it can seek out its own failures. That makes it more data-efficient in principle.

For large models, tuning never stops, so this decides the method. The lecture starts with offline RL for that reason, though online RL is stronger in principle.

The failure. Every tuning try costs a day of robot time. To measure it, count robot hours per hyperparameter tried. To fix it, split collection from training, save every episode, and tune on the saved data.

After 12 hours you find a wrong learning rate. Which run must collect robot data again?

Chapter 4

Can We Just Use PPO?

Price an on-policy method in hours of robot time

PPO is the default RL method for many problems. People have used on-policy RL of this kind on VLAs: SimpleVLA-RL trains OpenVLA-OFT, and πRL trains π0 and π0.5. Both improve the models.

The catch is the data. PPO is on-policy: it learns only from episodes of the current policy, uses each batch for a few passes, then throws it away. Every update needs fresh episodes. The results so far come from simulation, where thousands of copies of the robot run at once. The lecture adds that many of these papers do not report their episode counts.

Price an on-policy run

Set the run. The bars use a log scale, so each grid line is ten times the last.

200
256
1.0

The on-policy run is illustrative. The 65 episodes are DSRL's real pick-and-place run on π0 (Wagenmaker et al., 2025), priced here at your minutes per episode.

With made-up numbers: 200 updates of 256 episodes is 51,200 episodes. At 1 minute each that is 853 hours, or 35.6 days without a break, on one robot. DSRL in Chapter 6 improved π0 on a real pick-and-place task in 65 episodes.

So PPO is the baseline, not the answer. The three themes ahead all reuse data the way offline and off-policy methods can.

The failure. A real-robot run improves too slowly to finish. To measure it, track success gained per robot hour. To fix it, reuse data: an off-policy method keeps a replay buffer (a store of past steps) and trains on each step many times.

Why is PPO costly on one real robot?

Chapter 5

Theme One: Offline RL as Supervised Learning

Turn reward into a label, then fine-tune the VLA the way imitation trained it

Big models are good at supervised learning on big datasets. If RL becomes supervised learning, it scales the way imitation does. The recipe has two supervised steps, and neither needs log π.

  1. Fit a value. Train a model to predict, from the images and the instruction, how long until the task ends. The label is what happened in the logged episode. This is Monte Carlo value estimation: the observed outcome is the target.
  2. Label and fine-tune. Mark each logged action positive if it beat the value, negative if not. Fine-tune the VLA on all the data with that label as an extra input.

Call the value of situation o-t V(ot): the return you expect from there. Call the return this trial got Gt. Their difference is the advantage.

Say it aloud

I-t equals one if G-t minus V of o-t is greater than epsilon, and zero otherwise.

It
I-t the label of the action at step t: 1 is positive, 0 is negative.
1[ ]
one if gives 1 when the test inside is true, else 0.
Gt
G-t the return this trial got from step t, from Chapter 0.
V(ot)
V of o-t the value: the return the model expects from situation o-t.
ε
epsilon the threshold an advantage must beat.
Gt − V(ot)
the advantage how much better this trial did than expected.
In plain words

Subtract the expected return V of o-t from the return G-t. If the gap beats epsilon, label the action positive.

With numbers

With made-up numbers: the value says 30 steps to go, so V of o-t = −30. This trial finished in 22, so G-t = −22 and the advantage is +8. With epsilon 0, the label is positive.

Label a batch, then refit

Each dot is one trial of the hero's five grasps. Filled dots carry a positive label. Move the threshold and watch the refit mix.

30th pct

Illustrative: 40 trials of the hero's policy. The value is the batch's average return, a Monte Carlo estimate.

At run time the VLA is told "positive", so it samples from the better half of its own habits. The reward chose which actions to copy, which makes it RL. It is a binary form of advantage-weighted regression, which weights each action's imitation loss by its advantage.

Physical Intelligence ran this loop, as RECAP, for π*0.6, on robot episodes plus human corrections. Its value predicts the negative steps to success, scaled into −1 to 0. The paper reports that RECAP more than doubles task throughput and roughly halves the failure rate. π*0.6 made espresso drinks for 13 hours straight. The lecture names three ways to do better: TD updates over pure Monte Carlo, a richer signal than one bit, and online RL.

The failure. After fine-tuning, the robot is no better. To measure it, check the share of positive labels. Near 0% or 100% means the label carries no signal. To fix it, move the threshold so both labels have plenty of examples.

What makes "label by advantage, then fine-tune" reinforcement learning rather than imitation?

Chapter 6

Theme Two: RL on the Representation

Leave the VLA's weights alone and let a small policy choose its noise

Theme 1 still fine-tunes the whole VLA. Theme 2 leaves its weights alone and trains a small policy on top.

The action expert turns noise into an action, and different noise gives a different action. Diffusion steering (DSRL) lets RL choose the noise. A small steering policy looks at the situation and outputs the noise. The frozen VLA turns it into an action chunk. Call the VLA's noise-to-action map D, the noise wt, and the steering policy πψ, with its own small weights ψ.

Say it aloud

a-t equals D of o-t and w-t, where w-t is a sample from pi-psi given o-t.

at
a-t the action chunk the robot runs at step t.
D
D the frozen VLA's denoiser: situation and noise in, action out.
wt
w-t the noise, with the same shape as the action chunk.
~
is a sample from a random draw from the distribution on the right.
πψ(· | ot)
pi-psi given o-t the steering policy: a Gaussian over noise whose mean depends on o-t.
In plain words

Draw a noise w-t from the steering policy. Feed it with o-t into the frozen denoiser D. Run the chunk a-t that comes out.

With numbers

In the toy of Chapter 8: noise near (0, 0) gives a grasp at 90° with Q = 0.26. The steering policy learns w = (0.68, 0.5), which D turns into 150° with Q = 0.95.

Why this helps: the steering policy is a Gaussian, so log π is one formula and SAC works off the shelf. And every noise passes through the VLA, so every action stays among the moves it learned from demos.

Explore in action space or in noise space

The teal band is the set of actions the VLA makes. Pick where the random tries happen and widen the spread.

0.30

Illustrative two-dimensional toy. Real DSRL noise has the size of the whole action chunk.

Training is plain off-policy RL. Store each (situation, noise, reward, next situation) step in a replay buffer. Fit a Q-function over situation and noise, and update the steering policy with SAC. DSRL steered a public π0 checkpoint on a real Franka arm. A toaster task went from 5 of 20 to 18 of 20 in 80 episodes, and a pick-and-place task improved in 65. The lecture also names RLT, which runs RL on a compressed copy of the VLA's features.

The failure. The steering policy pushes the noise far outside its usual range, and actions turn strange. To measure it, track the noise size against the range the VLA saw in training. To fix it, bound the noise to that range.

In DSRL, what does the replay buffer store as the action?

Chapter 7

Theme Three: Small Edit Policies

Let a small policy correct the VLA's actions, and let the newest Q-function pick the winner

Theme 3 is closest to plain actor-critic RL. The frozen VLA proposes an action. A small edit policy proposes a correction, and the corrected action runs. The edit policy trains to raise the Q-function. Probe-Learn-Distill and EXPO work this way.

On its own, an edit policy is fragile for two reasons.

  1. It lags. The Q-function changes faster than the edit policy can follow.
  2. It can collapse to one bad output, as RL actors sometimes do.

EXPO's fix is to pick with the newest Q-function. Call the VLA's sampled actions a1 to aN, the edit policy's corrections Δij, and the Q-function Q(o, a).

Say it aloud

a-star equals the argmax, over a in the base actions a-i together with the edited actions a-i plus delta-i-j, of Q of o and a.

a*
a-star the action the robot runs.
argmax
the argmax the candidate that makes Q largest.
{ai}
the base actions a-i N actions sampled from the frozen VLA.
∪
together with the union: put both sets in one pool.
{ai + Δij}
a-i plus delta-i-j M edited versions of each base action.
Q(o, a)
Q of o and a the newest Q-function's score for action a in situation o.
In plain words

Sample N actions a-i from the VLA. Edit each one M times. Score every candidate with Q and run the highest.

With numbers

With made-up numbers: N = 2, M = 2. The base actions score 0.61 and 0.70; their edits score 0.66, 0.58, 0.74 and 0.69. The robot runs the 0.74 edit. If the edits collapse and all score low, the 0.70 base action still wins.

Pick the best of N

Teal dots are the VLA's actions, pink dots their edits, the blue curve is Q. Raise N, then break the edit policy.

2

Illustrative one-dimensional action with M = 2 edits per base action. The averages come from 2,000 simulated draws.

The pick uses the newest Q, so it does not wait for the lagging edit policy. The Q-function's training target uses the same rule to choose the next action, and the lecture reports that ablations without it do much worse. This is test-time scaling: more candidates at run time give a better action. EXPO-FT reports 30 of 30 successes on every task it tested, after 19.1 minutes of online robot data on average.

The failure. Q-values rise in training while real success falls. To measure it, compare the Q of the chosen actions with the returns you observe. To fix it, use fewer candidates or collect more data near the picks, since an argmax over many candidates finds the Q-function's overestimates.

The edit policy collapses and every edit is bad. What does best-of-N selection do?

Chapter 8

Diffusion Steering, Interactive

Move a cloud of noise until the frozen model's actions score well

Here is Theme 2 in one picture. Left is the noise plane, shaded by the Q of the action each noise makes. Right are the actions the frozen VLA makes. The steering policy is the yellow cloud of noise. It starts as the VLA's own noise, centred at zero with spread 1. Move it to where Q is high.

Steer the frozen model

Drag on the noise plane to move the cloud, or press Steering step. The VLA never changes. Only the cloud moves.

1.00

Illustrative toy. Here the toy knows the true Q; DSRL learns it. A steering step samples 16 noises and weights them by Q. It moves the centre toward the good ones and narrows the cloud a little, a stand-in for SAC's actor update.

Try two runs. Press Run 20 steps from the start: the wide cloud sees both bumps, moves to the high one and narrows. Then press Reset, set the spread to 0.15 and run again. The narrow cloud climbs the nearest bump, near Q 0.6, and stays there.

Notice what never changes. The cloud moves in noise space, and every point maps to an action the VLA could already make. The search finds a good action the VLA could make all along but rarely chose. After training, you can distill the steered behaviour back into the VLA.

pythonimport torch

def dsrl_step(obs, steer_policy, frozen_vla, env, buffer):
    noise = steer_policy.sample(obs)               # [H, act_dim]: the RL action is the noise
    with torch.no_grad():                          # the VLA is a fixed function here
        chunk = frozen_vla.denoise(obs, noise)       # [H, act_dim]: the actions the robot runs
    next_obs, reward, done = env.step(chunk)
    buffer.add(obs, noise, reward, next_obs, done)   # store the NOISE, not the chunk
    return next_obs, done
# SAC (elsewhere) fits Q(obs, noise) and pi_steer(noise | obs).
# frozen_vla.parameters() go to no optimizer.

The failure. The cloud shrinks to a point too early and sits on a small bump. To measure it, watch the cloud's spread and the best Q found. To fix it, keep some spread, as SAC does with its entropy bonus.

After steering, the robot succeeds more often. What changed?

Chapter 9

The Field Guide

Keep the terms, the numbers, the code and the next lessons in one place

Imitation brings a VLA near 80%. RL takes it further, but textbook RL fits a VLA badly. The field routes around the misfit in three ways. Turn RL into supervised learning. Steer the frozen model's noise. Or edit its actions and pick with Q.

TermWhat it isA number to keep
VLAVLM backbone plus a small diffusion or flow action expert1 backbone pass, K expert passes per chunk
PlateauImitation copies the teachers' mix0.8 to the 10th = 10.7%
Return G-t−1 per step, 0 on success, −C on failure30 steps to go: −30
Offline RLCollect, then train on saved dataA bug costs 1.4 GPU hours, not 16.7 robot hours (toy)
PPO on a robotOn-policy: fresh episodes every update51,200 episodes = 35.6 days (toy)
RECAP, π*0.6Advantage label, then supervised fine-tuningOver 2× throughput; 13 hours of espresso
DSRLA Gaussian steering policy over the frozen VLA's noiseToaster 5/20 to 18/20 in 80 episodes
EXPO, EXPO-FTEdit policy plus best-of-N with the newest Q30/30 after 19.1 minutes of robot data

Before you run RL on a VLA

The core, in code

pythonimport numpy as np

def advantage_labels(returns, values, pct=30):
    # returns, values: [num_steps]. Theme 1: label each logged action.
    adv = returns - values                        # G_t - V(o_t)
    eps = np.percentile(adv, pct)               # threshold per task
    return (adv > eps).astype(np.int64)        # 1 = "Advantage: positive"

def best_of_n(obs, vla, edit, q, n=4, m=2):
    # Theme 3: base actions, their edits, and the newest Q picks.
    base = [vla.sample(obs) for _ in range(n)]
    cands = base + [a + edit.sample(obs, a) for a in base for _ in range(m)]
    scores = [q(obs, a) for a in cands]
    return cands[int(np.argmax(scores))]

Keep going

The takeaway. Do RL in a space the VLA already handles well: its supervised loss, its noise, or small edits to its actions. Keep the expensive model frozen or train it only by supervision.
You have one real robot, a diffusion VLA at 82% and 30 minutes of robot time per cycle. Which approach fits worst?

Now press Present or Teach and explain, from memory, why a VLA stalls, why log π is the problem, and how each theme avoids it. Then go back to the hero and say what one practice round keeps and what it drops.

Credit and source

This lesson re-teaches Lecture 17, RL for Robot Foundation Models, taught by Chelsea Finn in Stanford CS 224R: Deep Reinforcement Learning. These are the papers. Physical Intelligence, π*0.6: a VLA That Learns From Experience (2025); Wagenmaker et al., Steering Your Diffusion Policy with Latent Space Reinforcement Learning (2025); Dong et al., EXPO (2025) and EXPO-FT (2026). The toys and their numbers are our own.

CS 224R: RL for Robot Foundation Models
The course site · π*0.6 · DSRL · EXPO-FT · Back to Gleams