| K | error left | ‖f‖, 16x7 chunk | ‖f‖, 50x7 chunk | |
|---|---|---|---|---|
| 0 | 5 | 0.238 | 15.84 | 28.00 |
| 1 | 10 | 0.150 | 9.95 | 17.58 |
| 2 | 30 | 0.045 | 3.01 | 5.32 |
| 3 | 100 | 0.002 | 0.12 | 0.22 |
Reproduction: Generative Control as Optimization (GeCO), OOD detection on a VLA
Chapter question. GeCO (Zhang et al. 2026) claims that if a flow-matching policy is trained without a time input, the size of its velocity field at the end of sampling is an almost free out-of-distribution (OOD) alarm. On LIBERO (Liu et al., n.d.) it reports an AUROC of 0.93 against 0.53 for a flow-matching-loss baseline. Does that claim survive on a small VLA, and if not, why not?
Not reproduced on SmolVLA as specified; partly reproduced once the sampler is run to convergence.
- With the paper’s settings (at most 10 optimisation steps per planning call), GeCO’s score is at chance on LIBERO-Goal → LIBERO-Spatial: AUROC ≈ 0.46 in closed loop, while the baseline reaches ≈ 0.79 (Section 4).
- The field did learn GeCO’s central property: it is small at expert actions and larger on unseen scenes. The problem is that 10 steps never reach it: the residual is still ~30 when the paper’s stopping threshold is ~0.7. Run longer, the same trained model improves steadily in closed loop: AUROC 0.46 → 0.66 → 0.75 at 10, 30 and 100 steps (Section 6), and ≈ 0.85 at 100 steps on dataset frames (Section 5).
- Even then, GeCO does not beat the baseline on SmolVLA (0.75 against 0.79 in closed loop, intervals overlapping), and 100 steps cost task success (Goal 73% → 55%). The paper’s large gap comes from a weak baseline that SmolVLA does not share.
The paper’s authors have not released code (“Code soon” on the project page, December 2026), so everything here is a reimplementation from the paper’s text, and every place where we had to choose is listed in Section 3.
You will learn to
- State GeCO’s training target and update rule, and say why expert actions become zeros of its field.
- Compute, for a given step-size schedule, how much of the starting error an ideal GeCO field removes in K steps.
- Read an OOD-detection result as two models plus one protocol, and find which of the three a claim rests on.
- Separate “the method does not work” from “the method was not run as it needs to be” with cheap offline tests.
Prerequisites: flow matching, action chunks, SmolVLA (a VLM plus a flow-matching action expert), and LIBERO.
1. The claim
GeCO (“Generative Control as Optimization: Time Unconditional Flow Matching for Adaptive and Robust Robotic Control”, Zhang, Huang, Liu, Zhu, Mou and Zhao, arXiv 2603.17834, 2026 (Zhang et al. 2026)) makes two claims:
- Adaptive computation. Treat action generation as optimisation: stop as soon as the field is small. Easy states need fewer network evaluations than hard ones (their Table 1: LIBERO success 92.4% with at most 10 steps and 8.7 evaluations on average, against 90.0% for 20 fixed rectified-flow steps).
- Intrinsic OOD detection. The norm of the field where sampling stops is a per-planning-call OOD score with no extra network, ensemble or repeated sampling. This chapter tests that claim, the paper’s Table 5:
| Paper, Table 5 (train LIBERO-Goal, OOD = LIBERO-Spatial) | AUROC | OOD flagged (%) | ID kept (%) | Time saved (%) |
|---|---|---|---|---|
| Baseline: FM loss at t = 1, moving average | 0.53 | 14.4 | 27.8 | 10.3 |
| GeCO, moving average | 0.93 | 82.4 | 89.7 | 42.4 |
| GeCO, leaky bucket | 0.93 | 84.0 | 90.0 | 44.3 |
The baseline follows Diff-DAgger (Lee et al. 2024), which scores a diffusion policy’s uncertainty by its training loss on the action it just produced. The paper’s caption swaps the usual TPR/TNR names; we report “OOD flagged” and “ID kept” instead.
2. The method from first principles
2.1 Standard flow matching needs to know the time
A flow-matching policy (Lipman et al. 2023; Liu et al. 2023) learns a velocity field that carries noise to an action chunk. In GeCO’s convention, a training point mixes an expert chunk \(a\) with noise \(\varepsilon \sim \mathcal N(0, I)\):
\[x_\gamma = \gamma\, a + (1-\gamma)\,\varepsilon, \qquad \gamma \sim U(0,1),\]
so \(\gamma = 0\) is pure noise and \(\gamma = 1\) is the expert chunk. A standard model receives \(\gamma\) as an input and regresses \(\varepsilon - a\), a target that is the same size everywhere along the path: at \(\gamma = 0.99\), one step from the data, it is just as large as at the start. A sampler therefore needs the clock to know when to stop.
2.2 GeCO removes the clock and makes the target vanish at the data
GeCO drops \(\gamma\) from the input and scales the target by a schedule \(c(\gamma)\) that reaches zero at the data (Eqs. 2-3 and 8 of the paper; \(\lambda = 4\), \(\alpha_0 = 0.1\)):
\[g^\*(a, \varepsilon, \gamma) = (\varepsilon - a)\, c(\gamma), \qquad c(\gamma) = \begin{cases}\lambda & \gamma \le \alpha_0\\ \lambda\,\dfrac{1-\gamma}{1-\alpha_0} & \gamma > \alpha_0\end{cases}, \qquad \mathcal L(\theta) = \mathbb E\,\lVert f_\theta(x_\gamma, s) - g^\*\rVert^2 .\]
Because \(c(1) = 0\), the expert chunk is a zero of the target field: “ground-truth action sequences [become] natural stationary equilibrium points of the learned field” (Sec. 3.2). Inference is then gradient-descent-like optimisation from noise (Eq. 4), stopped when the field is small (Eq. 5):
\[a^{(k+1)} = a^{(k)} - \eta_k\, f_\theta(a^{(k)}, s), \qquad \text{stop when } \lVert f_\theta(a^{(k)}, s)\rVert_2 < \tau \text{ or } k = K_{\max}.\]
The OOD score of a planning call is the norm where it stopped, \(\lVert f_\theta(a^{(K)}, s)\rVert_2\) (Eq. 6). The intuition: for a familiar state the optimisation finds a zero; for an unfamiliar one there is no clean zero, so the residual stays large.
2.3 Worked example: how fast can an ideal GeCO field converge?
Take the best case: the network knows \(\gamma\) and \(a\) exactly and outputs the target. Since \(x_\gamma - a = (1-\gamma)(\varepsilon - a)\), for \(\gamma > \alpha_0\)
\[f(x) = c(\gamma)\,\frac{x - a}{1-\gamma} = \frac{\lambda}{1-\alpha_0}\,(x-a) \approx 4.44\,(x - a),\]
a linear pull toward the expert chunk at a constant rate. Each step multiplies the remaining error \(x - a\) by \(\lvert 1 - 4.44\,\eta_k\rvert\), so the step sizes alone decide how much error is left after \(K\) steps. The paper’s schedule (App. A.3) is \(\eta_1 = 0.1\), \(\eta_{2..4} = 0.05\), \(\eta_{5..16} = 0.02\), \(\eta_{17..30} = 0.01\); we extend it at 0.01 beyond 30 steps.
Two things follow before any experiment. First, after 10 steps an ideal field still has about 15% of the starting error left, and its norm (about 10) is some 25 times the paper’s stopping threshold \(\tau = 0.4\), even on the paper’s 16-step chunk. A real network does worse than ideal: it must infer \(\gamma\) from \(x\). Second, while the error is mostly leftover noise, the residual measures the noise draw more than the state, so it cannot be a good OOD score yet.
The paper’s Table 1 reports 8.7 evaluations on average at \(K_{\max} = 10\), so its models do reach \(\tau\) before 10 steps. With the schedule as written, the arithmetic above says that should not happen. Its step sizes, action normalisation or threshold in practice must differ from the text, and without code we cannot tell which.
3. What we built
Both models start from lerobot/smolvla_base (Shukor et al. 2025) and are fine-tuned for 10,000 steps (batch 16) on all 428 LIBERO-Goal episodes of HuggingFaceVLA/libero. G0 is standard SmolVLA scored with the baseline’s flow-matching loss at \(t = 1\); G1 is trained with GeCO’s loss and a fixed time input \(t = 0\), which is the paper’s own recipe for VLAs (Sec. 4.2, used there on π0 (Black et al., n.d.) and π0.5 (Physical Intelligence et al. 2025)). Each is evaluated in the LIBERO simulator for 10 episodes per task on Goal (ID) and Spatial (OOD), and every planning call’s score is logged. Code: experiments/lerobot/variants.py (patch_geco, patch_fm_score), run.py (runs G0, G1), src/behavior_course/metrics/geco.py (metrics).
The paper’s OOD experiment uses a different model from its VLA experiments. Its abstract pairs two claims, that the final field norm is “a robust out-of-distribution (OOD) detector” and that GeCO shows “seamless scaling to pi0-series Vision-Language-Action (VLA) models” as a “plug-and-play replacement for standard flow-matching heads”, but its only OOD experiment (Table 5) uses a non-VLA policy; π0 and π0.5 are evaluated for task success only. This reproduction therefore tests whether the OOD claim carries over to a VLA, which the paper implies but does not test.
Both models are frozen pretrained encoders plus a small trained action generator. They differ in how vision and language are combined (separate encoders read by cross-attention, against one VLM that reads image and text jointly) and in whether the action generator starts from robot pretraining. Where we differ, and why:
| Paper (Table 5 / App. A-D) | Ours | Why | |
|---|---|---|---|
| Model | DiT-style 1D transformer policy (rectified flow; 12 layers, width 384, 6 heads; roughly 20-30M parameters by our estimate, not stated), conditioned by cross-attention on frozen DINOv2-base (vision, two RGB views) and frozen T5-base (language) embeddings; not a VLA (App. A.2, A.4) | SmolVLA, 450M: SmolVLM2 (SigLIP vision + SmolLM2, 16 layers, frozen) reads images and instruction jointly; a flow-matching action expert (100M, the only trained part) attends to its features | the hackathon target is VLAs; the paper’s own VLA recipe (fixed \(t\)) applies directly; the paper’s model is not released |
| Initialisation | encoders pretrained; policy not stated (most likely from scratch) | action expert pretrained on community robot data (lerobot/smolvla_base), then fine-tuned |
same starting point for G0 and G1 |
| Training | not stated for this policy (LIBERO policies: 30k steps, App. B) | 10k steps, batch 16, about 3 epochs | Modal credit budget |
| Action chunk | 16 steps, first 8 executed | 50 steps, first 10 executed | SmolVLA’s native chunk |
| Stopping threshold \(\tau\) | 0.4 | 0.71 = 0.4 x sqrt(350/112) | the norm is over the whole chunk, so it grows like sqrt(dims) |
| \(K_{\max}\) for OOD scoring | 10 (Sec. 4.3) | 10; also 30 and 100 as diagnostics | matches the paper, then tests it |
| ID / OOD episodes | 500 / 500 | 100 / 100 | 10 per task, as in our other LIBERO runs |
| Calls scored per episode | J = 20, random | J = 20, random (all if fewer) | as paper |
| Filters | moving average (w = 5, 0.6); leaky bucket (0.5, 0, 0.7) | same, thresholds x sqrt(350/112); also thresholds calibrated on ID | the paper’s absolute thresholds belong to its score scale |
| Seeds | not stated | one per model | budget; a limitation |
The two deviations that matter most are the model (it changes both the baseline and GeCO’s field) and the action chunk (it changes the score’s scale). Everything else follows the paper.
4. Results in the simulator
| model | AUROC | OOD flagged at 90% ID kept | ID / OOD calls | success Goal (ID) | success Spatial (OOD) | |
|---|---|---|---|---|---|---|
| 0 | Baseline (G0): FM loss, t = 1 | 0.787 [0.752, 0.821] | 27.3% | 1291 / 2000 | 84% | 0% |
| 1 | GeCO (G1): residual norm, K_max = 10 | 0.455 [0.388, 0.524] | 0.0% | 1363 / 2000 | 73% | 0% |
The result is the paper’s ordering reversed. The baseline separates the suites well; GeCO’s score is no better than chance. Neither policy solves any Spatial episode, which is expected: Spatial’s layouts and instructions were never seen. GeCO’s policy is also weaker on its own training suite (73% against 84%).
The paper’s absolute filter thresholds, rescaled to our chunk size, stop every episode, ID ones included: our residuals are around 30, far above any threshold near 1. Thresholds calibrated on our own ID calls flag nothing. Both say the same thing: at 10 steps the residual has not converged anywhere.
5. Diagnosis: is it GeCO, or how we ran it?
Three cheap tests need no retraining. experiments/lerobot/geco_diagnose.py takes 400 random frames from each suite’s demonstrations, draws the same noise for both models, runs GeCO’s optimisation for 100 steps without early stopping, and records after every step:
- the residual over the whole chunk and over its first 16 actions (the paper’s horizon);
- the residual divided by the starting noise norm (removing the noise draw);
- the field evaluated at the expert chunk itself (\(\lVert f(a^\*)\rVert\), GeCO’s premise);
- the baseline’s FM-loss score on the same frames.
| score | AUROC | ID median | OOD median | |
|---|---|---|---|---|
| 0 | geco ‖f‖ after K=1 | 0.113 | 67.13 | 58.78 |
| 1 | geco ‖f‖ first 16, K=1 | 0.244 | 36.42 | 32.33 |
| 2 | geco ‖f‖/‖ε‖, K=1 | 0.118 | 3.56 | 3.15 |
| 3 | geco ‖f‖ after K=10 | 0.517 | 30.49 | 33.07 |
| 4 | geco ‖f‖ first 16, K=10 | 0.438 | 13.67 | 13.43 |
| 5 | geco ‖f‖/‖ε‖, K=10 | 0.520 | 1.64 | 1.77 |
| 6 | geco ‖f‖ after K=30 | 0.808 | 23.95 | 34.85 |
| 7 | geco ‖f‖ first 16, K=30 | 0.644 | 8.64 | 11.66 |
| 8 | geco ‖f‖/‖ε‖, K=30 | 0.809 | 1.26 | 1.86 |
| 9 | geco ‖f‖ after K=100 | 0.845 | 12.00 | 18.77 |
| 10 | geco ‖f‖ first 16, K=100 | 0.822 | 4.77 | 8.60 |
| 11 | geco ‖f‖/‖ε‖, K=100 | 0.845 | 0.64 | 1.01 |
| 12 | geco ‖f(a*)‖ at expert chunk | 0.817 | 3.86 | 5.57 |
| 13 | geco ‖a_K - a*‖ (K=k_max) | 0.916 | 23.24 | 34.05 |
| 14 | geco ‖ε‖ (control: AUROC should be ~0.5) | 0.465 | 18.71 | 18.60 |
| 15 | baseline FM loss t=1 | 0.865 | 48.51 | 84.55 |
| 16 | baseline FM loss t=0.5 | 0.825 | 114.57 | 161.48 |
What the diagnosis shows:
- The field learned GeCO’s premise. At the expert chunk the field is small (median ≈ 4 against ≈ 100 at the starting noise), and it is larger on unseen Spatial frames than on Goal frames (AUROC ≈ 0.82).
- Ten steps are far too few. The residual is still ≈ 30 at step 10, 40 times the threshold. Its AUROC at that point, ≈ 0.52, matches the closed-loop result: the score measures leftover noise. After 1 step it is even inverted (≈ 0.11).
- Run longer, GeCO works. ID frames keep converging while OOD frames stall, so the AUROC rises to ≈ 0.81 at 30 steps and ≈ 0.85 at 100. Normalising by the noise norm changes little; scoring only the first 16 actions is slightly worse.
- It still does not beat the baseline. On the same frames the FM-loss score reaches ≈ 0.87. SmolVLA reads the scene and the instruction through a pretrained VLM, and LIBERO-Spatial’s layouts and wording are new, so even the plain training loss jumps on them (median ≈ 49 ID against ≈ 85 OOD).
6. Closed loop with more steps
The diagnosis used demonstration frames. The test that matters is the paper’s protocol with the sampler run longer: the same trained G1, evaluated in the simulator with \(K_{\max}\) = 30 and 100 (no retraining; the stopping threshold is never reached, so every call runs all \(K_{\max}\) steps).
| K_max | AUROC | OOD flagged at 90% ID kept | success Goal | success Spatial | |
|---|---|---|---|---|---|
| 0 | 10 | 0.455 [0.388, 0.524] | 0.0% | 73% | 0% |
| 1 | 30 | 0.657 [0.597, 0.719] | 2.9% | 74% | 0% |
| 2 | 100 | 0.752 [0.714, 0.787] | 14.3% | 55% | 0% |
The closed loop confirms the diagnosis. Each increase in the step budget moves the AUROC up, and the 10-step and 100-step intervals do not overlap: the paper’s setting, not the trained field, is what made the score useless. The gains are smaller than offline (0.75 against 0.85 at 100 steps), because in closed loop the ID frames are new states, and the policy also drifts into states no demonstration covers.
Two costs come with more steps. The best closed-loop GeCO score, 0.75 [0.71, 0.79], still sits below the baseline’s 0.79 [0.75, 0.82] at no extra cost to the baseline. And at 100 steps the policy itself gets worse: Goal success falls from 73% to 55% (100 episodes each). With step sizes summing to 1.33, the long tail of 0.01 steps keeps moving the chunk after it is good enough, so the actions that score best for OOD detection are not the ones that act best.
7. Discussion
Why the paper’s gap does not appear. An OOD result is two models and one protocol. Our protocol follows the paper; both models differ. The baseline’s 0.53 in the paper belongs to its small rectified-flow transformer, whose training loss barely moves on Spatial. SmolVLA’s does move, so the bar GeCO has to clear is much higher. That is a finding about the claim’s scope: “GeCO beats the FM-loss baseline” is not a property of the method alone.
Why GeCO fails at the paper’s setting. On our model, 10 steps of the paper’s schedule cannot converge, and the ideal-field arithmetic of Section 2.3 says they could not on the paper’s chunk either. GeCO’s OOD score is only meaningful after convergence, so the number of steps is part of the method, not a tuning detail. The paper’s Table 1 reports early stops within 10 steps, so its practical schedule or scaling likely differs from the text.
What we would change with more budget. Several seeds per model; the paper’s 16-step chunk; a from-scratch transformer as in the paper; and 500 episodes per suite to match its sample size.
Threats to validity
- One seed per model. The AUROC intervals cover call-level noise across episodes, not training noise.
- Training-frame caveat (Section 5). The offline ID frames were seen in training; the closed-loop evaluation does not have this problem.
- Under-specified details. The OOD model, its training length, and the score’s exact normalisation are only partly described; parts of the appendix we relied on (A.3, A.4, D) were read once and are cited by section.
- Threshold rescaling by sqrt(dims) is our assumption; the ID-calibrated filters avoid it.
8. Reproduce it
# train both models and evaluate on Goal (ID) and Spatial (OOD); Modal, about 1 h training + 1 h eval per model
envs/modal/bin/modal run --detach experiments/lerobot/modal/app.py::full --runs G0,G1
# closed-loop GeCO with more sampler steps, on the trained G1 folder
envs/modal/bin/modal run --detach experiments/lerobot/modal/app.py::geco_kmax --folder <G1 folder> --kmaxes 30,100
# offline diagnosis on dataset frames (~20 min on an L4)
envs/modal/bin/modal run experiments/lerobot/modal/app.py::diagnose --frames 400 --k-max 100
# fetch results and print the Table 5 comparison
envs/modal/bin/modal volume get behavior-results phase2/<folder> experiments/results/phase2/
.venv/bin/python experiments/lerobot/geco_report.pyThe same commands run locally with python3 experiments/lerobot/run.py G0 / G1 on a 16 GB GPU.
Summary
- GeCO trains a flow field without a time input whose zeros are the expert actions, samples by optimisation, and uses the final field norm as an OOD score.
- On SmolVLA, with the paper’s 10 steps, that score is at chance; the paper’s 0.93 does not reproduce.
- The learned field has the property GeCO relies on; the iteration just never gets there in 10 steps. Run longer, the score separates ID from OOD: closed-loop AUROC 0.46 → 0.66 → 0.75 at 10, 30, 100 steps (≈ 0.85 offline).
- A pretrained VLA’s plain flow-matching loss is already a strong OOD score (≈ 0.79 closed loop, ≈ 0.87 offline), so GeCO’s advantage over the baseline does not carry over, and 100 steps lower task success (73% → 55%).
- The step budget is part of the method: an OOD score read before convergence measures the noise, not the state.
Sources
- Zhang et al., Generative Control as Optimization: Time Unconditional Flow Matching for Adaptive and Robust Robotic Control, arXiv 2603.17834 (2026) (Zhang et al. 2026). Method (Sec. 3, Eqs. 1-7), VLA recipe (Sec. 4.2), OOD experiment and Table 5 (Sec. 4.3), schedules and constants (App. A.3-A.4, D). Project page: https://hrh6666.github.io/GeCO/ (code listed as “soon”).
- Lee, Kang and Kuo, Diff-DAgger (Lee et al. 2024): the loss-based uncertainty score used as the baseline.
- Shukor et al., SmolVLA (Shukor et al. 2025): the model both runs fine-tune.
- Liu et al., LIBERO (Liu et al., n.d.): the benchmark suites.
- Lipman et al., Flow Matching (Lipman et al. 2023) and Liu et al., Rectified Flow (Liu et al. 2023): the time-conditioned baseline GeCO modifies (see the flow-matching chapter of the companion book).