TypeScript commited on
Commit
05dde44
·
verified ·
1 Parent(s): 91661ee

Update README and eval_submissions with official safeagents-judge-bench v2 results (#1 / 8 Category Track, 98.5% AUROC, 82/82 unsafe trajectories caught)

Browse files
README.md CHANGED
@@ -32,7 +32,7 @@ tags:
32
  [![Architecture](https://img.shields.io/badge/Backbone-Qwen3.5--9B_Hybrid_(9.4B_Total)-3b82f6?style=flat-square)](#architecture)
33
  [![Decision Head](https://img.shields.io/badge/Head-JointSchemaHead_(116M)-10b981?style=flat-square)](#architecture)
34
  [![Decision Index](https://img.shields.io/badge/Decision_Index_v0.2.1-80.55%25_(%232_Overall_%C2%B7_%231_9B)-f59e0b?style=flat-square)](#benchmark-evaluation--official-leaderboard-rankings)
35
- [![SafeAgents Judge](https://img.shields.io/badge/SafeAgents_Judge-97.4%25_Bal_Acc_(%231_%2F_9_Models)-ec4899?style=flat-square)](#external-community-benchmarks-safeagents-judge-bench--localllamatyped-decisions)
36
  [![Typed Decisions](https://img.shields.io/badge/Typed_Decisions-%237_%2F_42_Zero--Shot_Live_(%231_Clef--Arch)-8b5cf6?style=flat-square)](#external-community-benchmarks-safeagents-judge-bench--localllamatyped-decisions)
37
  [![License](https://img.shields.io/badge/License-Apache_2.0-6366f1?style=flat-square)](./LICENSE)
38
 
@@ -52,8 +52,8 @@ All fine-tuned backbone updates (`104` projection layers across all `32` hybrid
52
 
53
  | Official Leaderboard / Track | Total Models | **`FastBrain-9B` Score** | **Official Rank** | **Top Percentile** | Key Models Outperformed (`Params` & Score) |
54
  | :--- | :---: | :---: | :---: | :---: | :--- |
55
- | **[`safeagents-judge-bench`](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench) *(Binary Guardrail)***<br>([PR #1](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/discussions/1)) | 9 Models | **`97.4%` Bal. Acc**<br>*(Distilled Raw: `94.9%`)* | **#1 / 9** | **Top 11.1% *(Rank #1)*** | `Cloudflare/clef-omni` *(30B, `84.5%`)*, `LiquidAI/d1-3B` *(`82.3%`)*, `Cloudflare/clef-flash` *(9.4B, `72.1%`)*, `Cloudflare/clef` *(27.4B, `71.8%`)* |
56
- | **[`safeagents-judge-bench`](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench) *(7-Way Category)***<br>([PR #1](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/discussions/1)) | 9 Models | **`85.1%` Macro-F1**<br>*(Distilled Raw: `62.4%`)* | **#1 / 9** | **Top 11.1% *(Rank #1)*** | `Cloudflare/clef` *(27.4B, `42.5%`)*, `vllm-sr/d3-mini` *(`36.7%`)*, `Cloudflare/clef-flash` *(9.4B, `34.5%`)*, `Cloudflare/clef-omni` *(30B, `32.7%`)* |
57
  | **[`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *(Zero-Shot Overall)***<br>([Merged PR #58](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/58) · [Trace](./eval_submissions/typescript_fastbrain-9b.json)) | **42 Models** | **`75.25%` / `76.25%` Acc**<br>*(KL `0.1508` · Brier `0.0795`)* | **#7 / 42 *(Live)***<br>*(#5 Tied-Top)* | **Top 16.7% *(Live)***<br>*(Top 11.9%)* | `vllm-sr/d3` *(27B, #8 `74.9%`)*, `Baseten Elephant 1` *(9B, #9 `74.8%`)*, `Darwin-27B` *(#10 `74.3%`)*, `Cloudflare/clef` *(27B, #17 `72.8%`)*, `clef-flash` *(9B, #24 `71.0%`)* |
58
  | **[`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *(Zero-Shot `<=9B` Open)*** | **19 Models** | **`75.25%` / `76.25%` Zero-Shot**<br>*(Distilled Raw: **`77.35%`**)* | **#2 / 19 *(Live)***<br>**#1 Clef-Arch** | **Top 10.5%** | Outperforms 17 of 18 `<=9B` open-weight models (`Baseten Elephant 1` `74.8%`, `vllm-sr/d3-mini` `74.3%`, `d3-flash` `71.7%`, `clef-flash` `71.0%`, `LiquidAI/d1-3B` `65.6%`) |
59
  | **[`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *(Fitted on `train`)***<br>([PR #57](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/57) · [Trace](./eval_submissions/typescript_fastbrain-9b-fitted.json)) | **36 Models** | **`79.70%` / `80.70%` Acc**<br>*(KL `0.0816` · Brier `0.0437`)* | **#1 (`9B` Class)**<br>**Top 9 / 36 Overall** | **Top 13.9%–25.0%** | `OpenDecider-small-td` *(4B, `79.2%`)*, `nullspan` *(395M, `79.0%`)*, `OpenDecider-medium-td` *(30B-A3B, `78.8%`)*, `Qwen3.5-4B-td` *(`77.25%`)*, `Seb-9B` *(9B, `75.4%`)* |
@@ -96,18 +96,24 @@ Evaluated on the official **Cloudflare Decision Index (v0.2.1)** across **10 ben
96
 
97
  ### External Community Benchmarks (`safeagents-judge-bench` & `LocalLLaMA/typed-decisions`)
98
 
99
- #### 1. [`harness-hub/safeagents-judge-bench`](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench) (562 Agent Tool Calls · 78 Unsafe Trajectories · 7 Categories)
100
 
101
- | Model | Params | Balanced Acc ↑ | AUROC ↑ | Recall ↑ | False Block Rate ↓ | Binary F1 ↑ | Cat. Macro-F1 ↑ | Cat. Acc ↑ | P50 Latency ↓ |
 
 
 
 
102
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
103
- | **`TypeScript/FastBrain-9B` *(Calibrated · Ours)*** | **9.4B** | **97.4%** *(#1)* | **98.6%** | **100.0%** *(78/78)* | **5.1%** *(#1)* | **99.8%** | **85.1%** *(#1)* | **92.3%** | **104 ms** |
104
- | **`TypeScript/FastBrain-9B` *(Distilled Raw Head · α=1.0)*** | **9.4B** | **94.9%** | **96.8%** | **98.7%** *(77/78)* | **8.9%** | **99.2%** | **62.4%** | **81.5%** | **104 ms** |
105
- | **`TypeScript/FastBrain-9B` *(Raw JointSchemaHead)*** | **9.4B** | 71.0% | **92.6%** *(>Flash)* | **98.5%** *(77/78)* | 56.4% | **97.2%** | **35.3%** *(>Flash)* | 55.2% | **104 ms** |
106
- | `Cloudflare/clef-omni` | 30B-A3B | 84.5% | 91.6% | 92.2% *(77/78)* | 23.1% | 95.1% | 32.7% | 55.9% | 286 ms |
107
- | `Cloudflare/clef-flash` | 9.4B | 72.1% | 90.2% | 98.1% *(77/78)* | 53.8% | 97.1% | 34.5% | 54.6% | 332 ms |
108
- | `Cloudflare/clef` | 27.4B | 71.8% | **98.7%** | **100.0%** *(78/78)* | 56.4% | 97.9% | 42.5% | 72.1% | 700 ms |
109
- | `LiquidAI/d1-3B` | 3B | 83.4% | 91.7% | 92.5% *(78/78)* | 25.6% | 95.2% | — | — | 74 ms |
110
- | `vllm-sr/d3-mini` | 1.8B | 73.1% | 79.4% | 77.1% *(72/78)* | 30.8% | 86.1% | — | — | 79 ms |
 
 
111
 
112
  #### 2. [`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) (400 Test Cases · 2,000 Typed Decisions Across 4 Enterprise Workflows)
113
 
@@ -398,7 +404,7 @@ Because `FastBrain-9B` scores all schema questions and candidate options in a **
398
  | `joint_schema_model.py` | `25 KB` | `ClefModel`, `JointSchemaHead`, `load_release_model(load_in_4bit/8bit)`, and `systemone()` runtime |
399
  | `eval_submissions/typescript_fastbrain-9b.json` | `901 KB` | Full 400-case / 2,000-decision Zero-Shot prediction trace for `LocalLLaMA/typed-decisions` ([PR #58](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/58)) |
400
  | `eval_submissions/typescript_fastbrain-9b-fitted.json` | `902 KB` | Full 400-case / 2,000-decision Fitted (`train`-calibrated) prediction trace for `LocalLLaMA/typed-decisions` ([PR #57](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/57)) |
401
- | `eval_submissions/TypeScript__FastBrain-9B*.jsonl` | `205 KB` | Full 562-call binary & 7-way category prediction traces for `harness-hub/safeagents-judge-bench` ([PR #1](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/discussions/1)) |
402
  | `.eval_results/*.yaml` | `2.3 KB` | Official Hugging Face Hub benchmark evaluation metadata (`typed-decisions` & `safeagents-judge-bench`) |
403
  | `config.json`, `tokenizer.json`, `processor_config.json` | `11 MB` | Standard Hugging Face model, tokenizer, and processor configurations |
404
  | `assets/*.png` | `1.2 MB` | High-resolution technical benchmark and calibration charts |
 
32
  [![Architecture](https://img.shields.io/badge/Backbone-Qwen3.5--9B_Hybrid_(9.4B_Total)-3b82f6?style=flat-square)](#architecture)
33
  [![Decision Head](https://img.shields.io/badge/Head-JointSchemaHead_(116M)-10b981?style=flat-square)](#architecture)
34
  [![Decision Index](https://img.shields.io/badge/Decision_Index_v0.2.1-80.55%25_(%232_Overall_%C2%B7_%231_9B)-f59e0b?style=flat-square)](#benchmark-evaluation--official-leaderboard-rankings)
35
+ [![SafeAgents Judge](https://img.shields.io/badge/SafeAgents_Judge_v2-75.1%25_Cat_F1_(%231_%2F_8)_%C2%B7_98.5%25_AUROC-ec4899?style=flat-square)](#external-community-benchmarks-safeagents-judge-bench--localllamatyped-decisions)
36
  [![Typed Decisions](https://img.shields.io/badge/Typed_Decisions-%237_%2F_42_Zero--Shot_Live_(%231_Clef--Arch)-8b5cf6?style=flat-square)](#external-community-benchmarks-safeagents-judge-bench--localllamatyped-decisions)
37
  [![License](https://img.shields.io/badge/License-Apache_2.0-6366f1?style=flat-square)](./LICENSE)
38
 
 
52
 
53
  | Official Leaderboard / Track | Total Models | **`FastBrain-9B` Score** | **Official Rank** | **Top Percentile** | Key Models Outperformed (`Params` & Score) |
54
  | :--- | :---: | :---: | :---: | :---: | :--- |
55
+ | **[`safeagents-judge-bench`](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/tree/v2) *(7-Way Category · `v2` & `v0`)***<br>([Merged PR #1](https://huggingface.co/TypeScript/FastBrain-9B/discussions/1) · [Bench PR #1](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/discussions/1)) | **8 Models (`v2`)**<br>*(9 on `v0`)* | **`75.1%` Macro-F1 · `85.8%` Acc *(`v2`)***<br>*(`v0`: **`85.1%` Macro-F1**)* | **#1 / 8 *(`v2` Live)***<br>**#1 / 9 *(`v0`)*** | **Top 12.5% *(Rank #1)*** | `Cloudflare/clef` *(27.4B, #2 `56.3%` F1 / `73.7%` Acc)*, `vllm-sr/d3-mini` *(#3 `51.2%`)*, `Cloudflare/clef-flash` *(9.4B, #4 `46.2%` / `57.6%` Acc)*, `Cloudflare/clef-omni` *(30B, #5 `43.7%`)* |
56
+ | **[`safeagents-judge-bench`](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/tree/v2) *(Binary Guardrail · `v2` & `v0`)***<br>([Merged PR #1](https://huggingface.co/TypeScript/FastBrain-9B/discussions/1) · [Bench PR #1](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/discussions/1)) | **8 Models (`v2`)**<br>*(9 on `v0`)* | **`98.5%` AUROC · `99.6%` Recall**<br>*(`81.4%` Raw / **`93.8%` Cal. `v2`** · **`97.4%` `v0`**)* | **`82/82` (`100%`) Traj.**<br>**#1 (`v0`) · Top-3 AUROC (`v2`)** | **Top 11.1%–25.0%** | `Cloudflare/clef-flash` *(9.4B, `77.6%` Bal. Acc, `96.7%` AUROC)*, `Cloudflare/clef` *(27.4B, `80.8%` Bal. Acc, `38.4%` FBR)*, `Cloudflare/clef-omni` *(30B, `94.6%` AUROC, `77/82` Traj.)*, `gliclass-v4-edge` *(`78.6%` Bal. Acc)* |
57
  | **[`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *(Zero-Shot Overall)***<br>([Merged PR #58](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/58) · [Trace](./eval_submissions/typescript_fastbrain-9b.json)) | **42 Models** | **`75.25%` / `76.25%` Acc**<br>*(KL `0.1508` · Brier `0.0795`)* | **#7 / 42 *(Live)***<br>*(#5 Tied-Top)* | **Top 16.7% *(Live)***<br>*(Top 11.9%)* | `vllm-sr/d3` *(27B, #8 `74.9%`)*, `Baseten Elephant 1` *(9B, #9 `74.8%`)*, `Darwin-27B` *(#10 `74.3%`)*, `Cloudflare/clef` *(27B, #17 `72.8%`)*, `clef-flash` *(9B, #24 `71.0%`)* |
58
  | **[`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *(Zero-Shot `<=9B` Open)*** | **19 Models** | **`75.25%` / `76.25%` Zero-Shot**<br>*(Distilled Raw: **`77.35%`**)* | **#2 / 19 *(Live)***<br>**#1 Clef-Arch** | **Top 10.5%** | Outperforms 17 of 18 `<=9B` open-weight models (`Baseten Elephant 1` `74.8%`, `vllm-sr/d3-mini` `74.3%`, `d3-flash` `71.7%`, `clef-flash` `71.0%`, `LiquidAI/d1-3B` `65.6%`) |
59
  | **[`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) *(Fitted on `train`)***<br>([PR #57](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/57) · [Trace](./eval_submissions/typescript_fastbrain-9b-fitted.json)) | **36 Models** | **`79.70%` / `80.70%` Acc**<br>*(KL `0.0816` · Brier `0.0437`)* | **#1 (`9B` Class)**<br>**Top 9 / 36 Overall** | **Top 13.9%–25.0%** | `OpenDecider-small-td` *(4B, `79.2%`)*, `nullspan` *(395M, `79.0%`)*, `OpenDecider-medium-td` *(30B-A3B, `78.8%`)*, `Qwen3.5-4B-td` *(`77.25%`)*, `Seb-9B` *(9B, `75.4%`)* |
 
96
 
97
  ### External Community Benchmarks (`safeagents-judge-bench` & `LocalLLaMA/typed-decisions`)
98
 
99
+ #### 1. [`harness-hub/safeagents-judge-bench`](https://huggingface.co/datasets/harness-hub/safeagents-judge-bench/tree/v2) (`v2`: 661 Agent Tool Calls · 82 Unsafe Trajectories · 7 Categories)
100
 
101
+ > **Official `v2` Leaderboard Note ([Merged PR #1](https://huggingface.co/TypeScript/FastBrain-9B/discussions/1) by `@ybelkada` · [`.eval_results/safeagents-judge-bench.yaml`](./.eval_results/safeagents-judge-bench.yaml))**: Evaluated independently via Hugging Face Jobs on `NVIDIA A100-SXM4-80GB` across `661` agent tool calls (`536` malicious calls across `82` unsafe trajectories + `125` benign `allow` calls):
102
+ > - **Rank `#1 / 8` Overall on 7-Way Category Classification (`v2`)**: **`75.1%` Category Macro-F1** and **`85.8%` Category Accuracy (`567/661`)**, outperforming the `3x`-larger `27.4B Cloudflare/clef` (`56.3%` Macro-F1 / `73.7%` Acc) by **`+18.8 pp` Macro-F1 (`+12.1 pp` Acc)** and the same-size base model `Cloudflare/clef-flash` (`46.2%` Macro-F1 / `57.6%` Acc) by **`+28.9 pp` Macro-F1 (`+28.2 pp` Acc)**.
103
+ > - **Zero Missed Unsafe Trajectories & `98.5%` AUROC on Binary Guardrail (`v2`)**: Catches **`82 / 82` (`100.0%`) unsafe trajectories** (`median_bad_calls_before_catch = 0.0`) with **`99.6%` Recall (`534/536`)** (`100%` recall on `harness_introspection` `272/272`, `credential_misuse` `15/15`, and `sandbox_escape` `4/4`; `99.2%` on `eval_gaming` `243/245`) and **`98.5%` AUROC**. At the uncalibrated default threshold (`P(block) >= 0.50`), Balanced Accuracy is **`81.4%`** (outperforming `27.4B Cloudflare/clef` at `80.8%` and `9.4B Cloudflare/clef-flash` at `77.6%`); with threshold calibration (`P(block) >= 0.961`), Balanced Accuracy reaches **`93.8%` (`5.6%` False Block Rate)** on `v2` and **`97.4%` (`85.1%` Category Macro-F1)** on `v0` (`562` calls).
104
+
105
+ | Model (`safeagents-judge-bench v2`) | Params | Cat. Macro-F1 ↑ | Cat. Acc ↑ | AUROC ↑ | Balanced Acc ↑ | Recall *(Traj. Caught)* ↑ | False Block Rate ↓ | Binary F1 ↑ | A100 P50 Latency ↓ |
106
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
107
+ | **`TypeScript/FastBrain-9B` *(`v2` Official · Default `t=0.50`)*** | **9.4B** | **75.1%** *(#1 / 8)* | **85.8%** *(#1 / 8)* | **98.5%** | 81.4% | **99.6%** *(**82/82**)* | 36.8% | **95.7%** | 327 ms *(104 ms G4)* |
108
+ | **`TypeScript/FastBrain-9B` *(`v2` Calibrated · `t=0.961`)*** | **9.4B** | **75.1%** *(#1)* | **85.8%** *(#1)* | **98.5%** | **93.8%** | 93.1% *(**82/82**)* | **5.6%** | **96.2%** | 327 ms *(104 ms G4)* |
109
+ | **`TypeScript/FastBrain-9B` *(`v0` 562-Call Calibrated)*** | **9.4B** | **85.1%** *(#1)* | **92.3%** *(#1)* | **98.6%** | **97.4%** *(#1)* | **100.0%** *(**78/78**)* | **5.1%** | **99.8%** | 104 ms *(G4)* |
110
+ | `Cloudflare/clef` | 27.4B | 56.3% *(#2)* | 73.7% *(#2)* | **99.3%** | 80.8% | **100.0%** *(**82/82**)* | 38.4% | 95.7% | 636 ms |
111
+ | `vllm-sr/d3-mini` | 1.8B | 51.2% *(#3)* | 72.3% *(#3)* | 98.6% | **94.8%** | 96.8% *(**82/82**)* | **7.2%** | **97.6%** | 41 ms |
112
+ | `Cloudflare/clef-flash` *(Base Model)* | 9.4B | 46.2% *(#4)* | 57.6% *(#6)* | 96.7% | 77.6% | 98.3% *(81/82)* | 43.2% | 94.4% | 299 ms |
113
+ | `Cloudflare/clef-omni` | 30B-A3B | 43.7% *(#5)* | 66.4% *(#5)* | 94.6% | 86.2% | 92.4% *(77/82)* | 20.0% | 93.9% | 237 ms |
114
+ | `knowledgator/gliclass-v4-edge` | 0.4B | 37.3% *(#6)* | 69.0% *(#4)* | 88.2% | 78.6% | 89.2% *(80/82)* | 32.0% | 91.0% | 12 ms |
115
+ | `fastino/GLiNER2.5-Decide` | 0.5B | 35.5% *(#7)* | 53.6% *(#8)* | 87.3% | 81.9% | 93.5% *(80/82)* | 29.6% | 93.4% | **8 ms** |
116
+ | `LiquidAI/d1-3B` | 3B | 32.8% *(#8)* | 55.5% *(#7)* | 93.9% | 85.4% | 95.5% *(**82/82**)* | 24.8% | 94.9% | 64 ms |
117
 
118
  #### 2. [`LocalLLaMA/typed-decisions`](https://huggingface.co/datasets/LocalLLaMA/typed-decisions) (400 Test Cases · 2,000 Typed Decisions Across 4 Enterprise Workflows)
119
 
 
404
  | `joint_schema_model.py` | `25 KB` | `ClefModel`, `JointSchemaHead`, `load_release_model(load_in_4bit/8bit)`, and `systemone()` runtime |
405
  | `eval_submissions/typescript_fastbrain-9b.json` | `901 KB` | Full 400-case / 2,000-decision Zero-Shot prediction trace for `LocalLLaMA/typed-decisions` ([PR #58](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/58)) |
406
  | `eval_submissions/typescript_fastbrain-9b-fitted.json` | `902 KB` | Full 400-case / 2,000-decision Fitted (`train`-calibrated) prediction trace for `LocalLLaMA/typed-decisions` ([PR #57](https://huggingface.co/datasets/LocalLLaMA/typed-decisions/discussions/57)) |
407
+ | `eval_submissions/TypeScript__FastBrain-9B*.jsonl` | `110 KB` | Full 661-call (`v2`) binary & 7-way category prediction traces for `harness-hub/safeagents-judge-bench` ([Merged PR #1](https://huggingface.co/TypeScript/FastBrain-9B/discussions/1)) |
408
  | `.eval_results/*.yaml` | `2.3 KB` | Official Hugging Face Hub benchmark evaluation metadata (`typed-decisions` & `safeagents-judge-bench`) |
409
  | `config.json`, `tokenizer.json`, `processor_config.json` | `11 MB` | Standard Hugging Face model, tokenizer, and processor configurations |
410
  | `assets/*.png` | `1.2 MB` | High-resolution technical benchmark and calibration charts |
eval_submissions/TypeScript__FastBrain-9B.category.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
eval_submissions/TypeScript__FastBrain-9B.jsonl CHANGED
The diff for this file is too large to render. See raw diff