Visuals: figures, annotated rollout examples, and a gallery of all 200 rollouts of the final policy
2ade36f verified |
Download README.md from herooooooooo/repro-generative-control-as-optimization: direct link, hf CLI and curl.
- Browser
- Download file 9.25 kB
-
https://huggingface.co/spaces/herooooooooo/repro-generative-control-as-optimization/resolve/main/README.md
- Command line
-
hf download hf://spaces/herooooooooo/repro-generative-control-as-optimization/README.md
-
curl -L -o README.md https://huggingface.co/spaces/herooooooooo/repro-generative-control-as-optimization/resolve/main/README.md
9.25 kB
| title: "Reproduction: GeCO OOD detection on a VLA" | |
| emoji: π€ | |
| colorFrom: blue | |
| colorTo: gray | |
| sdk: static | |
| app_file: index.html | |
| pinned: false | |
| license: apache-2.0 | |
| short_description: GeCO OOD claim (arXiv 2603.17834) tested on SmolVLA | |
| # Reproduction: Generative Control as Optimization (GeCO), Table 5 | |
| **Paper:** Zhang, Huang, Liu, Zhu, Mou, Zhao. *Generative Control as Optimization: Time Unconditional Flow Matching | |
| for Adaptive and Robust Robotic Control.* arXiv [2603.17834](https://arxiv.org/abs/2603.17834), 2026. The authors' | |
| code is not released ("Code soon" on the [project page](https://hrh6666.github.io/GeCO/); the GitHub repository | |
| holds only the webpage), so this is a reimplementation from the paper's text. | |
| **Claim tested (Table 5):** a policy trained on LIBERO-Goal with GeCO's time-unconditional flow matching flags | |
| LIBERO-Spatial planning calls as out-of-distribution from the final field norm alone: **AUROC 0.93**, against **0.53** | |
| for a flow-matching-loss baseline (Diff-DAgger style). The paper pairs this OOD claim with "seamless scaling to | |
| pi0-series VLA models" as a "plug-and-play replacement for standard flow-matching heads", but its OOD experiment uses | |
| a non-VLA policy (a DiT-style transformer on frozen DINOv2 + T5 features). We test the claim on a VLA, SmolVLA, with | |
| the paper's own VLA recipe (fixed time input t = 0). | |
| ## Verdict: verified on a VLA, with a smaller margin than the paper | |
| **On SmolVLA, GeCO's final residual is a working OOD detector and beats the flow-matching-loss baseline**: closed-loop | |
| AUROC **0.83 [0.79, 0.87]** against **0.79 [0.75, 0.82]**, and at the same 90% ID retention it flags 44% of OOD | |
| planning calls against 27%. This holds once SmolVLA's padded action dimensions are handled and with the paper's VLA | |
| step sizes (App. E), which our tuning on in-distribution data alone also selects. The paper's own model is not | |
| released, so its exact 0.93 vs 0.53 was not tested. On a VLA the baseline is much stronger (its pretrained | |
| vision-language backbone already reacts to unseen scenes and instructions), so the margin is about 0.05 rather than | |
| 0.40 and the two intervals overlap. Offline, on demonstration frames, GeCO reaches 0.93 against 0.87. | |
| **See it:** the [report](index.html) has the figures and annotated example rollouts (successes, failures, caught and | |
| missed OOD episodes); the [rollout gallery](episodes.html) shows all 200 episodes of the final policy. | |
| | Closed loop, LIBERO-Goal (ID) vs LIBERO-Spatial (OOD), K_max = 10 | AUROC [95% CI] | equal-weight AUROC | OOD flagged at 90% ID kept | Goal success | | |
| |---|---|---|---|---| | |
| | Paper: GeCO | 0.93 | β | 82.4-84.0% | β | | |
| | Paper: baseline (FM loss, t = 1) | 0.53 | β | 14.4% (at 27.8% ID kept) | β | | |
| | **Ours: GeCO (G2: padded dims at 0, App. E step sizes)** | **0.832 [0.790, 0.867]** | 0.857 | **44.0%** | 82% | | |
| | **Ours: baseline (G0: FM loss, t = 1)** | **0.787 [0.754, 0.822]** | 0.813 | 27.3% | 84% | | |
| | Ours: GeCO, G1 (padding leaks), App. E step sizes | 0.798 [0.765, 0.841] | 0.832 | 26.2% | 59% | | |
| | Ours: GeCO, G2, App. A.3 step sizes | 0.440 [0.402, 0.490] | 0.466 | 5.5% | 79% | | |
| | Ours: GeCO, G1, App. A.3 step sizes (first run) | 0.455 [0.390, 0.525] | 0.505 | 0.0% | 73% | | |
| | Ours: GeCO, G1, App. A.3, K_max 30 / 100 | 0.657 / 0.752 | 0.715 / 0.757 | 2.9% / 14.3% | 74% / 55% | | |
| AUROC: 20 planning calls sampled per episode as in the paper (all calls when fewer), 95% interval from a bootstrap | |
| over episodes (2,000 resamples, the subsample redrawn each time); equal-weight AUROC gives every episode the same | |
| weight. 100 ID and 100 OOD episodes per row. Neither policy solves any Spatial episode (expected: unseen layouts and | |
| instructions). The paper's absolute filter thresholds (App. D) flag every episode in every run: our residuals live on | |
| a different scale (50 x 7 chunk), so Time Saved is not comparable and not claimed. | |
| ## How we got there: two problems, found by an independent review | |
| Our first run reported AUROC 0.455 and the verdict "falsified". An independent review of this Space by another agent | |
| (Lor), run in its own environment, re-derived every number and pointed at two causes. We checked both: | |
| 1. **Step sizes (the main one).** The paper never states the step sizes for Table 5. We had used App. A.3's general | |
| schedule (0.1, then 0.05, then 0.02); App. E's VLA schedule starts at 0.25 and decays to 0.02. With A.3's small | |
| steps the optimisation is nowhere near converged after 10 steps, and the residual mostly measures the random | |
| starting noise (AUROC β 0.45 in both G1 and G2). With App. E's it converges and the score works (0.80-0.83). | |
| 2. **SmolVLA's padded action dimensions.** SmolVLA pads actions from 7 to 32 dimensions and trains only the first 7. | |
| In G1 the 25 padded dimensions of the noisy input carried (1-Ξ³)Ξ΅, a clean read-out of the noise level for a model | |
| that is meant to infer it, and inference moved them with untrained outputs. G2 holds them at 0 in training and at | |
| every step: the residual after 10 steps drops from β 16.5 to β 2.8 on ID frames, the field at the expert chunk | |
| separates the suites (AUROC 0.96 vs 0.82), and task success recovers (59% β 82%). | |
| **Choosing the step sizes without peeking.** We swept 16 schedules on G2 offline (`results/G2_*/ | |
| geco_diagnose_schede_sweep.json`) and picked the one that brings the optimised chunk closest to the expert's on | |
| **in-distribution frames only**. It selected App. E's schedule itself (distance 10.02; next 10.05). Its OOD AUROC was | |
| read only afterwards. Any schedule whose early steps are about 0.1 or larger scores 0.87-0.94 offline; App. A.3's is | |
| the outlier (0.49). Choosing by the OOD column would have inflated the result. | |
| ## What is different from the paper (scale and setup) | |
| | | Paper | Ours | | |
| |---|---|---| | |
| | Model | DiT-style 1D transformer policy (12 layers, width 384) on frozen DINOv2-base + T5-base features; not a VLA | SmolVLA (450M; SmolVLM2 frozen, 100M flow-matching action expert trained), from `lerobot/smolvla_base` | | |
| | Training | not stated for this policy (LIBERO policies: 30k steps) | **10k steps**, batch 16 (β 3 epochs of LIBERO-Goal), one seed per model | | |
| | Action chunk | 16 (8 executed) | 50 (10 executed) | | |
| | Episodes per suite | 500 | **100** (10 per task) | | |
| | Step sizes Ξ·_k | **not stated for Table 5**. App. A.3 (general sampler): 0.1 / 0.05 / 0.02 / 0.01, K_max 30, Ο 0.4. App. E (real-robot VLA): 0.25 decaying to 0.02 (law not given), K_max 10, Ο 1.5 | App. E with a geometric decay over 10 steps (selected by our ID-only sweep); A.3 also reported | | |
| | K_max for OOD | 10 (Sec. 4.3) | 10; 30 and 100 as diagnostics | | |
| | Ξ±β (onset of the target decay) | **conflicting**: App. A.4 says 0.1; Sec. 4.4 / Table 6 call Ξ± = 0.8 best | 0.1 (App. A.4) | | |
| | Padded action dims | none | SmolVLA pads 7 β 32; G2 holds the padded dims at 0 (train and inference) | | |
| | Online filters | moving average / leaky bucket over the residuals of the refinement steps inside one planning call (App. D) | implemented as in App. D (runs from G2 record every step); the absolute thresholds do not transfer to our scale | | |
| ## Contents | |
| | Path | What | | |
| |---|---| | |
| | `index.html` | the full report: method from first principles, results, the review and both fixes, figures (AUROC forest plot, ROC curves, score distributions, step-by-step residuals, step-size sweep, per-task success) and a rollout gallery with videos | | |
| | `episodes.html` | **every rollout** of the final GeCO policy (100 ID + 100 OOD): video, task, outcome, and GeCO's score at every planning call, with filters | | |
| | `media/` | the rollout videos behind `episodes.html` | | |
| | `code/run_geco.sh` | **one script, start to finish**: data β train G0, G1, G2 β closed-loop evals (A.3 and App. E) β step-size sweep β report | | |
| | `code/experiments/lerobot/` | the implementation: `variants.py` (`patch_geco` with `zero_pad`, `geco_step_sizes`, `patch_fm_score`), `run.py` (runs G0, G1, G2), `train_variant.py`, `eval_variant.py`, `geco_diagnose.py` (offline diagnosis and sweep), `geco_report.py`, `modal/app.py` | | |
| | `code/src/behavior_course/metrics/geco.py` | AUROC (plain and equal-weight), operating point, bootstrap, App. D filters, Time Saved | | |
| | `code/experiments/lerobot/modal/requirements.txt` | **environment**: exact package versions (lerobot 0.7.0, torch 2.11.0+cu128, Python 3.12); the Modal image is defined in `modal/app.py` | | |
| | `results/` | per run and setting: `eval_info.json` (success), `ood_scores.json` (one score per planning call; G2 also every step), `run.json` (exact commands), `geco_diagnose*.json`, `geco_report.json` | | |
| | `logs/` | full output of every run, including failures: a missing LIBERO config crashed the first evaluations; a dropped client connection stopped two Modal runs, which were resumed from checkpoints; smoke runs in `logs/smoke/` | | |
| Hardware: Modal, L40S for training (β 50 min per model), L4 for evaluation and diagnosis. Personal data (email, | |
| local paths, workspace names) was removed from logs with `scrub.py`. | |
| ## Agent | |
| Built with **Claude Code** (Anthropic), with the human directing scope and decisions, and an independent review by a | |
| second agent (Lor). The agent session is in the linked Hub dataset (scrubbed of personal data). | |