Accuracy, CPU Time and Estimated Energy of Lightweight Models for Arabic Dialectal Text Classification: A Single-Core Benchmark
Nawaf Abdualaziz Almolhis, Ali Alhazmi
Key points
From the paper's conclusion- 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.
Abstract
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. Profiling showed three cost regimes: sparse linear models were dominated by text preprocessing and fixed per-call overhead, fastText by per-text latency, and neural encoders by fixed per-call costs at batch size 1 and by arithmetic only when batched. Product quantization cut fastText’s memory 15-fold but raised its CPU time, and dynamic INT8 quantization saved 5–11% only in batched inference, and only for the CNN and Transformer. In an assumed scenario in which each model family draws between 8 and 16 W, family-level rankings (fastText for single requests, linear models when batched, no from-scratch neural model on any front, pretrained encoders at the accurate, expensive end) were unchanged in every draw, whereas rankings between individual models of similar cost at batch size 128 were not. Absolute energy and low-power hardware remain to be measured.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Evaluating LLM Tokenization Efficiency on Kuwaiti Dialect, MSA and Other Arabic DialectsBig Data and Cognitive Computing · 2026
- Almieyar: A Culturally Grounded Benchmark for Multi-Dialect Arabic Speech RecognitionarXiv · 2026
- Mizan: A National Benchmark for Evaluating Large Language Models on Iraqi Arabic and the Iraqi Civic ContextarXiv · 2026
- Sada-ASR: A Production Multidialectal Arabic Speech Recognition SystemarXiv · 2026
- Benchmarking Arabic Transformer‐Based Language Model Embeddings for Document Clustering: A Comparative StudyExpert Systems · 2026
- Structured Compression and Recovery Fine-Tuning of Egyptian Arabic Hybrid RNN-T/CTC ASR for Offline Raspberry Pi DeploymentFuture Internet · 2026