bogdanraduta commited on
Commit
c3fded4
·
verified ·
1 Parent(s): 48cd36c

Upload eval/injection_eval.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. eval/injection_eval.md +47 -43
eval/injection_eval.md CHANGED
@@ -1,37 +1,39 @@
1
  # injection evaluation
2
 
3
- **Threshold 0.19 (calibrated on the validation split, objective recall_at_fpr).** The config default of 0.5 scored 0.938 against 0.961 for the calibrated value, on validation. Every table below is on test, at the calibrated threshold.
 
 
4
 
5
  ## Per language
6
 
7
  | Language | Support | P | R | F1 | Notes |
8
  |---|---|---|---|---|---|
9
- | `bg` Bulgarian | 13 | 1.000 | 1.000 | 1.000 | |
10
- | `cs` Czech | 13 | 1.000 | 0.923 | 0.960 | |
11
- | `da` Danish | 14 | 0.933 | 1.000 | 0.966 | |
12
- | `de` German | 14 | 0.933 | 1.000 | 0.966 | |
13
- | `el` Greek | 14 | 1.000 | 1.000 | 1.000 | |
14
- | `en` English | 14 | 0.933 | 1.000 | 0.966 | |
15
- | `es` Spanish | 12 | 1.000 | 1.000 | 1.000 | |
16
- | `et` Estonian | 14 | 0.933 | 1.000 | 0.966 | |
17
- | `fi` Finnish | 14 | 0.933 | 1.000 | 0.966 | |
18
- | `fr` French | 13 | 0.923 | 0.923 | 0.923 | |
19
- | `ga` Irish | 14 | 1.000 | 1.000 | 1.000 | |
20
- | `hr` Croatian | 13 | 1.000 | 1.000 | 1.000 | |
21
- | `hu` Hungarian | 14 | 1.000 | 1.000 | 1.000 | |
22
- | `it` Italian | 14 | 1.000 | 1.000 | 1.000 | |
23
- | `lt` Lithuanian | 13 | 1.000 | 1.000 | 1.000 | |
24
- | `lv` Latvian | 14 | 1.000 | 1.000 | 1.000 | |
25
- | `mt` Maltese | 14 | 1.000 | 0.571 | 0.727 | not in base model pretraining |
26
- | `nl` Dutch | 14 | 1.000 | 1.000 | 1.000 | |
27
- | `pl` Polish | 14 | 1.000 | 1.000 | 1.000 | |
28
- | `pt` Portuguese | 14 | 0.875 | 1.000 | 0.933 | |
29
- | `ro` Romanian | 14 | 0.933 | 1.000 | 0.966 | |
30
- | `sk` Slovak | 14 | 1.000 | 0.929 | 0.963 | |
31
- | `sl` Slovenian | 14 | 1.000 | 1.000 | 1.000 | |
32
- | `sv` Swedish | 14 | 1.000 | 1.000 | 1.000 | |
33
- | `tr` Turkish | 14 | 0.933 | 1.000 | 0.966 | |
34
- | `az` Azerbaijani | 14 | 1.000 | 0.929 | 0.963 | |
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` | 50 | 1.000 | 0.980 | 0.990 | 0.000 |
43
- | `hypothetical_framing` | 52 | 1.000 | 0.942 | 0.970 | 0.000 |
44
- | `ignore_instructions` | 51 | 1.000 | 0.980 | 0.990 | 0.000 |
45
- | `instruction_in_document` | 52 | 1.000 | 1.000 | 1.000 | 0.000 |
46
- | `instruction_in_tool_output` | 48 | 1.000 | 1.000 | 1.000 | 0.000 |
47
- | `meta_question` | 0 | 0.000 | 0.000 | 0.000 | 0.029 |
48
  | `mundane_informational` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
49
- | `mundane_operational` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
50
- | `mundane_transactional` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
51
- | `ordinary_instruction` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
52
- | `ordinary_question` | 0 | 0.000 | 0.000 | 0.000 | 0.000 |
53
- | `persona_override` | 52 | 1.000 | 0.962 | 0.980 | 0.000 |
54
- | `quoted_attack` | 0 | 0.000 | 0.000 | 0.000 | 0.019 |
55
- | `roleplay_benign` | 0 | 0.000 | 0.000 | 0.000 | 0.019 |
56
- | `security_discussion` | 0 | 0.000 | 0.000 | 0.000 | 0.029 |
57
- | `system_prompt_extraction` | 52 | 1.000 | 0.942 | 0.970 | 0.000 |
 
 
58
 
59
  ## Known weaknesses
60
 
61
- The three weakest languages by F1: `mt` at 0.727, `fr` at 0.923, `pt` at 0.933.
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.