AlexWortega commited on
Commit
3938c9e
Β·
verified Β·
1 Parent(s): 929aa0e

Add section 12: RoboCasa fine-tune (0/15 -> 7/15 on trained task, 0/45 held-out); qualify section 11's rotation-frame hypothesis

Browse files
Files changed (1) hide show
  1. ablation.md +111 -0
ablation.md CHANGED
@@ -472,6 +472,11 @@ empirically β€” the correspondence between LIBERO's rotation axes and RoboCasa's
472
  `ee_rot`. A systematic rotation-frame error produces exactly this: a constant
473
  spurious delta integrated over hundreds of steps.
474
 
 
 
 
 
 
475
  Two honest caveats on the table above:
476
 
477
  * `NavigateKitchen` is **not a measurement of the policy**. The task requires
@@ -491,6 +496,90 @@ unverifiable frame convention, fine-tune on RoboCasa's own recorded data and let
491
  the model learn whatever axis mapping the dataset actually contains.
492
 
493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  ---
495
 
496
  ## Reproduction
@@ -508,3 +597,25 @@ python eval_libero_rates.py --n-action-steps 10 --semantic-hz 2 \
508
  python stats.py results/rates/full_rate.json results/rates/dual_1hz.json
509
  ```
510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  `ee_rot`. A systematic rotation-frame error produces exactly this: a constant
473
  spurious delta integrated over hundreds of steps.
474
 
475
+ **Section 12 tests that hypothesis and does not confirm it.** Fine-tuning on
476
+ RoboCasa's own data fixes the trained task completely but moves none of the
477
+ held-out ones β€” which a repaired shared rotation frame should have done. Treat
478
+ the paragraph above as the motivating hypothesis, not a finding.
479
+
480
  Two honest caveats on the table above:
481
 
482
  * `NavigateKitchen` is **not a measurement of the policy**. The task requires
 
496
  the model learn whatever axis mapping the dataset actually contains.
497
 
498
 
499
+ ---
500
+
501
+ ## 12. Fine-tuning on RoboCasa's own data
502
+
503
+ Section 11 leaves one convention unverifiable by construction β€” the mapping
504
+ between LIBERO's rotation axes and RoboCasa's `ee_rot` β€” and blames the zero-shot
505
+ collapse on it. Rather than hand-tune that mapping, this section removes the
506
+ question: fine-tune on RoboCasa's *own recorded actions*, so the model learns
507
+ whatever axis convention the data actually contains.
508
+
509
+ **Data**: [`pepijn223/robocasa_CloseFridge`](https://huggingface.co/datasets/pepijn223/robocasa_CloseFridge),
510
+ 513 episodes / 155,443 frames at a correctly-declared 20 fps (no repeat of
511
+ section 1's frame-rate bug). RoboCasa's native 16-dim `agent_pos` and 12-dim flat
512
+ action are converted to this repo's canonical 8-dim state / 7-dim action schema by
513
+ `robocasa_train_source.py`, and normalized with statistics computed over the whole
514
+ dataset (`compute_robocasa_stats.py`), **not** LIBERO's. Feeding the raw vectors
515
+ through `CanonicalSource` would have silently truncated the 12-dim action to its
516
+ first 8 entries β€” `base_motion` + `control_mode` + a partial `ee_pos` β€” which is
517
+ why a dedicated source class exists rather than a config flag.
518
+
519
+ **Recipe**: `ft4` as the starting point, 8,000 steps at effective batch 24
520
+ (2xV100, fp16), lr 1e-4, backbone unfrozen at 0.1x β€” the ft4 recipe on a shorter
521
+ schedule (~1.24 epochs) because this is one task with 155k frames rather than
522
+ LIBERO's 500-task mixture. Final training loss ~0.35.
523
+
524
+ Evaluation is the *same harness, same seeds, same object registry* as section 11's
525
+ zero-shot row, with one necessary difference: the fine-tuned checkpoint is
526
+ unnormalized with its own RoboCasa statistics via `--stats-json`. Scoring it with
527
+ LIBERO's statistics would push actions through the wrong mean/std and report a
528
+ failure that belongs to the harness, not the policy.
529
+
530
+ | | Success | 95% Wilson | delta | paired 95% CI | flips | McNemar p |
531
+ |---|---|---|---|---|---|---|
532
+ | `ft4` zero-shot | 0/15 = 0.0% | β€” | β€” | β€” | β€” | β€” |
533
+ | **RoboCasa fine-tune** | 7/15 = 46.7% | [24.8,69.9] | +46.7 | [+20.0,+73.3] | +7/-0 | 0.0156 |
534
+
535
+ 15 paired episodes (same seeds, same object registry). Pairing verified directly: the sampled instruction string matches on 15/15 episode indices, so the two runs saw the same scenes.
536
+
537
+ **Fine-tuning works, and the effect is unambiguous**: every flip goes one way
538
+ (+7/-0), so this is not variance around a shared mean. The two
539
+ zero-shot failure modes from section 11 β€” upward drift into the ceiling, wrist
540
+ camera rotating to face the floor β€” are absent from the fine-tuned videos
541
+ (`results/robocasa_ftrc/`).
542
+
543
+ ### The residual failures are structured, not random
544
+
545
+ | Scene variant | Instruction | Success | 95% Wilson |
546
+ |---|---|---|---|
547
+ | single-door fridge | `Close the fridge door.` | 7/10 | [39.7,89.2] |
548
+ | double-door fridge | `Close the fridge doors.` | 0/5 | [0.0,43.4] |
549
+
550
+ Fisher exact p=0.0256. **This is not a training-data gap**: both instruction variants are
551
+ well represented in the fine-tuning set (84,341 frames for the single-door
552
+ phrasing, 71,102 for the double-door one β€” 54% / 46%). The model saw plenty of
553
+ double-door episodes and still closes none of them. Closing two doors requires
554
+ sequencing two separate contacts; closing one does not. With n=5 double-door
555
+ episodes this is a suggestive split, not a settled result β€” but it is the correct
556
+ place to look next, and it is invisible in the 7/15 aggregate.
557
+
558
+ ### It did not fix a global convention error
559
+
560
+ The obvious reading of section 11 is that one bad rotation mapping broke every
561
+ task, in which case fine-tuning on any single task should repair the shared
562
+ representation and lift the others too. It does not. Same fine-tuned checkpoint,
563
+ same harness, tasks never seen during fine-tuning:
564
+
565
+ | Held-out task | Success | 95% Wilson |
566
+ |---|---|---|
567
+ | `OpenDrawer` | 0/15 | [0.0,20.4] |
568
+ | `TurnOnMicrowave` | 0/15 | [0.0,20.4] |
569
+ | `PickPlaceCounterToStove` | 0/15 | [0.0,20.4] |
570
+
571
+ **no measurable transfer**: 0/45 (95% Wilson 0.0-7.9%).
572
+
573
+ So the honest conclusion is narrower than "fine-tuning fixes RoboCasa transfer."
574
+ Fine-tuning demonstrably solves *the task it was trained on*, moving it from
575
+ categorically broken to roughly half-successful. It provides **no evidence** that
576
+ the zero-shot collapse was purely a frame-convention artifact β€” had it been, the
577
+ held-out tasks would have moved. What the model acquired looks task-specific
578
+ rather than a repaired shared geometry. Distinguishing "memorized one task" from
579
+ "the other tasks need capabilities beyond the convention" needs a multi-task
580
+ fine-tune, which is the next experiment, not a claim this data supports.
581
+
582
+
583
  ---
584
 
585
  ## Reproduction
 
597
  python stats.py results/rates/full_rate.json results/rates/dual_1hz.json
598
  ```
599
 
600
+ RoboCasa (sections 11-12) runs in a separate venv β€” robosuite 1.5.2, versus the
601
+ 1.4.0 that LIBERO's eval depends on and that must not be disturbed:
602
+
603
+ ```bash
604
+ source .venv_robocasa/bin/activate
605
+
606
+ # zero-shot: LIBERO-trained checkpoint, LIBERO normalization (the default)
607
+ python eval_robocasa.py --checkpoint tinyvla --tasks CloseFridge OpenDrawer --episodes 15 --n-action-steps 1 --refresh-s 1.0 --out-json results/rates/robocasa_ft4.json --tag robocasa_ft4
608
+
609
+ # fine-tune on RoboCasa's own data (main venv, 2-GPU DDP)
610
+ accelerate launch --multi_gpu --num_processes 2 --mixed_precision fp16 tinyvla/scripts/train.py --config tinyvla/configs/robocasa_ft_closefridge.yaml
611
+
612
+ # evaluate it with ITS OWN normalization β€” LIBERO's stats would measure noise
613
+ python eval_robocasa.py --checkpoint outputs/robocasa_ft_closefridge/final --stats-json robocasa_stats.json --tasks CloseFridge --episodes 15 --n-action-steps 1 --refresh-s 1.0 --out-json results/rates/robocasa_ftrc.json --tag robocasa_ftrc
614
+ ```
615
+
616
+ Tasks whose scenes sample objaverse/aigen object categories (`TurnOnMicrowave`,
617
+ `PickPlaceCounterToStove`) need those registries downloaded
618
+ (`python -m robocasa.scripts.download_kitchen_assets --type objs_objaverse objs_aigen`)
619
+ and passed via `--obj-registries lightwheel objaverse aigen`; without them the
620
+ environment cannot be constructed at all.
621
+