Avifenesh commited on
Commit
f924397
·
verified ·
1 Parent(s): 9ef9bb3

Phase 4: LDAM head fine-tune (test F1 0.962, has_next_action 0.907, has_quality_finding 0.917)

Browse files
Files changed (5) hide show
  1. README.md +1 -1
  2. calibrator.json +2 -2
  3. config.json +13 -46
  4. logit_adjustment.json +50 -0
  5. model.safetensors +1 -1
README.md CHANGED
@@ -30,7 +30,7 @@ Zero Python runtime needed.
30
  | claim_present F1 | 0.962 |
31
  | false_emission_rate | 0.017 |
32
  | span_token_IoU | 0.969 |
33
- | predicate_accuracy_macro | 0.959 |
34
  | subject_type_accuracy_macro | 0.997 |
35
 
36
  ## Contents
 
30
  | claim_present F1 | 0.962 |
31
  | false_emission_rate | 0.017 |
32
  | span_token_IoU | 0.969 |
33
+ | predicate_accuracy_macro | 0.966 |
34
  | subject_type_accuracy_macro | 0.997 |
35
 
36
  ## Contents
calibrator.json CHANGED
@@ -17,8 +17,8 @@
17
  "y": [
18
  0.9090909090909091,
19
  0.9090909090909091,
20
- 0.9676258992805755,
21
- 0.9676258992805755,
22
  0.9803921568627451,
23
  0.9803921568627451,
24
  0.9900611620795107,
 
17
  "y": [
18
  0.9090909090909091,
19
  0.9090909090909091,
20
+ 0.9694244604316546,
21
+ 0.9694244604316546,
22
  0.9803921568627451,
23
  0.9803921568627451,
24
  0.9900611620795107,
config.json CHANGED
@@ -10,55 +10,22 @@
10
  "cls_token_id": 50281,
11
  "sep_token_id": 50282,
12
  "trained_args": {
13
- "backbone": "answerdotai/ModernBERT-large",
14
  "train_file": "data/bakeoff/splits_v3/span_slot.train.jsonl",
15
  "val_file": "data/bakeoff/splits_v3/span_slot.val.jsonl",
16
- "out_dir": "models/phase3/modernbert-large-mh-span-v3",
17
- "summary": "runs/phase3/modernbert-large-mh-span-v3/summary.json",
18
- "max_length": 512,
19
- "batch_size": 16,
20
- "eval_batch_size": 32,
21
- "lr": 3e-05,
22
- "warmup_steps": 300,
23
- "max_steps": 5000,
24
- "eval_every": 1000,
25
- "seed": 42,
26
- "precision": "bf16",
27
- "max_train_rows": null,
28
- "subsample_abstain": null
29
- },
30
- "trained_steps": 5000,
31
- "eval_at_save": {
32
- "n": 13264,
33
- "claim_precision": 0.9587293646823412,
34
- "claim_recall": 0.9596895343014522,
35
- "claim_accuracy": 0.975422195416164,
36
- "false_emission_rate": 0.01779935275080906,
37
- "tp": 3833,
38
- "fp": 165,
39
- "fn": 161,
40
- "tn": 9105,
41
- "predicate_accuracy": 0.9819729594391587,
42
- "subject_type_accuracy": 0.9957436154231347,
43
- "confidence_mae": 0.02157552532094326,
44
- "span_token_iou": 0.9724878820809442,
45
- "span_exact_match": 0.8061250316375601,
46
- "span_seen": 3951,
47
- "predicate_recall_by_class": {
48
- "decided": 0.9444444444444444,
49
- "blocked_by": 0.9538461538461539,
50
- "has_next_action": 0.9215686274509803,
51
- "has_status": 0.9615384615384616,
52
- "has_goal": 0.9938775510204082,
53
- "touched_file": 0.9916167664670659,
54
- "ran_command": 0.9983319432860718,
55
- "has_constraint": 0.9792243767313019,
56
- "has_open_question": 0.9386363636363636,
57
- "has_quality_finding": 0.9090909090909091,
58
- "created_file": 0.9552238805970149
59
- },
60
- "claim_f1": 0.9592092092092092
61
  },
 
 
62
  "heads": {
63
  "claim_present": {
64
  "kind": "linear",
 
10
  "cls_token_id": 50281,
11
  "sep_token_id": 50282,
12
  "trained_args": {
13
+ "checkpoint": "models/phase3/modernbert-large-mh-span-v3/best.pt",
14
  "train_file": "data/bakeoff/splits_v3/span_slot.train.jsonl",
15
  "val_file": "data/bakeoff/splits_v3/span_slot.val.jsonl",
16
+ "out_dir": "models/phase4/modernbert-large-ldam-head",
17
+ "summary": "runs/phase4/ldam-head-summary.json",
18
+ "max_steps": 500,
19
+ "drw_start": 400,
20
+ "batch_size": 32,
21
+ "lr": 0.0001,
22
+ "warmup_steps": 50,
23
+ "max_m": 0.5,
24
+ "cb_beta": 0.9999,
25
+ "seed": 42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  },
27
+ "trained_steps": 500,
28
+ "eval_at_save": {},
29
  "heads": {
30
  "claim_present": {
31
  "kind": "linear",
logit_adjustment.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "priors": {
3
+ "validated_by": 3.4233679093492176e-05,
4
+ "had_outcome": 3.4233679093492176e-05,
5
+ "failed_because": 3.4233679093492176e-05,
6
+ "worked_because": 3.4233679093492176e-05,
7
+ "decided": 0.004416144603060491,
8
+ "blocked_by": 0.01554209030844545,
9
+ "has_next_action": 0.013933107391051316,
10
+ "has_status": 0.013727705316490363,
11
+ "has_goal": 0.16336311663414468,
12
+ "touched_file": 0.18633391530587792,
13
+ "ran_command": 0.2814350758275992,
14
+ "logged_event": 3.4233679093492176e-05,
15
+ "has_constraint": 0.1833898189038376,
16
+ "has_open_question": 0.1111225223374756,
17
+ "has_quality_finding": 0.012221423436376708,
18
+ "reverted_file": 3.4233679093492176e-05,
19
+ "deleted_file": 0.0005135051864023827,
20
+ "created_file": 0.013693471637396872,
21
+ "committed": 3.4233679093492176e-05,
22
+ "deployed": 3.4233679093492176e-05,
23
+ "incident_observed": 3.4233679093492176e-05
24
+ },
25
+ "default_tau": 0.0,
26
+ "predicate_order": [
27
+ "validated_by",
28
+ "had_outcome",
29
+ "failed_because",
30
+ "worked_because",
31
+ "decided",
32
+ "blocked_by",
33
+ "has_next_action",
34
+ "has_status",
35
+ "has_goal",
36
+ "touched_file",
37
+ "ran_command",
38
+ "logged_event",
39
+ "has_constraint",
40
+ "has_open_question",
41
+ "has_quality_finding",
42
+ "reverted_file",
43
+ "deleted_file",
44
+ "created_file",
45
+ "committed",
46
+ "deployed",
47
+ "incident_observed"
48
+ ],
49
+ "note": "At inference: predicate_logit[y] -= tau * log(priors[y])."
50
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:08131bfe019bcc175eb827b6d5f90aa0a7a6cc288547b4e4b5d0d9a8e21431f0
3
  size 789661668
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2bd8dd832a925ae0cdeaefa15fa41e4bc3a98bcb039f90db089ee61252a1e20
3
  size 789661668