IDEAS home Printed from https://ideas.repec.org/p/hal/journl/hal-05249134.html
   My bibliography  Save this paper

Exploring Zero-Shot SLM Ensembles as an Alternative to LLMs for Sentiment Analysis

Author

Listed:
  • D. Cielen
  • K. de Bock

    (Audencia Business School)

  • L. Flores

Abstract

Sentiment analysis has become vital for understanding consumer attitudes, guiding product development, and informing strategic decisions. Although LLMs such as GPT-3.5 and GPT-4 deliver strong zero-shot performance, they can be cost prohibitive and raise privacy concerns. In contrast, Small Language Models (SLMs) provide a lighter and more deployable solution, but their ability to match LLM accuracy, especially in zero-shot scenarios, remains underexplored. In this experimental study , we examine whether ensembles of zero-shot SLMs can serve as a viable alternative to proprietary LLMs in sentiment classification tasks. We investigate five commonly used SLMs (Phi2 Mini, Mistral, Llama, Gemma, Aya) and compare them to GPT-based models (GPT-3.5, GPT-4, GPT-4 omni, GPT-4 omni mini) across seven English-language datasets. By automating prompt generation and filtering responses based on a strict output format, we maintain a purely zero-shot approach. We form SLM ensembles via majority voting and evaluate their performance on accuracy, weighted precision, and weighted F1. We also measure inference time to assess cost and scalability trade-offs. Results show that SLM ensembles as a form of decision fusion, consistently outperform single SLMs, significantly boosting metrics in zero-shot settings. In contrast with GPT models, the ensemble achieves accuracy comparable to GPT-3.5 and even rivals GPT-4 on certain prompts. However, GPT-4 retains a slight edge in both precision and F1 score. Moreover, local SLM ensembles incur higher latency yet offer potential advantages in data privacy and operational control. This experimental study's findings illuminate the feasibility of employing lightweight, zero-shot SLM ensembles for sentiment analysis, providing organizations with an effective and more flexible alternative to exclusively relying on large proprietary models.

Suggested Citation

  • D. Cielen & K. de Bock & L. Flores, 2026. "Exploring Zero-Shot SLM Ensembles as an Alternative to LLMs for Sentiment Analysis," Post-Print hal-05249134, HAL.
  • Handle: RePEc:hal:journl:hal-05249134
    DOI: 10.1016/j.inffus.2025.103666
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hal:journl:hal-05249134. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: CCSD (email available below). General contact details of provider: https://hal.archives-ouvertes.fr/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.