Spaces:
Sleeping

willchow66 commited on
Commit
07c1028
Β·
verified Β·
1 Parent(s): 90c6559

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -65
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: RobustBench-TC Leaderboard
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 LLM agents
12
  python_version: "3.11"
13
  ---
14
 
15
- # RobustBench-TC Leaderboard (MVP)
16
 
17
- > A BFCL-style live leaderboard for tool-use sim-to-real robustness, deployed as a HuggingFace Space.
18
 
19
- ## Architecture
 
 
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
- A valid submission is a JSON file with this shape:
47
-
48
- ```json
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
- The expected `sample_id` and `perturbation` values are documented in our HF dataset `Justin1233/RobustBench-TC`.
65
 
66
- ## Local-eval CLI
67
-
68
- We provide a CLI that runs the same scorer locally so users can validate before submitting:
69
 
70
  ```bash
71
- pip install robustbench-tc
72
- robustbench-tc score --predictions my_predictions.json --output scores.json
 
73
  ```
74
 
75
- The CLI is a thin wrapper around `scripts/eval_results.py`.
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`.