Skip to main content

A study by the ULL develops a more efficient method to detect hate speech on social media

Friday July 31, 2026 - 12:12 CEST

Social media has become a fundamental space for public debate and social conversation. Millions of people use it every day to stay informed, share opinions, and interact with other users, making content moderation one of today's major technological challenges. In this context, the proliferation of hate speech poses one of the main challenges for digital platforms.

Automatically detecting hate speech is no easy task. Systems must contend with, on the one hand, the imbalance between different message categories and, on the other, the constant evolution of language, since insults and references to specific groups change over time, between communities, and even according to the language. To address these challenges, a study The University of La Laguna proposes a more efficient alternative to current methods, capable of identifying this type of content without depending on large language models (LLM) in real time.

The article published in Online Social Networks and Media, is led by Marcos Rodríguez Vega, a researcher in the Department of Computer and Systems Engineering at the University of La Laguna. Other participants in the research include Pino Caballero Gil, professor in the same department, and Carlos Rosa Remedios, from the Computer Architecture and Technology area of the ULL. The work proposes to separate the most changing lexicon from the learning process, in order to facilitate the detection of new emerging forms of hate speech.

To achieve this, the researchers combine two complementary strategies. The first, called LLM-assisted masking, involves using a language model to replace insults and references to specific groups with neutral labels, so that the system learns to identify the message's context without relying on specific words and, moreover, preserves people's privacy. The second strategy, called Telephone Game Augmentation (TGA) uses that same model to generate different versions of the same message with the same meaning, thus increasing the variety of examples available to train the system and improve its ability to detect less frequent types of hate speech.

The study's results demonstrate that the proposed hybrid approach is an effective alternative for automated content moderation, as it combines the power of large language models (LLMs) during data preparation with the speed and low cost of lightweight classifiers during implementation. Specifically, LLM-assisted masking enhances the system's ability to adapt to new expressions of hate speech, while TGA broadens the diversity of the training data and particularly strengthens the detection of underrepresented categories.

While the method yields good results, the researchers emphasize that challenges remain. The system's effectiveness depends largely on the language model's ability to correctly recognize offensive expressions, and it continues to struggle with more complex messages, such as those employing sarcasm or implicit references. For this reason, the authors believe the technology should be used to support moderation efforts, always under human supervision, and not as a system capable of making decisions completely autonomously.

In short, the study demonstrates that it is possible to develop more robust, faster, and scalable moderation systems without constantly relying on large language models during the inference phase. Furthermore, the methodology can be applied to different datasets and adapted to new languages or emerging forms of hate speech, as well as serve as a foundation for future research incorporating multimodal content, more compact language models, and new machine learning strategies.


Filed under: Outstanding, Investigation, ULL Cover