Spaces:
Sleeping
Sleeping
xzhou10 commited on
Commit ·
e1b2278
1
Parent(s): 8c2a72f
leaderboard: drop redundant N column
Browse files- app.py +15 -17
- leaderboard.csv +21 -21
- seed_with_18_models.py +0 -1
app.py
CHANGED
|
@@ -203,15 +203,15 @@ def score_submission(payload: dict[str, Any]) -> dict[str, Any]:
|
|
| 203 |
# Leaderboard CSV (Space-local; we will sync to HF Dataset hub in M4)
|
| 204 |
# ---------------------------------------------------------------------------
|
| 205 |
|
| 206 |
-
# Column
|
| 207 |
-
#
|
| 208 |
-
#
|
| 209 |
-
#
|
| 210 |
-
#
|
| 211 |
-
#
|
| 212 |
-
#
|
| 213 |
LEADERBOARD_COLUMNS = [
|
| 214 |
-
"Model", "Type", "
|
| 215 |
"Obs Acc.", "Action Acc.", "Reward Acc.", "Transition Acc.",
|
| 216 |
"Submitted",
|
| 217 |
]
|
|
@@ -223,7 +223,6 @@ def append_entry(model_name: str, model_type: str,
|
|
| 223 |
row = {
|
| 224 |
"Model": model_name,
|
| 225 |
"Type": model_type,
|
| 226 |
-
"N (eval)": summary.get("n_samples"),
|
| 227 |
"Pert. Acc.": round(summary.get("overall_acc", 0), 4),
|
| 228 |
"Clean": round(summary.get("clean_acc", by_mdp.get("clean", 0)), 4),
|
| 229 |
"Obs Acc.": round(by_mdp.get("observation",0), 4),
|
|
@@ -243,9 +242,9 @@ def append_entry(model_name: str, model_type: str,
|
|
| 243 |
def load_leaderboard() -> pd.DataFrame:
|
| 244 |
if LEADERBOARD_PATH.exists():
|
| 245 |
df = pd.read_csv(LEADERBOARD_PATH)
|
| 246 |
-
# Backward-compat:
|
| 247 |
-
# so old leaderboard.csv files keep working after the schema change.
|
| 248 |
df = df.rename(columns={"n": "N (eval)", "Overall Acc.": "Pert. Acc."})
|
|
|
|
| 249 |
sort_col = "Pert. Acc." if "Pert. Acc." in df.columns else "Overall Acc."
|
| 250 |
if sort_col in df.columns and df[sort_col].notna().any():
|
| 251 |
df = df.sort_values(sort_col, ascending=False)
|
|
@@ -292,14 +291,13 @@ with gr.Blocks(title="RobustBench-TC Leaderboard") as demo:
|
|
| 292 |
with gr.Tab("Leaderboard"):
|
| 293 |
gr.Markdown(
|
| 294 |
"**Column guide.** "
|
| 295 |
-
"**N (eval)** = total predictions across all 23 cells (clean baseline + 22 perturbations); "
|
| 296 |
-
"the canonical RobustBench-TC eval set has 3{,}721. "
|
| 297 |
"**Pert. Acc.** = accuracy on perturbed cells ONLY (clean excluded) — this is the "
|
| 298 |
"headline robustness number. "
|
| 299 |
-
"**Clean** = accuracy on the 199 clean samples; "
|
| 300 |
-
"
|
| 301 |
-
"Per-MDP-component columns (Obs / Action / Reward / Transition) average
|
| 302 |
-
"the perturbations in that component only."
|
|
|
|
| 303 |
)
|
| 304 |
leaderboard = gr.Dataframe(
|
| 305 |
value=load_leaderboard(), interactive=False, wrap=True,
|
|
|
|
| 203 |
# Leaderboard CSV (Space-local; we will sync to HF Dataset hub in M4)
|
| 204 |
# ---------------------------------------------------------------------------
|
| 205 |
|
| 206 |
+
# Column glossary (also rendered in a markdown above the table):
|
| 207 |
+
# Pert. Acc. = accuracy on perturbed cells ONLY (clean excluded), i.e. the
|
| 208 |
+
# headline robustness number.
|
| 209 |
+
# Clean = accuracy on the 199 clean baseline samples; Clean − Pert. Acc.
|
| 210 |
+
# is the sim-to-real gap.
|
| 211 |
+
# Obs/Action/Reward/Transition Acc. = average accuracy across the perturbations
|
| 212 |
+
# within that MDP component.
|
| 213 |
LEADERBOARD_COLUMNS = [
|
| 214 |
+
"Model", "Type", "Pert. Acc.", "Clean",
|
| 215 |
"Obs Acc.", "Action Acc.", "Reward Acc.", "Transition Acc.",
|
| 216 |
"Submitted",
|
| 217 |
]
|
|
|
|
| 223 |
row = {
|
| 224 |
"Model": model_name,
|
| 225 |
"Type": model_type,
|
|
|
|
| 226 |
"Pert. Acc.": round(summary.get("overall_acc", 0), 4),
|
| 227 |
"Clean": round(summary.get("clean_acc", by_mdp.get("clean", 0)), 4),
|
| 228 |
"Obs Acc.": round(by_mdp.get("observation",0), 4),
|
|
|
|
| 242 |
def load_leaderboard() -> pd.DataFrame:
|
| 243 |
if LEADERBOARD_PATH.exists():
|
| 244 |
df = pd.read_csv(LEADERBOARD_PATH)
|
| 245 |
+
# Backward-compat: drop deprecated columns and rename legacy headers.
|
|
|
|
| 246 |
df = df.rename(columns={"n": "N (eval)", "Overall Acc.": "Pert. Acc."})
|
| 247 |
+
df = df.drop(columns=[c for c in ("N (eval)",) if c in df.columns])
|
| 248 |
sort_col = "Pert. Acc." if "Pert. Acc." in df.columns else "Overall Acc."
|
| 249 |
if sort_col in df.columns and df[sort_col].notna().any():
|
| 250 |
df = df.sort_values(sort_col, ascending=False)
|
|
|
|
| 291 |
with gr.Tab("Leaderboard"):
|
| 292 |
gr.Markdown(
|
| 293 |
"**Column guide.** "
|
|
|
|
|
|
|
| 294 |
"**Pert. Acc.** = accuracy on perturbed cells ONLY (clean excluded) — this is the "
|
| 295 |
"headline robustness number. "
|
| 296 |
+
"**Clean** = accuracy on the 199 clean samples; the gap "
|
| 297 |
+
"**Clean − Pert. Acc.** quantifies the sim-to-real degradation. "
|
| 298 |
+
"Per-MDP-component columns (Obs / Action / Reward / Transition) average "
|
| 299 |
+
"across the perturbations in that component only. "
|
| 300 |
+
"Each row is scored over 3,721 predictions (199 clean + 22 perturbation cells)."
|
| 301 |
)
|
| 302 |
leaderboard = gr.Dataframe(
|
| 303 |
value=load_leaderboard(), interactive=False, wrap=True,
|
leaderboard.csv
CHANGED
|
@@ -1,21 +1,21 @@
|
|
| 1 |
-
Model,Type,
|
| 2 |
-
Qwen3-14B (non-thinking),open,
|
| 3 |
-
MUA-RL-32B,fine-tuned,
|
| 4 |
-
Qwen3-32B (non-thinking),open,
|
| 5 |
-
LoopTool-32B,fine-tuned,
|
| 6 |
-
MUA-RL-8B,fine-tuned,
|
| 7 |
-
LoopTool-8B,fine-tuned,
|
| 8 |
-
MUA-RL-14B,fine-tuned,
|
| 9 |
-
ToolRL-DR-Full (ours),fine-tuned,
|
| 10 |
-
ToolRL-DR-Mixed (ours),fine-tuned,
|
| 11 |
-
Qwen3-8B (non-thinking),open,
|
| 12 |
-
DeepSeek-R1-Distill-Qwen-14B,open,
|
| 13 |
-
Qwen3.5-9B,open,
|
| 14 |
-
ToolRL-Qwen2.5-1.5B,fine-tuned,
|
| 15 |
-
TL-CodeLLaMA-2,fine-tuned,
|
| 16 |
-
ToolRL-Qwen2.5-3B,fine-tuned,
|
| 17 |
-
Qwen2.5-3B-Instruct,open,
|
| 18 |
-
ToolRL-Llama3.2-3B,fine-tuned,
|
| 19 |
-
Qwen2.5-1.5B-Instruct,open,
|
| 20 |
-
Llama-3.2-3B-Instruct,open,
|
| 21 |
-
SFT-Clean-4k-Qwen2.5-3B (reproduced baseline),fine-tuned,
|
|
|
|
| 1 |
+
Model,Type,Pert. Acc.,Clean,Obs Acc.,Action Acc.,Reward Acc.,Transition Acc.,Submitted
|
| 2 |
+
Qwen3-14B (non-thinking),open,0.5292,0.7487,0.7098,0.6053,0.2845,0.4983,2026-04 (seeded)
|
| 3 |
+
MUA-RL-32B,fine-tuned,0.5273,0.6834,0.6558,0.6938,0.2859,0.4657,2026-04 (seeded)
|
| 4 |
+
Qwen3-32B (non-thinking),open,0.5236,0.7538,0.7299,0.6495,0.3879,0.3769,2026-04 (seeded)
|
| 5 |
+
LoopTool-32B,fine-tuned,0.508,0.7789,0.745,0.6591,0.2701,0.3827,2026-04 (seeded)
|
| 6 |
+
MUA-RL-8B,fine-tuned,0.4793,0.6784,0.6558,0.5227,0.2773,0.4489,2026-04 (seeded)
|
| 7 |
+
LoopTool-8B,fine-tuned,0.4764,0.7136,0.6646,0.5407,0.2845,0.4179,2026-04 (seeded)
|
| 8 |
+
MUA-RL-14B,fine-tuned,0.4699,0.6281,0.6168,0.5383,0.2945,0.4263,2026-04 (seeded)
|
| 9 |
+
ToolRL-DR-Full (ours),fine-tuned,0.4625,0.6432,0.6344,0.4964,0.3118,0.4121,2026-04 (seeded)
|
| 10 |
+
ToolRL-DR-Mixed (ours),fine-tuned,0.4605,0.6583,0.6093,0.506,0.2945,0.4263,2026-04 (seeded)
|
| 11 |
+
Qwen3-8B (non-thinking),open,0.4483,0.6734,0.6545,0.5024,0.2644,0.3802,2026-04 (seeded)
|
| 12 |
+
DeepSeek-R1-Distill-Qwen-14B,open,0.4424,0.6181,0.6055,0.4581,0.3003,0.4054,2026-04 (seeded)
|
| 13 |
+
Qwen3.5-9B,open,0.437,0.7085,0.6683,0.5407,0.2974,0.2915,2026-04 (seeded)
|
| 14 |
+
ToolRL-Qwen2.5-1.5B,fine-tuned,0.4316,0.7035,0.6709,0.5299,0.2227,0.325,2026-04 (seeded)
|
| 15 |
+
TL-CodeLLaMA-2,fine-tuned,0.4052,0.6533,0.6294,0.4868,0.1968,0.3199,2026-04 (seeded)
|
| 16 |
+
ToolRL-Qwen2.5-3B,fine-tuned,0.404,0.6382,0.6181,0.4952,0.1882,0.3233,2026-04 (seeded)
|
| 17 |
+
Qwen2.5-3B-Instruct,open,0.3901,0.608,0.5942,0.4127,0.1624,0.371,2026-04 (seeded)
|
| 18 |
+
ToolRL-Llama3.2-3B,fine-tuned,0.3898,0.6281,0.603,0.4569,0.1652,0.3317,2026-04 (seeded)
|
| 19 |
+
Qwen2.5-1.5B-Instruct,open,0.3668,0.5729,0.5327,0.3732,0.1681,0.3677,2026-04 (seeded)
|
| 20 |
+
Llama-3.2-3B-Instruct,open,0.341,0.5176,0.5088,0.3409,0.1451,0.3434,2026-04 (seeded)
|
| 21 |
+
SFT-Clean-4k-Qwen2.5-3B (reproduced baseline),fine-tuned,0.2669,0.598,0.5791,0.4139,0.1552,0.0209,2026-04 (seeded)
|
seed_with_18_models.py
CHANGED
|
@@ -67,7 +67,6 @@ def main() -> None:
|
|
| 67 |
rows.append({
|
| 68 |
"Model": model_name,
|
| 69 |
"Type": mtype,
|
| 70 |
-
"N (eval)": ov["n"],
|
| 71 |
"Pert. Acc.": round(pert_acc, 4),
|
| 72 |
"Clean": round(by_mdp.get("clean", {}).get("accuracy", 0), 4),
|
| 73 |
"Obs Acc.": round(by_mdp.get("observation",{}).get("accuracy", 0), 4),
|
|
|
|
| 67 |
rows.append({
|
| 68 |
"Model": model_name,
|
| 69 |
"Type": mtype,
|
|
|
|
| 70 |
"Pert. Acc.": round(pert_acc, 4),
|
| 71 |
"Clean": round(by_mdp.get("clean", {}).get("accuracy", 0), 4),
|
| 72 |
"Obs Acc.": round(by_mdp.get("observation",{}).get("accuracy", 0), 4),
|