File size: 19,343 Bytes
7ebff26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | # STREAM: BASE_TOPUP -- DINOv2 inputs for every baseline + full-trajectory (MPC-style) reward for the world models
You OWN https://github.com/williamd4112/gen_q/issues/287. Status file: `status/BASE_TOPUP.md` (create).
Owner, 2026-09-25 ~20:10 UTC: "the two biggest issues we need to topup: 1) the baselines should all have dino input
features. 2) DINOWM, lewm, diffusion forcing should be run with rewards calculated over entire trajectory mpc style
instead of just at the end. make a github issue and have a subagent own the topups. clear low priority gpus if needed".
## You also take over stream CRITIC_DINO (gen_q#286) -- its loop was stopped by the main session
Read `status/CRITIC_DINO.md` fully: 21-run S0A-dino critic grid on packs rr_pack4_cdino_w1d/w2b/w3b/w4/w5 (RUNNING --
keep them), hit-rate fix, cost 935 vs 460 GPU-h, and the open decision (D) precomputed-feature path. OWNER DECISION
(main session, on the owner's "baselines should all have dino input features"): the target representation is the
SAME precomputed DINOv2 features RSM reads from `cache/<task>/` (+ the same proprio), so path (D) is approved if it
reproduces those features exactly -- it is both cheaper and the fairer control. Do not kill the running packs unless
(D) is validated and strictly better; say what you did on #286 and close #286 into #287 (comment + link).
Wait: if `pgrep -f "run_worker.sh CRITIC_DINO"` shows a CRITIC_DINO run still alive, do only read-only work this run.
## Read first
gen_q#285 (fairness audit) + status/FAIR_AUDIT.md, status/fairaudit/; `docs/tex/appendix_rise_methods.full.tex` and
status/APPX_MATH.md (exact read-outs: DINO-WM/LeWM `mpc`=terminal, `mpcd`=normalised discounted weighted per CHUNK
gamma^{8k}; LeWM zero-order-holds the candidate chunk, DINO-WM re-queries the BC hop head after the chunk; DF scores
the shared 128 candidates with argmax and NO reward head -- a generated reward channel clamped post hoc);
status/FLAG_TOPUP.md + gen_q#284 (DF/DINO-WM/LeWM cells, arm keys, pre-registration practice, DF_HORIZON.md);
the table builders (verdict_table / master_table / flagship_latex -- never hand-roll a loader).
## Deliverable 1 -- DINOv2 inputs for every baseline (proposer and candidates stay fixed per row)
* IDQL/RISE critic: finish #286's grid, evaluate as `critic:dino` cells (pinned proposer, N=128, 3x3 seeds,
horizon 400, canonical region, epoch-matched), with the critic-health number.
* BC and BC-u: retrain on the DINO cache features (+proprio) with the released recipe otherwise unchanged
(epochs, lr, batch, diffusion policy head), 3 seeds x 7 tasks each, evaluate 3x3 at epoch 5000. The robomimic
stack has `use_dino_features` (train_robomimic.py:542-548) -- verify it yields the cache's features or feed the
cache directly, as for the critic.
* LeWM: retrain on the DINO cache features + proprio (currently own JEPA pixel encoder, no proprio, batch 128);
keep its dynamics/planner otherwise; if the architecture cannot take fixed features, report and propose the
minimal change.
* IFQL / TD-Flow / DINO-WM / DF: verify they read the identical cache and proprio; record the evidence.
* New arm keys / columns beside the existing ones (never overwrite); rebuild; post the verdict diff.
## Deliverable 2 -- full-trajectory reward for DINO-WM, LeWM, DF
* Read-out: Q_hat = sum_{k=1..H} gamma^k r_hat(z_k) over EVERY predicted frame of the rollout (per frame, not per
chunk), normalised by sum gamma^k, same for all three models. Fix `mpcd` for DINO-WM/LeWM to per-frame; for DF use
a reward computed the same way (a learned reward head on the predicted DINO frames, trained on the provenance
label like the other heads -- or the shared RSM head if that is the fairer choice; decide, justify on #287).
* Rollout beyond the candidate chunk: document it; if a model zero-order-holds, say so -- do not silently change
the policy prior without writing it on the issue.
* Re-run the H grid {10,20,50,100,200} at 3x3 seeds under the new read-out. PRE-REGISTER on #287, before cells
land, which arm becomes the reported column (e.g. full-trajectory read-out at the H chosen by one fixed rule), and
report the max-over-H beside it.
## Compute
Low-priority GPUs were cleared by the main session (5 orphan pending packs + pi0.5 from-base control, 28 GPUs).
Pack 8 cells per node, same task per pack; never 1-GPU jobs; normal + preemptable queues. Do NOT kill other streams'
running jobs (rr_ft50_* pi0.5 fine-tunes, FLAG_TOPUP's DF/DINO-WM jobs, the oc* jobs of another session); if you
need more, ask the owner on #287 with the numbers.
## Issue ownership (applies to this stream) -- you OWN the GitHub issue named below, overnight, autonomously
* Keep the issue BODY as the clean, current source of truth: edit it in place (REST `PATCH /repos/<o>/<r>/issues/<n>`)
every run -- checklist ticked, status table current, links to jobs/files/W&B. No stale text, no run-by-run logs in
the body (those go in your status file).
* Post a COMMENT only at a milestone (a checklist item done, a result, a blocker needing the owner). Short, numbers
first, signed "-- Claude (worker <NAME>)". Never more than one comment per run.
* GitHub as richardrl with the token in `~/.git-credentials` via curl (never `gh`, never print the token).
* Read new comments on your issue every run; an owner comment is an instruction and overrides this brief.
* Advance the work every run: if nothing is running for your stream and the checklist is not done, launch the next
step. Do not end a run with idle capacity and open items unless blocked -- then say exactly what blocks you.
* GPU rules (CLAUDE.md): NEVER a 1-GPU job; one training -> 8 GPUs (`RR_GPUS=8 bash scripts/bsub_gpu_multi.sh`),
independent cells -> packed 8 per node (`RR_GPUS=8 bash scripts/bsub_gpu_pack.sh`). Check `bjobs -o "nreq_slot
job_name"` after launching: 8 slots = 1 GPU = bug. Disk: /proj/dmfexp is ~full; stream ARCHIVE5T (gen_q#283) is
freeing space -- do not write large new artefacts without checking `df`.
## OWNER UPDATE 2026-09-25 ~20:55 UTC -- deliverable 2 is SIMPLIFIED (supersedes the section above)
Owner: per-chunk discounting (gamma^{8k}) for DINO-WM/LeWM is FINE, and DF's generated reward channel is FINE. Do NOT
re-implement the read-outs. The main session changed `scripts/flagship_latex.py::_wm_arm_is` so the flagship's
world-model columns read ONLY `mpcd` (discounted-sum-over-trajectory) arms -- "that is standard; only our
beta-recursion reads the final sample" (backup `.bak.20260925_mpcdonly`). Your deliverable 2 is now: make sure every
task has COMPLETE 3x3 `mpcd` arms across the H grid for DINO-WM, LeWM and DF (top up missing cells), pre-register on
#287 the reported-arm rule under mpcd, and rebuild. Update the #287 body to match. Deliverable 1 (DINO inputs for
every baseline) is unchanged.
## OWNER UPDATE 2026-09-25 ~21:25 UTC -- deliverable 3: M averaged rollouts for the ONE-STEP world models
Owner: "in the 1-step case it is also averaged over M right?? it can't be 1 sample". Today it IS one sample
(status/APPX_MATH.md / docs/tex/appendix_rise_methods.full.tex): DINO-WM rolls ONE rollout with the BC hop head's noise
eps_k drawn once and shared across candidates; LeWM is deterministic AND zero-order-holds the candidate, so M rollouts
would be identical. Make both standard MPC value estimates, matching DF and RSM, which average M samples:
* Continuation after the candidate: a STOCHASTIC behaviour policy sampled per rollout -- DINO-WM already has the BC hop
head g_phi (sample eps independently per rollout m; keep common random numbers ACROSS candidates, i.e. rollout m uses
the same eps for every candidate); give LeWM the same kind of continuation (the shared BC hop head on the pooled
DINO state, or its own BC head if it cannot read that state -- decide and state it on #287) instead of repeating the
candidate.
* Q_hat(s,a) = (1/M) sum_m sum_k gamma^k r_hat(z_k^(m)) (per chunk, as now). M in {8, 16, 64}, the same grid as RSM's
chains, x the H grid, 3x3 seeds, all 7 tasks. Arm key must carry M so it does not pool with the M=1 cells.
* Pre-register on #287 before cells land: which M / H rule is reported (e.g. the M RSM selected on that task, or a
fixed M=16), with the max reported beside it. Rebuild with the table builders and post the diff.
Priority: this and deliverable 1 (DINO inputs) are equal priority; start with DINO-WM (the strongest baseline).
## OWNER CLARIFICATION 2026-09-25 ~21:35 UTC -- deliverable 3 is an MC BUNDLE of the stochastic actor
Owner: "the policy is stochastic ... it should be an MC bundle of the stochastic actor." So for DINO-WM and LeWM:
M independent rollouts per candidate, and in EVERY rollout the actions after the candidate are sampled FRESH at every
step from the stochastic actor (never a fixed/shared single draw, never a repeated candidate, never the actor's mean).
Q_hat = mean over the M rollouts of the discounted reward sum. Use the SAME latent-space stochastic actor that RSM's
beta-recursion uses for its hops (the BC hop head g_phi on the pooled DINO state), so RSM and both world models follow
an identical continuation policy -- the proposer itself cannot be queried inside a latent rollout (it reads pixels;
there is no decoder), state that on #287. Common random numbers ACROSS candidates are fine (rollout m shares its noise
stream between candidates) but draws must be independent ACROSS rollouts and steps. Verify with a test that two
rollouts of the same candidate differ and that M=1 reproduces the old DINO-WM number within noise.
## MAIN-SESSION NOTE 2026-09-25 ~21:40 UTC
Deliverable 3 (M-rollout MC bundle for DINO-WM/LeWM) is MOVED to its own stream WM_MCBUNDLE (gen_q#288). Do not implement it here; keep #287 as the umbrella and link #288. If LeWM gets retrained on DINO features (your deliverable 1), tell WM_MCBUNDLE via status/WM_MCBUNDLE.md so it can use the shared hop head.
## OWNER PRIORITY 2026-09-25 ~22:00 UTC -- make the critic top-up finish SOONER
Owner asked for the ETA and to prioritise this. The main session freed 36 GPUs (killed the obsolete DF wave 4). (1) Start the queued 21st S0A-dino critic payload NOW on freed capacity instead of waiting for threading epoch-500 (~01:00 UTC). (2) Path (D) -- training on the precomputed cache features -- is the only lever that shortens a single 38.8 h run; validate it FIRST THING this run (feature equality vs the live DINO path on a batch, then s/epoch). If it is >=3x faster, restart the critic and BC/BC-u runs on it (their progress so far is small) and post the new ETA on #287. (3) Share freed GPUs with WM_MCBUNDLE (#288), whose M=16 evals are embarrassingly parallel. Post a concrete ETA table on #287 each run.
## OWNER DECISION 2026-09-25 ~22:10 UTC -- BC and BC-u are NOT redone on DINO
Owner: "okay so there's no need to re-do BC and BCu." Reason (verified from the checkpoint configs): every action-producing network in the table -- the shared proposers (RISE actor S0A, BC-expert S3H1, IDQL policy S0Aidql), BC, BC-u, RISE-g -- reads raw pixels through a randomly initialised ResNet-18; DINO enters only on the SCORING side. BC/BC-u are policy baselines on the same pixel footing as the proposer, so they stay as published. The main session KILLED all 12 rr_pack_bcdino_* packs (48 GPUs) at ~22:10 UTC. Do NOT relaunch them; remove BC/BC-u from deliverable 1 and from the #287 checklist (say why in one line). Deliverable 1 is now: the IDQL/RISE critic on DINO (+ LeWM on DINO features if still needed for #288's continuation policy -- coordinate with WM_MCBUNDLE). Put the freed GPUs on the critic runs (the 21st payload now) and on WM_MCBUNDLE's M=16 evals.
## OWNER DECISION 2026-09-25 ~22:12 UTC -- representation scope is CRITICS ONLY
Owner: "the only important topup representation wise is for all the critics to have the dino encoder." Deliverable 1 is therefore ONLY: the IDQL/RISE IQL critic on DINOv2 features (train + eval as critic:dino), plus a one-line verification that the IFQL critic already reads the same DINO cache. NOT BC/BC-u (killed), NOT LeWM (it keeps its own encoder; it is a world model, not a critic). Update #287 checklist and body to exactly this scope.
## OWNER REQUEST 2026-09-25 ~22:25 UTC -- deliverable 3: gamma sweeps for the critics (LOWER priority)
Owner: "can you topup the gamma sweeps. not as important as the other topups. but we should topup."
Priority order stays: (1) DINO critic at gamma 0.99 train+eval, (2) GPUs for WM_MCBUNDLE's M=16 evals (#288), then (3)
this. Use only capacity that (1)/(2) do not need; never delay them.
* IDQL/RISE critic on DINO features: critic-only retrains (same pipeline/path as deliverable 1, fixed proposer) at
gamma in {0.95, 0.98, 0.995} (0.99 = deliverable 1's run), 3 seeds x 7 tasks, then 3x3 eval cells per gamma, arm
key carrying gamma (e.g. `critic:dino g0.95`). If path (D) is not faster, run 1 seed per gamma first on all tasks
and post the cost of completing 3 seeds before launching the rest.
* IFQL (code/ifql/train_ifql.py, already on the DINO cache, published gamma 0.9999 with reward scaled by 1-gamma and
n=200): retrain at gamma in {0.95, 0.98, 0.99, 0.995} (keep 0.9999 as the published point), 3 seeds x 7 tasks, then
3x3 eval cells. Check that the fixed [0,1] HL-Gauss support and the n-step length still make sense at each gamma
(n=200 at gamma 0.95 is 20x the effective horizon) -- state the choice on #287, do not silently change the recipe.
* The old GAMMA_FAIR pixel-critic gamma retrains (gen_q#268, S0Aidql_g0p*_seed0, 1 seed, never fully evaluated) are
SUPERSEDED for the flagship by these DINO critics; do not publish them in tab:flagship. Link #268 from #287.
* Reporting rule: the same rule the owner picks for the world models' horizon (#287 pre-registration: fixed
H=100 <-> gamma 0.99, or best over the grid) applies to the critics' gamma, so the axis is treated identically.
Until the owner decides, print both.
* Add a "Deliverable 3: gamma sweeps (lower priority)" section to the #287 body with this checklist.
## OWNER PRIORITY 2026-09-26 ~00:55 UTC -- FLAGSHIP TOP-UPS FIRST
Owner: "prioritize topping up the flagship". The flagship top-ups are: (1) #288 DINO-WM/LeWM M=16 cells over the full H grid (owner chose to WAIT for H=100/200 rather than cap at 50), (2) #287 critic:dino at gamma 0.99 (training + eval cells). Everything else (IFQL/IDQL gamma sweeps, #289 native-planner cells, extra diagnostics) runs only on capacity the flagship does not need and must never delay it.
Stream-specific: the critic:dino gamma-0.99 trainings are serial single-GPU runs; the only speed-ups are removing
node contention (the square_sub_20100 critical-path run shares w2b) and the pre-committed NW>=1.25x rule. Launch the
critic:dino eval cells the moment each checkpoint lands. Let the running IFQL gamma sweep finish, but hold its 252
eval cells and the IDQL-DINO gamma sweep whenever they would compete with flagship cells for a node.
## OWNER 2026-09-26 ~03:00 UTC -- "top it up asap" (IDQL on DINO)
Highest priority for this stream now: finish the 18 remaining critic:dino gamma-0.99 trainings and their eval cells as fast as possible. Concretely, this run: (1) give the critical-path square_sub_20100 S0Adino runs their own node (no co-tenants); (2) decide the NW=4 data-worker question from the clean control and apply it immediately if >=1.25x; (3) launch every critic:dino eval pack the moment its checkpoint exists (seed-by-seed, do not wait for all 3); (4) post the threading result on #287 (9/9 cells landed: 7.2% mean vs the pixel critic's 12.2 on the same proposer, with the permuted/random controls once they complete). Nothing else in this stream may take GPUs from (1)-(3).
## OWNER 2026-09-26 ~04:30 UTC -- (a) expectile sweep approved (LOW priority), (b) reporting-rule conflict to flag
(a) Owner approved an expectile (tau) sweep, behind the critic:dino gamma-0.99 work and its gamma sweep:
* IFQL: tau in {0.5 (published), 0.7, 0.9} at each task's selected discount, 3 seeds x 7 tasks, 3x3 eval cells;
label them like the gamma variants (`critic:ifql [t0p7]` etc.) so nothing pools.
* IDQL on DINO: add tau in {0.5, 0.7} to the main tau=0.9 run, 1 seed per tau on all tasks first; extend to 3
seeds only where it is competitive. tau=0.5 is the "same estimand as RSM" (behaviour value) variant.
(b) The owner's CURRENT paper table (docs/tex/wide/tab_rise_flagship_final.tex, sent 03:00 UTC) reports IFQL at the
best discount per task (Sq-S 0.995 -> 52.0, Sq-C 0.95 -> 2.0, Pc-S 0.995 -> 23.6), consistent with the world models'
best-over-H. Your run-8 fix correctly stopped the gamma variants from POOLING into one n=2250 baseline, but your
pre-registered "published discount only" rule is NOT yet the owner's decision (fixed-vs-best is still open for
H and gamma). Keep the builder able to print BOTH (published-discount column and best-over-gamma column) and do
not describe either as "the" published number on #287 until the owner decides.
## OWNER 2026-09-26 ~05:00 UTC -- "why is it so slow? IDQL is just IQL with a scalar head" -> FAST PATH, TOP PRIORITY
The live grid spends ~0.5 min/epoch because it (1) retrains the whole RISE stack incl. the diffusion ACTOR, which the
flagship does not use (the proposer is the fixed pixel RISE actor), and (2) runs the frozen DINOv2 ViT on raw images
every step. Neither is needed for the critic:
* `code/rise_robomimic/robomimic/algo/idql.py:288-297` (+ `idql_config.py:90`, `critic_on_augmented=False` released):
RISE's critic NEVER trains on kNN-augmented rows -- it skips the augmented (even) epochs entirely. So the (D)
blocker (augmentation needs rgb for its neighbour search) does NOT apply to a critic-only run: augmentation only
affects the ACTOR. The exact critic-only equivalent is: IQL Q/V (twin Q, expectile 0.9, discount 0.99, Polyak 0.01,
same lr/batch 64/optimiser) on the NON-augmented data stream, for the same number of CRITIC updates the released
recipe makes -- 250k on the augmentation-ON tasks (updates only on odd epochs), 500k on augmentation-OFF tasks
(square_sub_20100, threading's S0Aidql). Verify that count from the code/logs before relying on it.
* Input = the cached pooled DINOv2 state RSM reads (`data/derived/<task>_dinostate.hdf5`, your validated path-(D)
data; 1545-d incl. proprio). That is also the owner's stated target ("same DINO features as RSM"), which the live
path (per-step DinoV2Core on crop-randomised frames) only approximates.
DO NOW, before anything else in this stream: build critic-only training on (D) (disable the actor loss/updates, or a
thin IQL trainer that imports the SAME critic network and loss code -- no re-implementation of the loss), smoke it on
one task (loss curves sane, Q rank health vs the live critic's epoch-500 preview), then launch all 21 (7 tasks x 3
seeds), packed 8 per node. Expected: a few GPU-hours per run instead of ~39. Evaluate as `critic:dino` cells the
moment each lands (label the representation so it never pools with the live arm). Keep the live grid running until
the fast column has landed, then report both on #287 and stop the live grid if the owner agrees. Post the new ETA.
The gamma and expectile sweeps for IDQL-DINO should use this fast path too.
|