Abstract
The rapid rise of Language Models (LMs) has expanded their use in several applications. Yet, due to constraints of model size, associated cost, or proprietary restrictions, utilizing state-of-the-art (SOTA) LLMs is not always feasible. With open, smaller LMs emerging, more applications can leverage their capabilities, but selecting the right LM can be challenging as smaller LMs do not perform well universally. This work tries to bridge this gap by proposing a framework to experimentally evaluate small, open LMs in practical settings through measuring semantic correctness of outputs across three practical aspects: task types, application domains, and reasoning types, using diverse prompt styles. It also conducts an in-depth comparison of 10 small, open LMs to identify the best LM and prompt style depending on specific application requirements using the proposed framework. We also show that if selected appropriately, they can outperform SOTA LLMs like DeepSeek-v2, GPT-4o, GPT-4o-mini, Gemini-1.5-Pro, and even compete with GPT-4o.
Introduction
While Large Language Models (LLMs) like GPT-4 are incredibly capable, they come with significant baggage: high costs, high latency, data privacy concerns, and proprietary "black box" restrictions. Small Language Models (SLMs) offer a promising alternative—they can run on-device and are cheaper to maintain—but their performance is notoriously inconsistent. A developer might find that a specific 2B model excels at "Title Generation" but fails miserably at "Deductive Reasoning."
This research demonstrates that SLMs ranging from 1.7B to 11B parameters can rival or even outperform proprietary giants in specific practical applications. The core finding is that selecting the right model and prompt style for a specific task is more critical than simply increasing model scale.
Methodology
The authors propose a three-tier evaluation framework to dissect model performance across three aspects: Task Types, Application Domains, and Reasoning Types.
The study evaluated 10 open-source SLMs, including both pre-trained and instruction-tuned (IT) versions of SmolLM-1.7B, Gemma (2B/7B), Llama-3-8B, Mistral-7B, and Falcon-2-11B. Performance was measured using BERTScore, which evaluates "semantic correctness" rather than simple word matching. The researchers also tested 8 different prompt styles, varying the presence of task definitions and the number of in-context examples (0, 2, 4, or 8).
The study utilizes the Super-Natural Instructions meta-dataset, filtered down to 119 English-based tasks (approx. 11,810 instances). This dataset is particularly valuable as it includes expert-written instructions and multiple in-context examples, facilitating a deep dive into prompt engineering effects.
Key Insights
- Scale is Not Destiny: Data quality and architectural design often outweigh raw parameter count. For instance, the Gemma-2B model frequently outperformed larger 7B and 8B models in pre-trained benchmarks.
- The "Instruction-Tuned" Advantage: IT models are significantly more robust and easier to prompt. Mistral-7B-I emerged as the "gold standard" among SLMs, matching SOTA LLMs globally.
- Prompting is Task-Specific: The impact of task definitions varies by task. For some, providing too many examples without a clear definition actually degraded performance.
- Robustness to Paraphrasing: SLMs showed surprising resilience to variations in task descriptions, with only a 0.35% median performance drop when definitions were paraphrased.
Results
- Competing with Giants: Mistral-7B-I performed within 2.12% of GPT-4o's average BERTScore and outperformed GPT-4o-mini and Gemini-1.5-Pro in several categories.
- Domain Specialists: In "Social Sciences and Humanities" and "Art and Literature," the tiny Gemma-2B and Gemma-2B-I outperformed Gemini-1.5-Pro.
- Efficiency Gains: These SLMs are 10–20 times smaller than the proprietary models they challenge, offering significant advantages in deployment cost and efficiency.
Limitations and Future Work
The study primarily treats tasks, domains, and reasoning types as independent variables due to data sparsity in combined categories (e.g., "Medical News Summarization"). Furthermore, while 10 prominent models were tested, the rapid pace of the field means newer iterations like Llama-3.1 were not included. Future research should also address social biases and toxicities, which were outside the scope of this performance-focused evaluation.
Summary updated