Are Small Language Models Ready to Compete with Large Language Models for Practical Applications?

Neelabh Sinha, Vinija Jain, Aman Chadha

TL;DR

This paper demonstrates that small, open-source language models (1.7B–11B parameters) are surprisingly capable of competing with, and sometimes outperforming, proprietary giants like GPT-4o and Gemini-1.5-Pro in practical applications. By introducing a granular three-tier evaluation framework, the authors show that selecting the right small model and prompt style for a specific task is more important than simply having the most parameters.

What Problem Does This Paper Address?

While massive proprietary models like GPT-4o dominate the headlines, they come with significant baggage: high costs, data privacy concerns, and massive computational requirements. Small Language Models (SLMs) offer a lightweight, private, and cost-effective alternative, but they are often dismissed as "less capable."

The core challenge is that SLMs don't perform uniformly well across all tasks. A model that excels at creative writing might fail at formal logic. Currently, developers often choose models without a clear rationale. This paper addresses the lack of a systematic way to evaluate and select SLMs for specific real-world needs, such as title generation in a medical domain or deductive reasoning in a legal context.

Methods

The authors propose a comprehensive evaluation framework that categorizes performance across three hierarchical tiers: Task Types, Application Domains, and Reasoning Types.

Figure 3: Sections and entities for which the performance of Language Models (LMs) is analyzed (each aspect is divided into groups (like formal logic), and the groups are divided into individual entities (like deductive reasoning). This three-level categorization allows analysis of performance across multiple hierarchies.

Key methodological choices include:

  • Semantic Evaluation: Instead of relying solely on rigid n-gram metrics like ROUGE, they use BERTScore-recall to measure the semantic correctness of outputs.
  • Prompt Engineering Analysis: They tested eight different prompt styles, varying the inclusion of chat-style task definitions and the number of in-context examples (0, 2, 4, or 8).
  • Model Selection: They evaluated 10 open models, including both pre-trained and instruction-tuned (IT) versions of SmolLM, Gemma, Llama-3, Mistral, and Falcon.

Datasets

The study utilizes Super-Natural Instructions, a massive meta-dataset encompassing over 1,600 NLP benchmarks. The authors filtered this down to a test split of 11,810 task instances specifically chosen to cover a broad spectrum of 12 task types, 36 domains, and 18 reasoning types. This allows for a much more nuanced view of model capabilities than standard leaderboard scores.

Key Insights and Ideas

  • Scale is Not a Silver Bullet: One of the most surprising findings is that smaller models often punch above their weight. For instance, Gemma-2B frequently outperformed 7B and 8B parameter models, suggesting that architecture and training data quality can outweigh raw parameter count.
  • High Diversity, Low Correlation: As shown in the correlation matrix (Figure 4), different models have very different "personalities." A model's success in one area does not guarantee success in another, making informed selection crucial.
  • The Prompting Plateau: While adding a task definition almost always helps, the benefit of adding in-context examples often plateaus after just two examples. For some tasks, like Word Analogy, too many examples without a clear definition actually degraded performance.
  • Domain Sensitivity: Pre-trained models are extremely sensitive to the application domain. For example, while most models struggled with the Health and Medical group, Gemma-7B showed a unique strength there.

Key Results

The results suggest that the gap between "small" and "state-of-the-art" (SOTA) is closing:

  • Mistral-7B-I emerged as a top performer, matching SOTA models globally and even competing directly with GPT-4o in generation and media-related tasks.
  • Outperforming the Giants: In several categories, SLMs like Gemma-2B and Mistral-7B-I outperformed Gemini-1.5-Pro and GPT-4o-mini. On average, Mistral-7B-I was only 2.12% behind GPT-4o in mean BERTScore recall across all tasks.
  • Efficiency Gains: These models are 10–20 times smaller than the proprietary models they are competing against, offering massive savings in latency and cost.
Figure 6: Performance comparison of SLMs against SOTA models across different aspects.

Limitations and Future Work

The authors acknowledge several constraints:

  • Dataset Bias: The evaluation is limited to the tasks available in the Super-Natural Instructions test set.
  • Independent Aspects: The study evaluates tasks, domains, and reasoning types independently. In the real world, these intersect (e.g., "legal reasoning for a summary task"), and the dataset lacked enough overlapping labels to perform a deep pairwise analysis.
  • Safety and Bias: The study focused purely on semantic correctness and did not evaluate the models for social biases or safety risks.

Future work could involve expanding the framework to include multi-aspect analysis and developing automated tools to help developers match their specific requirements to the best-performing SLM automatically.

Summary updated

BibTeX
@misc{sinha2024are,
  author = {Neelabh Sinha and Vinija Jain and Aman Chadha},
  title = {{Are Small Language Models Ready to Compete with Large Language Models for Practical Applications?}},
  year = {2024},
  eprint = {2406.11402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.11402},
}
Figure