Accuracy, CPU Time and Estimated Energy of Lightweight Models for Arabic Dialectal Text Classification: A Single-Core Benchmark
Arabic social-media text is classified at national scale, yet the computing cost of Arabic text classifiers is rarely reported. We benchmark twelve model configurations from five families (sparse linear, fastText, convolutional, recurrent and Transformer encoders, with product-quantized, feature-hashed and INT8 variants) on five Arabic dialectal tasks, with three pretrained Arabic BERT encoders as a reference. All models were trained and profiled on one core of a server CPU at batch sizes from 1 to 512, measuring CPU time end to end and for the model computation alone. Because the host exposes no energy counters, energy is reported as a first-order estimate from CPU time at an assumed 12 W per core. The encoders’ CPU costs are proxy estimates from architecture-matched networks, and neural costs are reported both with inputs padded to 64 tokens and at their true length. Among models trained only on the task data, a character n-gram linear SVM, with exact or hashed features, gave the best macro-F1 on every task (0.407–0.861). fastText was the cheapest model for single requests (0.34–0.52 J per 1000 predictions), 9–15 times below every neural model with padded inputs and 6–9 times at true length, and word-level linear models were the cheapest once requests were batched. Compact neural encoders trained from scratch on word or subword tokens were significantly less accurate than the character SVM on every task and never reached the accuracy–cost Pareto front. The pretrained encoder MARBERT was the most accurate model, 7–12 macro-F1 points above the SVM on four of five tasks, at a proxy cost of 121–198 times the SVM’s CPU time per single prediction (true length to padded). Each additional macro-F1 point it bought cost 47–202 J per 1000 predictions, against 0.55–3.5 J for the reliable steps between lightweight models.
- Link
- https://doi.org/10.3390/electronics15235550
- Found by
- Crossref
- Authors
- Nawaf Abdualaziz Almolhis, Ali Alhazmi
- Organizations
- Department of Computer Science, College of Engineering and Computer Science, Jazan University, Jazan 45142, Saudi Arabia, Engineering and Technology Research Center, Jazan University, Jazan 82817, Saudi Arabia
- Categories
- benchmark
- Published
- 2026-11-27
- Last seen by the radar
- 2026-11-29
- Citations
- 0
- Radar score
- 26.75 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark; Primary record: Crossref