Task-Specific Efficiency Analysis: When Small Language Models Outperform Large Language Models
Organizations: San Francisco State University - Department of Computer Science 1600 Holloway Ave, San Francisco - USA · Carnegie Mellon University - Department of Computer Science 5000 Forbes Ave, Pittsburgh - USA · Columbia University - Department of Computer Science 116th and Broadway, New York - USA · Cornell University - Department of Computer Science 616 Thurston Ave, Ithaca - USA ·
Abstract
Large Language Models achieve remarkable performance but incur substantial computational costs unsuitable for resource-constrained deployments. This paper presents the first comprehensive task-specific efficiency analysis comparing 16 language models across five diverse NLP tasks. We introduce the Performance-Efficiency Ratio (PER), a novel metric integrating accuracy, throughput, memory, and latency through geometric mean normalization. Our systematic evaluation reveals that small models (0.5--3B parameters) achieve superior PER scores across all given tasks. These findings establish quantitative foundations for deploying small models in production environments prioritizing inference efficiency over marginal accuracy gains.
Figures & tables
| Model | GSM8K | SQuAD 2.0 | ||||||||
| Acc | Thr (tokens/s) | Lat (ms/token) | Mem(MB) | PER | Acc | Thr (tokens/s) | Lat (ms/token) | Mem(MB) | PER | |
| Qwen2.5-0.5B | 0.3768 | 7927 | 0.15 | 1024 | 0.4546 | 0.30 | 854 | 1.17 | 1024 | 0.50 |
| Qwen2.5-1.5B | 0.58 | 4417 | 0.25 | 3072 | 0.6617 | 0.66 | 353 | 2.83 | 3072 | 0.67 |
| Gemma-2-2B | 0.555 | 1761 | 0.66 | 4096 | 0.4887 | 0.68 | 433 | 2.31 | 4096 | 0.72 |
| Qwen2.5-3B | 0.699 | 2657 | 0.42 | 6144 | 0.6056 | 0.72 | 219 | 4.58 | 6144 | 0.53 |
| Phi-3.5 | 0.7354 | 979 | 1.16 | 7782 | 0.4427 | 0.73 | 172 | 5.83 | 7782 | 0.45 |
| Model | HellaSwag | IMDB | ARC-Easy | ||||||||||||
| Acc | Thr (samples/s) | Lat (ms/sample) | Mem(MB) | PER | Acc | Thr (samples/s) | Lat (ms/sample) | Mem(MB) | PER | Acc | Thr (samples/s) | Lat (ms/sample) | Mem(MB) | PER | |
| Qwen2.5-0.5B | 0.39 | 65 | 15 | 1024 | 0 | 0.92 | 193 | 5 | 1024 | 1.00 | 0.63 | 574 | 2 | 1024 | 0.80 |
| Qwen2.5-1.5B | 0.50 | 36 | 28 | 3072 | 0.63 | 0.89 | 66 | 15 | 3072 | 0.71 | 0.85 | 178 | 6 | 3072 | 0.68 |
| Gemma-2-2B | 0.52 | 21 | 48 | 4096 | 0.53 | 0.84 | 20 | 50 | 4096 | 0.46 | 0.40 | 87 | 11 | 4096 | 0 |
| Qwen2.5-3B | 0.55 | 22 | 45 | 6144 | 0.57 | 0.89 | 22 | 45 | 6144 | 0.48 | 0.88 | 60 | 17 | 6144 | 0.47 |
| Phi-3.5 | 0.59 | 20 | 51 | 7782 | 0.56 | 0.48 | 6 | 154 | 7782 | 0 | 0.91 | 42 | 24 | 7782 | 0.40 |
Small Language Models
Small language models are compact neural language systems designed to deliver useful text and reasoning capabilities with limited compute, memory, and energy.
See all 269 papers