factlogic commited on
Commit
4f7ab5a
·
verified ·
1 Parent(s): a46a554

Add Phoenix vs Baseer server benchmark and historical evidence

Browse files
BENCHMARKS.md CHANGED
@@ -1,5 +1,28 @@
1
  # Benchmark protocol and claim boundaries
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ## Sealed comparison used for the release decision
4
 
5
  - Arms: exp8 and exp9.
@@ -65,6 +88,8 @@ This diagnostic re-evaluates the original Muharaf recognizer, exp6, exp8, and ex
65
  - exp9 regressed slightly on sealed TariMa.
66
  - the same-protocol guard table compares the four listed model files fairly on those exact guard inputs.
67
  - Athar provides system-level functionality that a recognizer weight file alone does not provide.
 
 
68
 
69
  ## Claims that are not allowed
70
 
@@ -73,3 +98,29 @@ This diagnostic re-evaluates the original Muharaf recognizer, exp6, exp8, and ex
73
  - comparing Arabic-normalized CER with another system's raw CER.
74
  - treating guard-set results as unseen final-test evidence.
75
  - attributing Athar's retrieval, review, or export capabilities to the exp9 weights.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Benchmark protocol and claim boundaries
2
 
3
+ ## Additional server comparison: Phoenix vs Baseer__Nakba
4
+
5
+ These values were produced in an owner-run server experiment and supplied as aggregate results. The model repository does not yet contain the raw line predictions, sample counts, preprocessing manifest, or runnable evaluation bundle for this experiment. They are therefore suitable for publication **with provenance caveats**, but are not labelled independently reproduced or sealed.
6
+
7
+ | Metric | Phoenix | Baseer__Nakba | Difference |
8
+ |---|---:|---:|---:|
9
+ | Unweighted macro CER over 4 datasets | **9.71%** | 28.67% | −18.97 pp; **66.1% relative reduction** |
10
+ | WER | **34.37%** | 59.52% | −25.15 pp; **42.3% relative reduction** |
11
+ | Exact-line accuracy | 13.38% | **26.38%** | Baseer +13.00 pp |
12
+ | Parameters | **4,988,946** | ≈3.75B | Phoenix ≈752× smaller |
13
+ | File size | **19,936,101 bytes** | ≈7.53 GB | Phoenix ≈378× smaller |
14
+
15
+ | Dataset | Phoenix CER | Baseer CER | Winner | Phoenix relative CER reduction |
16
+ |---|---:|---:|---|---:|
17
+ | Agapet | **11.13%** | 35.65% | Phoenix | 68.8% |
18
+ | Muharaf | **11.93%** | 25.51% | Phoenix | 53.2% |
19
+ | Omar | 6.88% | **0.48%** | Baseer__Nakba | — |
20
+ | RASAM | **8.90%** | 53.06% | Phoenix | 83.2% |
21
+
22
+ The macro is an unweighted average over dataset-level CER, not a character-weighted aggregate. Recomputing from the displayed rows gives Phoenix 9.71% exactly and Baseer 28.675%; the source displays 28.67%. WER and exact-line aggregation denominators were not supplied. The result supports a strong efficiency and average-CER claim, but not universal superiority: Baseer wins Omar and exact-line accuracy.
23
+
24
+ Machine-readable details and publication constraints are in `baseer_server_benchmark.json`.
25
+
26
  ## Sealed comparison used for the release decision
27
 
28
  - Arms: exp8 and exp9.
 
88
  - exp9 regressed slightly on sealed TariMa.
89
  - the same-protocol guard table compares the four listed model files fairly on those exact guard inputs.
90
  - Athar provides system-level functionality that a recognizer weight file alone does not provide.
91
+ - under the supplied server protocol, Phoenix had lower CER on 3/4 datasets, lower unweighted macro CER, and lower WER than Baseer__Nakba while being roughly 752× smaller by parameter count.
92
+ - Baseer__Nakba had lower Omar CER and higher exact-line accuracy in the same supplied comparison.
93
 
94
  ## Claims that are not allowed
95
 
 
98
  - comparing Arabic-normalized CER with another system's raw CER.
99
  - treating guard-set results as unseen final-test evidence.
100
  - attributing Athar's retrieval, review, or export capabilities to the exp9 weights.
101
+ - calling the Baseer comparison independently reproduced, sealed, or universally representative until its raw predictions, counts, preprocessing, and evaluation code are archived.
102
+
103
+ ## Historical development results
104
+
105
+ These rows document the project's progression, but they use **different evaluation sets**. They must not be read as a single head-to-head leaderboard.
106
+
107
+ | Model | Evaluation set | LM | CER | WER | Character accuracy | Word accuracy |
108
+ |---|---|---:|---:|---:|---:|---:|
109
+ | Muharaf baseline | RASAM-test | No | 37.91% | 88.12% | 62.09% | 11.88% |
110
+ | exp4A | RASAM-test | No | 7.64% | 27.77% | 92.36% | 72.23% |
111
+ | exp6 | RASAM-test | No | 7.48% | 27.17% | 92.52% | 72.83% |
112
+ | exp6 + order-8 LM | RASAM-test | Yes | 6.76% | 27.17% | 93.24% | 72.83% |
113
+ | exp6 + order-8 LM | TariMa-test | Yes | 8.68% | 37.84% | 91.32% | 62.16% |
114
+ | exp7_easy | Easy-Family | No | 5.94% | 22.38% | 94.06% | 77.62% |
115
+ | exp7_hard | Hard-Family | No | 13.70% | 45.61% | 86.30% | 54.39% |
116
+
117
+ ### Historical assistance-layer measurements
118
+
119
+ | Component | Measurement | Result |
120
+ |---|---|---:|
121
+ | Confidence-gated LM | useful interventions on auto-seg run | 12/18 (67%) |
122
+ | Contextual candidates | difficult lines improved / harmed | 6/10 / 0 |
123
+ | Catalog search | correct work ranked first | 5/5 |
124
+ | Retrieval correction | Qur'an al-ʿAlaq match with reference | 98.3% |
125
+
126
+ Historical logic-domain LM perplexity was 53.14 for the general model, 40.70 for the self-trained model (−23.4%), and 20.25 for the mixed model (−61.9%). These are language-model diagnostics, not exp9 visual-recognizer CER results.
PUBLISH_CHECKLIST.md CHANGED
@@ -16,6 +16,8 @@ The repository remains private pending the license review below.
16
  6. Do not upload the Athar retrieval corpus or raw training datasets with the model.
17
  7. Keep the wording distinction between sealed release evidence and development-guard diagnostics.
18
  8. Do not claim comparison with the published Muharaf 18.1% number unless its official protocol is reproduced exactly.
 
 
19
 
20
  ## Suggested commands
21
 
 
16
  6. Do not upload the Athar retrieval corpus or raw training datasets with the model.
17
  7. Keep the wording distinction between sealed release evidence and development-guard diagnostics.
18
  8. Do not claim comparison with the published Muharaf 18.1% number unless its official protocol is reproduced exactly.
19
+ 9. Keep the Phoenix-vs-Baseer section labelled as an owner-run server benchmark until raw predictions, sample counts, preprocessing, and an executable evaluation manifest are archived.
20
+ 10. Preserve the counter-results: Baseer__Nakba wins Omar CER and exact-line accuracy; do not replace the scoped conclusion with “Phoenix is universally better.”
21
 
22
  ## Suggested commands
23
 
README.md CHANGED
@@ -94,6 +94,29 @@ All values below use the same images, references, and greedy decoder for exp8 an
94
 
95
  Both Agapet manuscripts improved, and all eleven Omar documents improved. TariMa is the declared exception: exp9 regressed by 0.33 CER percentage points, within the 0.5-point tolerance registered before opening the sealed results.
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  ## Same-protocol diagnostic comparison
98
 
99
  All models below were decoded on the same pre-cropped line images and raw references with Kraken greedy decoding, without an LM or normalization. Each cell is **CER / word accuracy**.
@@ -198,7 +221,7 @@ These are system capabilities, not properties encoded inside the model weights.
198
  - Evaluation decoder: greedy, without LM
199
  - Raw and Arabic-normalized metrics are stored separately; the model card reports raw metrics unless explicitly labelled otherwise.
200
 
201
- See `BENCHMARKS.md`, `benchmark_summary.json`, `DATA_AND_LICENSES.md`, and `metadata.json` in this repository for details.
202
 
203
  ## Citation
204
 
 
94
 
95
  Both Agapet manuscripts improved, and all eleven Omar documents improved. TariMa is the declared exception: exp9 regressed by 0.33 CER percentage points, within the 0.5-point tolerance registered before opening the sealed results.
96
 
97
+ ## Phoenix vs Baseer__Nakba: additional server benchmark
98
+
99
+ In an additional owner-run server comparison, Phoenix exp9 achieved a substantially lower **four-domain macro CER** and **overall WER** than Baseer__Nakba while using roughly three orders of magnitude fewer parameters. The comparison also exposes an important counter-result: Baseer__Nakba had higher exact-line accuracy and was markedly better on Omar. These aggregate values are reported as supplied; the raw per-line predictions, sample counts, preprocessing manifest, and executable evaluation bundle are not yet included in this repository, so this section is **shareable with that provenance caveat**, not an independently reproduced benchmark.
100
+
101
+ | Metric | Phoenix exp9 | Baseer__Nakba | Result |
102
+ |---|---:|---:|---|
103
+ | Four-domain unweighted macro CER | **9.71%** | 28.67% | Phoenix: **66.1% relative CER reduction** |
104
+ | Overall WER | **34.37%** | 59.52% | Phoenix: **−25.15 pp**, 42.3% relative reduction |
105
+ | Exact-line accuracy | 13.38% | **26.38%** | Baseer__Nakba higher |
106
+ | Parameters | **4,988,946** | ≈3.75B | Phoenix ≈**752× smaller** |
107
+ | Model file | **19.94 MB** | ≈7.53 GB | Phoenix ≈**378× smaller** |
108
+
109
+ ### Raw CER by dataset
110
+
111
+ | Dataset | Phoenix exp9 | Baseer__Nakba | Lower CER |
112
+ |---|---:|---:|---|
113
+ | Agapet | **11.13%** | 35.65% | Phoenix (68.8% relative reduction) |
114
+ | Muharaf | **11.93%** | 25.51% | Phoenix (53.2% relative reduction) |
115
+ | Omar | 6.88% | **0.48%** | Baseer__Nakba |
116
+ | RASAM | **8.90%** | 53.06% | Phoenix (83.2% relative reduction) |
117
+
118
+ The macro CER is an **unweighted mean of the four dataset CER values**, so each dataset contributes equally regardless of line or character count. The four displayed Baseer values average to 28.675%; the supplied 28.67% display is retained, while the unrounded recomputation is recorded in `baseer_server_benchmark.json`. The supported conclusion is therefore: **under this server protocol, Phoenix has lower CER on three of four datasets and a much lower macro CER at a fraction of the model size; Baseer__Nakba remains stronger on Omar and exact-line accuracy.**
119
+
120
  ## Same-protocol diagnostic comparison
121
 
122
  All models below were decoded on the same pre-cropped line images and raw references with Kraken greedy decoding, without an LM or normalization. Each cell is **CER / word accuracy**.
 
221
  - Evaluation decoder: greedy, without LM
222
  - Raw and Arabic-normalized metrics are stored separately; the model card reports raw metrics unless explicitly labelled otherwise.
223
 
224
+ See `BENCHMARKS.md`, `benchmark_summary.json`, `baseer_server_benchmark.json`, `DATA_AND_LICENSES.md`, and `metadata.json` in this repository for details.
225
 
226
  ## Citation
227
 
SHA256SUMS CHANGED
@@ -1,3 +1,4 @@
1
  2896fef9d9665cbb82fba8faa3bf0c628ac6a5cc62eb678f40c707db833aebea model.mlmodel
2
- 5ec7359346dace3ca43285b5a1e1c9edb0ec0b460092d13e401b70324bfd4750 benchmark_summary.json
3
- a6b7292250a864d43954a191205e67b2c3a534c488f3bab13a5d9ed620d98a15 metadata.json
 
 
1
  2896fef9d9665cbb82fba8faa3bf0c628ac6a5cc62eb678f40c707db833aebea model.mlmodel
2
+ 779f134c7ab329431144dfe768065b02a33920eaab639253877da1f12eb80dda benchmark_summary.json
3
+ 3be7fbf28aead97eb65896a5f953c0be356da4c6421a9974a0a71b6c0db261f1 metadata.json
4
+ 491f3888e2c2afeb37d2a64f8b8456bdcaa554a8aa29ab1931d86219649304f1 baseer_server_benchmark.json
baseer_server_benchmark.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "benchmark_name": "Phoenix exp9 vs Baseer__Nakba server comparison",
4
+ "evidence_status": "owner-supplied aggregate server results; raw predictions, sample counts, and executable evaluation manifest are not included in this model repository",
5
+ "metric_direction": {
6
+ "cer": "lower_is_better",
7
+ "wer": "lower_is_better",
8
+ "exact_line_accuracy": "higher_is_better"
9
+ },
10
+ "overall": {
11
+ "macro_cer": {
12
+ "aggregation": "unweighted arithmetic mean across Agapet, Muharaf, Omar, and RASAM",
13
+ "phoenix_percent": 9.71,
14
+ "baseer_displayed_percent": 28.67,
15
+ "baseer_recomputed_percent": 28.675,
16
+ "absolute_difference_percentage_points": -18.965,
17
+ "phoenix_relative_error_reduction_percent": 66.13
18
+ },
19
+ "wer": {
20
+ "phoenix_percent": 34.37,
21
+ "baseer_percent": 59.52,
22
+ "absolute_difference_percentage_points": -25.15,
23
+ "phoenix_relative_error_reduction_percent": 42.25,
24
+ "aggregation_and_denominator": "not supplied"
25
+ },
26
+ "exact_line_accuracy": {
27
+ "phoenix_percent": 13.38,
28
+ "baseer_percent": 26.38,
29
+ "winner": "Baseer__Nakba",
30
+ "aggregation_and_denominator": "not supplied"
31
+ },
32
+ "efficiency": {
33
+ "phoenix_parameters": 4988946,
34
+ "baseer_parameters_approx": 3750000000,
35
+ "phoenix_parameter_advantage_approx_x": 751.66,
36
+ "phoenix_model_bytes": 19936101,
37
+ "baseer_model_size_approx_gb_decimal": 7.53,
38
+ "phoenix_file_size_advantage_approx_x": 377.71
39
+ }
40
+ },
41
+ "per_dataset_raw_cer_percent": [
42
+ {
43
+ "dataset": "Agapet",
44
+ "phoenix": 11.13,
45
+ "baseer": 35.65,
46
+ "winner": "Phoenix",
47
+ "phoenix_relative_error_reduction_percent": 68.78
48
+ },
49
+ {
50
+ "dataset": "Muharaf",
51
+ "phoenix": 11.93,
52
+ "baseer": 25.51,
53
+ "winner": "Phoenix",
54
+ "phoenix_relative_error_reduction_percent": 53.23
55
+ },
56
+ {
57
+ "dataset": "Omar",
58
+ "phoenix": 6.88,
59
+ "baseer": 0.48,
60
+ "winner": "Baseer__Nakba"
61
+ },
62
+ {
63
+ "dataset": "RASAM",
64
+ "phoenix": 8.90,
65
+ "baseer": 53.06,
66
+ "winner": "Phoenix",
67
+ "phoenix_relative_error_reduction_percent": 83.23
68
+ }
69
+ ],
70
+ "publication_requirements": [
71
+ "State that Phoenix wins macro CER and three of four dataset CER rows under this server protocol, not that it is universally superior.",
72
+ "State that Baseer__Nakba wins Omar CER and overall exact-line accuracy.",
73
+ "Do not describe these aggregates as independently reproduced until raw predictions, sample counts, preprocessing, and evaluation code are archived.",
74
+ "Do not mix these values with the sealed exp8-vs-exp9 table or the development-guard table; the protocols differ."
75
+ ]
76
+ }
benchmark_summary.json CHANGED
@@ -47,6 +47,55 @@
47
  "relative_character_error_reduction_percent": 25.2719
48
  }
49
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  "same_protocol_development_diagnostic": {
51
  "claim_status": "development diagnostic; not a sealed final test",
52
  "protocol": {
 
47
  "relative_character_error_reduction_percent": 25.2719
48
  }
49
  },
50
+ "baseer_server_comparison": {
51
+ "claim_status": "owner-supplied aggregate server results; share with provenance caveat",
52
+ "raw_prediction_artifact_included": false,
53
+ "sample_counts_supplied": false,
54
+ "overall": {
55
+ "phoenix_macro_cer": 9.71,
56
+ "baseer_macro_cer_displayed": 28.67,
57
+ "baseer_macro_cer_recomputed": 28.675,
58
+ "phoenix_relative_cer_reduction_percent": 66.13,
59
+ "phoenix_wer": 34.37,
60
+ "baseer_wer": 59.52,
61
+ "wer_difference_percentage_points": -25.15,
62
+ "phoenix_relative_wer_reduction_percent": 42.25,
63
+ "phoenix_exact_line_accuracy": 13.38,
64
+ "baseer_exact_line_accuracy": 26.38
65
+ },
66
+ "efficiency": {
67
+ "phoenix_parameters": 4988946,
68
+ "baseer_parameters_approx": 3750000000,
69
+ "phoenix_parameter_advantage_approx_x": 751.66,
70
+ "phoenix_model_bytes": 19936101,
71
+ "baseer_model_size_approx_gb_decimal": 7.53,
72
+ "phoenix_file_size_advantage_approx_x": 377.71
73
+ },
74
+ "datasets": [
75
+ {"name": "Agapet", "phoenix_cer": 11.13, "baseer_cer": 35.65, "winner": "Phoenix"},
76
+ {"name": "Muharaf", "phoenix_cer": 11.93, "baseer_cer": 25.51, "winner": "Phoenix"},
77
+ {"name": "Omar", "phoenix_cer": 6.88, "baseer_cer": 0.48, "winner": "Baseer__Nakba"},
78
+ {"name": "RASAM", "phoenix_cer": 8.90, "baseer_cer": 53.06, "winner": "Phoenix"}
79
+ ]
80
+ },
81
+ "historical_development": {
82
+ "claim_status": "different evaluation sets; not a single leaderboard",
83
+ "rows": [
84
+ {"model": "muharaf_rec_best", "dataset": "RASAM-test", "lm": false, "cer": 37.91, "wer": 88.12, "char_accuracy": 62.09, "word_accuracy": 11.88},
85
+ {"model": "exp4A", "dataset": "RASAM-test", "lm": false, "cer": 7.64, "wer": 27.77, "char_accuracy": 92.36, "word_accuracy": 72.23},
86
+ {"model": "exp6", "dataset": "RASAM-test", "lm": false, "cer": 7.48, "wer": 27.17, "char_accuracy": 92.52, "word_accuracy": 72.83},
87
+ {"model": "exp6 + order-8 LM", "dataset": "RASAM-test", "lm": true, "cer": 6.76, "wer": 27.17, "char_accuracy": 93.24, "word_accuracy": 72.83},
88
+ {"model": "exp6 + order-8 LM", "dataset": "TariMa-test", "lm": true, "cer": 8.68, "wer": 37.84, "char_accuracy": 91.32, "word_accuracy": 62.16},
89
+ {"model": "exp7_easy", "dataset": "Easy-Family", "lm": false, "cer": 5.94, "wer": 22.38, "char_accuracy": 94.06, "word_accuracy": 77.62},
90
+ {"model": "exp7_hard", "dataset": "Hard-Family", "lm": false, "cer": 13.70, "wer": 45.61, "char_accuracy": 86.30, "word_accuracy": 54.39}
91
+ ],
92
+ "logic_lm_perplexity": {
93
+ "general": 53.14,
94
+ "self_trained": 40.70,
95
+ "mixed": 20.25,
96
+ "mixed_relative_reduction_vs_general_percent": 61.9
97
+ }
98
+ },
99
  "same_protocol_development_diagnostic": {
100
  "claim_status": "development diagnostic; not a sealed final test",
101
  "protocol": {
metadata.json CHANGED
@@ -11,7 +11,7 @@
11
  "python": "3.10.11",
12
  "pytorch": "2.4.1+cu121",
13
  "created_date": "2026-08-11",
14
- "release_status": "prepared_locally_not_uploaded",
15
  "license": "CC BY-NC-SA 2.0 (conservative choice due to upstream Muharaf training data)",
16
  "sealed_release_evidence": {
17
  "lines": 22442,
@@ -27,5 +27,17 @@
27
  "lowest_cer_domains": "4/4",
28
  "highest_word_accuracy_domains": "3/4",
29
  "claim_status": "development diagnostic, not sealed final test"
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
  }
 
11
  "python": "3.10.11",
12
  "pytorch": "2.4.1+cu121",
13
  "created_date": "2026-08-11",
14
+ "release_status": "uploaded_private_pending_publication_review",
15
  "license": "CC BY-NC-SA 2.0 (conservative choice due to upstream Muharaf training data)",
16
  "sealed_release_evidence": {
17
  "lines": 22442,
 
27
  "lowest_cer_domains": "4/4",
28
  "highest_word_accuracy_domains": "3/4",
29
  "claim_status": "development diagnostic, not sealed final test"
30
+ },
31
+ "baseer_server_comparison": {
32
+ "evidence_status": "owner-supplied aggregate server results; reproducibility bundle not included",
33
+ "datasets": 4,
34
+ "phoenix_macro_cer": 9.71,
35
+ "baseer_macro_cer_displayed": 28.67,
36
+ "phoenix_wer": 34.37,
37
+ "baseer_wer": 59.52,
38
+ "phoenix_exact_line_accuracy": 13.38,
39
+ "baseer_exact_line_accuracy": 26.38,
40
+ "phoenix_lower_cer_domains": "3/4",
41
+ "claim_status": "share with provenance caveat"
42
  }
43
  }