noahsantacruz commited on
Commit
2dc02f6
路
verified 路
1 Parent(s): ae9c7a5

Card: prior weight chosen on balanced val top-1; new scores

Browse files
Files changed (1) hide show
  1. README.md +9 -9
README.md CHANGED
@@ -11,22 +11,22 @@ Picks the meaning of a Hebrew or Aramaic abbreviation (roshei tevot, e.g. 专"砖,
11
  - Base: `dicta-il/BEREL_3.0`, 512 tokens, 200 words of context on each side of the abbreviation.
12
  - Data: `Sefaria/berel-roshei-tevot` (private), the Nov 19, 2026 build. Train: 235,729 gold, 256,553 LLM-labelled, 1,360 rechecked and 15,833 work-scoped labels, plus 512,311 synthetic (swapped) examples.
13
  - Training: one epoch, 600,000 sampled rows; sampling weight 1/count(key)^0.5, synthetic weight 0.5 (picked on val from 0, 0.5, 1), sense balancing 尾 0.5 (max boost 10). Spot A100, Nov 20, 2026. Training code: `train-roshei-tevot` in Sefaria/mlworkflows.
14
- - Candidates are the key's sense classes from train only; a class is represented by its most-trained reading. Ranking scores are combined with a train-frequency prior, weight 位 = 0.25 (chosen on val).
15
 
16
  ## Results (scored once on test)
17
 
18
- Top-1 is over rows with two or more candidate sense classes and the right one among them. "All rows" also counts rows with a single candidate (right by default) and rows the ranker cannot answer (no candidates, or the label is not a candidate) as wrong.
19
 
20
- | split | ranked rows | top-1 | most-frequent baseline | gold top-1 | LLM-label top-1 | rare-sense top-1 | MRR | all rows |
21
- |---|---|---|---|---|---|---|---|---|
22
- | val | 2,580 | 96.4 | 78.5 | 98.2 | 94.4 | 82.7 | 0.980 | 92.9 of 6,806 |
23
- | test_seen_keys | 3,535 | 96.3 | 74.4 | 97.8 | 94.6 | 74.3 | 0.980 | 93.9 of 10,558 |
24
- | test_unseen_keys | 302 | 94.9 | 36.2 | 95.9 | 91.1 | | 0.973 | 8.6 of 8,058 |
25
 
26
  test_unseen_keys has no train-derived candidates; only 302 of its 8,058 rows have two or more candidates from independent sources (edition tables, kizur lists), so its all-rows figure measures candidate coverage, not the model. Unseen keys need generation, which this model does not do.
27
 
28
  LLM-labelled rows score lower than gold rows partly because LLM labels have errors of their own; a 500-example human check of LLM labels (D2) has been drawn and awaits review.
29
 
30
- The cross-encoder model trained on the same data scores within 0.7 points on every split.
31
 
32
- Full report: `gs://sefaria-ml-models/roshei-tevot/reports/final-2026-11-20.json`. Files: `roshei_tevot_config.json` (architecture, pooling, logit scale), `training_report.json`.
 
11
  - Base: `dicta-il/BEREL_3.0`, 512 tokens, 200 words of context on each side of the abbreviation.
12
  - Data: `Sefaria/berel-roshei-tevot` (private), the Nov 19, 2026 build. Train: 235,729 gold, 256,553 LLM-labelled, 1,360 rechecked and 15,833 work-scoped labels, plus 512,311 synthetic (swapped) examples.
13
  - Training: one epoch, 600,000 sampled rows; sampling weight 1/count(key)^0.5, synthetic weight 0.5 (picked on val from 0, 0.5, 1), sense balancing 尾 0.5 (max boost 10). Spot A100, Nov 20, 2026. Training code: `train-roshei-tevot` in Sefaria/mlworkflows.
14
+ - Candidates are the key's sense classes from train only; a class is represented by its most-trained reading. Ranking uses the model's scores alone: a train-frequency prior was tried and its weight 位 chosen on balanced val top-1, which picked 位 = 0.
15
 
16
  ## Results (scored once on test)
17
 
18
+ Balanced top-1 is the mean of top-1 over the majority, common and rare sense bands (rare = under 10% of the key's train examples), so a rare sense counts as much as a frequent one. Top-1 is over rows with two or more candidate sense classes and the right one among them. "All rows" also counts rows with a single candidate (right by default) and rows the ranker cannot answer (no candidates, or the label is not a candidate) as wrong.
19
 
20
+ | split | ranked rows | top-1 | balanced top-1 | most-frequent baseline | gold top-1 | LLM-label top-1 | rare-sense top-1 | MRR | all rows |
21
+ |---|---|---|---|---|---|---|---|---|---|
22
+ | val | 2,580 | 96.0 | 90.8 | 78.5 | 98.0 | 93.9 | 85.2 | 0.978 | 92.8 of 6,806 |
23
+ | test_seen_keys | 3,535 | 96.2 | 90.4 | 74.4 | 97.6 | 94.6 | 79.4 | 0.980 | 93.9 of 10,558 |
24
+ | test_unseen_keys | 302 | 94.9 | | 36.2 | 95.9 | 91.1 | | 0.973 | 8.6 of 8,058 |
25
 
26
  test_unseen_keys has no train-derived candidates; only 302 of its 8,058 rows have two or more candidates from independent sources (edition tables, kizur lists), so its all-rows figure measures candidate coverage, not the model. Unseen keys need generation, which this model does not do.
27
 
28
  LLM-labelled rows score lower than gold rows partly because LLM labels have errors of their own; a 500-example human check of LLM labels (D2) has been drawn and awaits review.
29
 
30
+ The cross-encoder trained on the same data (`Sefaria/berel-roshei-tevot-cross`) scores within 1 point on top-1 on every split; this model is better on val and level on test. Combining the two (weighted sum, or a small stacker on both models' scores) did not beat this model alone on val.
31
 
32
+ Full report: `gs://sefaria-ml-models/roshei-tevot/reports/final-balanced-2026-11-20.json`. Files: `roshei_tevot_config.json` (architecture, pooling, logit scale), `training_report.json`.