naishashetty commited on
Commit
9aaa0c1
·
verified ·
1 Parent(s): bc167f3

Add htn to v1.0/v1.1 baselines, fix stale fp401-t3a note, add box_threshold and tier4 investigation addenda

Browse files
Files changed (1) hide show
  1. README.md +90 -17
README.md CHANGED
@@ -74,7 +74,9 @@ a GPU/Unity this Space's free tier doesn't have — is live at
74
  Every task pairs a natural-language
75
  instruction with a structured goal/object/target spec and a
76
  machine-checkable success predicate, across 5 real AI2-THOR scenes
77
- spanning all 4 iTHOR room types.
 
 
78
 
79
  **This is a synthetic, AI2-THOR-derived dataset, not a human-collected
80
  one.** Every instruction was authored by a human against a live scan
@@ -146,13 +148,14 @@ Reference implementation: `backend/planning_evaluation/live_state.py`'s
146
  `check_goal_live()` in the [MILO
147
  repository](https://github.com/NaishaShetty/MILO) (this dataset's origin repo).
148
 
149
- ### Baselines (v1.0, real runs, all three planners)
150
 
151
  | Planner | Goal success | tier1_locate | tier2_pickup | tier3_store | Notes |
152
  |---|---|---|---|---|---|
153
  | `rule_based` | 24/25 (96%) | 10/10 | 10/10 | 4/5 | Deterministic, no LLM. One failure is a real AI2-THOR placement/geometry limit, not a planner defect. |
154
  | `behavior_tree` | 24/25 (96%) | 10/10 | 10/10 | 4/5 | Same task/plan-step outcomes as `rule_based` (shares its goal-handler templates); same single failure. |
155
- | `react` (`qwen2.5:7b`, Q4_K_M, via Ollama, local) | 20/25 (80%) | 10/10 | 10/10 | 0/5 | `goal_success`/`execution_success`/`plan_success` agree on every episode no predicate artifact. All 5 failures are genuine multi-step reasoning failures (the model proposes an action before its precondition chain is satisfied, e.g. `pickup` before navigating close enough), not infrastructure. Run on an RTX 4050 Laptop GPU (6GB VRAM, 82%/18% GPU/CPU split), zero rate-limit retries needed (fully local, no quota). |
 
156
 
157
  `react` was also attempted against Gemini's free tier
158
  (`gemini-flash-latest`) first; that attempt is **not** a valid
@@ -193,21 +196,27 @@ keeps as ground truth.
193
 
194
  ### Known limitations — kept deliberately, not hidden
195
 
196
- Two `tier3_store` tasks are **known, currently reproducible failures**
197
- against the reference planner, kept in v1.0 on purpose as honest
198
- negative examples rather than removed to inflate a headline number:
 
199
 
200
  - `milo-v1-fp301-t3a` ("Put the book away in the drawer.") fails at
201
  execution due to a real AI2-THOR physics/geometry limit — the
202
  drawer opens correctly, but AI2-THOR cannot find room for this
203
  particular book inside this particular drawer's real interior
204
- volume. Not a planner defect.
205
- - `milo-v1-fp401-t3a` ("Put the spray bottle away on the shelf.")
206
- fails because the reference rule-based planner tries to `open` the
 
 
207
  shelf before placing — a shelf is a valid receptacle but is not
208
- openable, and the planner's `_deposit()` logic doesn't yet check
209
- `openable` before deciding to open. A genuine, reproducible planner
210
- bug, tracked in the origin repo's roadmap.
 
 
 
211
 
212
  A different, honest limitation of the success predicate itself:
213
  `tier1_locate`'s live check (existence of an object of the named
@@ -286,6 +295,30 @@ reliability on AI2-THOR's synthetic renders — a different, still-open
286
  question this dataset now measures separately instead of conflating
287
  with the first.
288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
  ### Collection methodology
290
 
291
  1. For each of the 5 candidate scenes, a live AI2-THOR
@@ -511,19 +544,59 @@ addendum) on both of a `tier4_multi_step` task's independent sub-goals
511
  in several cases (`FloorPlan202`, `FloorPlan402`'s second sub-goal,
512
  `FloorPlan401`), not only single-object `tier3_store` tasks.
513
 
514
- ### Baselines (v1.1, real runs, all three planners)
515
 
516
  | Planner | Goal success | tier1_locate | tier2_pickup | tier3_store | tier4_multi_step | Notes |
517
  |---|---|---|---|---|---|---|
518
- | `rule_based` | 50/54 (92.6%) | 18/18 | 18/18 | 7/9 | 7/9 | Both `tier3_store` failures are the same real AI2-THOR placement-geometry limit `v1.0` already documents (`FloorPlan301`, now also `FloorPlan203` -- same task shape, independently reproducing). Both `tier4_multi_step` failures are a real, newly-surfaced harness gap (not a planner defect): a failed `place` in sub-goal 1 leaves the object physically held, and `WorldState` re-seeding between sub-goals has no signal for that, so sub-goal 2's plan assumes an empty hand and AI2-THOR rejects it. |
519
  | `behavior_tree` | 50/54 (92.6%) | 18/18 | 18/18 | 7/9 | 7/9 | Same task/plan-step outcomes as `rule_based` (shares its goal-handler templates); same failures for the same reasons. |
 
520
  | `react` (`qwen2.5:7b`, Q4_K_M, via Ollama, local) | 36/54 (66.7%) | 18/18 | 18/18 | 0/9 | 0/9 | `tier4_multi_step`'s 0/9 is the arithmetically expected composition of `tier3_store`'s already-0% rate (a tier requiring two consecutive successful `store` sequences cannot score above a planner's single-`store` success rate) -- confirmed by inspecting each failure, not assumed: every one shows the same precondition-mis-sequencing pattern `v1.0`'s Addendum 3 already documents. `goal_success`/`execution_success`/`plan_success` agree on every episode; 0/54 episodes needed a retry. |
521
 
522
  See the origin repository's `experiments/reports/
523
  phase_e_milo_benchmark_report.md`'s Addendum 7 for full methodology,
524
- per-failure root-cause detail (including the `tier4_multi_step`
525
- WorldState-reseeding gap above, tracked open in `docs/roadmap.md`, not
526
- fixed in this pass), cost/latency, and exact reproduction commands.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
527
 
528
  ### Second local model for `react`: `qwen2.5:3b` comparison
529
 
 
74
  Every task pairs a natural-language
75
  instruction with a structured goal/object/target spec and a
76
  machine-checkable success predicate, across 5 real AI2-THOR scenes
77
+ spanning all 4 iTHOR room types. `v1.0` is frozen (see "Versioning"
78
+ below) — for a larger, 9-scene extension with a fourth difficulty
79
+ tier, see [`v1.1`](#milo-benchmark-v11) (below, same page).
80
 
81
  **This is a synthetic, AI2-THOR-derived dataset, not a human-collected
82
  one.** Every instruction was authored by a human against a live scan
 
148
  `check_goal_live()` in the [MILO
149
  repository](https://github.com/NaishaShetty/MILO) (this dataset's origin repo).
150
 
151
+ ### Baselines (v1.0, real runs, all four planners)
152
 
153
  | Planner | Goal success | tier1_locate | tier2_pickup | tier3_store | Notes |
154
  |---|---|---|---|---|---|
155
  | `rule_based` | 24/25 (96%) | 10/10 | 10/10 | 4/5 | Deterministic, no LLM. One failure is a real AI2-THOR placement/geometry limit, not a planner defect. |
156
  | `behavior_tree` | 24/25 (96%) | 10/10 | 10/10 | 4/5 | Same task/plan-step outcomes as `rule_based` (shares its goal-handler templates); same single failure. |
157
+ | `htn` | 24/25 (96%) | 10/10 | 10/10 | 4/5 | A real Hierarchical Task Network engine (compound tasks, a state-conditional method library, recursive decomposition) not a second implementation of `rule_based`'s control flow. Matches `rule_based`/`behavior_tree` exactly, including the identical single failure, at comparable latency (~647ms/episode avg vs. ~620–633ms). Slice 1 only: covers `tier1_locate`/`tier2_pickup`/`tier3_store`, not this project's `tier4_multi_step` tier (see `v1.1`'s card below). |
158
+ | `react` (`qwen2.5:7b`, Q4_K_M, via Ollama, local) | 20/25 (80%) | 10/10 | 10/10 | 0/5 | `goal_success`/`execution_success`/`plan_success` agree on every episode — no predicate artifact. All 5 failures are genuine multi-step reasoning failures (the model proposes an action before its precondition chain is satisfied, e.g. `pickup` before navigating close enough), not infrastructure. Run on an RTX 4050 Laptop GPU (6GB VRAM, 82%/18% GPU/CPU split), zero rate-limit retries needed (fully local, no quota). Reconfirmed unchanged (identical 20/25, identical per-task failures) after later detection-threshold/prompt fixes described below — those fixes don't touch this planner's LLM-proposal path. |
159
 
160
  `react` was also attempted against Gemini's free tier
161
  (`gemini-flash-latest`) first; that attempt is **not** a valid
 
196
 
197
  ### Known limitations — kept deliberately, not hidden
198
 
199
+ When this section was first written, two `tier3_store` tasks were
200
+ **known, currently reproducible failures** against the reference
201
+ planner, kept in v1.0 on purpose as honest negative examples rather
202
+ than removed to inflate a headline number:
203
 
204
  - `milo-v1-fp301-t3a` ("Put the book away in the drawer.") fails at
205
  execution due to a real AI2-THOR physics/geometry limit — the
206
  drawer opens correctly, but AI2-THOR cannot find room for this
207
  particular book inside this particular drawer's real interior
208
+ volume. Not a planner defect. **Still failing** — this is the one
209
+ remaining failure in the Baselines table above, reproduced
210
+ identically by `rule_based`, `behavior_tree`, and `htn`.
211
+ - `milo-v1-fp401-t3a` ("Put the spray bottle away on the shelf.") used
212
+ to fail because the reference rule-based planner tried to `open` the
213
  shelf before placing — a shelf is a valid receptacle but is not
214
+ openable, and `_deposit()` didn't check `openable` before deciding
215
+ to open. **Fixed since this section was first written**: `_deposit()`
216
+ now checks the target's `is_openable` before inserting an `open`
217
+ step (see `backend/planner/rule_based.py`). This task now passes for
218
+ every planner in the Baselines table above — it is not the source of
219
+ any of their current failures.
220
 
221
  A different, honest limitation of the success predicate itself:
222
  `tier1_locate`'s live check (existence of an object of the named
 
295
  question this dataset now measures separately instead of conflating
296
  with the first.
297
 
298
+ #### Second addendum — detection threshold properly validated and changed (0.35 → 0.25)
299
+
300
+ The root-cause data point above (0.15 recovers detections but was
301
+ never validated for false positives) has since been followed up
302
+ properly, not left open: a dedicated validation set (8 real AI2-THOR
303
+ scenes, 9 true positives, 14 confirmed-absent true negatives) swept
304
+ real precision/recall at `box_threshold` 0.15/0.20/0.25/0.30/0.35
305
+ (two independent runs, consistent). **0.25 was adopted as the new
306
+ default** (`GroundingDINODetector`'s default `box_threshold`, changed
307
+ from 0.35): same recall as 0.15 (77.8%) with meaningfully better
308
+ precision (63.6% vs. 53.8%), and better recall than the old 0.35
309
+ (77.8% vs. 55.6%) with equal-or-better precision. This is a real
310
+ config-default change to the detector this dataset's `perceived_by_agent`
311
+ signal depends on, not a re-measurement of the numbers above — the
312
+ `perceived_by_agent` counts reported in the first addendum
313
+ (`rule_based`/`behavior_tree` 6/10, `react` 5/10) were measured at the
314
+ old 0.35 threshold and have not been re-run at 0.25; treat them as
315
+ historical, not current, if reproducing this check. `goal_success` is
316
+ unaffected either way (it has never depended on vision detection for
317
+ any tier). See the origin repository's `docs/roadmap.md` for the full
318
+ validation methodology and a methodology bug this pass also caught and
319
+ fixed (`GroundingDINODetector` sometimes merges adjacent prompt phrases
320
+ into one compound label, which naive exact-string matching missed).
321
+
322
  ### Collection methodology
323
 
324
  1. For each of the 5 candidate scenes, a live AI2-THOR
 
544
  in several cases (`FloorPlan202`, `FloorPlan402`'s second sub-goal,
545
  `FloorPlan401`), not only single-object `tier3_store` tasks.
546
 
547
+ ### Baselines (v1.1, real runs, all four planners)
548
 
549
  | Planner | Goal success | tier1_locate | tier2_pickup | tier3_store | tier4_multi_step | Notes |
550
  |---|---|---|---|---|---|---|
551
+ | `rule_based` | 50/54 (92.6%) | 18/18 | 18/18 | 7/9 | 7/9 | Both `tier3_store` failures are the same real AI2-THOR placement-geometry limit `v1.0` already documents (`FloorPlan301`, now also `FloorPlan203` -- same task shape, independently reproducing). Both `tier4_multi_step` failures are a real, newly-surfaced harness gap (not a planner defect): a failed `place` in sub-goal 1 leaves the object physically held, and `WorldState` re-seeding between sub-goals has no signal for that, so sub-goal 2's plan assumes an empty hand and AI2-THOR rejects it. See "`tier4_multi_step` investigation update" below for the current, precise per-episode status. |
552
  | `behavior_tree` | 50/54 (92.6%) | 18/18 | 18/18 | 7/9 | 7/9 | Same task/plan-step outcomes as `rule_based` (shares its goal-handler templates); same failures for the same reasons. |
553
+ | `htn` | 43/45 (95.6%)¹ | 18/18 | 18/18 | 7/9 | not attempted¹ | A real Hierarchical Task Network engine (compound tasks, a state-conditional method library, recursive decomposition) -- not a second implementation of `rule_based`'s control flow. ¹Slice 1 only: does not yet support `tier4_multi_step`'s multi-subtask decomposition, so those 9 tasks were deliberately not attempted, not scored as failures -- goal success is out of 45, not 54. Both `tier3_store` failures (`milo-v1-fp301-t3a`, `milo-v1.1-fp203-t3a`) are the identical placement-geometry limit `rule_based`/`behavior_tree` hit on the same pair -- no new failure mode across the 4 additional scenes, i.e. `v1.0`'s 5-scene result generalizes. |
554
  | `react` (`qwen2.5:7b`, Q4_K_M, via Ollama, local) | 36/54 (66.7%) | 18/18 | 18/18 | 0/9 | 0/9 | `tier4_multi_step`'s 0/9 is the arithmetically expected composition of `tier3_store`'s already-0% rate (a tier requiring two consecutive successful `store` sequences cannot score above a planner's single-`store` success rate) -- confirmed by inspecting each failure, not assumed: every one shows the same precondition-mis-sequencing pattern `v1.0`'s Addendum 3 already documents. `goal_success`/`execution_success`/`plan_success` agree on every episode; 0/54 episodes needed a retry. |
555
 
556
  See the origin repository's `experiments/reports/
557
  phase_e_milo_benchmark_report.md`'s Addendum 7 for full methodology,
558
+ per-failure root-cause detail, cost/latency, and exact reproduction
559
+ commands.
560
+
561
+ #### `tier4_multi_step` investigation update
562
+
563
+ The `WorldState`-reseeding gap noted in the `rule_based`/`behavior_tree`
564
+ row above has since been investigated in depth (not fixed and
565
+ re-benchmarked -- the table above is still the original publish run).
566
+ Two distinct causes were found behind the two known-failing episodes:
567
+
568
+ - **`milo-v1.1-fp302-t4a`**: the engine-crash *symptom* (the planner
569
+ blindly issuing a doomed action once a hand is already occupied) is
570
+ fixed and verified -- re-seeding `robot_holding` with one detection
571
+ call per object name (rather than one joint multi-phrase prompt) at
572
+ a validated `box_threshold=0.25` correctly detects the held object
573
+ and lets the planner correctly *decline* to plan the second sub-goal
574
+ instead of crashing AI2-THOR. This fix is demonstrated via a targeted
575
+ investigation script, not yet merged into the production benchmark
576
+ harness's `_seed_initial_state_from_live_metadata()` path -- the
577
+ table above does not yet reflect it. The task's `goal_success` is
578
+ still `False` either way, now solely because sub-goal 1 hits the same
579
+ real placement-geometry limit `tier3_store` already has, unrelated to
580
+ this bug.
581
+ - **`milo-v1.1-fp201-t4a`**: still open. Per-name detection queries do
582
+ find the held object, but at a measured depth (0.853m) outside the
583
+ held-object heuristic's `HELD_OBJECT_MAX_DEPTH_M=0.5m` cutoff --
584
+ calibrated against smaller held objects (0.347m-0.459m) than this
585
+ one. A separate, nearer, *not*-held object was also wrongly preferred
586
+ by the heuristic's "closest wins" tie-break. The concrete next step
587
+ identified (seeding `robot_holding` from AI2-THOR's own live
588
+ `isPickedUp`/`inventoryObjects` metadata, sidestepping both the
589
+ detection-prompt and depth-calibration dependencies) has not been
590
+ implemented.
591
+
592
+ A related, broader finding surfaced during this investigation: Grounding
593
+ DINO's confidence measurably drops under multi-phrase joint prompts
594
+ (confirmed on 2 independent objects/frames) -- this does not affect
595
+ `goal_success` for any tier in this dataset or `perceived_by_agent`'s
596
+ `tier1_locate` check (both already query one object name at a time),
597
+ but does affect some manual demo scripts in the origin repository. Full
598
+ chain, exact numbers, and regression tests: the origin repository's
599
+ `docs/roadmap.md`.
600
 
601
  ### Second local model for `react`: `qwen2.5:3b` comparison
602