Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,63 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# SpatialWorld Benchmark
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
--
|
| 8 |
|
| 9 |
-
##
|
| 10 |
|
| 11 |
-
**
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
##
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
##
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
- **Golden Actions**: Reference action sequence for task completion
|
| 38 |
-
- **Success Conditions**: Formal criteria for task success evaluation
|
| 39 |
-
- **Initial State**: Starting configuration via `init.json`
|
| 40 |
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
```
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
| 62 |
```
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: cc-by-nc-4.0
|
| 5 |
+
tags:
|
| 6 |
+
- embodied-ai
|
| 7 |
+
- vision-language
|
| 8 |
+
- spatial-reasoning
|
| 9 |
+
- 3d-navigation
|
| 10 |
+
- multi-agent
|
| 11 |
+
datasets:
|
| 12 |
+
- ai2thor
|
| 13 |
+
- carla
|
| 14 |
+
- procthor
|
| 15 |
+
- virtualhome
|
| 16 |
+
- embodiedcity
|
| 17 |
+
size_categories:
|
| 18 |
+
- 1K<n<10K
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
# SpatialWorld Benchmark
|
| 22 |
|
| 23 |
+
**A Multi-Platform Benchmark for Spatial Reasoning and Embodied Task Execution**
|
| 24 |
|
| 25 |
+
## ๐ฏ Overview
|
| 26 |
|
| 27 |
+
SpatialWorld is a comprehensive benchmark designed to evaluate spatial reasoning and embodied task execution capabilities of Multi-modal Large Language Models (MLLMs) and Vision-Language Models (VLMs). The benchmark spans multiple simulation platforms and diverse task categories.
|
| 28 |
|
| 29 |
+
### Key Features
|
| 30 |
|
| 31 |
+
- **Multi-Platform Coverage**: AI2Thor, CARLA, ProcTHOR, VirtualHome, EmbodiedCity
|
| 32 |
+
- **Diverse Tasks**: Navigation, object manipulation, multi-agent coordination, and spatial reasoning
|
| 33 |
+
- **Unified Action Space**: Consistent action representation across all platforms
|
| 34 |
+
- **Rich Annotations**: Golden actions and success conditions for reproducible evaluation
|
| 35 |
|
| 36 |
+
## ๐ Dataset Statistics
|
| 37 |
|
| 38 |
+
| Platform | Scenarios | Tasks | Task Types |
|
| 39 |
+
|----------|-----------|-------|------------|
|
| 40 |
+
| AI2Thor | 120 | ~2,500 | Object manipulation, navigation |
|
| 41 |
+
| CARLA | 5 Towns | 80 | Urban navigation, traffic scenarios |
|
| 42 |
+
| ProcTHOR | Procedural | ~1,200 | Indoor navigation, household tasks |
|
| 43 |
+
| VirtualHome | 7 Houses | ~800 | Multi-agent household activities |
|
| 44 |
+
| EmbodiedCity | City-scale | ~400 | Real-world urban scenarios |
|
| 45 |
+
| Game Tasks | Various | 100 | Rubik's cube, maze solving, etc. |
|
| 46 |
|
| 47 |
+
## ๐๏ธ Repository Structure
|
| 48 |
|
| 49 |
+
```
|
| 50 |
+
benchmark/
|
| 51 |
+
โโโ ai2thor/ # Indoor household environments
|
| 52 |
+
โโโ carla/ # Urban driving simulation
|
| 53 |
+
โโโ procthor/ # Procedurally generated homes
|
| 54 |
+
โโโ virtualhome/ # Multi-agent household simulation
|
| 55 |
+
โโโ embodiedcity/ # Large-scale urban environments
|
| 56 |
+
โโโ game/ # Specialized spatial tasks
|
| 57 |
+
โโโ shared/ # Dual-agent coordination tasks
|
| 58 |
+
```
|
| 59 |
|
| 60 |
+
## ๐ฎ Unified Action Space
|
| 61 |
+
|
| 62 |
+
All tasks use a standardized action space:
|
| 63 |
+
|
| 64 |
+
### Navigation
|
| 65 |
+
- `Move(direction, distance)` - direction: forward/backward/left/right
|
| 66 |
+
|
| 67 |
+
### Viewpoint & Posture
|
| 68 |
+
- `Rotate(direction, angle)` - direction: left/right
|
| 69 |
+
- `Tilt(direction, angle)` - direction: up/down
|
| 70 |
+
- `ChangePosture(pose)` - standing/sitting/lying
|
| 71 |
+
|
| 72 |
+
### Interaction
|
| 73 |
+
- `Pick(object)` - Pick up an object
|
| 74 |
+
- `Place(target)` - Place held object at target
|
| 75 |
+
- `ChangeState(object, state)` - Toggle object state (on/off)
|
| 76 |
+
- `Manipulate(object, action)` - Complex manipulation (open/close/clean/slice)
|
| 77 |
+
|
| 78 |
+
### Task Control
|
| 79 |
+
- `EndTask(status)` - Terminate task (success/stopped)
|
| 80 |
+
- `Communicate(message)` - Agent-to-agent communication
|
| 81 |
+
|
| 82 |
+
## ๐ Task Format
|
| 83 |
+
|
| 84 |
+
Each task contains:
|
| 85 |
+
|
| 86 |
+
```json
|
| 87 |
+
{
|
| 88 |
+
"task_id": "ai2thor00000",
|
| 89 |
+
"task_name": "Place object in target",
|
| 90 |
+
"instruction": "Natural language task description",
|
| 91 |
+
"scene": "FloorPlan17",
|
| 92 |
+
"golden_actions": {
|
| 93 |
+
"steps": 10,
|
| 94 |
+
"actions": [
|
| 95 |
+
"Move(forward, 1.0)",
|
| 96 |
+
"Rotate(right, 90)",
|
| 97 |
+
"Pick(Object)",
|
| 98 |
+
"Place(Target)",
|
| 99 |
+
"EndTask(success)"
|
| 100 |
+
]
|
| 101 |
+
},
|
| 102 |
+
"success_conditions": [...],
|
| 103 |
+
"max_steps": 50
|
| 104 |
+
}
|
| 105 |
+
```
|
| 106 |
|
| 107 |
+
## ๐ง Usage
|
| 108 |
|
| 109 |
+
### Loading Tasks
|
| 110 |
|
| 111 |
+
```python
|
| 112 |
+
import json
|
| 113 |
+
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
+
def load_task(platform, task_id):
|
| 116 |
+
task_path = Path(f"benchmark/{platform}/tasks/{task_id}/task.json")
|
| 117 |
+
with open(task_path, 'r') as f:
|
| 118 |
+
return json.load(f)
|
| 119 |
|
| 120 |
+
# Example
|
| 121 |
+
task = load_task("ai2thor", "ai2thor00000")
|
| 122 |
+
print(task["instruction"])
|
| 123 |
+
print(task["golden_actions"]["actions"])
|
| 124 |
```
|
| 125 |
+
|
| 126 |
+
### Action Parsing
|
| 127 |
+
|
| 128 |
+
```python
|
| 129 |
+
import re
|
| 130 |
+
|
| 131 |
+
def parse_action(action_str):
|
| 132 |
+
"""Parse action string to (action_name, args)"""
|
| 133 |
+
match = re.match(r'^(\w+)\(([^)]*)\)$', action_str)
|
| 134 |
+
if match:
|
| 135 |
+
name = match.group(1)
|
| 136 |
+
args = [arg.strip() for arg in match.group(2).split(',')]
|
| 137 |
+
return name, args
|
| 138 |
+
return None, None
|
| 139 |
+
|
| 140 |
+
# Example
|
| 141 |
+
action = "Move(forward, 1.0)"
|
| 142 |
+
name, args = parse_action(action)
|
| 143 |
+
# name: "Move", args: ["forward", "1.0"]
|
| 144 |
```
|
| 145 |
|
| 146 |
+
## ๐ Evaluation
|
| 147 |
+
|
| 148 |
+
Tasks are evaluated based on:
|
| 149 |
+
|
| 150 |
+
1. **Success Rate**: Percentage of tasks completed successfully
|
| 151 |
+
2. **Action Efficiency**: Steps used vs. golden actions
|
| 152 |
+
3. **Goal Achievement**: Satisfaction of success conditions
|
| 153 |
+
|
| 154 |
+
### Success Conditions
|
| 155 |
+
|
| 156 |
+
- `object_state`: Target object in desired state
|
| 157 |
+
- `object_in_receptacle`: Object placed in correct container
|
| 158 |
+
- `polygon_area`: Agent reached target location
|
| 159 |
+
- `agent_near_object`: Agent within distance of target
|
| 160 |
+
|
| 161 |
+
## ๐ License
|
| 162 |
+
|
| 163 |
+
This dataset is released under CC BY-NC 4.0 (Creative Commons Attribution-NonCommercial 4.0 International).
|
| 164 |
+
|
| 165 |
+
---
|
| 166 |
+
|
| 167 |
+
**Note**: This is an anonymized version of the dataset prepared for peer review.
|