IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i24p5004-d1302532.html
   My bibliography  Save this article

Leveraging Zero and Few-Shot Learning for Enhanced Model Generality in Hate Speech Detection in Spanish and English

Author

Listed:
  • José Antonio García-Díaz

    (Facultad de Informática, Universidad de Murcia, Campus de Espinardo, 30100 Murcia, Spain)

  • Ronghao Pan

    (Facultad de Informática, Universidad de Murcia, Campus de Espinardo, 30100 Murcia, Spain)

  • Rafael Valencia-García

    (Facultad de Informática, Universidad de Murcia, Campus de Espinardo, 30100 Murcia, Spain)

Abstract

Supervised training has traditionally been the cornerstone of hate speech detection models, but it often falls short when faced with unseen scenarios. Zero and few-shot learning offers an interesting alternative to traditional supervised approaches. In this paper, we explore the advantages of zero and few-shot learning over supervised training, with a particular focus on hate speech detection datasets covering different domains and levels of complexity. We evaluate the generalization capabilities of generative models such as T5, BLOOM, and Llama-2. These models have shown promise in text generation and have demonstrated the ability to learn from limited labeled data. Moreover, by evaluating their performance on both Spanish and English datasets, we gain insight into their cross-lingual applicability and versatility, thus contributing to a broader understanding of generative models in natural language processing. Our results highlight the potential of generative models to bridge the gap between data scarcity and model performance across languages and domains.

Suggested Citation

  • José Antonio García-Díaz & Ronghao Pan & Rafael Valencia-García, 2023. "Leveraging Zero and Few-Shot Learning for Enhanced Model Generality in Hate Speech Detection in Spanish and English," Mathematics, MDPI, vol. 11(24), pages 1-20, December.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:24:p:5004-:d:1302532
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/24/5004/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/24/5004/
    Download Restriction: no
    ---><---

    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:gam:jmathe:v:11:y:2023:i:24:p:5004-:d:1302532. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.