In recent years artificial intelligence has started to help even in schools, especially for grading short written answers. In Arabic, however, the task is tougher: the language has complex morphology, right‑to‑left script, and many word forms. To tackle these challenges, researchers have developed Arabic‑specific BERT versions, called AraBERTv2, trained on massive Arabic text corpora.
The new study compares several fine‑tuning strategies of these models, i.e., small adjustments made specifically for the grading task. Some experiments increased the transformer depth, others changed the number of attention heads or token size. The goal? Find the best trade‑off between accuracy (how close the model is to a human grader) and speed (how fast it evaluates an answer).
Results show that a model with 8 layers and 12 attention heads, trained for 3 epochs on a dataset of 10,000 answers, reaches an F1 score of 87 %, almost on par with teachers, while cutting inference time by 30 % compared to larger versions. Moreover, analysis highlighted that questions containing rare keywords are the hardest to grade, suggesting new ways to enrich the model’s vocabulary.
The research proves that, with the right architectural choices, fast and reliable automatic grading systems can be built, ready to support teachers and make learning more interactive.
