Generative Value Classifier

A critic that asks how likely an action is under each possible return, instead of what return it earns, reaches about 85% on Tool Hang in 0.5M steps, where baselines reach about 50% in 1M.

Pick a critic and press Train. Compare what each one outputs for four candidate actions, then count how many of 100 test episodes succeed. Then we build, piece by piece, how a robot policy can double as its own value function.

You need the idea of a reward and a feel for probability. We build Q-learning, Bayes, bins and flow matching from zero.

By Alexander Swerdlow, Perry Dong and Chelsea Finn (Stanford), arXiv:2610.22497, 15 October 2026. The lesson is our own walk through their paper.

Train a critic on Tool Hang

Ready

Each critic scores the actions the robot could take. GVC returns a whole spread of possible returns for each action, the others return one number.

Success rates are the paper's own reading of Figure 3 on Tool Hang (Section 5.1): GVC roughly 85% within 0.5M environment steps, QC and RLPD about 50% at 1M steps, IDQL does not learn the task (the paper gives no number, so no episode is lit). The four candidate scores at the top are a toy picture of what each critic outputs, not data from the paper.

Chapter 0

A critic that wastes the action

Why scoring actions is hard when the reward is rare, and what teaching signal every critic throws away

A robot arm holds a metal hook. It must slide the hook into a base to make a frame. Then it must hang a wrench on that frame. The task is called Tool Hang. It is the longest of the four robot tasks in this paper, with several stages.

The robot gets almost no help while it works. Every step scores −1 until the wrench hangs. The step where it succeeds scores 0, and the episode ends. This is a sparse reward: for most of the task, the reward does not say whether the last move was good.

The robot learns by reinforcement learning (RL). It tries things, sees what happens, and changes what it does. Three words matter. A state s is what the robot knows about the world now, such as where its arm and the objects are. An action a is a short list of numbers that moves the arm. The return is the total reward the robot collects from now to the end of the episode, with later rewards counting a little less.

Now ask a question. In this state, how good is this action? A model that answers it is a critic. It outputs a Q-value, written Q(s, a): the return you expect if you take action a now and play well afterwards. Picture a writer and an editor. The writer is the actor, the model that proposes actions. The editor is the critic, the model that scores them. The actor gets better by following the editor.

A good critic is hard to train. The paper names two old problems. If you wait for the true return, the number is noisy and cannot join information from different attempts. If you bootstrap (use the critic's own guess about the next state as part of the target), small errors build up as they travel back through time. Sparse rewards and long tasks make both worse.

Count the targets in one transition

Each recorded step holds an action made of several numbers. Drag the slider to change how many. See how many numbers each critic must match.

35 numbers

This counts how many numbers the loss compares against. It is a picture of the idea, not a measure of information. The default 35 is illustrative: a chunk of 5 actions (the paper's chunk length, Table 4) of 7 numbers each. The bin count K = 5 is the paper's RoboMimic setting.

Here is the paper's observation. Look at what one recorded step holds: a state, an action, a reward and the next state. The action is a whole vector of numbers. Yet a standard critic checks only one output number against one target number. The action goes in as an input. It never appears as an answer the critic must predict. So the richest part of the record gives the critic no teaching signal.

Here is one step with illustrative numbers. The reward is −1 and the discount is 0.99. A frozen copy of the critic says the next state-action pair is worth −7.0.

target y = r + γ · Q̄(s′, a′)
y = −1 + 0.99 × (−7.0) = −7.93
loss = (Q(s, a) − y)² one number against one number

The action a sat in the input, but nothing asked the critic to explain it. A student who studies only the answer key's final number does the same: the worked steps in between are right there, and nobody checks them.

Earlier work added capacity to the critic. Distributional RL predicts a spread of possible returns instead of one average. Contrastive methods predict which future states follow. This paper asks something else: can the action itself teach the critic?

Flip the question. Do not ask "what return does this action earn?" Ask "how likely is this action, if the return were high, or low?" The second question can be learned from the action itself.

The paper's name explains the flip. A classifier sorts things into classes. Here the classes are slices of possible return, called return bins. A generative classifier sorts by asking how likely the thing is under each class. Chapter 3 builds it. Two short chapters of background come first.

Here is the road, in order. Each chapter builds one part of the picture above.

  1. Q-values and the TD target: how a critic learns from its own guesses.
  2. Return bins: turning "how good" into a spread over a few slots.
  3. Flip the question: Bayes' rule turns action likelihoods into a Q-value.
  4. Flow matching as a likelihood: how a robot policy measures how likely an action is.
  5. Scoring and acting: the data flow, tensor by tensor.
  6. Four losses and an anchor: how the critic trains.
  7. Online results and offline results: what each table shows.
  8. Ablations: which part carries the gain.
  9. Limits and cost, then the Field Guide.
What does a standard critic leave unused as teaching signal?

Chapter 1

Q-values and the TD target

How a critic learns from its own guesses, and why the news from the goal travels back slowly

Picture a corridor of five rooms. A door at the far end leads out. You stand in the first room and you do not know the way. Each move costs you 1 point. The move that takes you out costs 0. How many points will you lose from here?

You cannot know until someone has walked the corridor. Suppose a friend stands in the last room. She knows the next step is free, so her answer is 0. The person in the fourth room can say more. He pays 1 for his step, then borrows his neighbour's answer. His total is −1. The third room borrows from the fourth, and so on. Each room builds its answer from the answer next door.

That is the whole idea of temporal-difference (TD) learning. A value is not measured from the end of the episode. It is built from one real reward plus the value of where you land. The reward is real data. The value of the landing spot is a guess, so the new value inherits that guess. This trick of using your own estimate inside your own target is called bootstrapping.

Now the formal names. The discounted return from time t is Gt = Σk≥0 γk r(st+k, at+k). The discount γ is a number below 1 that makes later rewards count less. The Q-function Qπ(s, a) is the average of Gt when the robot is in state s, takes action a, and then follows its policy π. A policy π(a | s) is the rule that picks actions.

Send the news back

Five rooms, then the exit. Every step costs −1 except the step out, which costs 0. Press Back up to run one sweep. Each sweep sets every room to its step cost plus the value next door.

0.90

A toy corridor with the paper's reward scheme (−1 until success, 0 at success, Section C.2). The numbers are computed live. This is a tabular sweep, not the paper's neural critic.

Watch what the sweeps do. After one sweep only the last room is right. After two, the fourth. The true answer moves back by one room per sweep. A long task needs many sweeps before the first room hears about the exit. This is why long, sparse tasks are slow to learn.

A real critic is a neural network that learns from a replay buffer 𝒟, a store of past transitions. Each transition is a tuple (s, a, r, s′, m). The mask m is 0 when the episode ended at s′, and 1 otherwise. The mask stops the critic from borrowing a value past the end. The paper trains its critic with this loss (its Equation 1):

ℒ
The loss: how far the critic's answer is from its target, squared and averaged over a batch.
r
The one-step reward the robot actually received. This is the only real data in the target.
γ
The discount. At 0.99, a reward 100 steps away still counts about 37% as much as a reward now.
m
The mask: 0 at a terminal step, 1 otherwise. It switches the borrowed value off at the end.
Q̄
A frozen target copy of the critic. It moves slowly (an exponential moving average with rate 0.005), so the target does not run away from the learner.
Q(s, a)
The critic's current answer for the recorded state and action. Training pulls it toward the target.

The next action ã′ is drawn from the current policy, ã′ ∼ π(· | s′). The target answers: "what would I get from s′ if I kept playing as I do now?" Chapter 5 shows how GVC picks ã′ with the same best-of-N trick it uses to act.

In code, one training step is short. Shapes are given for a batch of B transitions, with a state of ds numbers and an action of d numbers.

Work one backup by hand, so no step stays hidden. Take γ = 0.9 and the corridor above after two sweeps. Room 4 reads −1 and room 5 reads 0. Now update room 3. Its step costs 1, and the value next door is −1. So the new value is −1 + 0.9 × (−1) = −1.9. Update room 2 the same way from room 3's old value. After two sweeps room 3 has heard from the exit, and room 2 has not.

Why not wait for the true return instead? That is the Monte Carlo choice: play the whole episode, add up the real rewards, and use the total as the target. It has no guesses in it, so it is unbiased. But it is noisy. Two episodes from the same state can end very differently, especially when the robot fails by luck. Monte Carlo also cannot join pieces of different episodes. TD can: if one episode reached room 4 and another started in room 3, the value of room 4 flows into room 3 through the shared state. The paper names this trade-off in its first paragraph: high variance on one side, compounding error on the other.

Why freeze a copy? Picture a thermostat that reads its own heater to decide the target temperature. Every change it makes moves the goal. The frozen copy Q̄ holds the goal still for a while, and an exponential moving average (EMA) lets it follow the real critic slowly. The rate 0.005 means the copy moves 0.5% of the way each step.

# s: [B, ds]   a: [B, d]   r: [B]   s2: [B, ds]   m: [B]  (0 at terminal)
a2 = policy.sample(s2)                      # [B, d], next action from the policy
y  = r + gamma * m * q_target(s2, a2)       # [B], the TD target. no gradient
loss = ((q(s, a) - y.detach()) ** 2).mean() # one number against one number
loss.backward()                             # then an EMA step moves q_target

You will find the same loss in the lessons on Q-learning and actor-critic methods, and the setting in Markov decision processes. For a critic that never queries the policy during training, see IQL. GVC keeps Equation 1's target. It changes only what the critic is, so the next two chapters rebuild the critic.

In the TD loss, which part of the target is real data and which part is a guess?

Chapter 2

Return bins: a spread, not a point

Why GVC needs the return as a handful of slots, and how a target gets poured into them

You ask a friend how long the drive to the airport will take. "About 35 minutes," she says. That is an average. On a good day it takes 25. When there is an accident it takes 70. The single number hides the spread, and the spread is often what you need to plan.

A critic has the same problem. Its Q-value is an average over many possible futures. Distributional RL keeps the whole spread. The critic outputs a probability for each of several possible returns, not one number. This paper uses the simplest version, the categorical approximation. Pick K fixed return values 𝒵 = {z1, …, zK}, evenly spaced from the worst return to the best. Each value zi is a return bin, a slot that holds some probability. The critic's output p(zi | s, a) says how likely it is that the return lands in bin i.

The old Q-value is still there. It is the mean of the spread:

Q(s, a)
The expected return, now computed as the mean of the spread.
i
The bin index, from 1 to K. The paper uses K from 5 on RoboMimic up to 51 on some OGBench tasks.
p(zi | s, a)
The probability mass in bin i, given the state and the action. The K masses add up to 1.
zi
The return value that bin i stands for. The bins are evenly spaced, usually from the lowest possible return to the highest, which follow from the reward and the discount.

This is the same shape as a classifier. A model that sorts photos into K animals outputs K probabilities that add to 1. A distributional critic does the same with K return bins. The "class" is a slice of return. Hold that thought for Chapter 3.

The next question is how to train it. The TD idea from Chapter 1 still applies, but now the target is a spread. Take the next state s′ and the next action a′. A frozen copy of the critic gives a spread p̄(· | s′, a′) over bins. Shift every bin by the real reward and discount: the value zj becomes r + γ zj. The shifted values rarely land on a bin. So you pour each shifted mass into the two nearest bins, split by distance. This is the projection Π𝒵. A value outside the range is clipped to the edge first.

p̂
The target spread: K probabilities that the critic should match. It plays the role of the TD target y in Chapter 1.
Π𝒵
The projection: clip to the range, then split each mass between the two closest bins by linear interpolation (Bellemare et al., the C51 method).
r + γ Z′
The shifted return: the real reward plus the discounted return of the next step.

Pour the target into bins

Top row: the frozen critic's spread at the next step. Bottom row: the projected target. Change the reward or the discount, pick a different next-step spread, or smooth the target.

−1.0
0.90

Five toy bins at −4, −3, −2, −1 and 0, with illustrative spreads. The paper's RoboMimic runs also use K = 5 bins (Table 4), but over their own range. The smoothing here is a fixed three-tap kernel, a simple stand-in for the Gaussian kernel the paper cites (Section C.1, HL-Gauss).

How wide should the bins reach? The paper sets the range from the lowest and highest possible return, which follow from the reward and the discount. Here is our own arithmetic for the reward scheme of Chapter 1. If every step scores −1 and γ = 0.99, the worst return approaches −1 / (1 − 0.99) = −100, and the best is 0. Five bins would then sit 25 apart. A target that falls between two bins that far apart loses a lot of detail. This is why, on RoboMimic and the cube tasks, the paper predicts an advantage instead (how much better than average), which lives on a much smaller scale.

Work the default by hand. The next-step spread is 0.2 at −3, 0.5 at −2 and 0.3 at −1. The reward is −1 and γ is 0.9.

shift: −3 → −1 + 0.9×(−3) = −3.7 −2 → −2.8 −1 → −1.9
split: −3.7 sits 0.3 of the way from −4 to −3: 0.2 → 0.14 at −4, 0.06 at −3
−2.8 sits 0.2 of the way from −3 to −2: 0.5 → 0.40 at −3, 0.10 at −2
−1.9 sits 0.1 of the way from −2 to −1: 0.3 → 0.27 at −2, 0.03 at −1
p̂ = [0.14, 0.46, 0.37, 0.03, 0.00] mean = −2.71
check: −1 + 0.9 × (−1.9) = −2.71

The projection keeps the mean. The target mean equals the plain TD target of Chapter 1, but the spread comes along for free. GVC later uses both: the mean y anchors the Q-value, and the spread p̂ weights the training losses.

Why smooth the target? Pure projection puts mass on only one or two bins. A model trained on such spikes can collapse to a single bin. The paper smooths p̂ with a Gaussian kernel, as in the earlier HL-Gauss method, to keep the predicted spread from collapsing. Why not use many bins? More bins cost more compute and more data per bin. Where the value range is wide, the paper's RoboMimic and cube runs predict an advantage (how much better than average) instead of the raw Q-value, to cut the binning error.

After the shifted values r + γ zj are poured into bins, what has the projection preserved?

Chapter 3

Flip the question with Bayes' rule

How asking "how likely is this action under each return?" gives back the Q-value you wanted

You find a fruit in the grass. It weighs 150 g. Is it an apple, a pear or a lemon? There are two ways to think about it.

The first way learns the answer directly. You collect many fruits, note their weights and kinds, and fit a rule from weight to kind. This is a discriminative classifier. It models p(kind | weight).

The second way asks the reverse. For each kind, how likely is a 150 g fruit? Apples are often near 150 g, so the answer is high. Lemons are lighter, so the answer is low. You also need to know how common each kind is. The result is a generative classifier. It models p(weight | kind), the likelihood, and p(kind), the prior. Then Bayes' rule turns them into the answer you wanted. Multiply likelihood by prior, then divide so the results add to 1.

kind prior likelihood of 150 g product posterior
apple 0.50 0.80 0.400 0.40/0.57 = 0.70
pear 0.30 0.50 0.150 0.15/0.57 = 0.26
lemon 0.20 0.10 0.020 0.02/0.57 = 0.04
sum 0.570 1.00 (likelihoods are illustrative)

That is the whole trick. The GVC paper applies it to value. Replace "kind" with return bin and "weight" with action. The state s stays fixed as context. Now the question "what return does this action earn?" becomes "how likely is this action, if the return were in bin i?"

p(z | s, a)
The answer: how likely each return is for this state and action. This is what a conventional distributional critic learns directly.
p(a | s, z)
The action likelihood: how likely the robot is to take action a in state s, in episodes that end with return z. It is a policy that is told its return.
p(z | s)
The return prior: how likely each return is from this state, before looking at any action. It is a distributional state-value function.
p(a | s)
How likely the action is overall. It does not depend on z. So normalizing over the bins removes it.

The paper's Equation 7 writes the same thing with the bins in the sum. The posterior over bins is p(zi | s, a) = pθ(a | s, zi) pψ(zi | s) / Σj pθ(a | s, zj) pψ(zj | s). The Q-value is its mean, Q(s, a) = Σi p(zi | s, a) zi. The critic is two models: θ for the action likelihood and ψ for the prior.

Flip the question

The state is fixed. Choose how likely each return is from this state, then slide the action. High-return bins like actions near 0.9, low-return bins like actions near 0.1. Watch the posterior and the Q-value follow.

0.70

A toy with five bins at −4 to 0, a one-number action, and Gaussian action likelihoods (bin means 0.1, 0.3, 0.5, 0.7, 0.9, width 0.18). All of it is illustrative. In the paper both models are neural networks and the action has many numbers.

Work the device's default by hand: an even prior (0.2 in each bin) and the action a = 0.70. The likelihood of bin i is exp(−(a − μi)² / (2 × 0.18²)), a bell curve around that bin's favourite action μi.

bin −4 (μ 0.1): exp(−0.36/0.0648) = 0.004
bin −3 (μ 0.3): exp(−0.16/0.0648) = 0.085
bin −2 (μ 0.5): exp(−0.04/0.0648) = 0.539
bin −1 (μ 0.7): exp(0) = 1.000
bin 0 (μ 0.9): exp(−0.04/0.0648) = 0.539 sum = 2.167
posterior = [0.002, 0.039, 0.249, 0.461, 0.249]
Q = −4(0.002) − 3(0.039) − 2(0.249) − 1(0.461) + 0 = −1.08

Notice a failure mode. Suppose the action were equally likely under every bin, because the robot does the same thing whether it succeeds or fails. Then every likelihood is the same, the factors cancel, and the posterior equals the prior. The action says nothing, so Q is just the state's value. An action only moves Q when it is more typical of some returns than of others. That is exactly the signal a critic should find.

Look at what the flip buys. A discriminative critic must learn the mapping from (s, a) to a return spread with only returns as targets. GVC's likelihood pθ(a | s, z) is trained to generate the recorded action. Every transition teaches it, with the whole action vector as the target. This is the extra supervision of Figure 1 in the paper.

Why condition on the state s and not model both together? The other option, p(s, a | z), needs a generative model of states. States are large and messy, so modelling them would be hard. The paper says conditioning on s performed better empirically. So the state is context, never a target.

Is this the same as the Decision Transformer? The two share a trick: both condition an action model on a return. They differ in use. The Decision Transformer learns from Monte Carlo returns-to-go and acts by asking for a high return. GVC learns from bootstrapped Bellman targets. It never asks for a return. It uses the action model to score candidate actions.

A policy that knows its return is a critic. Train an action model that is told the return. Then, to value an action, ask the model how much it "expects" that action under each return, weigh by how common each return is, and read off the mean. No regression head is needed.
Why does normalizing p(a | s, z) p(z | s) over the bins recover p(z | s, a)?

Chapter 4

Flow matching as a likelihood

How a policy that draws actions can also tell you how likely an action is

Chapter 3 needs a number: p(a | s, z), how likely a robot action is in a given state and return bin. The fruit example had a simple bell curve. A robot action is a vector of many numbers, and the best policies for robots draw them with flow matching. Such a model gives samples easily. It does not give a likelihood easily. This chapter shows the paper's workaround.

First, how flow matching works. Say you want a model that draws actions. Start from random noise ε with the same shape as an action. Draw a straight line from the noise to a real action a. A point part of the way along the line is a noisy action. The flow time λ, a number between 0 and 1, says how far along you are. At λ = 0 it is pure noise. At λ = 1 it is the clean action.

xλ
The noisy action at flow time λ: a blend of noise and the real action.
x0
Random noise, drawn from a standard Gaussian. In GVC it is written ε.
x1
The clean data point. For GVC it is the recorded action a.
uλ
The velocity along the line: which way and how fast to move. On a straight path it is the same at every λ.

A network vθ(c, xλ, λ) learns to predict that velocity. The input c is whatever you condition on. The training loss is the squared gap: ℒFM = 𝔼 ‖vθ(c, xλ, λ) − uλ‖². To draw an action, start at noise and follow the predicted velocity in small steps. The paper uses 10 Euler steps. This is the policy in Chapter 3's best-of-N loop.

Now the clever part. If a model was trained on class c, it is good at predicting velocities for data of class c. It is worse for data of other classes. So take a fixed action, add noise to it, and check how well each class's model explains the noisy version. The class with the smallest error is the best fit. Think of a spell-checker for each language: the language whose checker flags the fewest errors is the likely language of the word. The paper calls the error the flow residual, and it adds that this is "a likelihood-like energy and not an exact normalizing-flow density".

GVC applies this with return bins as the classes and the state as extra input. The paper's Equation 8 gives the negative log-likelihood surrogate:

−log pθ(a | s, zi)
The cost of the action under bin i. A small cost means the action is likely under that return.
ε, λ
One draw of noise (ε ∼ 𝒩(0, I)) and flow time (λ ∼ 𝒰[0, 1]). The average runs over many draws.
1/d
Divides by the number of action numbers d, so the cost does not grow with action size.
gθ
The action model's velocity network. Its inputs are the state, the noisy action, the flow time and the return bin.

One design choice keeps this cheap. A shared trunk encodes (s, xλ, λ) once. Each bin then adds its own learned embedding, and a small shared head finishes the job. One forward pass returns the velocity for every bin. The bin embeddings are the only parameters that differ between bins.

Noise it, then compare the bins

Five bins each own a toy model of actions. Slide the action, noise it, and see which bin explains it best. Then turn off noise sharing and watch the ranking get less reliable.

0.64

A toy. Each bin owns a Gaussian cloud of actions with its own mean (0.1 to 0.9) and spread 0.12, and the exact flow field of that cloud stands in for the trained network. Residuals use flow times stratified in [0.1, 0.9] with antithetic noise (ε, −ε) as in Section C.1. Percentages are measured live over 400 random draws. The paper's Figure 5c reports the same trend on Tool Hang: T = 1 reaches about 80% with shared noise and about 60% without.

Work one residual by hand with the toy of the device. Take the action a = 0.64, one noise draw ε = 0.30 and flow time λ = 0.5. The noisy action is x = (1 − 0.5) × 0.30 + 0.5 × 0.64 = 0.47, and the true velocity is a − ε = 0.34. The bin whose cloud sits at 0.70 predicts a velocity of 0.469. The bin at 0.50 predicts 0.072.

bin at 0.70: (0.469 − 0.34)² = 0.0166
bin at 0.50: (0.072 − 0.34)² = 0.0716
the smaller residual wins: the 0.70 bin explains 0.64 about 4 times better

One draw is noisy. If the draw had been different, the gap could shrink or grow. This is why the paper averages over several flow times.

Two details from the device matter in the paper. First, the same noise and flow times are reused for every bin and every candidate action at a state. Compare bins on different noise and you compare noise, not models. Second, one noise draw is noisy, so scoring averages over T flow times, with antithetic pairs (a noise draw and its mirror image −ε, so their errors partly cancel). The paper uses T = 4, so a score costs 2T = 8 forward passes.

The flow error is only a surrogate, so the paper tempers it. Raising each factor to a power gives Equation 9: p(zi | s, a) ∝ pθ(a | s, zi)βret pψ(zi | s)βprior. Both exponents would be 1 for exact likelihoods. The paper tunes them: βprior = 0.1 everywhere, and βret = 40 in most settings (10 for offline cube-triple). A large βret says the action evidence should dominate the prior. Chapter 6 adds the piece that fixes the scale: the value anchor.

# a: [B, N, d]   eps: [B, N, d]   lam: [B, N, 1]   s: [B, ds]   K return bins
def flow_energy(g, s, a, eps, lam):
    x = (1 - lam) * eps + lam * a              # noisy action on the straight path
    v = g(s, x, lam)                           # [B, N, K, d]: one pass, every bin
    err = (v - (a - eps)[:, :, None, :]) ** 2  # compare with the true velocity a - eps
    return err.mean(-1)                        # [B, N, K]  = -log p(a | s, z_i), noisy
Why does GVC reuse the same noise and flow times for every return bin?

Chapter 5

Scoring and acting, tensor by tensor

The full path from a robot state to one chosen action, with every shape and every reason

The robot is in a state s. It has to move now. Here is what GVC does, in order. Keep Figure 2 of the paper in mind: sample candidates, estimate their value, select one.

Step one: propose. A separate model, the actor, draws N candidate actions. The actor is a flow policy trained by plain behavior cloning: it imitates the actions in the dataset or replay buffer. It does no reasoning about value at all. N noise seeds go in. Ten Euler steps later, N actions come out. Their shape is [N, d] for one state, or [B, N, d] for a batch of B states.

Step two: score. For each candidate, the critic computes a posterior over the K return bins. The prior pψ(z | s) is a small network on the state alone. It outputs K logits, one pass per state, shared by all N candidates. The action model gθ gives the flow residual of Chapter 4 for every bin at once. Scoring uses T = 4 flow times, each with an antithetic noise pair (ε, −ε), so 2T = 8 forward passes. Each pass returns all K bins.

Step three: combine. For bin i, the log-weight is βret × log pθ(a | s, zi) + βprior × log pψ(zi | s). A softmax over the K bins gives the posterior pn,i. The Q-value of candidate n is the mean, Q(s, an) = Σi pn,i zi.

Step four: select. Execute a* = arg maxn Q(s, an). At the next time step, throw the other candidates away and replan from scratch. On RoboMimic the actor predicts a chunk of h = 5 actions and the robot runs them open loop. The critic then scores the whole chunk, as in the QC baseline.

Pick the best of N

The curve is a toy critic: the Q-value of each possible action. Dots are candidates from the actor. The ringed dot is the pick. Change N and the number of return bins K.

8

The Q curve and the actor's spread are invented for illustration, and averages come from 300 simulated states. The counts are the paper's: T = 4 flow times with antithetic noise gives 2T = 8 passes per candidate (Section C.1), with all K bins in each pass (Section B). K = 5, 21 and 51 are values the paper uses (Table 4).

Work the scoring of two candidates by hand, with K = 5 bins at −4 to 0, βret = 40 and βprior = 0.1, and a prior of 0.20, 0.30, 0.30, 0.15, 0.05. The residuals are made up for illustration. Candidate A has residuals 0.30, 0.22, 0.12, 0.05, 0.04. Candidate B has 0.10, 0.08, 0.07, 0.12, 0.20.

logit_i = −40 × residual_i + 0.1 × ln(prior_i)
A: [−12.16, −8.92, −4.92, −2.19, −1.90] → posterior [0, 0.001, 0.027, 0.416, 0.556] → Q = −0.47
B: [−4.16, −3.32, −2.92, −4.99, −8.30] → posterior [0.138, 0.321, 0.479, 0.060, 0.002] → Q = −2.53
argmax: A wins

Look at what βret = 40 does. A residual gap of 0.1 becomes a logit gap of 4, which is a factor of about 55 in probability. The prior, with its small exponent 0.1, hardly moves anything. The action evidence dominates. That is a design choice, and the paper tunes it per domain.

Count the cost. A naive scorer would run one pass per bin and per noise draw: K × 2T passes. With K = 51 that is 408. GVC's single trunk with a bin embedding gives all bins in one pass. So the count is 2T = 8, whatever K is. The device shows both numbers.

Why best-of-N and not a gradient? A different recipe trains a one-step actor to climb the critic's gradient with respect to the action. The paper tried it (Appendix A.3, following FQL). It worked on Square after a slow start. On puzzle-4x4 it peaked near 30% and then declined, while best-of-N rose to 40%. On Tool Hang no setting worked: best-of-N reached 91% and the distilled actors stayed near zero. The paper's explanation is that best-of-N only considers actions the behavior flow could produce, so it never leaves the data's support. A gradient can push the action into regions where the critic has never been checked.

The same procedure picks the next action a′ for the TD target (Chapter 6). The online critic ranks N candidates at s′. The target critic then scores the winner. Ranking and scoring use different copies of the critic. The paper trains two critic copies, and combines them with "min" on RoboMimic and "mean" on OGBench.

# Score(s, a) for B states and N candidate actions.  K bins, T flow times.
# s: [B, ds]   a: [B, N, d]   z: [K]   returns post: [B, N, K], q: [B, N]
def score(s, a):
    log_pri = prior(s).log_softmax(-1)                  # [B, K]  p_psi(z | s)
    e = 0
    for lam, eps in strat_times(T) + antithetic_noise():    # 2T draws, SHARED
        x = (1 - lam) * eps + lam * a                   # [B, N, d]
        v = g(s, x, lam)                                # [B, N, K, d] all bins, one pass
        e = e + ((v - (a - eps)[:, :, None]) ** 2).mean(-1) / (2 * T)   # [B, N, K]
    logit = beta_ret * (-e) + beta_prior * log_pri[:, None, :]          # [B, N, K]
    post = logit.softmax(-1)
    return post, (post * z).sum(-1)                     # q: [B, N]

def act(s):
    cand = actor.sample(s, n=N)                         # [B, N, d]  10 Euler steps
    _, q = score(s, cand)
    return cand[arange(B), q.argmax(-1)]                # [B, d]  run it, then replan

Compare with actor-critic, where the actor is trained on the critic's feedback. Here the critic reads the actor's proposals. For the offline-RL side of this choice, see offline RL and IQL.

How many forward passes does GVC use to score one candidate action, and what keeps it independent of the number of return bins K?

Chapter 6

Four losses and an anchor

How one recorded step trains the actor, the action model and the return prior at the same time

Take one transition from the replay buffer: the robot was in state s, took action a, got reward r, and landed in s′. How does this one record train the critic? Think of three teachers in a room, all looking at the same record.

The first teacher builds a target. The second says, "if the target says this step leads to a good return, then the recorded action should look likely under the good-return model." The third says, "and the Q-value must land where the target says." Each teacher is one loss. A fourth loss trains the actor.

Teacher 0: the target. Pick a next action a′ with best-of-N at s′. Score it with the frozen target copies (θ̄, ψ̄), which gives a spread p̄(· | s′, a′) over bins. Shift and project as in Chapter 2 to get p̂ = Π𝒵[r + γ m Z′], and smooth it. Its mean is y = Σi p̂i zi. The paper stops gradients through all of this.

Teacher 1: the flow loss (Equation 10). Explain the recorded action under every bin, and weight each bin by how likely the target says that bin is.

ℒflow
The generative loss. It is the flow-matching error of Chapter 4, taken once per bin and added up with weights.
p̂i
The soft label: how much of the target's probability sits in bin i. A bin the target thinks is unlikely barely trains on this action.
log pθ(a | s, zi)
How well bin i's action model explains the recorded action. One fresh noise-time draw per transition.

Teacher 2: the return loss (Equation 11). Fit the return prior to the same target: ℒreturn = 𝔼 [ −Σi p̂i log pψ(zi | s) ]. This is ordinary cross-entropy, the same loss a distributional critic such as C51 uses for state values.

Weigh the losses for one step

One toy transition. The target spread is on top. Pick how the flow loss weighs the bins, then move the current Q-value to see the anchor react.

−2.20
0.50

The target p̂ is the Chapter 2 worked example. The per-bin flow errors (2.0, 1.2, 0.5, 0.9, 1.8) and the prior (0.20, 0.30, 0.30, 0.15, 0.05) are made up so the sums are easy to follow. In the paper λF = λR = 1 and λV runs from 0.05 to 0.5 by domain (Table 4).

Teacher 3: the value anchor (Equation 12). So far the critic's Q-value, the mean of the posterior, is never pushed directly toward y. The flow error is only a surrogate "with unknown scale and bin-dependent offsets". Its sums need not give the right mean. So the paper adds a plain squared error:

ℒanchor
A discriminative loss added on top of the generative ones. It "anchors" the mean to the Bellman target.
Q(s, a)
The posterior mean from Chapter 3. Gradients flow through the softmax into both the action model and the prior.
sg(y)
The target mean with its gradient stopped. The critic chases y. The target does not chase the critic.

The anchor matters a great deal. Without it, success stays below 10% on all three tasks the paper checks (Square, Tool Hang and puzzle-4x4). With any weight near the default, Square is unaffected, and Tool Hang tolerates a wide range: a weight ten times smaller scores 88% against 86% at the default.

Work the device's default by hand. The target is p̂ = [0.14, 0.46, 0.37, 0.03, 0.00], with the toy flow errors 2.0, 1.2, 0.5, 0.9 and 1.8, the toy prior 0.20, 0.30, 0.30, 0.15 and 0.05, and a current Q of −2.20.

ℒ_flow = 0.14(2.0) + 0.46(1.2) + 0.37(0.5) + 0.03(0.9) + 0(1.8) = 1.04
uniform = (2.0 + 1.2 + 0.5 + 0.9 + 1.8) / 5 = 1.28
ℒ_return = −[0.14 ln 0.20 + 0.46 ln 0.30 + 0.37 ln 0.30 + 0.03 ln 0.15] = 1.28
ℒ_anchor = (−2.20 − (−2.71))² = 0.26, times λ_V = 0.5 gives 0.13

Now see what moves. The flow loss changes only the action model and its bin embeddings. The return loss changes only the prior. The anchor changes both, because Q is built from both. The actor's loss changes only the actor. A bin with zero target mass, such as the last one here, gets no push at all from this step. That is the point of the soft label: each recorded action trains the bins that the target says could be true.

Why stop gradients on the target? The target p̂ and its mean y come from the frozen copies. If the loss could also change them, the critic could cheat by moving the target toward its own output. Stopping the gradient makes the target a fixed number for this step, just as in Chapter 1.

The actor (Equation 13) is plain behavior cloning with the same flow error: ℒactor = 𝔼 [−log pφ(a | s)]. The total (Equation 14) is a weighted sum:

λF
Weight on the generative loss. Set to 1. Chapter 9 shows that lowering it hurts.
λR
Weight on the return-prior loss. Set to 1.
λV
Weight on the anchor. Chosen per domain, from 0.05 to 0.5.

After each Adam step (learning rate 3 × 10−4, batch size 256) the target copies move toward the online ones by an exponential moving average with rate 0.005. Online, the update-to-data ratio is 1. Here is the whole step as code. Shapes are in the comments.

# batch: s [B,ds] a [B,d] r [B] s2 [B,ds] m [B]      K bins, z: [K]
a2     = best_of_n(actor, critic, s2)                            # [B, d]
p2, _  = score(critic_target, s2, a2)                            # [B, K]  frozen copy
p_hat  = smooth(project(r[:, None] + gamma * m[:, None] * z, p2, z))   # [B, K]  sg
y      = (p_hat * z).sum(-1)                                     # [B]     sg
post, q = score(critic, s, a[:, None])                           # q: [B, 1]
nll    = flow_energy(g, s, a[:, None], eps, lam)[:, 0]           # [B, K]  one draw
L_flow   = (p_hat * nll).sum(-1).mean()                          # Eq. 10
L_return = -(p_hat * prior(s).log_softmax(-1)).sum(-1).mean()    # Eq. 11
L_anchor = ((q[:, 0] - y) ** 2).mean()                           # Eq. 12
L_actor  = flow_matching_loss(actor, s, a)                       # Eq. 13
(L_actor + lF * L_flow + lR * L_return + lV * L_anchor).backward()   # Eq. 14
Why does GVC add a squared-error anchor on top of the generative losses?

Chapter 7

Online RL: what the curves show

Four robot tasks, seven rivals, and one place where the critics finally come apart

The paper asks three questions. The first is Q1: if you hold the actor and the training recipe fixed and swap in GVC as the critic, does online RL improve? Online RL means the robot learns while it acts, and each new attempt goes into the replay buffer.

The test bed is four tasks from RoboMimic, all on a 7-DoF arm with a sparse success reward. Lift: grasp an object and lift it. Can: grasp a cylinder and place it. Square: insert a square nut onto a peg, which needs precision. Tool Hang: insert a hook into a base to make a frame, then hang a wrench from it. Tool Hang is long and has several stages.

The recipe is copied from the baseline QC. There is no offline phase. Updates start after 5,000 environment steps, at one update per step. Each batch is half demonstration steps and half replay steps. The robot predicts a chunk of h = 5 actions and runs them open loop. Reward is −1 until success and 0 at success. The paper evaluates 100 episodes every 25,000 steps, with 3 seeds for the main curves.

The rivals are grouped by what they change. BFN keeps GVC's actor and best-of-N and swaps the critic for a regression head (it shows up in the offline tables, not in Figure 3). IDQL also selects by best-of-N from a cloned policy, but fits its critic by expectile regression. QC runs TD learning over action chunks. FQL, QAM and QSM keep a standard critic and train an explicit policy against it. RLPD is a standard online method that mixes in offline data. This grouping tells you how to read a gap. A gap to QC is a gap in the critic, since GVC shares QC's recipe apart from the critic.

Now the results (Section 5.1, Figure 3). On Lift, Can and Square, GVC, QC and IDQL all eventually solve the task. GVC shows "small sample-efficiency gains over all curves". Tool Hang is where the critics diverge. GVC reaches roughly 85% success within 0.5M steps. QC and RLPD reach only about 50% at 1M steps. IDQL, which has the same best-of-N selection but a regression critic, does not learn the task.

A word on how to read one of these curves. The horizontal axis is environment steps, so a curve that rises earlier uses less robot time. The vertical axis is the success rate over 100 test episodes, measured every 25,000 steps. The shaded band is one standard deviation across seeds. A seed is one full training run with its own random start. With only 3 seeds, a band is a rough guide to noise, not a tight bound.

Guess, then reveal

QC shares GVC's recipe except for the critic. Drag the slider to guess QC's Tool Hang success after 1M steps. Then press Reveal.

70%

All values are the paper’s own reading of Figure 3 on Tool Hang (Section 5.1): GVC about 85% within 0.5M steps, QC and RLPD about 50% at 1M. The paper states no number for IDQL, only that it does not learn the task, so no bar is drawn for it.

Why mix demonstrations into every batch? With a reward this sparse, a fresh robot almost never succeeds by luck, so its own replay has few useful examples. Half of each batch comes from human demonstrations (proficient-human for Tool Hang), which show what success looks like. The critic can then learn from the robot's mistakes and from the demonstrations together. This is the recipe of QC, which GVC copies, and every method in Figure 3 gets the same data, so the comparison stays fair on that axis.

Read the gap with care. It says GVC reached a higher success rate than its closest controlled rival, QC, in half the steps. It does not say GVC wins by a wide margin everywhere: on the three easier tasks the curves end together. And the learning curves are noisy. The main online runs use 3 seeds, with shading for one standard deviation, so small gaps between curves are weak evidence.

One more detail clarifies the claim. IDQL is the closest "same selection, different critic" case in Figure 3 (BFN appears only in the offline tables). The paper does not claim the regression critic can never work. It reports that, in this setup, the generative critic is the one that learned. The ablations in Chapter 9 are the evidence for why.

For the policy-optimization view of the same robot-learning problem, see RL with GRPO and DAPO for language models, where a value function is dropped altogether, and reward learning, where the score comes from a model of human preference.

On Tool Hang, why is the gap between GVC and QC the cleanest test of the critic?

Chapter 8

Offline, then online: Tables 1 and 2

What 35 offline tasks and six finetuning tasks say, and which cells say nothing at all

The paper's second question, Q2, asks if the gain holds without a live robot, and against critics that already model a spread of returns. Offline RL trains from a fixed dataset of past behavior, with no new interaction. The data was recorded by some other policy, so it is a pile of "play" with no goal in mind. The critic must learn which recorded actions were good.

The test bed is OGBench: long-horizon tasks with sparse rewards. Seven domains: scene-sparse, puzzle-3x3-sparse, puzzle-4x4, puzzle-4x5, puzzle-4x6, cube-double and cube-triple. Each domain has five tasks, so there are 35 in all. Training runs for 1M gradient steps. Rewards are relabeled to −1, except 0 where the task is complete. Each cell in Table 1 is a mean success rate over 8 seeds, from 100 evaluation episodes, at the final checkpoint.

Twelve methods share the table. BC, IQL and ReBRAC use Gaussian policies. The rest use flow policies. Four of them, C51, IQN, CODAC and Value Flows, keep a discriminative head but model the full return spread. They test whether "distributional" alone explains GVC's gain. BFN is the cleanest comparison. It has GVC's actor and best-of-N selection, with a regression critic in place of GVC's.

Table 1, one domain at a time

Pick a domain. Bars show the average success rate over its five tasks, for all twelve methods. GVC is in warm colour, BFN in teal.

The paper's Table 1 averages, in percent. Each average covers five tasks, and the full table lists means and standard deviations over 8 seeds per task. The paper bolds values within 95% of the best on each task.

Read it like an accountant. GVC reaches 92% and 48% on the first task of the two biggest puzzles, puzzle-4x5 and puzzle-4x6. BFN gets 83% and 22%. On the sparse scene tasks GVC leads BFN by 12 points on average (98 against 86), mostly on task 5, where BFN reaches 45%. On cube-triple it leads by 4 (10 against 6). On cube-double the two are nearly tied (65 against 66). Against IFQL, which trains its critic by expectile regression, GVC is ahead on six of the seven domains.

Against the best distributional rival, Value Flows, the picture is mixed. GVC is ahead on puzzle-4x4, puzzle-4x5 and puzzle-4x6 by 8 points on average. It trails on cube-double and cube-triple by 4 points on average. So being distributional is not enough to explain the gain, and GVC is not best everywhere.

How to read the ± in a cell. A cell like "92 ±4" is the mean success over 8 seeds and the standard deviation across those seeds. A gap means more when it is larger than both deviations. GVC's 92 ±4 against BFN's 83 ±4 on puzzle-4x5 task 1 is a gap of 9 with deviations of 4. GVC's 49 ±30 against Value Flows' 59 ±12 on cube-triple task 1 is a gap of 10 with a deviation of 30, which is no gap at all.

Many cells say nothing. On puzzle-4x5 and puzzle-4x6, tasks 2 to 5 sit at 0 to 2 for every method. Cube-triple is nearly as flat. The averages in those domains rest on one task. Standard deviations are large too, such as ±21 and ±30, so gaps of a few points are not firm. The table shows where methods differ, and a lot of it shows where all of them fail.

Table 2, before and after finetuning

Pale bar: after offline training. Solid bar: after 1M online steps. Pick one task or the average of all six.

The paper's Table 2 means in percent (8 seeds), offline result then final online result. The average row is computed here from the six tasks and matches the paper's text (GVC 67.1 to 98.9, BFN 45.4 to 88.7, up to rounding).

Now Table 2, the offline-to-online case. First train offline for 1M steps. Then keep training for 1M environment steps while collecting new data. GVC's average success rises from 67.1% to 98.9%. That is about 19 points above Value Flows and 26 above FQL. GVC finishes within 95% of the best method on all six tasks. BFN finishes second at 88.7%, but it starts lower, at 45.4% after offline training, and two of its eight seeds collapse on puzzle-4x4. RLPD, which learns only online, reaches 99 to 100% on three tasks and stays near zero on the other three.

These two tables answer Q2 for this benchmark and this budget. They do not show how GVC behaves on real robots, on image inputs, or against critics tuned beyond the paper's protocol. The baseline numbers for puzzle-4x4 and the cube domains were taken from the Value Flows paper. The rest were run by the authors with a tuning sweep (Appendix C.3). For the idea behind offline critics, see the lesson on offline RL and the paper walkthrough of IQL.

Why can you not conclude from Table 1 that GVC beats every distributional critic?

Chapter 9

Ablations: which part carries the gain

Turn off one piece at a time and see what the hard task says

A good result raises a fair worry. GVC differs from a regression critic in many ways at once. It has more parameters in the critic, a different loss, and a new scoring rule. Which difference does the work? An ablation answers by removing one piece and measuring again. If the score falls, that piece was doing something.

The paper's third question, Q3, asks which parts of the objective cause the gain. Its ablations run on Tool Hang, the task where critics diverge, with 8 seeds per variant. The same ablations on Square are in the appendix. There the variants barely differ: in panels A and B every one ends near 95%. An easy task cannot rank the pieces. This is why the paper puts the hard task first.

Ablation A: how much generative loss? Scale the weight λF on the flow loss from its default 1 down to 0. The ordering is monotone. Success at the end falls from about 85% at 1 to 80% at 0.1, 65% at 0.01, and 45% at 0.001. Turning the loss off gives the same 45%. More generative supervision helps in step with its weight.

Ablation B: the action, or the link to the return? This one is sharper. Keep the flow loss but weight all return bins uniformly. The action model still trains on every action. But it no longer learns which actions go with which returns. Uniform weighting recovers about 70%. The full loss gets 85%, and no flow loss gets about 50%. Do the sum: (70 − 50) / (85 − 50) is about 0.57. Roughly half of the benefit comes from generative supervision as such. The other half comes from tying it to the return.

Ablation C: how to score. Scoring estimates the flow error with T noise levels. With noise shared across candidates, T = 1 reaches about 80%, and T ≥ 2 adds a few points. Without sharing, T = 1 falls to about 60%. That is the result Chapter 4's device simulated: compare bins on common noise, or you compare the noise.

Ablation D: the anchor. From the appendix, on Tool Hang. With no anchor, success stays below 10% on all three tasks tested. With the anchor at one tenth of the default, Tool Hang ends at 88%, near the default's 86%. At ten times the default it ends at 77%, and at one hundredth it ends at 57%. The anchor is essential, but its exact weight is forgiving across a wide range.

Switch one piece off

Pick an ablation. Bars show Tool Hang success at the end of training. Dashed outlines mark values the paper gives only as a range.

Values are the paper's text readings of Figure 5 (A, B, C; Section 5.4) and Figure 7 (D; Appendix A.2), all on Tool Hang, 8 seeds. The paper says "about" for A, B and C. For C, the bar for T ≥ 2 shows 80 plus the paper's phrase "a few points" as a dashed cap. For D, "below 10%" is drawn at 10.

Look at the shape of Ablation A. Five weights, 1, 0.1, 0.01, 0.001 and 0, give five steadily falling scores. This is a dose-response pattern: turn the dial down and the score follows. A trend across five settings is harder to explain by luck than one pair of numbers. There is a catch. Changing λF also changes how big the flow loss is next to the other losses, so the ablation mixes "less generative signal" with "the other losses weigh more". The paper does not separate the two, and that is our observation, not the paper's.

What do these four results support? Ablations A and B support a clear claim: on this architecture, removing the generative supervision correlates with lower success, and the return-conditioned part carries about half of it. That is the paper's own wording, and it says "correlates". The runs change one weight at a time on one hard task. They do not prove a mechanism, such as the "extra supervision" story of Figure 1. They show the part that matters is there.

Ablation D has a lesson about tuning too. The anchor weight is forgiving on the easy task and sensitive on the hard one. On Square, any non-zero weight matches the default. On puzzle-4x4 all four non-zero settings end between 30% and 38% after 1M updates. On Tool Hang the range is wide, from 57% to 88%. If you build this yourself, start with the paper's value for a similar domain (Table 4), and tune on the hardest task you have.

One more check from the appendix concerns how the policy is extracted. A critic that scores actions can also train an explicit one-step actor by gradient ascent on Q. The paper tried it, following FQL, and found it worse here. On Tool Hang, best-of-N reached 91% while the distilled actors stayed near zero. The paper notes that best-of-N never leaves the data's support, while following the action gradient raises the risk of instability. It also says methods that use action gradients while staying in support, such as adjoint matching, "may narrow this gap in the future".

Ablation B uses uniform weights over return bins. What does its roughly 70% result, between 50% and 85%, suggest?

Chapter 10

What it costs, and what is not shown

Compute, complexity, the setups the paper never tried, and the questions it leaves open

A method that gives more also costs more. The paper is open about this in its Limitations paragraph, and the appendix gives numbers. Start with compute.

A regression critic reads (s, a) and writes one number in a single pass. GVC must evaluate the action's likelihood under every return bin, at several noise levels, and sometimes for an ensemble of two critics. The paper cuts this by predicting all bins in one pass through a lightweight head. Most of the network then learns pθ(a | s), and the head converts it to pθ(a | s, z). Measured in forward evaluations, GVC is comparable to any diffusion or flow-based critic, such as Value Flows.

Wall-clock numbers come from puzzle-4x4 on a single NVIDIA H100, each method with its reference code. GVC takes 15.6 ms per gradient update. Value Flows takes 13.5 ms and IQN takes 13.1 ms. The scalar regression critics of IQL, ReBRAC, FBRAC, IFQL and FQL take 1.8 to 3.4 ms. So GVC costs 5 to 9 times as much as a scalar critic, and about the same as other distributional critics.

Count the hours

One million gradient updates, one per environment step. Drag the slider to say how long one robot step takes. Compare critic compute with robot time.

100 ms

The millisecond figures are the paper's Figure 9 (puzzle-4x4, one H100, 3 seeds). The step time is yours to set and the hours are plain arithmetic for 1M steps at an update-to-data ratio of 1, run one after the other. In practice updates and robot time can overlap, and the paper notes that value learning is usually limited by environment interaction.

The paper makes a virtue of this. It reuses the policy's architecture for the critic in every experiment, while most strong value-learning algorithms use a critic far smaller than the policy. It points to work showing that naive scaling of critics tends to hurt. The claim is that GVC can use a large critic that matches the actor, because the critic is trained like a policy. This is an argument, and the paper does not run a scaling study to back it.

Complexity is the second cost. The paper says GVC "is factorized into two model components and requires discretizing the return space, both of which increase the implementation complexity". Table 4 shows the tuning load. Each domain has its own discount γ (0.99 or 0.995), bin count K (5 to 51), exponent βret (10 or 40), anchor weight λV (0.05 to 0.5), candidate count N (4 or 8), and ensemble rule (min or mean). The paper also scores each action dimension separately on Lift, Can, Square and the cube tasks, because it gave more accurate likelihoods there. Returns must be bounded, so the bins can be laid out from the lowest to the highest possible return.

Scope is the third. Every result is in simulation: RoboMimic manipulation and OGBench navigation, manipulation and puzzles. Every actor is a flow policy. The comparison is to published and re-run baselines, with tuning following the Value Flows protocol. Nothing is shown on a physical robot, on camera-only observations, or on language models. The first three questions the paper asked, Q1 to Q3, were about benchmarks, and the answers are about benchmarks.

Where does the idea reach beyond robots? The related-work section notes that language reward models are often fine-tuned generative models that give scalar rewards or written grades. A language model can state a value in text. A robot policy that outputs joint positions has no such channel. That gap is the motivation for GVC: score the action by its likelihood under different returns. The paper does not test GVC on text or on verification. For the language side of the same question, see reward learning and the critic-free GRPO and DAPO lesson. Take the link as a prompt for thought, not as a result of this paper.

So when is GVC worth its price? The evidence points to tasks that are long, sparse and hard, such as Tool Hang or the big puzzles, where a plain critic stalls and critic compute is small beside robot time. On easy tasks the story is flat: Lift, Can and Square are solved by GVC, QC and IDQL alike, and a cheap scalar critic is enough. That is a reading of the paper's results, not a rule it states. Test on your own task before you pay 5 to 9 times the update cost.

Open questions follow from the text, and they are our reading, not a list from the paper. Can an exact-likelihood action model keep the quality and drop the cost? Can the idea carry to discrete actions such as tokens? Can an explicit actor use the critic's action gradients and still stay in the data's support, as adjoint matching might? And does it hold on a real robot, where data is scarce and noisy? The paper does not test any of the four.

Which statement about GVC's cost does the paper support?

Chapter 11

Field Guide

The numbers, the terms, the core code, and where to go next

Generative Value Classifier was written by Alexander Swerdlow, Perry Dong and Chelsea Finn at Stanford University, and posted as arXiv:2610.22497 on 15 October 2026. Code is at github.com/alexanderswerdlow/gvc and a project page is at alexanderswerdlow.github.io/gvc. This lesson is our own walk through their paper. Errors in it are ours.

The paper in one paragraph. A critic usually maps a state and action to a return. GVC runs the other way. It trains a policy that is told the return, p(a | s, z), and a return prior p(z | s) over a few bins. Bayes' rule turns them into a spread over returns for any action, and the mean is Q(s, a). The action likelihood is read from a flow-matching error. A squared-error anchor ties the mean to the TD target. The actor only copies actions. At run time the critic picks the best of N candidates. On the longest online task GVC reaches about 85% in 0.5M steps where a matched rival reaches about 50% in 1M, and on offline and offline-to-online benchmarks it has the best average, at 5 to 9 times the update time of a scalar critic.

MeasurementValueSource
Tool Hang success: GVC / QC / RLPD / IDQL~85% at 0.5M / ~50% at 1M / ~50% at 1M / does not learn§5.1, Fig. 3
Offline average success, GVC vs BFN (same actor, regression critic): scene-sparse, puzzle-4x4, puzzle-4x6, cube-triple98 vs 86 · 41 vs 32 · 10 vs 5 · 10 vs 6Table 1
Offline average, GVC vs BFN on cube-double65 vs 66 (a tie; Value Flows 69)Table 1
Offline-to-online average, six tasks: GVC / BFN67.1 → 98.9 / 45.4 → 88.7§5.3, Table 2
Flow-loss weight λF = 1, 0.1, 0.01, 0.001, off (Tool Hang)~85, 80, 65, 45, 45§5.4, Fig. 5a
Flow loss: full / uniform over bins / none (Tool Hang)~85 / ~70 / ~50§5.4, Fig. 5b
Scoring, T = 1: shared noise / not shared (Tool Hang)~80 / ~60§5.4, Fig. 5c
Value anchor off (Square, Tool Hang, puzzle-4x4)below 10% on all threeApp. A.2
Best-of-N vs distilled one-step actor (Tool Hang)91% vs near zeroApp. A.3
Time per gradient update: GVC / Value Flows / IQN / scalar critics15.6 / 13.5 / 13.1 / 1.8 to 3.4 msApp. B, Fig. 9
Shared settings: learning rate, batch, target EMA, scoring flow times, βprior3×10−4, 256, 0.005, T = 4 on [0.1, 0.9], 0.1Table 3
Per-domain settings: K, βret, λV, NK 5 to 51, βret 10 or 40, λV 0.05 to 0.5, N 4 or 8Table 4
TermPlain meaning
Critic, Q(s, a)A model that scores an action in a state by the return it expects.
Return bin ziOne of K fixed return values. The critic spreads probability over them.
Return prior p(z | s)How likely each return is from a state, before any action is chosen.
Action likelihood p(a | s, z)How likely an action is in a state, given the return. A policy told its return.
Flow residualThe error of a flow-matching model on a noised action. A likelihood-like energy, not an exact density.
Value anchoringA squared error that ties the posterior mean to the TD target.
Best-of-NDraw N actions from the actor and run the one the critic scores highest.
BFNThe paper's controlled baseline: GVC's actor and selection, with a regression critic.

Here is the whole method as code, the shape every earlier chapter built one piece of:

for step in range(steps):
    s, a, r, s2, m = replay.sample(256)                  # [B,ds] [B,d] [B] [B,ds] [B]

    # target: pick a2 by best-of-N, score with the frozen copy, project onto the bins
    a2 = best_of_n(actor, critic, s2, N)                 # Ch. 5
    p2, _ = score(critic_ema, s2, a2)                    # [B, K]
    p_hat = smooth(project(r[:, None] + gamma * m[:, None] * z, p2, z))   # Ch. 2
    y = (p_hat * z).sum(-1)

    # four losses
    post, q = score(critic, s, a[:, None])               # Ch. 3: Bayes over bins
    nll = flow_energy(g, s, a[:, None], eps, lam)[:, 0]  # Ch. 4: [B, K]
    loss = (flow_matching_loss(actor, s, a)              # actor: behavior cloning
            + lF * (p_hat * nll).sum(-1).mean()          # generative, weighted by the target
            + lR * cross_entropy(prior(s), p_hat)        # the return prior
            + lV * ((q[:, 0] - y) ** 2).mean())          # the anchor, Ch. 6
    loss.backward(); opt.step(); ema_update(critic_ema, critic, 0.005)

def act(s):                                              # at run time
    cand = actor.sample(s, n=N)                          # [B, N, d]
    return cand[arange(B), score(critic, s, cand)[1].argmax(-1)]

Where does it sit? Against IQL and IDQL, which fit a critic by expectile regression, GVC shares the best-of-N selection and changes the critic. Against C51, IQN and Value Flows, which model a spread of returns with a discriminative head, GVC models the action instead. Against the Decision Transformer, which also conditions on a return, GVC learns from Bellman targets and scores actions rather than asking for a return. Against diffusion classifiers, which classify an image by the denoising error under each label, GVC uses the same trick with returns as labels and actions as the thing classified.

Keep going on this site. For the critic idea, read Q-learning, actor-critic, and offline RL. For the Bayes step, read Bayes' rule. For the flow, read flow matching and diffusion policy. For scoring on the language side, read reward learning and GRPO and DAPO.

Ask what the action says about the return. A critic that predicts a return from an action sees one number per step. A critic that asks how likely the action is under each return sees the whole action. Bayes' rule joins the two views, and a squared-error anchor keeps the answer on the TD target.
Go back to the hero and train all four critics again. Notice now that GVC's output is a spread over five bins per candidate, and that spread came from asking how likely each action was under each return.
Generative Value Classifier
Read the paper · Code · Project page · Back to Veanors