← Latest papers
💬 NLP

Leveraging LLMs for Context-Aware Implicit Textual and Multimodal Hate Speech Detection

This paper demonstrates that leveraging Large Language Models to generate auxiliary background context and incorporating it via embedding concatenation significantly improves the detection of implicit hate speech in both textual and multimodal settings, outperforming zero-context baselines and existing entity-linking approaches.

Original authors: Joshua Wolfe Brook, Ilia Markov

Published 2026-09-11
📖 5 min read🧠 Deep dive

Original authors: Joshua Wolfe Brook, Ilia Markov

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The internet is a vast, noisy marketplace of human expression, where the most dangerous words are often the ones that do not shout. While it is relatively easy for a computer to spot obvious slurs or direct threats, a different kind of toxicity hides in plain sight. This is implicit hate speech: hostility that relies on irony, cultural codes, or a shared understanding of the world to make its point. A sentence that looks harmless on its own can become a venomous attack when viewed through the lens of a specific event, a historical reference, or a community inside joke. For years, researchers have tried to teach computers to see these hidden meanings, but they have faced a fundamental problem: the machines lack the background knowledge that humans take for granted. They can read the words, but they do not know the story behind them.

To solve this, a team of researchers at Vrije Universiteit Amsterdam decided to give their computer models a tutor. They turned to large language models, the same powerful artificial intelligence systems that can write essays or hold conversations, and asked them to do something specific. Instead of letting the AI act as the judge of what is hateful, they used it as a fact-checker and a historian. For every social media post the system analyzed, the AI was asked to generate a short paragraph of background context. If a post mentioned a obscure political group or a viral meme, the AI would explain who they were and what they stood for, effectively filling in the gaps of world knowledge that a standard computer program would miss. The researchers then tested four different ways to feed this new information into their detection system, asking whether simply pasting the facts next to the post was enough, or if the computer needed to process the post and the facts separately to understand the true intent.

The results of this experiment were clear and measurable. When the researchers tested their method on a dataset of thousands of tweets containing implicit hate, the system that used the AI-generated background context performed significantly better than models that relied only on the raw text. The most successful approach involved a specific technique where the computer created a digital representation of the original post and a separate representation of the generated background story, then combined these two distinct pieces of information. This method improved the system's ability to correctly identify hateful content by up to three percentage points compared to a system with no context at all. The improvement was even more dramatic when the researchers applied the same logic to a different type of content: internet memes. Memes combine images and text, often relying on visual cues that are just as confusing to a machine as coded language is to a human. On a dataset of misogynistic memes, the context-enhanced system improved its accuracy by up to six percentage points.

However, the path to better detection was not without its pitfalls. The researchers found that simply adding more words to a post did not always help; in fact, it sometimes made the computer confused. When the AI generated a long, detailed explanation for a post that was already clearly hateful, the extra information sometimes diluted the original message, causing the system to miss the hate. Conversely, when the AI generated a backstory for a harmless post, it occasionally invented connections to hateful ideas that did not exist, leading the system to falsely flag innocent content as dangerous. This happened because the AI, in its attempt to be helpful, sometimes over-interpreted a neutral phrase or a warning about a group as an endorsement of hate. The study showed that while providing background knowledge is a powerful tool, it must be handled with care. The most effective method was not to merge the post and the context into a single block of text, but to keep them distinct until the very end of the analysis, allowing the computer to weigh the original message against the new information without letting one drown out the other.

The work also challenged a common assumption in the field: that the most powerful artificial intelligence should be the one doing the final judging. The researchers tested whether the large language model could simply read the post and decide if it was hateful, acting as the classifier itself. While the AI was quite good at this, especially with the visual memes, it did not outperform the specialized detection system that used the AI only to generate background facts. This suggests that the best approach for now is a partnership: using the large language model as a dynamic library to retrieve relevant facts, and then using a simpler, more focused system to make the final decision based on those facts. This modular approach allows the system to learn the specific patterns of hate speech in a dataset while still having access to the vast world knowledge that makes implicit hate understandable.

Ultimately, the study demonstrates that context is not just a helpful addition to hate speech detection; it is a necessity for understanding the subtle, coded language of the modern internet. By treating the generation of background information as a separate step from the act of classification, the researchers created a system that is more accurate and more robust. They showed that the key to catching hidden hate lies not just in reading the words, but in understanding the world those words describe. While the system is not perfect and still struggles with the fine line between harmless irony and genuine malice, the findings offer a clear direction for the future. As artificial intelligence continues to evolve, the ability to generate and integrate relevant context will likely become the standard for any system tasked with protecting online spaces from the most insidious forms of human expression.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →