brandonbaek's picture
Add benchmark tag, default config, standalone evaluate.py harness, leaderboard, and enriched sealed query metadata
06334ce verified
|
Raw History Blame Contribute Delete
9.25 kB
---
pretty_name: Selective Physical Undo Benchmark
license: cc-by-4.0
language:
- en
task_categories:
- robotics
- video-classification
tags:
- benchmark
- robotics
- vla
- multimodal
- video
- evaluation
- selective-undo
- causal-provenance
- mujoco
- robosuite
- franka-panda
- habit
- droid
- embodied-ai
size_categories:
- n<1K
configs:
- config_name: sim_marked
default: true
data_files:
- split: train
path: sim/development.jsonl
- split: test
path: sim/test.jsonl
- split: challenge
path: sim/challenge.jsonl
- config_name: real_cases
data_files:
- split: test
path: real/cases.jsonl
- config_name: real_matched_prefixes
data_files:
- split: test
path: real/pairs.jsonl
- config_name: real_confirmation
data_files:
- split: test
path: real/confirmation.jsonl
- config_name: sealed_ood_queries
data_files:
- split: test
path: sealed/sealed_ood_queries.jsonl
- config_name: confirm_v2_queries
data_files:
- split: test
path: sealed/confirm_v2_queries.jsonl
---
# Selective Physical Undo Benchmark (`UndoVLA` Suite)
<p align="center">
<a href="https://doi.org/10.5281/zenodo.24767132"><img src="https://img.shields.io/badge/DOI-10.5281%2Fzenodo.24767132-0f766e?style=for-the-badge" alt="Zenodo DOI"/></a>
<a href="https://huggingface.co/brandonbaek/UndoVLA"><img src="https://img.shields.io/badge/%F0%9F%A4%96%20Flagship%20Model-UndoVLA-blue?style=for-the-badge" alt="UndoVLA Model"/></a>
<a href="https://huggingface.co/spaces/brandonbaek/selective-undo-demo"><img src="https://img.shields.io/badge/%F0%9F%A6%BE%20Interactive%20Demo-Space-indigo?style=for-the-badge" alt="Interactive Space"/></a>
<a href="https://huggingface.co/collections/brandonbaek/undovla-selective-physical-undo-6b1084a557307b60fc01b29d"><img src="https://img.shields.io/badge/%F0%9F%93%82%20Project-Collection-teal?style=for-the-badge" alt="HF Collection"/></a>
</p>
A multi-domain, zero-leakage **robotics & VLM benchmark** testing whether embodied policies and vision-language models can **selectively undo** unintended robot actions in shared human–robot workspaces while preserving human work, abstaining on incomplete or overwritten actions, and asking confirmation before disturbing blocking protective barriers.
---
## Visual Overview
| Simulation Clarification Branching (`sim_marked`) | Real-World Protective Barrier (`real_confirmation`) |
| :---: | :---: |
| <img src="assets/selective_undo_sidebyside.gif" width="360" alt="Simulation clarification contrast"/> | <img src="assets/real_sealed_box.gif" width="280" alt="Real-world sealed box confirmation"/> |
| Matched final frames resolved only after human clarification (*tray-coupled* vs. *world-spot*). | Human tapes box shut after robot placement → model must output **`ask`**. |
| OOD Franka Panda `DROID-100` (`sealed_ood_queries`) | Shifted-Camera RANSAC Overlay (`shift`) |
| :---: | :---: |
| <img src="assets/compare_droid-54-late.jpg" width="400" alt="OOD DROID-100 Late-ROI visual strip"/> | <img src="assets/shift_7491_f1068.jpg" width="300" alt="Unsupervised RANSAC 3D-to-pixel overlay"/> |
| Unseen 7-DoF Franka Panda (`[START \| END]` strip). Direct VLM commits `12/12` early FPs; **`ASTPG`** solves `28/36 (77.8%)`. | Unsupervised per-episode RANSAC maps 3D EEF kinematics onto pixel motion (`0` calibration, `0` HSV). |
<p align="center">
<img src="assets/fig_real_pooled_controls.png" width="95%" alt="Pooled benchmark accuracy across controls and cohorts"/>
</p>
---
## Benchmark Structure & Zero-Leakage Splits
| Config | Samples | Source | Evaluation Focus |
| --- | ---: | --- | --- |
| **`sim_marked`** *(default)* | `102` clips | MuJoCo | Held-out views (`VIEWS[2:5]`), unseen histories, `ask` vs. `repair` |
| **`real_cases`** | `11` clips | `HABIT` | Actor attribution (`robot` vs. `human`) across real tasks |
| **`real_matched_prefixes`** | `12` clips (`6` pairs) | `HABIT` | Identical prompt & start; early vs. late cutoff flips answer |
| **`real_confirmation`** | `12` clips (`6` pairs) | `HABIT` | Overwrite & protective-barrier confirmation pairs |
| **`sealed_ood_queries`** | `96` queries (`32` ep.) | `HABIT` + `DROID-100` | One-shot virgin blind + zero-shot Franka Panda (`0` overlap) |
| **`confirm_v2_queries`** | `36` queries (`12` ep.) | `HABIT` | Disjoint reserved confirmation cohort (`0` overlap) |
| **`sealed/` audit logs** | Metadata | JSON logs | SHA-256 disjointness proofs & McNemar stats (`n=195`) |
> **Why Naive Shortcuts Fail (`0/32`):** Because matched pairs hold prompt text and initial frames constant, `always_repair`, `always_no_change`, and `request_keyword_heuristic` all achieve **`0` paired wins**, and end-to-end `Direct VLM` achieves **`0/32` (`0.0%`)** paired accuracy on `sealed_ood` while triggering **`20/20` (`100%`) false early repairs** on incomplete `HABIT Contact` + `DROID-100` clips.
---
## Reference Leaderboard
| Model / Control | `sealed_ood` (`n=96`) | OOD `DROID-100` (`n=36`) | `confirm_v2` (`n=36`) | All Real (`n=195`) | Sim Challenge (`27` br.) |
| --- | ---: | ---: | ---: | ---: | ---: |
| **`UndoVLA / ASTPG` (`Qwen3-VL-8B` / `TPDE`)** | **`75/96 (78.1%)`** (`v1.1`) | **`28/36 (77.8%)`** | **`25/36 (69.4%)`** | **`151/195 (77.4%)`** | **`27/27 (100%)`** |
| `ASTPG` (`Qwen2.5-VL-7B`, `v1.1` / `v1.0`) | `54/96 (56.2%)` / `52.1%` | `1/12` timing | — | — | — |
| `ASTPG` (`InternVL3-8B-hf`, `v1.0` / `v1.1`) | `53/96 (55.2%)` / `52.1%` | `25/36` (`3/12` timing) | — | — | — |
| `ASTPG` (`Last-Frame` control, `Qwen3-VL-8B`) | `65/96 (67.7%)` | `23/36` (`1/12` timing) | `22/36 (61.1%)` | `63.6%` (`p = 3.55e-4`) | `0/27 (0.0%)` |
| `ASTPG` (`Reversed` control, `Qwen3-VL-8B`) | `57/96 (59.4%)` | `24/36` (`3/12` timing) | `20/36 (55.6%)` | `56.4%` (`p = 4.19e-6`) | `15/27 (55.6%)` |
| `Direct VLM` (`Qwen3-VL-8B`) | `44/96 (45.8%)` | `21/36` (`0/12` timing) | `17/36 (47.2%)` | `50.8%` (`p = 3.13e-8`) | `1/27 (3.7%)` |
---
## Evaluate Your Model in 60 Seconds
### Step 1 — Load via Hugging Face `datasets`
```python
from datasets import load_dataset
# Zero-arg default loads sim_marked (train / test / challenge)
sim = load_dataset("brandonbaek/selective-undo-benchmark")
print(sim["challenge"][0])
# Load real matched early/late temporal pairs
real_pairs = load_dataset("brandonbaek/selective-undo-benchmark", "real_matched_prefixes", split="test")
print(real_pairs[0]["request"], real_pairs[0]["correct"])
# Load virgin blind + OOD Franka Panda DROID-100 queries (n=96)
sealed = load_dataset("brandonbaek/selective-undo-benchmark", "sealed_ood_queries", split="test")
print(sealed.num_rows, sealed.unique("cohort"), sealed.unique("source_dataset"))
```
### Step 2 — Download Clips + Score with the Official Harness (`evaluate.py`)
This repository ships a zero-dependency scorer ([`evaluate.py`](evaluate.py)) computing clip accuracy, 95% bootstrap CIs, exact matched-pair / session-pair scores, early false-positive rates, protected-barrier violations, shortcut ceilings, and exact two-sided McNemar significance tests:
```bash
# Download the full dataset (including .mp4 videos) and verify the harness
python evaluate.py --download --out-dir ./selective-undo-benchmark
python ./selective-undo-benchmark/evaluate.py --self-test
# Save your model outputs as JSONL (see examples/predictions_template.jsonl):
# {"id": "napkin_early", "prediction": "keep"}
# {"query_id": "583bf431e2fe29eef34b", "prediction": "repair"}
python ./selective-undo-benchmark/evaluate.py \
--config sealed_ood_queries \
--predictions my_predictions.jsonl \
--baseline direct_vlm_predictions.jsonl
```
*(For upstream video frames of `sealed_ood_queries` and `confirm_v2_queries`, retrieve the exact episode indices recorded in `episode` and `cohort` directly from [`configinc/HABIT`](https://huggingface.co/datasets/configinc/HABIT/tree/bae97d251907743f8fb6db7e70c61d361df4dc1e) and [`lerobot/droid_100`](https://huggingface.co/datasets/lerobot/droid_100).)*
---
## Attribution & Licensing
- **Original Simulation Clips, Annotations & Evaluation Schemas:** Released by the Selective Physical Undo / UndoVLA authors. Code/schemas Apache-2.0; dataset annotations and derived media **CC BY 4.0**.
- **HABIT Source Footage:** Derived clips in `real/` are trimmed, resized (`640 px` wide), and stripped of audio from **HABIT: Human-Aware Behavior and Interaction Training Dataset for Robot Manipulation** (Jaehwi Song, Suchae Jeong, Byeongguk Jeon, Sungdong Kim, Hyungmok Son, and Kimin Lee; [`configinc/HABIT`](https://huggingface.co/datasets/configinc/HABIT/tree/bae97d251907743f8fb6db7e70c61d361df4dc1e), [arXiv:2606.31682](https://arxiv.org/abs/2606.31682)) under **CC BY 4.0**.
- **DROID-100 Source Queries:** Cross-robot OOD episodes in `sealed_ood_queries` reference Franka Panda trajectories curated from [`lerobot/droid_100`](https://huggingface.co/datasets/lerobot/droid_100) (Apache-2.0).
```bibtex
@misc{baek2026selectiveundobenchmark,
title = {Causal Provenance Grounding for Selective Physical Undo Across Simulation and Zero-Calibration Real Robots},
author = {Brandon Baek},
year = {2026},
doi = {10.5281/zenodo.24767132},
url = {https://doi.org/10.5281/zenodo.24767132}
}
```