NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bashar Alhafni

Mohamed bin Zayed University of Artificial Intelligence
7 previous affiliations
21Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Bashar Alhafni focuses on Arabic natural language processing, with an emphasis on grammatical error correction, gender-aware language modeling, and the development of specialized linguistic resources. His work addresses the unique challenges of morphologically rich languages by building tailored datasets and pre-trained models. Recently, his research investigates advanced sequence-to-sequence architectures for multi-class grammatical error detection.

Research Trajectory

The observed trajectory of Alhafni’s work begins with foundational infrastructure and representation learning for Arabic natural language processing. Early in the evidence, he participated in the development of CAMeL Tools: An Open Source Python Toolkit for Arabic Natural Language Processing (2020), a comprehensive suite designed to support various Arabic NLP tasks and lower the barrier to entry for working with the language's complex morphology.

Building on this foundational tooling, his research moved toward the systematic evaluation of representation learning in Arabic. In The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models (2021), he and his collaborators investigated how different linguistic variants impact model performance. The study constructed and compared pre-trained language models across Modern Standard Arabic (MSA), dialectal Arabic, and classical Arabic, alongside a fourth model trained on a mixture of the three. By conducting scale-down experiments on the MSA variant and fine-tuning the models across five distinct NLP tasks spanning twelve datasets, this work provided empirical guidance on the relative importance of pre-training data volume versus domain-specific linguistic variants.

A major, defining theme in Alhafni's subsequent research is the mitigation of gender bias and the development of gender-aware systems for morphologically rich languages. While much of the NLP community's work on gender bias has centered on English, Arabic presents distinct challenges due to its pervasive gender marking and a historical lack of specialized datasets. His research addressed this gap with the introduction of The Arabic Parallel Gender Corpus 2.0: Extensions and Analyses (2021). This corpus was specifically designed for gender identification and rewriting in contexts involving one or two target users—specifically the first and second grammatical persons, which possess independent grammatical gender preferences in Arabic.

Leveraging this specialized corpus, Alhafni advanced automated methods for gender rewriting. In Gender-Aware Reinflection using Linguistically Enhanced Neural Models (2022), he introduced a sentence-level gender reinflection approach utilizing sequence-to-sequence architectures. By framing gender reinflection as a user-aware grammatical error correction task, he developed an encoder-decoder model capable of jointly handling reinflection for both masculine and feminine grammatical genders. This research demonstrated that integrating explicit linguistic features into neural models yields measurable improvements in reinflection accuracy, providing a robust mechanism for generating gender-appropriate Arabic text.

Current Directions

The most recent papers in the evidence indicate a broader focus on grammatical error correction (GEC) and detection (GED) for morphologically complex languages. While GEC is a well-explored problem in English, applying these techniques to Arabic requires overcoming significant hurdles related to data scarcity and linguistic complexity.

Recent work investigates these challenges directly. In Advancements in Arabic Grammatical Error Detection and Correction: An Empirical Investigation (2023), Alhafni explores the application of Transformer-based pretrained sequence-to-sequence models to Arabic GEC. This research formally defines the task of multi-class Arabic grammatical error detection and establishes baseline results for the problem. Furthermore, the work demonstrates that incorporating multi-class GED information as an auxiliary input into GEC models consistently improves correction performance across multiple datasets and distinct text genres. This direction suggests an ongoing commitment to refining automated writing assistance and linguistic processing for Arabic through the integration of explicit grammatical signals into modern neural architectures.

Profile updated

See something wrong? Report a mistake