Work

Towards Frugal BERT Models for Maghrebi Dialects: Pruning and Distillation Approaches

Year: 2026
Type: conference-paper
Abstract: The increasing size of pre-trained language models has raised major concerns regarding computational cost, energy consumption, and deployment in resource-constrained settings. These issues are particularly relevant for low-resource and linguistically complex languages such as Maghrebi Arabic dialects, which are highly variable and often involve code-switching. This work explores frugal modeling strategies for Maghrebi Arabic dialects, including pruning, classical knowledge distillation, and dynamic distillation. A set of lightweight and dialect-specific models is developed and evaluated, covering MagBERT, TinyDziriBERT, DynaMoroccanBERT, DynaAlgerianBERT, and DynaTunisianBERT. The analysis focuses on the trade-offs between model size, architectural design, and performance across multiple downstream tasks. Experimental results show that dynamic, task-specific distillation consistently achieves the best balance between efficiency and performance, sometimes slightly outperforming larger baseline models while substantially reducing computational cost, even without additional unlabeled data. Pruning also yields gains, with an improvement of 4.8% in sentiment analysis compared to a larger model. Finally, preserving model depth appears crucial for maintaining strong performance, as Transformer layers are essential for capturing hierarchical representations.
Language: English
Open Access status: bronze
OpenAlex ID: W7204152657
FWCI:
Cites: 18
Cited by:
Related to: 10