Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π οΈ
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
|
@@ -8,80 +8,32 @@ sdk_version: 4.44.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
-
short_description: Sim-to-real robustness leaderboard for tool-use
|
| 12 |
python_version: "3.11"
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
βββββββββββββββββββββββ ββββββββββββββββββββββββ
|
| 23 |
-
β User submits β POST β Gradio backend (HF β
|
| 24 |
-
β predictions JSON ββββββββββΊβ Space, Python) β
|
| 25 |
-
β (via UI or CLI) β β β’ Validates schema β
|
| 26 |
-
βββββββββββββββββββββββ β β’ Runs eval_results β
|
| 27 |
-
β in subprocess β
|
| 28 |
-
β β’ Computes per-MDP β
|
| 29 |
-
β accuracy + drop β
|
| 30 |
-
β β’ Persists to HF β
|
| 31 |
-
β Dataset hub β
|
| 32 |
-
ββββββββββββ¬ββββββββββββ
|
| 33 |
-
β
|
| 34 |
-
βββββββββββββββββββββ΄ββββββββββββββββββββ
|
| 35 |
-
β β
|
| 36 |
-
βΌ βΌ
|
| 37 |
-
βββββββββββββββββββββ ββββββββββββββββββββββββ
|
| 38 |
-
β HF Dataset: β β Public leaderboard β
|
| 39 |
-
β submissions log β β table, refreshed on β
|
| 40 |
-
β (append-only) β β each submission β
|
| 41 |
-
βββββββββββββββββββββ ββββββββββββββββββββββββ
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
## Submission schema
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
{
|
| 50 |
-
"model_name": "MyTeam/MyModel-7B",
|
| 51 |
-
"model_type": "open" | "closed-api" | "fine-tuned",
|
| 52 |
-
"contact": "user@example.com",
|
| 53 |
-
"results": [
|
| 54 |
-
{
|
| 55 |
-
"sample_id": "bfcl_v3__BFCL_v3_simple__1",
|
| 56 |
-
"perturbation": "Typo",
|
| 57 |
-
"tool_calls": [{"name": "...", "parameters": {"...": "..."}}]
|
| 58 |
-
},
|
| 59 |
-
...
|
| 60 |
-
]
|
| 61 |
-
}
|
| 62 |
-
```
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
We provide a CLI that runs the same scorer locally so users can validate before submitting:
|
| 69 |
|
| 70 |
```bash
|
| 71 |
-
|
| 72 |
-
|
|
|
|
| 73 |
```
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
## Status
|
| 78 |
-
|
| 79 |
-
- [ ] M1: Gradio app skeleton (this directory)
|
| 80 |
-
- [ ] M2: Submission validator (schema + sample-ID coverage check)
|
| 81 |
-
- [ ] M3: Hosted scorer reusing `scripts/eval_results.py`
|
| 82 |
-
- [ ] M4: Persistence to HF Dataset
|
| 83 |
-
- [ ] M5: Leaderboard rendering (sorted by overall acc, with per-MDP-component drop columns)
|
| 84 |
-
- [ ] M6: Deployed on HF Space `Justin1233/robustbench-tc-leaderboard`
|
| 85 |
-
- [ ] M7: Documentation + first submission with our 18 evaluated models
|
| 86 |
-
|
| 87 |
-
ETA for M1--M5: 1 week eng. M6 + M7 another 2 days.
|
|
|
|
| 1 |
---
|
| 2 |
+
title: AgentRobustBench Leaderboard
|
| 3 |
emoji: π οΈ
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
+
short_description: "Sim-to-real robustness leaderboard for tool-use agents"
|
| 12 |
python_version: "3.11"
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# AgentRobustBench Leaderboard
|
| 16 |
|
| 17 |
+
AgentRobustBench evaluates how reliably language agents use tools when user requests, tool descriptions, or tool responses change.
|
| 18 |
|
| 19 |
+
[Leaderboard](https://huggingface.co/spaces/willchow66/AgentRobustBench) Β·
|
| 20 |
+
[Dataset](https://huggingface.co/datasets/AgentRobustBench/AgentRobustBench) Β·
|
| 21 |
+
[Evaluation code](https://github.com/WillChow66/AgentRobustBench)
|
| 22 |
|
| 23 |
+
## Reading the leaderboard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
- **Pert. Acc.** is accuracy across the perturbed examples, excluding the clean baseline. The leaderboard is sorted by this score.
|
| 26 |
+
- **Clean** is accuracy on the 199 unperturbed examples.
|
| 27 |
+
- **Obs, Action, Reward, and Transition Acc.** report accuracy for each group of perturbations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
## Run inference and score locally
|
| 30 |
|
| 31 |
+
Follow the [evaluation instructions](https://github.com/WillChow66/AgentRobustBench/tree/main/scripts) to run your model and generate `*.predictions.jsonl` files. Then run the scorer from the root of the GitHub repository:
|
|
|
|
|
|
|
| 32 |
|
| 33 |
```bash
|
| 34 |
+
python leaderboard/scoring/eval_results.py \
|
| 35 |
+
--predictions results/my-model \
|
| 36 |
+
--output scores.json
|
| 37 |
```
|
| 38 |
|
| 39 |
+
Replace `results/my-model` with the directory containing your prediction files. The scorer writes the results to `scores.json`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|