When Noisy Text Changes the Winning Model
Romanian diacritic restoration changes winners when clean benchmark text gives way to typos and OCR-like corruption.
Romanian diacritic restoration puts missing marks back into text without changing its other characters. A system that works on edited prose may face a different job when the input contains typos or scanning errors. This experiment compared a dictionary, a small bidirectional recurrent network called a BiLSTM, the byte-level text model ByT5, and adapted or prompted language models under both conditions.
On clean Romanian, a 2.4M-parameter BiLSTM reached 96.23% word accuracy. Under heavy corruption it fell to 36.76%. The dictionary baseline finished at 70.31%.
The test input changed the winner. Once the text began to resemble typing mistakes or optical character recognition (OCR) output, the clean-text ranking stopped being a useful deployment guide.
Evidence status. This comparison is preliminary thesis work and a manuscript in preparation. It has not been peer reviewed. ByT5 used 50,000 training pairs, so its result is not a budget-matched architecture comparison.
The clean table rewards constraint
On the clean CRAWLER-1000 test, the dictionary system reached 93.72% word accuracy with a 0.045 diacritic error rate. The 2.4M-parameter BiLSTM led at 96.23% and 0.033. ByT5 reached 92.00% and 0.081. A 1.7B-parameter Qwen3 model adapted with LoRA reached 48.99% and 0.545; prompted Qwen2.5 and Llama baselines were both near 70.5% word accuracy.
Parameter count did not predict the result. The constrained systems have the right inductive bias for a mostly character-preserving transformation. The decoder has far more capacity, but capacity is not the same as control.
Noise reverses the operational choice
From clean to high corruption, word accuracy changed as follows:
| System | Clean | Low | Medium | High | Relative drop |
|---|---|---|---|---|---|
| Dictionary | 93.72 | 92.26 | 81.31 | 70.31 | 25.0% |
| BiLSTM, 2.4M | 96.23 | 49.17 | 43.66 | 36.76 | 61.8% |
| ByT5 | 92.00 | 76.59 | 69.03 | 60.71 | 34.0% |
| Qwen3 LoRA, 1.7B | 48.99 | 53.15 | 45.72 | 37.60 | 23.2% |
The Qwen model’s low-noise uptick should be treated as sampling variation until replicated. Its smaller relative drop is not a robustness victory because it starts from a much lower clean ceiling.
The practical selection is therefore conditional. For clean text, the BiLSTM leads this benchmark. For corrupted input, the dictionary is the strongest of these four by the high-noise endpoint. ByT5 loses some clean accuracy but degrades more gradually; a budget-matched training run is needed before attributing that behavior to architecture.
Put the corruption model in the contract
A diacritic-restoration benchmark should state which non-diacritic edits are present, when corruption is applied, and whether the system may alter other characters. It should report accuracy at diacritizable positions together with unwanted edits elsewhere. Otherwise, a fluent rewrite can score as restoration while changing the source.
The next experiment needs repeated corruption draws across additional declared seeds, confidence intervals for model differences, latency on the target hardware, and an exact-preservation measure. Until then, this table chooses candidates for deployment tests; it does not crown a universal Romanian restoration model.