Upload eval/injection_eval.md with huggingface_hub
Browse files- eval/injection_eval.md +47 -43
eval/injection_eval.md
CHANGED
|
@@ -1,37 +1,39 @@
|
|
| 1 |
# injection evaluation
|
| 2 |
|
| 3 |
-
**Threshold 0.
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Per language
|
| 6 |
|
| 7 |
| Language | Support | P | R | F1 | Notes |
|
| 8 |
|---|---|---|---|---|---|
|
| 9 |
-
| `bg` Bulgarian |
|
| 10 |
-
| `cs` Czech |
|
| 11 |
-
| `da` Danish |
|
| 12 |
-
| `de` German |
|
| 13 |
-
| `el` Greek |
|
| 14 |
-
| `en` English |
|
| 15 |
-
| `es` Spanish |
|
| 16 |
-
| `et` Estonian |
|
| 17 |
-
| `fi` Finnish |
|
| 18 |
-
| `fr` French |
|
| 19 |
-
| `ga` Irish |
|
| 20 |
-
| `hr` Croatian |
|
| 21 |
-
| `hu` Hungarian |
|
| 22 |
-
| `it` Italian |
|
| 23 |
-
| `lt` Lithuanian |
|
| 24 |
-
| `lv` Latvian |
|
| 25 |
-
| `mt` Maltese |
|
| 26 |
-
| `nl` Dutch |
|
| 27 |
-
| `pl` Polish |
|
| 28 |
-
| `pt` Portuguese |
|
| 29 |
-
| `ro` Romanian |
|
| 30 |
-
| `sk` Slovak |
|
| 31 |
-
| `sl` Slovenian |
|
| 32 |
-
| `sv` Swedish |
|
| 33 |
-
| `tr` Turkish |
|
| 34 |
-
| `az` Azerbaijani |
|
| 35 |
|
| 36 |
The base-model note is a fact about pretraining, not a cause of the score beside it. `nsfw` Maltese carried the same note at 0.000 and reached 1.000 on corpus size alone, with nothing about the base model changed. Check how many examples a weak score rests on before reaching for this.
|
| 37 |
|
|
@@ -39,25 +41,27 @@ The base-model note is a fact about pretraining, not a cause of the score beside
|
|
| 39 |
|
| 40 |
| Register | Support | P | R | F1 | FPR |
|
| 41 |
|---|---|---|---|---|---|
|
| 42 |
-
| `encoded_payload` |
|
| 43 |
-
| `hypothetical_framing` |
|
| 44 |
-
| `ignore_instructions` |
|
| 45 |
-
| `instruction_in_document` |
|
| 46 |
-
| `instruction_in_tool_output` |
|
| 47 |
-
| `meta_question` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 48 |
| `mundane_informational` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
|
| 49 |
-
| `mundane_operational` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 50 |
-
| `mundane_transactional` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 51 |
-
| `ordinary_instruction` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 52 |
-
| `ordinary_question` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 53 |
-
| `persona_override` |
|
| 54 |
-
| `quoted_attack` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 55 |
-
| `roleplay_benign` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 56 |
-
| `security_discussion` | 0 | 0.000 | 0.000 | 0.000 | 0.
|
| 57 |
-
| `system_prompt_extraction` |
|
|
|
|
|
|
|
| 58 |
|
| 59 |
## Known weaknesses
|
| 60 |
|
| 61 |
-
The three weakest languages by F1: `mt` at 0.
|
| 62 |
|
| 63 |
These are published rather than dropped. A coverage table with the bad rows removed is not a coverage table.
|
|
|
|
| 1 |
# injection evaluation
|
| 2 |
|
| 3 |
+
**Threshold 0.02 (calibrated on the validation split, objective recall_at_fpr).** The config default of 0.5 scored 0.985 against 0.993 for the calibrated value, on validation. Every table below is on test, at the calibrated threshold.
|
| 4 |
+
|
| 5 |
+
> the chosen threshold 0.02 is the lowest value in the sweep, so the scores are compressed toward zero and this is underfitting rather than a calibration success. Check average precision before trusting the F1.
|
| 6 |
|
| 7 |
## Per language
|
| 8 |
|
| 9 |
| Language | Support | P | R | F1 | Notes |
|
| 10 |
|---|---|---|---|---|---|
|
| 11 |
+
| `bg` Bulgarian | 41 | 1.000 | 1.000 | 1.000 | |
|
| 12 |
+
| `cs` Czech | 42 | 0.955 | 1.000 | 0.977 | |
|
| 13 |
+
| `da` Danish | 41 | 0.976 | 1.000 | 0.988 | |
|
| 14 |
+
| `de` German | 42 | 1.000 | 1.000 | 1.000 | |
|
| 15 |
+
| `el` Greek | 42 | 1.000 | 1.000 | 1.000 | |
|
| 16 |
+
| `en` English | 41 | 0.976 | 1.000 | 0.988 | |
|
| 17 |
+
| `es` Spanish | 40 | 1.000 | 1.000 | 1.000 | |
|
| 18 |
+
| `et` Estonian | 41 | 1.000 | 1.000 | 1.000 | |
|
| 19 |
+
| `fi` Finnish | 42 | 1.000 | 1.000 | 1.000 | |
|
| 20 |
+
| `fr` French | 41 | 1.000 | 0.976 | 0.988 | |
|
| 21 |
+
| `ga` Irish | 42 | 0.976 | 0.976 | 0.976 | |
|
| 22 |
+
| `hr` Croatian | 42 | 0.955 | 1.000 | 0.977 | |
|
| 23 |
+
| `hu` Hungarian | 42 | 0.955 | 1.000 | 0.977 | |
|
| 24 |
+
| `it` Italian | 42 | 1.000 | 1.000 | 1.000 | |
|
| 25 |
+
| `lt` Lithuanian | 42 | 1.000 | 1.000 | 1.000 | |
|
| 26 |
+
| `lv` Latvian | 41 | 0.976 | 1.000 | 0.988 | |
|
| 27 |
+
| `mt` Maltese | 42 | 0.732 | 0.976 | 0.837 | not in base model pretraining |
|
| 28 |
+
| `nl` Dutch | 41 | 0.976 | 1.000 | 0.988 | |
|
| 29 |
+
| `pl` Polish | 41 | 1.000 | 1.000 | 1.000 | |
|
| 30 |
+
| `pt` Portuguese | 42 | 0.977 | 1.000 | 0.988 | |
|
| 31 |
+
| `ro` Romanian | 42 | 0.977 | 1.000 | 0.988 | |
|
| 32 |
+
| `sk` Slovak | 41 | 1.000 | 1.000 | 1.000 | |
|
| 33 |
+
| `sl` Slovenian | 42 | 0.977 | 1.000 | 0.988 | |
|
| 34 |
+
| `sv` Swedish | 41 | 1.000 | 1.000 | 1.000 | |
|
| 35 |
+
| `tr` Turkish | 42 | 0.955 | 1.000 | 0.977 | |
|
| 36 |
+
| `az` Azerbaijani | 42 | 1.000 | 1.000 | 1.000 | |
|
| 37 |
|
| 38 |
The base-model note is a fact about pretraining, not a cause of the score beside it. `nsfw` Maltese carried the same note at 0.000 and reached 1.000 on corpus size alone, with nothing about the base model changed. Check how many examples a weak score rests on before reaching for this.
|
| 39 |
|
|
|
|
| 41 |
|
| 42 |
| Register | Support | P | R | F1 | FPR |
|
| 43 |
|---|---|---|---|---|---|
|
| 44 |
+
| `encoded_payload` | 155 | 1.000 | 0.994 | 0.997 | 0.000 |
|
| 45 |
+
| `hypothetical_framing` | 156 | 1.000 | 1.000 | 1.000 | 0.000 |
|
| 46 |
+
| `ignore_instructions` | 155 | 1.000 | 1.000 | 1.000 | 0.000 |
|
| 47 |
+
| `instruction_in_document` | 155 | 1.000 | 1.000 | 1.000 | 0.000 |
|
| 48 |
+
| `instruction_in_tool_output` | 148 | 1.000 | 0.986 | 0.993 | 0.000 |
|
| 49 |
+
| `meta_question` | 0 | 0.000 | 0.000 | 0.000 | 0.015 |
|
| 50 |
| `mundane_informational` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
|
| 51 |
+
| `mundane_operational` | 0 | 0.000 | 0.000 | 0.000 | 0.005 |
|
| 52 |
+
| `mundane_transactional` | 0 | 0.000 | 0.000 | 0.000 | 0.005 |
|
| 53 |
+
| `ordinary_instruction` | 0 | 0.000 | 0.000 | 0.000 | 0.015 |
|
| 54 |
+
| `ordinary_question` | 0 | 0.000 | 0.000 | 0.000 | 0.003 |
|
| 55 |
+
| `persona_override` | 155 | 1.000 | 1.000 | 1.000 | 0.000 |
|
| 56 |
+
| `quoted_attack` | 0 | 0.000 | 0.000 | 0.000 | 0.018 |
|
| 57 |
+
| `roleplay_benign` | 0 | 0.000 | 0.000 | 0.000 | 0.015 |
|
| 58 |
+
| `security_discussion` | 0 | 0.000 | 0.000 | 0.000 | 0.015 |
|
| 59 |
+
| `system_prompt_extraction` | 156 | 1.000 | 1.000 | 1.000 | 0.000 |
|
| 60 |
+
| `technical_identifiers` | 0 | 0.000 | 0.000 | 0.000 | 0.003 |
|
| 61 |
+
| `technical_payload` | 0 | 0.000 | 0.000 | 0.000 | 0.003 |
|
| 62 |
|
| 63 |
## Known weaknesses
|
| 64 |
|
| 65 |
+
The three weakest languages by F1: `mt` at 0.837, `ga` at 0.976, `cs` at 0.977.
|
| 66 |
|
| 67 |
These are published rather than dropped. A coverage table with the bad rows removed is not a coverage table.
|