Skip to content

Add Placement Success Benchmark - #1560

Merged
zhx06 merged 11 commits into
mainfrom
zxiao/feature/placement-success-benchmark-runner
Nov 4, 2026
Merged

zhx06 merged 11 commits into
mainfrom
zxiao/feature/placement-success-benchmark-runner

Conversation

@zhx06

@zhx06 zhx06 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Write each Run's placement diagnostics to its output directory, and add RoboLab and KitchenBench Experiments that measure placement success with the normal experiment runner. This replaces the standalone benchmark runner from the first revision of this PR.

Why this change?

A placement change can help one scene and hurt another, and a few hand-picked scenes don't show that. #1556 made each environment build record per-check validation counts, but the experiment runner dropped them after the build. This PR keeps them, so placement success can be measured across all the maintained specs.

What changes?

  • _build_environment_from_cfg() in run_execution.py writes placement_diagnostics_rebuild<i>.json to the Run directory for every rebuild that solves relation placement. This applies to every Experiment, including policy evaluations.
  • PlacementDiagnostics gets num_envs and save() / load().
  • robolab_placement_experiment.yaml and kitchen_bench_placement_experiment.yaml in isaaclab_arena_benchmarking/experiment_configs/ have one Run per spec, each with 30 environments, a zero-action policy and one step.
    • Each Run has its own placement seed, 100000 apart, so tasks that share a scene solve different candidates.
    • Tests check that each experiment lists every spec in its folder and that no two Runs share candidate seeds.
  • placement_success.py reads an Experiment output directory into one RunPlacementRecord per Run and a PlacementSuccessSummary. It reports:
    • valid_candidate_rate_first_batch: the share of the first batch that passes every required check.
    • valid_env_rate_after_retries: the share of environments that need no best-loss fallback.
    • batches_per_build.
  • The docs page explains what is measured and how to run it.
  • ci.yml runs isaaclab_arena_benchmarking/tests/test_placement_success.py.

Each Run builds its spec once. On main, the rebuilds of a Run get the same placement seed, so more rebuilds would repeat the same candidates. Once rebuilds get their own seeds (after #1523), the Experiments can use more rebuilds.

The experiments are not in tracked_benchmarks.yaml yet. They can be added together with placement KPI fields, which David plans to wire up.

Validation

  • The new tests, test_placement_diagnostics.py, test_run_execution.py, test_experiment_runner.py and test_arena_experiment_result.py pass locally, with the camera test run in its own process as in CI. That includes one test that runs a one-Run placement Experiment and reads its diagnostics back.
  • Three real Runs (banana_on_plate and two KitchenBench specs, 30 environments) took 81 s through experiment_runner.py on one GPU, from app start to the result file. The KitchenBench pick spec took the longest, about 50 s.
  • My local image has no cuRobo v2, so these ran on the core from before Upgrade the cuRobo IK reachability check from cuRobo v1 to v2 #1550 with this PR's changes applied. CI covers the current image.
  • The full 80-spec Experiments have not been run yet.

@zhx06
zhx06 force-pushed the zxiao/feature/placement-success-benchmark-runner branch from 1915e35 to 861da0b Compare October 29, 2026 23:40
@zhx06
zhx06 marked this pull request as ready for review October 29, 2026 23:42
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The PR adds an opt-in benchmark workflow without changing normal environment builds.

The PR appears safe to merge, with a non-blocking improvement needed to distinguish interrupted results from completed runs.

Findings

  1. P2 Interrupted runs look finished ▶

Summary

Adds a placement benchmark that builds RoboLab and KitchenBench specs without stepping physics.

  • The benchmark measures placement success across RoboLab and KitchenBench specs.
  • The CLI turns placement measurements into saved suite results.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Discover selected specs] --> B[Build each spec for each seed]
    B --> C[Read placement diagnostics]
    C --> D[Add environment record]
    D --> E[Save results]
    E --> B
    D --> F[Summarize suites]
    F --> G[Exit nonzero if any spec failed]
Loading

Reviews (1) · Last reviewed commit: "clarify fallback and later-batch wording" · Reviewed by Greptile

@arena-review-bot

arena-review-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Isaac Lab-Arena Review Bot

Summary

This revision drops the standalone runner and uses the normal Experiment flow:

  • _build_environment_from_cfg() saves the PlacementDiagnostics of each build that solves relation placement.
  • Two Experiment YAMLs list all 38 RoboLab and all 42 KitchenBench specs, each Run with its own fixed placement seed.
  • placement_success.py reads the saved files back into per-Run rates and Experiment means.

My three earlier comments no longer apply: seeds are now set per Run, and both the provenance code and the placer-parameter copy are gone.

What's left is small:

  • _build_environment_from_cfg() could write the file at a simpler point.
  • Two sentences in the new docs page are wrong.
  • The seed test relies on an assumption it doesn't check.
  • uv-ci.yml doesn't list the new test file.

Findings

🔵 Improvement: isaaclab_arena/evaluation/run_execution.py:172. The file can be written after build_env_cfg() and before make_registered(). That removes the except BaseException cleanup and the test that covers it.

🔵 Improvement: docs/pages/concepts/object_placement/placement_success_benchmark.rst:26. Fallback uses the highest-ranked candidates: fewest failed checks first, then lowest loss. The docs call them the lowest-loss candidates.

🔵 Improvement: docs/pages/concepts/object_placement/placement_success_benchmark.rst:74. Only butter_above_raisin uses the butter_raisin_box scene. The two grey-bin butter/raisin tasks still require the IK check.

🔵 Improvement: isaaclab_arena_benchmarking/tests/test_placement_success.py:90. The seed-spacing bound assumes no spec overrides min_unique_layouts_per_env or max_placement_attempts, but nothing checks that.

🔵 Improvement: .github/workflows/ci.yml:301. uv-ci.yml runs the same test list and doesn't include the new file.

The PR description still calls the per-Run class RunPlacementRecord; in the code it is RunPlacementCounts.

Test Coverage and CI Cost

I could not confirm the new tests pass in CI or see how long the new RoboLab sim test takes. "Run tests" and "Run tests with subprocess" were still running on this head commit when I reviewed. The coverage gap I found is the unchecked placer-parameter assumption in the seed-spacing test, covered in the inline comment.

Verdict

Minor fixes needed

@zhx06
zhx06 force-pushed the zxiao/feature/placement-success-benchmark-runner branch from 1e7bc70 to 925de48 Compare October 30, 2026 17:43
@zhx06

zhx06 commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@arena-review-bot

Copy link
Copy Markdown
Contributor

The PR changed while this review was running. Please run /review to retry.

Requested in this comment.

@zhx06

zhx06 commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

/review

Comment thread .github/workflows/ci.yml Resolved

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking much better.

I only have one major comment about separating the writing of diagnostics from the process of building the env.

@zhx06
zhx06 force-pushed the zxiao/feature/placement-success-benchmark-runner branch from 3358aff to 399c56f Compare November 2, 2026 17:50

@alexmillane alexmillane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding this!

zhx06 added 8 commits November 3, 2026 09:14
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
@zhx06
zhx06 force-pushed the zxiao/feature/placement-success-benchmark-runner branch from 399c56f to 4c3d5f7 Compare November 3, 2026 17:53
zhx06 added 3 commits November 3, 2026 16:55
Signed-off-by: zhx06 <zihaox@nvidia.com>
…ctly

Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
@zhx06
zhx06 merged commit 1a73ce1 into main Nov 4, 2026
10 checks passed
zhx06 added a commit that referenced this pull request Nov 4, 2026
Fix the placement pool fallback so it fills an environment's remaining
slots when the last batch finds too few valid layouts. Native uv CI has
failed on `main` since #1523 because of this. Also run
`test_placement_success.py` in native uv CI, as Docker CI does.

## Why this change?

With `allow_best_loss_fallbacks`, which is on by default,
`PooledObjectPlacer` fell back only when its last batch had no valid
layout. If the last batch had some valid layouts but too few, the build
raised `Placement pool could not fill ...`. So finding one more valid
layout could turn a passing build into a failing one.

#1523 changed the candidate seeds, and the farmhouse2 banana spec now
hits this in native uv CI. It finds 3 of 5 valid layouts, but its last
batch has 1, so the build fails. Before #1523 it found 1, its last batch
had none, and fallback filled the rest.

## What changes?

- On the last batch, `PooledObjectPlacer` stores an environment's valid
layouts first, then fills its remaining slots with best-loss layouts.
With `allow_best_loss_fallbacks=False`, an environment that is still
short still fails the build. The docs described the old rule and now
describe the new one.
- `uv-ci.yml` runs
`isaaclab_arena_benchmarking/tests/test_placement_success.py`, as
`ci.yml` has since #1560.

## Validation

- A new test in `test_heterogeneous_placement.py` covers a last batch
with too few valid layouts, with fallback on and off. Its fallback-on
case fails on `main` and passes here. The placement test files pass in
the Isaac Sim 6.2 container.
- With the farmhouse2 spec limited to 3 placement attempts, seeds 0 and
7 fail on `main` and build with this change.

This PR's native uv job runs the farmhouse2 test on the stack where it
fails. `main`'s latest uv run also failed
`test_droid_deformable_environment[physx]`, which this PR doesn't
address.

---------

Signed-off-by: zhx06 <zihaox@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants