Comparative Efficiency Analysis of Lightweight Transformer Models: A Multi-Domain Empirical Benchmark for Enterprise NLP Deployment
Muhammad Shahmeer Khan
TL;DR
This work addresses the need for deployment-ready, lightweight Transformer models capable of handling multi-domain enterprise NLP tasks. It benchmarks DistilBERT, MiniLM, and ALBERT across three domains—IMDB sentiment, AG News topics, and Measuring Hate Speech moderation—using both accuracy-based and efficiency metrics. The study finds that no single model dominates all dimensions: ALBERT often achieves top task accuracy, MiniLM offers superior inference speed and throughput, and DistilBERT delivers consistent accuracy with competitive efficiency. The results yield a practical decision framework for enterprise deployment, recommending MiniLM for latency-sensitive pipelines, DistilBERT for balanced performance, and ALBERT for memory-constrained settings, all under a reproducible, fixed-finetuning regime that mirrors real-world constraints.
Abstract
In the rapidly evolving landscape of enterprise natural language processing (NLP), the demand for efficient, lightweight models capable of handling multi-domain text automation tasks has intensified. This study conducts a comparative analysis of three prominent lightweight Transformer models - DistilBERT, MiniLM, and ALBERT - across three distinct domains: customer sentiment classification, news topic classification, and toxicity and hate speech detection. Utilizing datasets from IMDB, AG News, and the Measuring Hate Speech corpus, we evaluated performance using accuracy-based metrics including accuracy, precision, recall, and F1-score, as well as efficiency metrics such as model size, inference time, throughput, and memory usage. Key findings reveal that no single model dominates all performance dimensions. ALBERT achieves the highest task-specific accuracy in multiple domains, MiniLM excels in inference speed and throughput, and DistilBERT demonstrates the most consistent accuracy across tasks while maintaining competitive efficiency. All results reflect controlled fine-tuning under fixed enterprise-oriented constraints rather than exhaustive hyperparameter optimization. These results highlight trade-offs between accuracy and efficiency, recommending MiniLM for latency-sensitive enterprise applications, DistilBERT for balanced performance, and ALBERT for resource-constrained environments.
