Yutong01 commited on
Commit
3959634
·
verified ·
1 Parent(s): 0dfba7f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +114 -0
README.md CHANGED
@@ -1,3 +1,117 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ task_categories:
4
+ - visual-question-answering
5
+ - image-to-text
6
+ language:
7
+ - en
8
+ tags:
9
+ - physical-tool-use
10
+ - mllm-evaluation
11
+ - tool-planning
12
+ - multimodal
13
+ pretty_name: PhysTool-Bench
14
+ size_categories:
15
+ - 1K<n<10K
16
  ---
17
+
18
+ # Dataset Card for PhysTool-Bench
19
+
20
+ ## 📊 Dataset Summary
21
+
22
+ **PhysTool-Bench** is a multimodal benchmark designed to evaluate how well Multimodal Large Language Models (MLLMs) perceive, select, and sequence physical tools in real-world scenes. Unlike traditional tool-use benchmarks that focus on digital APIs, this dataset probes an MLLM's ability to ground functional reasoning in cluttered, physical environments.
23
+
24
+ The benchmark features 2,510 high-quality queries covering 2,678 unique physical tools across 57 distinct categories (e.g., manufacturing, healthcare, farming).
25
+
26
+ ### Key Features
27
+ - **Two‑Task Evaluation:** Decouples pure visual recognition from functional planning and sequencing.
28
+ - **Real‑World Clutter:** Each scene contains an average of 8.6 tools (3.1 required targets and 5.5 visually/functionally similar distractors).
29
+ - **Sequential Logic:** 86.9% of the tasks require a strict execution order, rigorously testing the model's physical commonsense.
30
+
31
+ ---
32
+
33
+ ## 🎯 Supported Tasks
34
+
35
+ The dataset separates evaluation into two distinct tracks to pinpoint whether model failures stem from visual bottlenecks or poor physical reasoning.
36
+
37
+ ### Task I: Tool Recognition
38
+ * **Input:** A real-world scenario image.
39
+ * **Objective:** Enumerate all visible tools in the cluttered scene.
40
+ * **Purpose:** Measures pure visual enumeration and recognition capabilities.
41
+
42
+ ### Task II: Tool Selection & Planning
43
+ * **Input:** A real-world scenario image paired with a brief task instruction.
44
+ * **Objective:** Output the exact, ordered sequence of tools required to complete the specified task.
45
+ * **Purpose:** Measures functional mapping, physical commonsense, and multi-step planning capabilities.
46
+
47
+ ---
48
+
49
+ ## 📁 Dataset Structure
50
+
51
+ Unlike standard text-to-text datasets, **PhysTool-Bench** relies on a decoupled structure to support complex visual reasoning evaluations. The repository contains the raw images and two primary metadata files:
52
+
53
+ * `images/`: Directory containing all high-resolution physical scenario images.
54
+ * `generation_checkpoint.json`: The input file used for model inference. It contains the image paths and `task_instruct` prompts for Task II.
55
+ * `corrected_tools.json`: The ground truth file used for evaluation. It contains the refined taxonomy, required tools (`target_tools`), `target_steps` for ordered tasks, and `negative_tools` (distractors).
56
+
57
+ ### Example: Loading the Raw Data
58
+ You can easily download and explore the raw dataset using the `huggingface_hub` or standard Python tools:
59
+
60
+ ```python
61
+ import json
62
+ import os
63
+ from huggingface_hub import snapshot_download
64
+ from PIL import Image
65
+
66
+ # 1. Download the dataset folder
67
+ dataset_path = snapshot_download(repo_id="ModalityDance/PhysTool-Bench", repo_type="dataset")
68
+
69
+ # 2. Load the input metadata
70
+ with open(os.path.join(dataset_path, "generation_checkpoint.json"), "r") as f:
71
+ inputs = json.load(f)
72
+
73
+ # 3. Explore a sample
74
+ sample = inputs[0]
75
+ print(f"Task Instruction: {sample['task_instruct']}")
76
+
77
+ # Load corresponding image
78
+ img_path = os.path.join(dataset_path, sample['image_path'])
79
+ Image.open(img_path).show()
80
+ ```
81
+
82
+ ---
83
+
84
+ ## ⚠️ Inference & Evaluation (Important)
85
+
86
+ Due to the complex nature of physical tool planning, **standard HuggingFace pipelines (`pipeline("visual-question-answering")`) are not sufficient for evaluating this benchmark.** To properly run PhysTool-Bench, please use our **[Official GitHub Repository](https://github.com/ModalityDance/PhysTool-Bench)**.
87
+
88
+ ### Why use the official codebase?
89
+
90
+ - **Environment Isolation:** Different MLLMs require conflicting dependency versions (e.g., PyTorch, Transformers, Accelerate). Our repo provides standalone inference scripts for major models.
91
+ - **LLM-as-a-Judge Evaluation:** We do not use simple string matching. Because models often output synonyms or functionally identical tools, our evaluation pipeline (`eval_gemini.py`) utilizes the Gemini API (`gemini-3.1-pro-preview`) to perform semantic one-to-one mapping against the ground truth before calculating metrics like SR@k and Pairwise Order Accuracy (POA).
92
+
93
+ **Head over to [ModalityDance/PhysTool-Bench](https://github.com/ModalityDance/PhysTool-Bench) for the complete quickstart guide, environment setups, and automated evaluation scripts.**
94
+
95
+
96
+ ---
97
+
98
+ ## 📚 Citation
99
+
100
+ If you use **PhysTool-Bench** in your research, please cite our paper:
101
+
102
+ ```bibtex
103
+ @article{PhysTool-Bench2026,
104
+ title = {Beyond APIs: Probing the Limits of MLLMs in Physical Tool Use},
105
+ author = {Zhixin Ma and Yutong Zhou and Yongqi Li},
106
+ journal = {arXiv preprint arXiv:{xxxx.xxxxx}},
107
+ year = {2026}
108
+ }
109
+
110
+ ```
111
+
112
+ ---
113
+
114
+
115
+ ## 📜 License
116
+
117
+ The dataset (images and annotations) is released under the **MIT** license for non-commercial research use.