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).

flowregression
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

QuestionTestResult here
Is it the sampler?Vary integration steps; start from zero noiseNo. More steps raise the error; zero noise lowers it
Is it sampling spread?Average K draws; measure spread between drawsYes, the largest part
Is it capacity or training time?Error on training frames; one-step recovery at noise level 1; a wider model; a longer runYes, both. Width 512 and 50,000 steps each lower the error
Is it too little data?Gap between training and held-out errorYes for both models (about 5–6 mrad)
Is the width used up?Unused units and directions in use per layerNo layer is full, yet the wider model is better: this check is not sufficient
Is an output badly scaled?Size of each target next to the unit-size noise it is mixed withYes for force: a typical force change is about 0.03 units, the noise is 1

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.