multi-model · Opus-MT EN→AR (117.60 MB q8 · Apache-2.0) → Opus-MT AR→EN (110.88 MB q8 · Apache-2.0)
EN → AR → EN Round-Trip Back-Translation & Drift Verifier
Stage 1 (Xenova/opus-mt-en-ar, 117.60 MB WASM q8,
Apache-2.0) translates English into right-to-left Arabic script (dir="rtl" lang="ar").
Stage 2 (Xenova/opus-mt-ar-en, 110.88 MB WASM q8,
Apache-2.0, reusing ../opus-mt-ar-en/worker.js) back-translates the Arabic
output into English to measure chrF, BLEU-4, numeric parity, and lexical drift (~228.5 MB combined, 100% offline).
1 · Two Independent On-Device Models (~228.5 MB Combined)
Bidi round-trip architecture: Both workers manage independent Cache Storage auto-init,
Release from memory, and Clear cache lifecycles. Stage 2 reuses
../opus-mt-ar-en/worker.js
with full disposeEpoch teardown and zero duplicate weights.
Stage 1 · Opus-MT EN→AR (117.60 MB WASM q8 · Apache-2.0)
Stage 2 · Opus-MT AR→EN Verifier (110.88 MB WASM q8 · Apache-2.0)
Prepare both Stage 1 (EN→AR) and Stage 2 (AR→EN) above to run live round-trip drift verification.
2 · Cross-Lingual Handoff & Semantic Drift Metrics
Word overlap–
Smoothed BLEU-4–
chrF score–
Numeric parity–
Stage 1 / Stage 2 ms–
Combined NaN check–
Stage 1 · Arabic RTL Output (dir="rtl" lang="ar")
—
في انتظار المرحلة الأولى (EN→AR)…
Stage 2 · Back-Translated English
—
Waiting for Stage 2 (AR→EN) back-translation…
Round-Trip Semantic Preservation & Word Drift Diff
Original English
—
Back-translated English (drift highlighted)
—
All-5 EN→AR→EN Round-Trip Verification Sweep
| Preset | Intermediate Arabic (RTL) | Back-Translated English | Overlap · BLEU · chrF | Total ms |
|---|