Clarify task mirror and dataset usage
Browse files
README.md
CHANGED
|
@@ -1,31 +1,65 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
tags:
|
| 7 |
- benchmark
|
| 8 |
-
- physics
|
| 9 |
-
- code-generation
|
| 10 |
- agents
|
|
|
|
| 11 |
- self-evolving-agents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
- simulation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# PACE-Bench
|
| 16 |
|
| 17 |
**PACE-Bench: Benchmarking Physics Adaptation via Code Evolution in Dynamic Environments** evaluates whether an agent can adapt an executable physical design after its environment changes.
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
PACE-Bench contains **144 source-to-target adaptation pairs across six physics domains**. Each pair
|
| 22 |
|
| 23 |
-
1. A code-driven design succeeds in
|
| 24 |
-
2. The same design fails in a mutated target environment.
|
| 25 |
-
3. The agent
|
| 26 |
4. The adapted design must succeed under the target physics.
|
| 27 |
|
| 28 |
-
|
|
| 29 |
| --- | ---: |
|
| 30 |
| Physics domains | 6 |
|
| 31 |
| Base tasks | 36 |
|
|
@@ -33,107 +67,107 @@ PACE-Bench contains **144 source-to-target adaptation pairs across six physics d
|
|
| 33 |
| Evaluation environments | 180 |
|
| 34 |
| Source-to-target pairs | 144 |
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
```text
|
| 41 |
tasks/
|
| 42 |
-
├── Category1_Statics_Equilibrium/
|
| 43 |
-
├── Category2_Kinematics_Linkages/
|
| 44 |
-
├── Category3_Dynamics_Energy/
|
| 45 |
-
├── Category4_Granular_FluidInteraction/
|
| 46 |
-
├── Category5_Cybernetics_Control/
|
| 47 |
-
├── Category6_ExoticPhysics/
|
| 48 |
└── primitives_api.json
|
| 49 |
```
|
| 50 |
|
| 51 |
-
Each
|
| 52 |
|
| 53 |
| File | Role |
|
| 54 |
| --- | --- |
|
| 55 |
| `agent.py` | Source and four target reference solutions |
|
| 56 |
| `environment.py` | Box2D world, primitives, and mutable physics |
|
| 57 |
-
| `evaluator.py` | Success criteria,
|
| 58 |
| `feedback.py` | Diagnostic feedback derived from measured metrics |
|
| 59 |
| `prompt.py` | Task description, exposed values, and primitive API |
|
| 60 |
| `renderer.py` | Evaluation-neutral visualization |
|
| 61 |
-
| `stages.py` | Four target mutations and
|
| 62 |
-
|
| 63 |
-
These files are **executable benchmark definitions**, not a conventional row-based dataset. The Hugging Face Dataset Viewer is therefore not the main interface.
|
| 64 |
|
| 65 |
-
|
| 66 |
|
| 67 |
-
Download the
|
| 68 |
|
| 69 |
```python
|
| 70 |
from huggingface_hub import snapshot_download
|
| 71 |
|
| 72 |
-
|
| 73 |
-
repo_id="YuhaoZhan/PACE-Bench",
|
| 74 |
-
repo_type="dataset",
|
| 75 |
-
)
|
| 76 |
-
print(dataset_path)
|
| 77 |
-
```
|
| 78 |
-
|
| 79 |
-
Download only the executable tasks:
|
| 80 |
-
|
| 81 |
-
```python
|
| 82 |
-
from huggingface_hub import snapshot_download
|
| 83 |
-
|
| 84 |
-
tasks_path = snapshot_download(
|
| 85 |
repo_id="YuhaoZhan/PACE-Bench",
|
| 86 |
repo_type="dataset",
|
| 87 |
allow_patterns=["tasks/**"],
|
| 88 |
)
|
|
|
|
| 89 |
```
|
| 90 |
|
| 91 |
-
|
| 92 |
|
| 93 |
```bash
|
| 94 |
git clone https://huggingface.co/datasets/YuhaoZhan/PACE-Bench
|
| 95 |
```
|
| 96 |
|
| 97 |
-
|
| 98 |
|
| 99 |
-
|
|
|
|
|
|
|
| 100 |
|
| 101 |
```bash
|
| 102 |
git clone https://github.com/thunlp/PACE-Bench.git
|
| 103 |
cd PACE-Bench
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
| 107 |
|
| 108 |
pace-bench list --task S_01
|
| 109 |
pace-bench validate --task S_01
|
| 110 |
```
|
| 111 |
|
| 112 |
-
|
| 113 |
|
| 114 |
## Intended use
|
| 115 |
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
-
|
| 119 |
-
-
|
| 120 |
-
-
|
| 121 |
-
- analyzing physical reasoning, redesign, exploration, and convergence failures.
|
| 122 |
|
| 123 |
## Scope and limitations
|
| 124 |
|
| 125 |
-
-
|
| 126 |
-
-
|
| 127 |
-
-
|
| 128 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
## License
|
| 131 |
|
| 132 |
-
PACE-Bench is released under the
|
| 133 |
|
| 134 |
## Citation
|
| 135 |
|
| 136 |
-
The
|
| 137 |
|
| 138 |
```bibtex
|
| 139 |
@misc{zhan2026pacebench,
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: PACE-Bench
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
+
license: mit
|
| 6 |
+
size_categories:
|
| 7 |
+
- n<1K
|
| 8 |
+
task_categories:
|
| 9 |
+
- text-generation
|
| 10 |
tags:
|
| 11 |
- benchmark
|
|
|
|
|
|
|
| 12 |
- agents
|
| 13 |
+
- agent-evaluation
|
| 14 |
- self-evolving-agents
|
| 15 |
+
- physics
|
| 16 |
+
- physical-reasoning
|
| 17 |
+
- code
|
| 18 |
+
- code-generation
|
| 19 |
+
- executable-design
|
| 20 |
- simulation
|
| 21 |
+
- box2d
|
| 22 |
+
- dynamic-environments
|
| 23 |
+
citation: |
|
| 24 |
+
@misc{zhan2026pacebench,
|
| 25 |
+
title={PACE-Bench: Benchmarking Physics Adaptation via Code Evolution in Dynamic Environments},
|
| 26 |
+
author={Yuhao Zhan and Bingxiang He and Zecong Tang and Chaojun Xiao},
|
| 27 |
+
year={2026},
|
| 28 |
+
howpublished={\url{https://github.com/thunlp/PACE-Bench}}
|
| 29 |
+
}
|
| 30 |
+
source_datasets: []
|
| 31 |
---
|
| 32 |
|
| 33 |
+
> **Task mirror only.** This dataset repository contains the 36 executable task definitions. The CLI, shared runtime, evaluation engine, self-evolving methods, reporting code, and coding-agent sandbox live in the [PACE-Bench GitHub repository](https://github.com/thunlp/PACE-Bench).
|
| 34 |
+
|
| 35 |
+
<details>
|
| 36 |
+
<summary>Mirror provenance</summary>
|
| 37 |
+
|
| 38 |
+
- Source: [`src/pace_bench/tasks/categories`](https://github.com/thunlp/PACE-Bench/tree/main/src/pace_bench/tasks/categories)
|
| 39 |
+
- Mirrored source commit: [`eeab7d6`](https://github.com/yuhao-zhan/PACE-Bench/commit/eeab7d6b5233468c10f8bb094fe77fb90575af74)
|
| 40 |
+
- Included: 36 base tasks and `primitives_api.json`
|
| 41 |
+
- Excluded: shared runtime, evaluation methods, generated results, caches, and local artifacts
|
| 42 |
+
|
| 43 |
+
</details>
|
| 44 |
+
|
| 45 |
# PACE-Bench
|
| 46 |
|
| 47 |
**PACE-Bench: Benchmarking Physics Adaptation via Code Evolution in Dynamic Environments** evaluates whether an agent can adapt an executable physical design after its environment changes.
|
| 48 |
|
| 49 |
+
[](https://github.com/thunlp/PACE-Bench)
|
| 50 |
+
[](https://github.com/thunlp/PACE-Bench/blob/main/LICENSE)
|
| 51 |
+
[](https://www.python.org/)
|
| 52 |
+
|
| 53 |
+
## What is PACE-Bench?
|
| 54 |
|
| 55 |
+
PACE-Bench contains **144 source-to-target adaptation pairs across six physics domains**. Each pair keeps the goal and interface fixed:
|
| 56 |
|
| 57 |
+
1. A **code-driven design** succeeds in the source environment.
|
| 58 |
+
2. The same design fails in a **mutated target environment**.
|
| 59 |
+
3. The agent uses **diagnostic sandbox feedback** to revise the design.
|
| 60 |
4. The adapted design must succeed under the target physics.
|
| 61 |
|
| 62 |
+
| Benchmark scale | Count |
|
| 63 |
| --- | ---: |
|
| 64 |
| Physics domains | 6 |
|
| 65 |
| Base tasks | 36 |
|
|
|
|
| 67 |
| Evaluation environments | 180 |
|
| 68 |
| Source-to-target pairs | 144 |
|
| 69 |
|
| 70 |
+
## What is included here?
|
| 71 |
|
| 72 |
+
| Domain | Prefix | Tasks |
|
| 73 |
+
| --- | --- | ---: |
|
| 74 |
+
| Statics / Equilibrium | `S` | 6 |
|
| 75 |
+
| Kinematics / Linkages | `K` | 6 |
|
| 76 |
+
| Dynamics / Energy | `D` | 6 |
|
| 77 |
+
| Granular / Fluid Interaction | `F` | 6 |
|
| 78 |
+
| Cybernetics / Control | `C` | 6 |
|
| 79 |
+
| Exotic Physics | `E` | 6 |
|
| 80 |
|
| 81 |
```text
|
| 82 |
tasks/
|
| 83 |
+
├── Category1_Statics_Equilibrium/S_01 ... S_06/
|
| 84 |
+
├── Category2_Kinematics_Linkages/K_01 ... K_06/
|
| 85 |
+
├── Category3_Dynamics_Energy/D_01 ... D_06/
|
| 86 |
+
├── Category4_Granular_FluidInteraction/F_01 ... F_06/
|
| 87 |
+
├── Category5_Cybernetics_Control/C_01 ... C_06/
|
| 88 |
+
├── Category6_ExoticPhysics/E_01 ... E_06/
|
| 89 |
└── primitives_api.json
|
| 90 |
```
|
| 91 |
|
| 92 |
+
Each task package contains:
|
| 93 |
|
| 94 |
| File | Role |
|
| 95 |
| --- | --- |
|
| 96 |
| `agent.py` | Source and four target reference solutions |
|
| 97 |
| `environment.py` | Box2D world, primitives, and mutable physics |
|
| 98 |
+
| `evaluator.py` | Success criteria, score, constraints, and raw metrics |
|
| 99 |
| `feedback.py` | Diagnostic feedback derived from measured metrics |
|
| 100 |
| `prompt.py` | Task description, exposed values, and primitive API |
|
| 101 |
| `renderer.py` | Evaluation-neutral visualization |
|
| 102 |
+
| `stages.py` | Four target mutations and prompt updates |
|
|
|
|
|
|
|
| 103 |
|
| 104 |
+
These are **executable benchmark definitions**, not a conventional row-based dataset. The Dataset Viewer is therefore not the primary interface.
|
| 105 |
|
| 106 |
+
## Download the task mirror
|
| 107 |
|
| 108 |
```python
|
| 109 |
from huggingface_hub import snapshot_download
|
| 110 |
|
| 111 |
+
path = snapshot_download(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
repo_id="YuhaoZhan/PACE-Bench",
|
| 113 |
repo_type="dataset",
|
| 114 |
allow_patterns=["tasks/**"],
|
| 115 |
)
|
| 116 |
+
print(path)
|
| 117 |
```
|
| 118 |
|
| 119 |
+
Or clone it directly:
|
| 120 |
|
| 121 |
```bash
|
| 122 |
git clone https://huggingface.co/datasets/YuhaoZhan/PACE-Bench
|
| 123 |
```
|
| 124 |
|
| 125 |
+
Use this mirror when you need to inspect, archive, or distribute the task definitions without the full evaluation stack.
|
| 126 |
|
| 127 |
+
## Run the benchmark
|
| 128 |
+
|
| 129 |
+
The Hugging Face mirror is **not standalone**. For evaluation, install the complete GitHub repository with [uv](https://docs.astral.sh/uv/):
|
| 130 |
|
| 131 |
```bash
|
| 132 |
git clone https://github.com/thunlp/PACE-Bench.git
|
| 133 |
cd PACE-Bench
|
| 134 |
+
|
| 135 |
+
uv venv .venv --python 3.10
|
| 136 |
+
source .venv/bin/activate # Windows: .venv\Scripts\activate
|
| 137 |
+
uv pip install -r requirements.txt
|
| 138 |
|
| 139 |
pace-bench list --task S_01
|
| 140 |
pace-bench validate --task S_01
|
| 141 |
```
|
| 142 |
|
| 143 |
+
The GitHub checkout already contains the same task definitions. You do **not** need to download this mirror separately to run PACE-Bench.
|
| 144 |
|
| 145 |
## Intended use
|
| 146 |
|
| 147 |
+
- Evaluate adaptation after controlled physical environment changes
|
| 148 |
+
- Study feedback-driven code evolution and self-evolving agents
|
| 149 |
+
- Compare context-, memory-, search-, and parameter-based methods
|
| 150 |
+
- Analyze physical reasoning, redesign, exploration, and convergence failures
|
| 151 |
+
- Inspect or extend executable task definitions
|
|
|
|
| 152 |
|
| 153 |
## Scope and limitations
|
| 154 |
|
| 155 |
+
- **Physics:** 2D rigid-body systems in Box2D
|
| 156 |
+
- **Language:** English prompts and diagnostic feedback
|
| 157 |
+
- **Not covered:** 3D/deformable physics, full fluids, perception, navigation, and multi-agent coordination
|
| 158 |
+
- **Execution safety:** run generated code on a dedicated evaluator host without unrelated credentials
|
| 159 |
+
|
| 160 |
+
## Issues and contributions
|
| 161 |
+
|
| 162 |
+
The Hugging Face repository is a distribution mirror. Please open task issues, fixes, and pull requests in the [GitHub repository](https://github.com/thunlp/PACE-Bench).
|
| 163 |
|
| 164 |
## License
|
| 165 |
|
| 166 |
+
PACE-Bench is released under the [MIT License](https://github.com/thunlp/PACE-Bench/blob/main/LICENSE).
|
| 167 |
|
| 168 |
## Citation
|
| 169 |
|
| 170 |
+
The public preprint link will be added after release. Until then, please cite the project:
|
| 171 |
|
| 172 |
```bibtex
|
| 173 |
@misc{zhan2026pacebench,
|