FlowerNeverFade's picture
Data package of "Not Where You Think: Which Steps Matter to Robot Policies"
f020701 verified
|
Raw History Blame Contribute Delete
8.58 kB

Fixing measure: evaluation rollouts on LIBERO-Long

Paper Secs. 3.3, 4.2, 4.3, S2.4, S4, S5.7.

File Rows Content
libero_10_rollouts.csv.gz 357,810 evaluation rollouts: 1,397 runs (953 trained, 444 untrained), 18 cells
libero_10_rollouts_held_noise.csv.gz 29,967 evaluation rollouts with the translation noise held (Sec. S5.7)
libero_10_windows.csv.gz 33,367 where each window of an initial state starts in the base run

One row per rollout in the first two files, sorted by policy, task, window, run, kind, salt, key (as text), set (then evaluation, rollout in the second file). A cell is a (policy, task) pair.

Columns

Column Content
suite libero_10
policy oft, pi0, pi05, groot, cosmos, rynn
task LIBERO-Long task: 0, 6, 8; for cosmos 4, 6, 8
window the window in which the residual may act (nwyt.phases.WINDOWS)
run s0, s1, s2: residual trained with this seed; untrained: the residual before training
kind trained (the trained residual's mean), untrained, frozen (the frozen policy alone)
salt noise salt of the rollout: eval0; also eval1 for pi0, pi05, groot, cosmos
key initial state: fixed:<i> official initial state i (0-49), fresh:<i> a further one from the same distribution
split half of the pool that the initial state belongs to: train or heldout
weight 1 for a base failure; for a base success, the cell's natural successes divided by its pooled successes
success 1 if the rollout succeeds
base_success 1 if the recorded base run of the initial state succeeds
base_stage success, fail_subtask1 (the first object is never placed) or fail_subtask2
set run set, see below
render renderer of the rollout: gpu or cpu (software)

A run is one residual in one window of one cell: (set, policy, task, window, run). Every run holds its own frozen rollouts, from the same window starts and under the same salts as its other kind. All runs of a window of a cell start the window of an initial state at the same step, in every set.

Run sets of libero_10_rollouts.csv.gz

set Cells Windows Runs Rows render
main 18 FREE1, GRASP1, CARRY1, REL1, FREE2, GRASP2, RANDOM, ALL 497 137,640 gpu; cpu for 38 runs
finer 9: oft, pi05, rynn the 15 finer windows 405 86,880 gpu
finer_pi0_cosmos 6: pi0, cosmos the 15 finer windows 270 74,304 cpu
anchored 15: all but groot GRASP1F, REL1F, GRASP2F 135 35,502 cpu
free_cpu 15: all but groot FREE1, FREE2 90 23,484 cpu
  • main: seeds s0-s2 and untrained; ALL and every window of groot: s0 and untrained. groot task 6 CARRY1 has no trained run. The cpu runs: CARRY1, RANDOM and REL1 of groot (17 runs); for the other policies s2 of REL1 in 14 cells, s2 of CARRY1 in 5 cells (s1 too in rynn task 8) and s2 of RANDOM in oft task 8 (21 runs). Nine of these 21 (REL1 in oft task 0 and pi0 task 6, and the seven CARRY1 and RANDOM runs) began training with the gpu renderer; they finished it, and were evaluated, with the cpu renderer.
  • The other sets: seeds s0, s1 and untrained.
  • free_cpu repeats the free-motion windows of main with the cpu renderer, so (policy, task, window, run) occurs in both sets. Select the sets before any analysis; all sets together mix the two renderers in FREE1 and FREE2.
  • The 953 trained runs are the 917 of Sec. S2.4 and the 36 of free_cpu for oft, pi05, rynn.

Use

from nwyt.fixing import analyze as A
rows = [r for r in A.read_rows("libero_10_rollouts.csv.gz") if r["set"] == "main"]
cells, control = A.analyze(rows)          # split="heldout" or "train": one half of the initial states

Sets per analysis of the paper (a window is compared with the free-motion window of the same sets):

Analysis Sets
Tables 3, S3, S18, S19, S22; Secs. 4.2, S4.1, S4.4 main
finer windows (Tab. S20, Fig. S3c), oft, pi05, rynn main + finer
finer windows, pi0, cosmos finer_pi0_cosmos + free_cpu; GRASP1 and GRASP2 with FREE1, FREE2: main
anchored windows (Tabs. S20, S21) anchored + free_cpu
closure windows by attempt (Tab. S21) as the finer windows, split by attempt of libero_10_windows.csv.gz
CARRY1, REL1, RANDOM with GPU rendering only (Sec. S2.1) main, rows with render = gpu
free motion, software minus GPU rendering (Sec. S2.1) free_cpu against main, runs s0, s1, untrained

libero_10_rollouts_held_noise.csv.gz

The same columns, then:

Column Content
evaluation 1, or 2 for a second evaluation of the same residual
rollout number of the rollout from the same window start (0-15 in held_noise_map, else 0)
z_x, z_y, z_z the rollout's draw of the translation noise, in standard deviations; empty where no noise is drawn

The residual adds its mean plus its standard deviation times this draw at every step of the window (untrained residual: mean 0, standard deviation 0.15 per translation dimension). kind trained_sample: the trained residual with its noise. All rollouts are drawn with the gpu renderer.

set Content Rows
held_noise residuals trained with the held noise (s0, s1), and the untrained residual 5,980
held_noise_map the untrained residual, 16 rollouts per initial state (Tabs. S30, S31) 23,987
  • held_noise: GRASP2 and FREE2 of oft and rynn, tasks 0 and 8.
  • held_noise_map: FREE1, GRASP1, FREE2, APP2, GRASP2 of oft and rynn, tasks 0 and 8; FREE1, GRASP1 of pi0 and pi05, task 0.
  • held_noise, GRASP2: evaluation 1 holds trained and untrained, evaluation 2 trained_sample, each with its own frozen rollouts. The rescues of the trained and of the untrained residual in Sec. S5.7 (15.7 and 14.6 pp) use the frozen rollouts of evaluation 1 only. A difference between two kinds does not depend on the frozen rollouts.
  • held_noise, FREE2: one evaluation with all four kinds.
  • held_noise_map: per window and cell up to 30 base failures and 30 base successes; one salt for every policy.

libero_10_windows.csv.gz

One row per (policy, task, window, key) of the two rollout tables. Sorted by policy, task, window, key.

Column Content
suite, policy, task, window, key as above
start step of the base run at which the window starts (ALL: 0); the window ends 16 steps later or with the episode
attempt first, retry or empty

attempt is given for the 18 windows at a fixed offset from a grasp or release onset (FAR, APP, GRASP, LIFT, TRANS, LATECARRY, PLACE, REL, LEAVE, EXIT with their object number): first if that onset is the first grasp (release) onset of its object in the base run, retry if it is a later one. Empty for the other windows and for groot.

Checks

  • analyze() on main gives the point estimates and failure counts of all 2,637 statistics in results/fixing/cells_libero_10.csv of the repository exactly (all initial states and both halves).
  • Intervals, p-values and standard errors come from new bootstrap draws. Largest per-cell differences from the stored values, as fractions: standard error 0.011, interval bound 0.12, p 0.037. Pooled values of Table 3 move by at most 0.06 pp on all initial states and 0.17 pp on a half; three of its 24 printed values change by 0.1. The tables of the paper are printed from the stored per-cell statistics (python -m nwyt.paper.fixing_tables).
  • The 3,540 per-cell estimates of the finer and anchored windows in results/fixing/cells_libero_10_finer.csv follow exactly from the sets above.
  • The 1,056 per-cell estimates of the split by attempt in results/fixing/cells_libero_10_attempts.csv follow exactly from the rollouts and attempt.
  • held_noise: the per-cell estimates behind the rescues of Sec. S5.7 follow exactly; the learned columns of Tabs. S30 and S31 follow at the printed decimal. The estimates of these tables that use the noise draws were not recomputed from this file.

Not in these files

  • The training rollouts of the runs with held noise, and the hand-object geometry of the base runs (the column "along the needed correction" of Tabs. S30, S31).
  • The RoboCasa runs (Sec. S4.5).