Auto-sync: 2026-06-28 01:28:06 (part 3)
Browse filesFiles changed (10)
- results/paper_story_memo.md+20-1
- results/paper_table_status.json+114
- results/paper_table_status.md+6
- scripts/build_paper_table_status.py+60
- scripts/eval_maniskill_policy_rollout.py+7
- scripts/slurm/eval_maniskill_policy_rollout.sbatch+2
- scripts/slurm/smoke_retrieval_residual_scale_unit.sbatchAdded+74
- scripts/slurm/summarize_h16_field_sweep.sbatch+1
- scripts/slurm/summarize_h16_policy_ckpt.sbatch+5-3
- tests/test_maniskill_policy_rollout.py+59
19 unmodified lines20212223242542 unmodified lines686970717273744 unmodified lines7980818283845 unmodified lines90919219 unmodified lines| Gradient-based field optimization does not solve the clean proposal gap | `field_optim` best observed result is 25.39% | Negative diagnostic || A broader non-expert proposal target does not reduce the proposal gap | direct broad non-expert policy is 27.88%; with field scoring it is 26.49% | Negative diagnostic || Counterfactual residuals transfer better than absolute retrieved actions | nearest residual retrieval is 32.12% vs absolute retrieval 28.93%; KNN4 residual drops to 29.91% | Supported as a clean bridge || Seed-0 train-split field-teacher distillation does not solve the proposal gap | direct student is 26.84%; with field scoring it is 27.65% | Negative diagnostic || All-split field-teacher distillation may still help checkpointing/coverage | allmap training has 100% train/val target coverage; rollout eval is pending | Pending |42 unmodified lines## Active JobsLast checked: `2026-06-28 05:20 UTC`.- `14858328`-`14858333`: completed train-split `field_selected_noexpert_bc5`;direct rollout is 26.84%, field-guided best is 27.65%.4 unmodified lines- `14858451`/`14858452`: pending direct rollout evaluation and summary for allmap.- `14858453`/`14858454`: pending field-guided rollout sweep and summary for allmap.- `14858455`: rebuild `paper_table_status.*` after allmap summaries.## Decision Rule For Field-Teacher Jobs5 unmodified lines- If it fails, keep the central paper story focused on the same-state mechanismand the clean-proposal bottleneck, with residual retrieval as the strongestdeployment-clean bridge.19 unmodified lines2021222324252642 unmodified lines697071727374754 unmodified lines80818283848586878889909192935 unmodified lines9910010110210310410510610710810911011119 unmodified lines| Gradient-based field optimization does not solve the clean proposal gap | `field_optim` best observed result is 25.39% | Negative diagnostic || A broader non-expert proposal target does not reduce the proposal gap | direct broad non-expert policy is 27.88%; with field scoring it is 26.49% | Negative diagnostic || Counterfactual residuals transfer better than absolute retrieved actions | nearest residual retrieval is 32.12% vs absolute retrieval 28.93%; KNN4 residual drops to 29.91% | Supported as a clean bridge || Residual magnitude may be the next clean bottleneck | scale sweep for nearest residual transport is pending | Pending || Seed-0 train-split field-teacher distillation does not solve the proposal gap | direct student is 26.84%; with field scoring it is 27.65% | Negative diagnostic || All-split field-teacher distillation may still help checkpointing/coverage | allmap training has 100% train/val target coverage; rollout eval is pending | Pending |42 unmodified lines## Active JobsLast checked: `2026-06-28 05:26 UTC`.- `14858328`-`14858333`: completed train-split `field_selected_noexpert_bc5`;direct rollout is 26.84%, field-guided best is 27.65%.4 unmodified lines- `14858451`/`14858452`: pending direct rollout evaluation and summary for allmap.- `14858453`/`14858454`: pending field-guided rollout sweep and summary for allmap.- `14858455`: rebuild `paper_table_status.*` after allmap summaries.- `14858978`: completed CPU Apptainer unit smoke for residual-scale selection.Earlier smoke jobs `14858889`/`14858894` caught and fixed two scale wiring bugsbefore rollout jobs started.- `14858875`/`14858876`: pending nearest residual scale `0.25` eval/summary.- `14858877`/`14858878`: pending nearest residual scale `0.50` eval/summary.- `14858879`/`14858880`: pending nearest residual scale `0.75` eval/summary.- `14858881`/`14858882`: pending nearest residual scale `1.25` eval/summary.- `14858883`: rebuild `paper_table_status.*` after residual-scale summaries.## Decision Rule For Field-Teacher Jobs5 unmodified lines- If it fails, keep the central paper story focused on the same-state mechanismand the clean-proposal bottleneck, with residual retrieval as the strongestdeployment-clean bridge.## Decision Rule For Residual-Scale Jobs- If any residual scale beats 32.93%, promote tangent-transport residuals as thebest deployment-clean bridge.- If a smaller scale beats 32.12% but not 32.93%, present it as evidence thatcounterfactual residuals transfer as local tangent directions with a calibratedstep length.- If all scales fail, keep scale `1.0` nearest residual retrieval as the cleanpositive bridge and treat magnitude calibration as a negative ablation.
246 unmodified lines247248249250251252246 unmodified lines"best_config": null,"gain_vs_h16_policy": 0.02376811594202899},{"key": "retrieval_residual_knn4","label": "KNN counterfactual residual retrieval",246 unmodified lines247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366246 unmodified lines"best_config": null,"gain_vs_h16_policy": 0.02376811594202899},{"key": "retrieval_residual_scale025","label": "Train-state residual retrieval, scale 0.25","path": "h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale0p25_summary.json","clean_deployment": "yes","same_state_proposals": "no","expert_proposal": "no","story_role": "tangent transport scale ablation","fallback_success": null,"pending_job": "14858875/14858876","path_exists": false,"status": "pending","success": null,"std_success": null,"completed_seeds": null,"num_completed": null,"best_config": null,"gain_vs_h16_policy": null},{"key": "retrieval_residual_scale050","label": "Train-state residual retrieval, scale 0.50","path": "h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale0p50_summary.json","clean_deployment": "yes","same_state_proposals": "no","expert_proposal": "no","story_role": "tangent transport scale ablation","fallback_success": null,"pending_job": "14858877/14858878","path_exists": false,"status": "pending","success": null,"std_success": null,"completed_seeds": null,"num_completed": null,"best_config": null,"gain_vs_h16_policy": null},{"key": "retrieval_residual_scale075","label": "Train-state residual retrieval, scale 0.75","path": "h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale0p75_summary.json","clean_deployment": "yes","same_state_proposals": "no","expert_proposal": "no","story_role": "tangent transport scale ablation","fallback_success": null,"pending_job": "14858879/14858880","path_exists": false,"status": "pending","success": null,"std_success": null,"completed_seeds": null,"num_completed": null,"best_config": null,"gain_vs_h16_policy": null},{"key": "retrieval_residual_scale125","label": "Train-state residual retrieval, scale 1.25","path": "h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale1p25_summary.json","clean_deployment": "yes","same_state_proposals": "no","expert_proposal": "no","story_role": "tangent transport scale ablation","fallback_success": null,"pending_job": "14858881/14858882","path_exists": false,"status": "pending","success": null,"std_success": null,"completed_seeds": null,"num_completed": null,"best_config": null,"gain_vs_h16_policy": null},{"key": "retrieval_residual_hybrid_k32","label": "Train-state residual + Gaussian proposals, K32 sigma0.35","path": "h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_hybrid_k32_sigma0p35_summary.json","clean_deployment": "yes","same_state_proposals": "no","expert_proposal": "no","story_role": "hybrid tangent/local proposal bridge","fallback_success": null,"pending_job": "14859042/14859043","path_exists": false,"status": "pending","success": null,"std_success": null,"completed_seeds": null,"num_completed": null,"best_config": null,"gain_vs_h16_policy": null},{"key": "retrieval_residual_hybrid_k64","label": "Train-state residual + Gaussian proposals, K64 sigma0.50","path": "h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_hybrid_k64_sigma0p50_summary.json","clean_deployment": "yes","same_state_proposals": "no","expert_proposal": "no","story_role": "hybrid tangent/local proposal bridge","fallback_success": null,"pending_job": "14859044/14859045","path_exists": false,"status": "pending","success": null,"std_success": null,"completed_seeds": null,"num_completed": null,"best_config": null,"gain_vs_h16_policy": null},{"key": "retrieval_residual_knn4","label": "KNN counterfactual residual retrieval",
15 unmodified lines16171819202115 unmodified lines| field_selected_noexpert_policy_allmap | Field-selected no-expert distillation policy, aligned validation | pending 14858449/14858450/14858451/14858452 | pending | pending | yes | no | no | field-teacher student with aligned checkpoint selection || field_selected_noexpert_policy_allmap_field | Field-selected no-expert distillation + field, aligned validation | pending 14858449/14858450/14858453/14858454 | pending | pending | yes | no | no | aligned field-teacher student with field scoring || retrieval_residual | Train-state counterfactual residual retrieval | complete | 32.12% | +2.38 pp | yes | no | no | transferable local tangent proposal || retrieval_residual_knn4 | KNN counterfactual residual retrieval | complete | 29.91% | +0.17 pp | yes | no | no | KNN tangent proposal ablation || near_miss_only_lattice | Same-state lattice, near-miss only | complete | 55.94% | +26.20 pp | no | yes | no | minimal mechanism result || no_expert_lattice | Same-state lattice, no expert | complete | 56.99% | +27.25 pp | no | yes | no | main conservative mechanism result |15 unmodified lines16171819202122232425262715 unmodified lines| field_selected_noexpert_policy_allmap | Field-selected no-expert distillation policy, aligned validation | pending 14858449/14858450/14858451/14858452 | pending | pending | yes | no | no | field-teacher student with aligned checkpoint selection || field_selected_noexpert_policy_allmap_field | Field-selected no-expert distillation + field, aligned validation | pending 14858449/14858450/14858453/14858454 | pending | pending | yes | no | no | aligned field-teacher student with field scoring || retrieval_residual | Train-state counterfactual residual retrieval | complete | 32.12% | +2.38 pp | yes | no | no | transferable local tangent proposal || retrieval_residual_scale025 | Train-state residual retrieval, scale 0.25 | pending 14858875/14858876 | pending | pending | yes | no | no | tangent transport scale ablation || retrieval_residual_scale050 | Train-state residual retrieval, scale 0.50 | pending 14858877/14858878 | pending | pending | yes | no | no | tangent transport scale ablation || retrieval_residual_scale075 | Train-state residual retrieval, scale 0.75 | pending 14858879/14858880 | pending | pending | yes | no | no | tangent transport scale ablation || retrieval_residual_scale125 | Train-state residual retrieval, scale 1.25 | pending 14858881/14858882 | pending | pending | yes | no | no | tangent transport scale ablation || retrieval_residual_hybrid_k32 | Train-state residual + Gaussian proposals, K32 sigma0.35 | pending 14859042/14859043 | pending | pending | yes | no | no | hybrid tangent/local proposal bridge || retrieval_residual_hybrid_k64 | Train-state residual + Gaussian proposals, K64 sigma0.50 | pending 14859044/14859045 | pending | pending | yes | no | no | hybrid tangent/local proposal bridge || retrieval_residual_knn4 | KNN counterfactual residual retrieval | complete | 29.91% | +0.17 pp | yes | no | no | KNN tangent proposal ablation || near_miss_only_lattice | Same-state lattice, near-miss only | complete | 55.94% | +26.20 pp | no | yes | no | minimal mechanism result || no_expert_lattice | Same-state lattice, no expert | complete | 56.99% | +27.25 pp | no | yes | no | main conservative mechanism result |
144 unmodified lines145146147148149150144 unmodified linesstory_role="transferable local tangent proposal",pending_job="14857111/14857112/14857113",),ResultSpec(key="retrieval_residual_knn4",label="KNN counterfactual residual retrieval",144 unmodified lines145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210144 unmodified linesstory_role="transferable local tangent proposal",pending_job="14857111/14857112/14857113",),ResultSpec(key="retrieval_residual_scale025",label="Train-state residual retrieval, scale 0.25",path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale0p25_summary.json",clean_deployment="yes",same_state_proposals="no",expert_proposal="no",story_role="tangent transport scale ablation",pending_job="14858875/14858876",),ResultSpec(key="retrieval_residual_scale050",label="Train-state residual retrieval, scale 0.50",path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale0p50_summary.json",clean_deployment="yes",same_state_proposals="no",expert_proposal="no",story_role="tangent transport scale ablation",pending_job="14858877/14858878",),ResultSpec(key="retrieval_residual_scale075",label="Train-state residual retrieval, scale 0.75",path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale0p75_summary.json",clean_deployment="yes",same_state_proposals="no",expert_proposal="no",story_role="tangent transport scale ablation",pending_job="14858879/14858880",),ResultSpec(key="retrieval_residual_scale125",label="Train-state residual retrieval, scale 1.25",path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_scale1p25_summary.json",clean_deployment="yes",same_state_proposals="no",expert_proposal="no",story_role="tangent transport scale ablation",pending_job="14858881/14858882",),ResultSpec(key="retrieval_residual_hybrid_k32",label="Train-state residual + Gaussian proposals, K32 sigma0.35",path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_hybrid_k32_sigma0p35_summary.json",clean_deployment="yes",same_state_proposals="no",expert_proposal="no",story_role="hybrid tangent/local proposal bridge",pending_job="14859042/14859043",),ResultSpec(key="retrieval_residual_hybrid_k64",label="Train-state residual + Gaussian proposals, K64 sigma0.50",path="h16_policy_ckpt_near_miss_policy_bc5_bestpt_retrieval_residual_hybrid_k64_sigma0p50_summary.json",clean_deployment="yes",same_state_proposals="no",expert_proposal="no",story_role="hybrid tangent/local proposal bridge",pending_job="14859044/14859045",),ResultSpec(key="retrieval_residual_knn4",label="KNN counterfactual residual retrieval",
102 unmodified lines10310410510610710823 unmodified lines132133134135136137102 unmodified linesdefault=1,help="Nearest train states to use for retrieval_lattice/retrieval_residual proposals.",)parser.add_argument("--lattice-exclude-types",default="",23 unmodified linesfield_optim_trust_radius=args.field_optim_trust_radius,field_optim_l2_penalty=args.field_optim_l2_penalty,retrieval_neighbors=args.retrieval_neighbors,lattice_exclude_types=lattice_exclude_types,)print(json.dumps({key: value for key, value in result.items() if key != "rows"}, indent=2))102 unmodified lines10310410510610710810911011111211311423 unmodified lines138139140141142143144102 unmodified linesdefault=1,help="Nearest train states to use for retrieval_lattice/retrieval_residual proposals.",)parser.add_argument("--retrieval-residual-scale",type=float,default=1.0,help="Scale applied to train-state residuals before adding them to the policy mean.",)parser.add_argument("--lattice-exclude-types",default="",23 unmodified linesfield_optim_trust_radius=args.field_optim_trust_radius,field_optim_l2_penalty=args.field_optim_l2_penalty,retrieval_neighbors=args.retrieval_neighbors,retrieval_residual_scale=args.retrieval_residual_scale,lattice_exclude_types=lattice_exclude_types,)print(json.dumps({key: value for key, value in result.items() if key != "rows"}, indent=2))
48 unmodified lines49505152535442 unmodified lines97989910010148 unmodified linesFIELD_OPTIM_TRUST_RADIUS="${FIELD_OPTIM_TRUST_RADIUS:-0.5}"FIELD_OPTIM_L2_PENALTY="${FIELD_OPTIM_L2_PENALTY:-0.0}"RETRIEVAL_NEIGHBORS="${RETRIEVAL_NEIGHBORS:-1}"LATTICE_EXCLUDE_TYPES="${LATTICE_EXCLUDE_TYPES:-}"if [[ -n "${LATTICE_EXCLUDE_TYPES_COLON:-}" ]]; thenLATTICE_EXCLUDE_TYPES="${LATTICE_EXCLUDE_TYPES_COLON//:/,}"42 unmodified lines--field-optim-trust-radius "$FIELD_OPTIM_TRUST_RADIUS" \--field-optim-l2-penalty "$FIELD_OPTIM_L2_PENALTY" \--retrieval-neighbors "$RETRIEVAL_NEIGHBORS" \--lattice-exclude-types "$LATTICE_EXCLUDE_TYPES" \"${EXTRA_ARGS[@]}"48 unmodified lines4950515253545542 unmodified lines989910010110210348 unmodified linesFIELD_OPTIM_TRUST_RADIUS="${FIELD_OPTIM_TRUST_RADIUS:-0.5}"FIELD_OPTIM_L2_PENALTY="${FIELD_OPTIM_L2_PENALTY:-0.0}"RETRIEVAL_NEIGHBORS="${RETRIEVAL_NEIGHBORS:-1}"RETRIEVAL_RESIDUAL_SCALE="${RETRIEVAL_RESIDUAL_SCALE:-1.0}"LATTICE_EXCLUDE_TYPES="${LATTICE_EXCLUDE_TYPES:-}"if [[ -n "${LATTICE_EXCLUDE_TYPES_COLON:-}" ]]; thenLATTICE_EXCLUDE_TYPES="${LATTICE_EXCLUDE_TYPES_COLON//:/,}"42 unmodified lines--field-optim-trust-radius "$FIELD_OPTIM_TRUST_RADIUS" \--field-optim-l2-penalty "$FIELD_OPTIM_L2_PENALTY" \--retrieval-neighbors "$RETRIEVAL_NEIGHBORS" \--retrieval-residual-scale "$RETRIEVAL_RESIDUAL_SCALE" \--lattice-exclude-types "$LATTICE_EXCLUDE_TYPES" \"${EXTRA_ARGS[@]}"
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374#!/bin/bash#SBATCH --job-name=smoke_residual_scale#SBATCH --account=def-yalda#SBATCH --nodes=1#SBATCH --ntasks=1#SBATCH --cpus-per-task=1#SBATCH --mem=1G#SBATCH --time=00:05:00#SBATCH --output=outputs/hpc/logs/%x_%j.out#SBATCH --error=outputs/hpc/logs/%x_%j.err
set -euo pipefail
PROJECT_DIR="${PROJECT_DIR:-$SLURM_SUBMIT_DIR}"SCRATCH_ROOT="/scratch/$USER/dovla"SIF="${SIF:-$SCRATCH_ROOT/containers/pytorch_2.7.1_cuda12.8.sif}"PYTHON="${PYTHON:-$SCRATCH_ROOT/envs/maniskill/bin/python}"
module load StdEnv/2023 apptainer/1.4.5cd "$PROJECT_DIR"mkdir -p outputs/hpc/logs
export OMP_NUM_THREADS=1export OPENBLAS_NUM_THREADS=1export MKL_NUM_THREADS=1export DOVLA_TORCH_THREADS=1
apptainer exec \ --env "OMP_NUM_THREADS=1,OPENBLAS_NUM_THREADS=1,MKL_NUM_THREADS=1,DOVLA_TORCH_THREADS=1,PYTHONDONTWRITEBYTECODE=1" \ -B "$PROJECT_DIR:$PROJECT_DIR" \ -B "/scratch/$USER:/scratch/$USER" \ "$SIF" "$PYTHON" - <<'PY'import torch
from dovla_cil.eval.maniskill_policy_rollout import _select_action_chunk
class StubModel: def __init__(self, mean, target_offset): self.mean = mean self.target = mean + target_offset
def forward_policy(self, observations, instructions): del observations, instructions return self.mean
def forward_field(self, observations, instructions, action): del observations, instructions distance = ((action - self.target) ** 2).reshape(action.shape[0], -1).sum(dim=1) return {"potential": -distance}
mean = torch.full((1, 1, 3), 0.1)residual = torch.full_like(mean, 0.8)scale = 0.5model = StubModel(mean, target_offset=residual * scale)residuals = torch.stack([torch.zeros_like(mean), residual], dim=1)actions, index = _select_action_chunk( model, observations=torch.zeros(1, 3), instructions=["pick"], torch=torch, selection_mode="retrieval_residual", num_candidates=1, candidate_sigma=0.0, selection_seed=0, action_candidates=residuals, retrieval_residual_scale=scale,)expected = mean + residual * scaleassert torch.allclose(actions, expected), (actions, expected)assert index.tolist() == [1], indexprint({"status": "ok", "scale": scale, "actions": actions.tolist(), "index": index.tolist()})PY50 unmodified lines51525354555650 unmodified lines"field_optim_trust_radius": data.get("field_optim_trust_radius", 0.0),"field_optim_l2_penalty": data.get("field_optim_l2_penalty", 0.0),"retrieval_neighbors": data.get("retrieval_neighbors", 0),"num_groups": data.get("num_groups"),"policy_rollout_success_rate": data.get("policy_rollout_success_rate", 0.0),"policy_rollout_progress": data.get("policy_rollout_progress", 0.0),50 unmodified lines5152535455565750 unmodified lines"field_optim_trust_radius": data.get("field_optim_trust_radius", 0.0),"field_optim_l2_penalty": data.get("field_optim_l2_penalty", 0.0),"retrieval_neighbors": data.get("retrieval_neighbors", 0),"retrieval_residual_scale": data.get("retrieval_residual_scale", 0.0),"num_groups": data.get("num_groups"),"policy_rollout_success_rate": data.get("policy_rollout_success_rate", 0.0),"policy_rollout_progress": data.get("policy_rollout_progress", 0.0),
59 unmodified lines60616263646554 unmodified lines12012112212312412512612712812913013113213313413513659 unmodified lines"field_optim_trust_radius": data.get("field_optim_trust_radius", 0.0),"field_optim_l2_penalty": data.get("field_optim_l2_penalty", 0.0),"retrieval_neighbors": data.get("retrieval_neighbors", 0),"policy_rollout_success_rate": data.get("policy_rollout_success_rate", 0.0),"policy_rollout_progress": data.get("policy_rollout_progress", 0.0),"oracle_success_rate": data.get("oracle_success_rate", 0.0),54 unmodified linesf"Mean progress: {summary['mean_progress']:.2%}",f"Mean action MSE to best: {summary['mean_action_mse_to_best']:.3f}","","| seed | mode | k | retrieval K | sigma | opt steps | trust | success | progress | oracle | action MSE |","|---:|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|",]for row in rows:lines.append("| {seed} | {mode} | {k} | {retrieval} | {sigma:.2f} | {steps} | {trust:.2f} | ""{success:.2%} | {progress:.2%} | {oracle:.2%} | {mse:.3f} |".format(seed=row["seed"],mode=row.get("selection_mode") or "policy",k=row.get("num_candidates") or 1,retrieval=row.get("retrieval_neighbors") or 0,sigma=row.get("candidate_sigma") or 0.0,steps=row.get("field_optim_steps") or 0,trust=row.get("field_optim_trust_radius") or 0.0,59 unmodified lines6061626364656654 unmodified lines12112212312412512612712812913013113213313413513613713859 unmodified lines"field_optim_trust_radius": data.get("field_optim_trust_radius", 0.0),"field_optim_l2_penalty": data.get("field_optim_l2_penalty", 0.0),"retrieval_neighbors": data.get("retrieval_neighbors", 0),"retrieval_residual_scale": data.get("retrieval_residual_scale", 0.0),"policy_rollout_success_rate": data.get("policy_rollout_success_rate", 0.0),"policy_rollout_progress": data.get("policy_rollout_progress", 0.0),"oracle_success_rate": data.get("oracle_success_rate", 0.0),54 unmodified linesf"Mean progress: {summary['mean_progress']:.2%}",f"Mean action MSE to best: {summary['mean_action_mse_to_best']:.3f}","","| seed | mode | k | retrieval K | residual scale | sigma | opt steps | trust | success | progress | oracle | action MSE |","|---:|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|",]for row in rows:lines.append("| {seed} | {mode} | {k} | {retrieval} | {scale:.2f} | {sigma:.2f} | {steps} | {trust:.2f} | ""{success:.2%} | {progress:.2%} | {oracle:.2%} | {mse:.3f} |".format(seed=row["seed"],mode=row.get("selection_mode") or "policy",k=row.get("num_candidates") or 1,retrieval=row.get("retrieval_neighbors") or 0,scale=row.get("retrieval_residual_scale") or 0.0,sigma=row.get("candidate_sigma") or 0.0,steps=row.get("field_optim_steps") or 0,trust=row.get("field_optim_trust_radius") or 0.0,
17 unmodified lines181920212223242526343 unmodified lines37037137237337437517 unmodified lines_RolloutCase,_adapt_action_dim,_attach_retrieved_residual_candidates,_load_state_archive,_numeric_action_values,_select_action_chunk,_summarize_rows,)343 unmodified linesassert index.tolist() == [1]def test_retrieval_residual_candidates_use_knn_train_residuals() -> None:def record(group_id: str, candidate_type: str, action_value: float, feature: float):return SimpleNamespace(17 unmodified lines1819202122232425262728343 unmodified lines37237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343417 unmodified lines_RolloutCase,_adapt_action_dim,_attach_retrieved_residual_candidates,_effective_lattice_candidate_count,_load_state_archive,_numeric_action_values,_select_action_chunk,_selected_candidate_type,_summarize_rows,)343 unmodified linesassert index.tolist() == [1]def test_retrieval_residual_mode_scales_residuals() -> None:import torchmean = torch.full((1, 1, 3), 0.1)residual = torch.full_like(mean, 0.8)target_offset = residual * 0.5model = _StubModel(torch, mean, best_offset=target_offset)residuals = torch.stack([torch.zeros_like(mean), residual], dim=1)actions, index = _select_action_chunk(model,observations=torch.zeros(1, 3),instructions=["a"],torch=torch,selection_mode="retrieval_residual",num_candidates=1,candidate_sigma=0.0,selection_seed=0,action_candidates=residuals,retrieval_residual_scale=0.5,)assert torch.allclose(actions, mean + target_offset)assert index.tolist() == [1]def test_retrieval_residual_gaussian_candidates_are_counted_and_labeled() -> None:case = _RolloutCase(group_id="g",task_id="PickCube-v1",source_dataset=Path("."),state={},observation={"features": [0.0]},instruction="pick",oracle_score=1.0,oracle_success=True,expert_score=1.0,expert_success=True,best_action_values=[[0.0]],candidate_action_values=[[[0.0]], [[0.2]]],candidate_types=["policy_residual", "residual_near_miss"],)assert (_effective_lattice_candidate_count(case,selection_mode="retrieval_residual",num_candidates=4,candidate_sigma=0.2,)== 5)assert (_selected_candidate_type(case, selected_index=4, selection_mode="retrieval_residual")== "retrieval_residual_gaussian")def test_retrieval_residual_candidates_use_knn_train_residuals() -> None:def record(group_id: str, candidate_type: str, action_value: float, feature: float):return SimpleNamespace(
results/paper_story_memo.md+20-1
results/paper_table_status.json+114
results/paper_table_status.md+6
scripts/build_paper_table_status.py+60
scripts/eval_maniskill_policy_rollout.py+7
scripts/slurm/eval_maniskill_policy_rollout.sbatch+2
scripts/slurm/smoke_retrieval_residual_scale_unit.sbatchAdded+74
scripts/slurm/summarize_h16_field_sweep.sbatch+1
scripts/slurm/summarize_h16_policy_ckpt.sbatch+5-3
tests/test_maniskill_policy_rollout.py+59