SharpaDex · three tasks · seed 0 · held-out frames
Why the flow policy trails the regression policy
Both models have the same inputs, size, data and 25,000 training steps. The flow model's action error is about 3.8 mrad higher. Most of that is the price of drawing one random sample; the rest is a weaker fit, and its force output is broken by a scaling choice. Direct tests at the bottom: a wider flow model closes most of the gap, twice the steps closes part of it, and rescaling the force channels fixes the force output.
How close are the predictions to the real data?
"Explained" compares the model's error with doing nothing: 100% is a perfect prediction, 0% is no better than holding the current joints (or assuming the force stays as it is), and a negative value is worse than that.
Where the action gap comes from
Action error on held-out frames, mean over the 16 predicted steps and 58 joints (mrad).
- Sampling, about 3 of the 3.8 mrad. A flow model returns one random draw from the actions it considers plausible; draws differ from each other by mrad. Averaging 16 draws, or starting from zero noise, removes most of the gap.
- More integration steps make it worse, not better. So the 10-step sampler is not the problem; finer integration only reproduces the spread more faithfully.
- A weaker fit, about 1 mrad. Even without sampling noise the flow model is behind, on training frames too (see below).
Flow error against integration steps
Flow error against starting-noise size
Under-fitting or over-fitting?
The same error on frames the model was trained on. Both models are far better on training frames, so both are limited by the amount of data. The flow model also fits the training frames worse than regression does, so it has learned less in the same number of steps.
flowregressiontraining frames
Flow: chunk recovered in one step from each noise level (mrad)
At noise level 1 the input is pure noise, so this is the flow network used as a plain regressor. It should match the regression model there, and it does not.
held-outtraining
Action-layer activations: is the network too narrow?
For each layer on the path from the latent to the joint commands: how many independent directions carry 99% of the activation variance, as a share of the layer's width. A layer near 100% is full and would benefit from more width. No layer has unused units.
flow velocity networkregression
The flow network uses more directions than the regression network in every 256-wide layer (it must also represent the noisy chunk and the noise level), but none is full. Read alone, this suggests width is not the limit. The direct test below says otherwise: the 512-wide flow model is clearly better. So this activation measure did not detect the shortage, and a wider run is the reliable test.
How to diagnose it
Why the force output fails: the flow mixes its targets with unit-size noise. Joint changes are scaled to about unit size, but fingertip forces are divided by 10 N, so a 0.3 N change is 0.03 units and the leftover noise swamps it. With zero starting noise the flow's force error was 0.29 N instead of 0.5 N.
Direct tests
One seed each, same data. Action error in mrad (as sampled / zero starting noise), force error in N next to "force stays as it is". Regression was not retrained at width 512 or 50,000 steps, so these runs show what limits the flow model, not which head is better at equal size.