TL;DR
This paper introduces RONACC, the very first Grammatical Error Correction (GEC) corpus for the Romanian language, alongside an adapted version of the ERRANT evaluation toolkit. By pretraining a standard Transformer architecture on 10 million synthetically corrupted Wikipedia sentences and fine-tuning it on this new gold standard corpus, the authors establish a strong neural baseline that pushes the $F_{0.5}$ score from a baseline of 44.38 up to 53.76.
What Problem Does This Paper Address?
While Grammatical Error Correction (GEC) has made massive strides in English, it remains a luxury for low-resource languages. For Romanian, existing tools are mostly limited to basic spellcheckers that rely on rigid, rule-based systems. They fail to address complex, context-dependent errors like improper word choice, word order, punctuation, or complex morphological mismatches.
The core bottleneck has been the total absence of a high-quality, publicly available GEC dataset for Romanian. This paper directly addresses this resource gap by creating a benchmark dataset and adapting standard automated evaluation tools to support future research in Romanian NLP.
Methods
The authors approach Romanian GEC as a low-resource sequence-to-sequence machine translation problem, utilizing the classic Transformer architecture. Their methodology consists of three main pillars:
- Synthetic Data Generation: To compensate for the small size of the human-annotated data, the authors extracted 10 million clean sentences from Romanian Wikipedia using strict quality filters. They then injected synthetic errors (word/character substitutions, deletions, insertions, and swaps) using a pipeline guided by spellchecker confusion sets to ensure the tasks remained contextually challenging.
- Model Training Strategies: They evaluated two primary architectures:
- Transformer-tiny: A lightweight model (~1.5M parameters) trained strictly from scratch on the small gold corpus.
- Transformer-base: A standard model (~94M parameters) pretrained on the massive synthetic dataset and subsequently adapted to the gold corpus using either retraining (resetting optimizer states) or fine-tuning (preserving optimizer states).
- Automated Evaluation Adaptation: They adapted the German version of ERRANT (ERRor ANnotation Toolkit) to Romanian. This involved swapping out language-specific tagsets for Universal Dependencies (UD) POS tags and integrating a Romanian SpaCy model alongside a Hunspell dictionary to classify and score edits.
Datasets
The paper introduces and utilizes two distinct datasets:
- RONACC (Romanian National Audiovisual Council Corpus): The primary contribution is a gold-standard dataset containing 10,119 pairs of original and corrected sentences. It is split into three subsets to capture different error profiles: NAC-phrases (verbless spoken phrases), NAC-sentences (well-formed spoken sentences from TV/radio), and W-sentences (sentences mimicking common written mistakes).
- Artificial Corpus: A dataset of 10 million sentences derived from Romanian Wikipedia, automatically corrupted to serve as pretraining data.
Key Insights and Ideas
- Fine-Tuning Beats Retraining: When transitioning the model from synthetic data to the gold corpus, continuous fine-tuning yielded an 8-point $F_{0.5}$ boost over resetting the optimizer (retraining). Fine-tuning allowed the model to retain its broad grammatical knowledge while sharpening its precision on real-world mistakes.
- The Mismatched Error Distribution Trap: A look at the error distributions reveals a stark contrast between synthetic and real data. The artificial corpus was heavily skewed toward noun errors (45.64%), whereas the human corpus was dominated by punctuation (23.58%) and word-form/morphological errors (
NOUN:FORMat 14.55%). This mismatch encourages the model to be overly aggressive with word substitutions rather than subtle form corrections.
- Language Model Re-ranking Can Hurt: Surprisingly, using a 5-gram language model to re-rank beam search hypotheses decreased overall performance. The authors attribute this to the relatively small size of the LM training data (30M sentences) and the lack of hardware to grid-search optimal re-ranking weights.
Key Results
Performance was measured using Precision (P), Recall (R), and the $F_{0.5}$ score (which weights precision twice as heavily as recall, a standard practice in GEC to avoid making harmful "corrections").
- The Transformer-tiny baseline achieved a respectable $F_{0.5}$ of 44.38 using simple beam search.
- The Transformer-base model trained only on synthetic data performed poorly ($F_{0.5} = 16.62$), proving that synthetic data alone cannot solve the task.
- The best overall configuration was the Transformer-base with Fine-tuning, reaching an $F_{0.5}$ of 53.76 (Precision: 56.05%, Recall: 46.19%).
When broken down by dataset group, the model excelled on the W-sentences (written mistakes) with an $F_{0.5}$ of 62.7, but struggled on NAC-sentences (spoken language), where errors are often non-idiomatic or highly informal.
Limitations and Future Work
Despite the success of the baseline, the authors note several open challenges:
- The Diacritics Dilemma: Roughly one-third of words in standard Romanian use diacritics. While the corpus contains diacritic errors, the current model struggles to reliably restore them. Future iterations will explore unsupervised diacritic-stripping pipelines to specifically target this issue.
- Informal and Spoken Language: The model frequently stumbles on spoken, informal phrasing (e.g., mistakenly changing the informal but correct verb a voma [to puke] to a vota [to vote]).
- Rich Morphology: Romanian features a highly complex morphological structure compared to English. Future work will focus on integrating methods that explicitly account for this rich morphology to better handle word-form variations.
Summary updated