Skip to content

Commit 37bdf65

Browse files
authored
Merge pull request #34 from interscript/docs/ara-tiny-verdict
docs: ara-diac-tiny verdict (collapsed); eval DER x100 fix
2 parents d08ff43 + e048415 commit 37bdf65

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

docs/RESULTS.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,31 @@ parameter count — depth-pruning yields no useful intermediate rung
101101
(263M). (3) The pretrained rung is the whole quality cliff: 300M at
102102
12.06% (run-003, full labels; 12.63% on the 23K subset) vs 70M at 78.5%.
103103

104-
Conclusion: G2P client tier ships at the ByT5-small rung (~300MB int8)
105-
today; a 30–70MB G2P tier requires byte-level pretraining of the small
106-
model first (future work). Copy-task languages (Arabic/Hebrew
107-
diacritization) have a different viability and are evaluated separately.
104+
Conclusion: G2P client tier ships at the ByT5-small rung — 246MB at
105+
int8, 202MB at int4 (parity 0.0734pp, quality cost ~0.17pp CER; PRs
106+
#30/#31) — today; a 30–70MB G2P tier requires byte-level pretraining
107+
of the small model first (future work). Copy-task languages are
108+
evaluated separately below.
109+
110+
## ara-diac-tiny verdict — 33MB from-scratch student collapsed (2026-08-23)
111+
112+
The Arabic copy-task hypothesis test: a 33M-parameter custom byte-level
113+
student (d384, 8+8) trained CE on 11,792 r6-teacher labels for 3
114+
epochs (train CE converged to 0.46). Gate harness: windowed DER-CE at
115+
the 1400-byte r5 window, greedy, haraqat-projected, Misraj evaluator —
116+
identical to rababa's eval_sadeed_windowed; validated by the teacher
117+
reproducing its documented tier on this replication.
118+
119+
| Model | DER-CE (300 Sadeed paragraphs) |
120+
|---|---|
121+
| Teacher (r6, run-006-morph) | 1.32% |
122+
| **Student (33M from-scratch)** | **83.08%** — REJECTED |
123+
124+
Gate ≤ teacher + 0.5pp: the student misses by two orders of magnitude
125+
with the same collapse signature as the Thai tiny tier (train loss
126+
converges, test generalization absent). Verdict: sub-100M from-scratch
127+
byte students do not generalize for diacritization any more than for
128+
G2P — a pretrained backbone is non-negotiable. The Arabic client tier
129+
therefore ships at the ByT5-small rung (ara-diac-small) or parks until
130+
byte-level pretraining exists. The 30MB tier is closed as a negative
131+
result across both task families.

src/gpu/modal_distill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ def der_ce(model) -> dict:
11621162
_, _, total_der, _, _ = E.caculate_errors_on_sentences(
11631163
paragraphs, gts, gt_missing_diacritic_is_error=False
11641164
)
1165-
return {"der_ce": round(100 * total_der, 4), "n": len(inputs)}
1165+
return {"der_ce": round(total_der, 4), "n": len(inputs)} # evaluator already returns %
11661166

11671167
result = {"teacher": der_ce(teacher), "student": der_ce(student)}
11681168
result["gate_delta"] = round(result["student"]["der_ce"] - result["teacher"]["der_ce"], 4)

0 commit comments

Comments
 (0)