File size: 5,027 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 | # ============================================================================
# WORKER ASSIGNMENT: BEAM_RISE (port the gen_q beam-search planner to the RISE sim setup)
# ============================================================================
Status file: status/BEAM_RISE.md (create; append-only). Re-run by the orchestrator until REPORT says DONE.
## Owner's request (2026-11-09)
"search genq issue for the beam search result, and get beam search working on our rise sim setup. Beam search does
multistep policy improvement because it approximates the max operator when rolling out trajectories."
## Step 1 -- read the prior work (GitHub REST API with the richardrl token in ~/.git-credentials; never `gh`; never print
the token). williamd4112/gen_q issues/PRs: #97 (design: node definition + heuristic), #103 (beam arm BN->B->BN over
behavioural chunks, giant-jump pruning), #104 (beam vs filter mg results), #107 (B=8,N=8,d=6 launcher), #110 (LSF beam
launcher), #111, #112 (num_value_tail_heuristic_samples), #113 (scale-up B=32/64 x N=128 on lift-mg/can-mg results),
#115 (quantile/LCB selection vs winner's curse), #116 (beam_critic iql), #117 (beam_beta sweep + K=512 tail), #118 (two
betas: myopic transition + far-sighted heuristic), #119 (paired eval seeds), #96, #76. Read all bodies + comments; find
the branches/commits/files of the beam implementation. Write status/beam/PRIOR.md: the algorithm exactly (node = ?,
expansion = proposer chunks from the successor-predicted state?, scoring/heuristic = RSM value at which beta?, beam
width B, branching N, depth d, selection rule, what is executed), its measured results (success vs BoN/filter, compute),
and lessons/failure modes.
## Step 2 -- port to RISE sim
Target: the RISE planner path used by the rebuttal sweep (scripts/eval_cell.sh -> code/rise_robomimic robomimic/algo/
rsm_planner.py + rsm_scorer.py; RSM_LIBERO_DIR=code/rsm_libero_freeze_20261002; DinoV2 loads from local cache). Add beam
as a NEW plan_mode (e.g. training.plan_mode=beam with plan_beam_width/branch/depth/beta/... overrides) WITHOUT changing
the behaviour of existing modes (chain/mpc etc. must stay byte-identical in effect; back up every file you edit as
*.bak_20261109_beam and diff). Reuse the gen_q beam code where possible. Unit/CPU smoke test first, then one GPU smoke
cell (a few episodes) on square_sub_20100 or two_piece_expert_suboptimal with the paper's RSM checkpoint + proposer.
## Step 3 -- evaluate
A small first grid on 2-3 tasks where stitching matters (Piece (Sub.), Square (Sub.), Thread), beam vs the paper's
best-of-N chain readout at matched settings, 150 eps first (seed-0 proposer x eval seeds 0-2), report success and
wall-clock per decision. 8-GPU packs only (8 payloads per node, one per GPU), gpu-mid only -- NEVER gpu-high or a *high*
QOS, NEVER a 1-GPU job (see CLAUDE.md SLURM bullet; status/packs/rebuttal_beta/submit_nodes.sh is a safe submitter).
CPU partition is starved: fold tests into the front of an 8-GPU pack if a cpu job waits > 20 min.
Budget: <= 60 GPU-h without asking; above that, report a plan.
REPORT each run: what was found, code changes (files + backups), smoke results, job ids (+ gres/gpu=8 check), results.
No git commit/push, no GitHub posts.
## UPDATE (owner question, 2026-11-09 ~19:00Z) -- extend to all 7 tasks
The owner asked why only 3 tasks. After w2 lands: run beam on ALL 7 paper tasks (add Square (Cov.), Piece (Cov.), Mug,
Piece-tip) with the depth-2 'max' config from w1 AND the best w2 variant, same 150-episode protocol (seed-0 proposer x
eval seeds 0-2 x 50) paired with the existing best-of-N cells; one 8-GPU gpu-mid pack per ~8 payloads (never gpu-high,
never 1-GPU). Report a 7-task table + 7-task mean vs best-of-N (and vs the paper Table 1 RSM row). Budget for this stream
raised to 100 GPU-h. If any task shows a CI excluding zero (either sign), extend that task to 450 episodes (3 proposer
ckpts x 3 eval seeds).
## UPDATE (owner question, 2026-11-09 ~19:10Z) -- quantile / LCB against exploitation
Owner: "did you use the quantile to prevent exploitation?" -- not yet (w1 = max, w2 = rootmean). Port gen_q #115's two
rules into rsm_beam.py as opt-in plan_beam_select values, exactly as gen_q defined them (status/beam/PRIOR.md):
'quantile' (plan_beam_select_q, nearest-rank quantile over the surviving beam; q=1.0 == argmax) and 'lcb'
(plan_beam_lcb_lambda L: score = mean_p(f) - L*sd_p(f) over particles, and LCB ALSO drives top-k pruning, as in gen_q).
Keep the fresh-noise rescore of the final beam on (plan_beam_rescore) for these. Default stays 'max'; back up edited
files (*.bak_20261109_beam_run6), CPU-test that q=1.0 / L=0 reproduce 'max' bit-for-bit, then a GPU smoke cell.
Test q in {0.9, 0.75} and L in {0.5, 1.0} at depth 2 and 3 on the 3 w1 tasks first (150 eps, paired), fold the best one
into the 7-task extension. Note: in gen_q these looked good unpaired (lift-mg lcb0.5 59.3, sq0.9 58.7 vs argmax ~51-54)
but were null with paired seeds (#119) -- report paired diffs with CIs.
|