Joint Detection of Constructive Speech, Hate Speech and Agreement in Online Conversations
Organizations: Aarhus University
Abstract
Online hate speech is an ever-growing issue with negative impacts on both groups and individuals, potentially causing users to withdraw from online conversations and debate. With some prominent social media platforms reducing their moderation efforts, constructive speech has emerged as an alternative strategy for countering hate. Automated detection of constructive and hateful speech can aid monitoring and improve understanding of their prevalence and online dynamics. In this work, we collect and annotate a large dataset of English and Danish social media comments for hateful tone, constructive tone, and agreement with parent comments. We fine-tune several multilingual LLMs to classify along these three dimensions and compare context-enriched and non-context-enriched model architectures. The E5-large LLM performs best on both the context-enriched (82% average F1) and non-context-enriched (81.6% average F1) classification tasks, demonstrating the potential of multilingual LLMs for scalable detection of hateful and constructive speech across languages.
Figures & tables
| Source | Language | Size | Timeframe | Collection strategy | Thematics |
|---|---|---|---|---|---|
| Twitter ( Rasmussen and Petersen, 2023 ) | English | 5200 | 2008–2019 | Data from 2839 surveyed Twitter users | COVID-19, Donald Trump, American politics |
| Reddit ( Qian et al., 2019 ) | English | 500 | 2008–2019 | Identify hateful subreddits and hate keywords | Diverse but hateful |
| Gab ( Qian et al., 2019 ) | English | 500 | 2008–2019 | Hate keywords | Diverse but hateful |
| Twitter ( Rasmussen et al., 2024 ) | Danish | 1189 | 2009–2022 | Data from 4931 Danish Twitter users | Politics and everyday life |
| Combined dataset | English & Danish | 7388 | 2008–2022 |
| Language | Constructive | Hate | Agreement | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Y | N | U | Y | N | U | A | D | U | |
| Danish | 13.5% | 81.7% | 4.8% | 10.5% | 84.7% | 4.8% | 25.8% | 38.7% | 35.5% |
| English | 20.7% | 72.5% | 6.9% | 16.3% | 77.0% | 6.7% | 38.8% | 37.9% | 23.3% |
| Total | 19.5% | 74.0% | 6.5% | 15.3% | 78.2% | 6.4% | 36.7% | 38.0% | 25.3% |
| Model | Constructive | Hate | Agree | Avg. F1 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Y | N | U | F1 | Y | N | U | F1 | A | D | U | F1 | ||
| Non-context-enriched | |||||||||||||
| xlm-roberta-large | .79 | .92 | .67 | .88 | .63 | .91 | .69 | .86 | .72 | .79 | .52 | .70 | .813 |
| multilingual-e5-large | .77 | .92 | .77 | .88 | .65 | .91 | .68 | .86 | .70 | .80 | .56 | .71 | .816 |
| twitter-xlm-roberta-base | .76 | .92 | .65 | .88 | .58 | .91 | .68 | .85 | .70 | .79 | .50 | .69 | .806 |
| mmBERT-base | .74 | .91 | .58 | .86 | .55 | .91 | .59 | .85 | .65 | .76 | .52 | .66 | .790 |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Hugging Face ID | Revision | Reference |
|---|---|---|---|
| XLM-RoBERTa-large | FacebookAI/xlm-roberta-large | c23d21b0620b635a 76227c604d44e43a9f0ee389 | Conneau et al. (2020) |
| multilingual-e5-large | intfloat/multilingual-e5-large | 3d7cfbdacd47fdda 877c5cd8a79fbcc4f2a574f3 | Wang et al. (2024) |
| Twitter-XLM-RoBERTa-base | cardiffnlp/twitter-xlm-roberta-base | 4c365f1490cb329b 52150ad72f922ea467b5f4e6 | Barbieri et al. (2022) |
| mmBERT-base | jhu-clsp/mmBERT-base | c5955035435e2bf1 21cde7f3c8863ef52ff35d82 | Marone et al. (2025) |
| Dimension | Instruction | Classes (criteria) |
|---|---|---|
| Constructive | Does the reply contain constructive or prosocial elements or does it agree with such elements contained in reference ? Constructive elements signal the disapproval of hate or hostile behavior, or side with, shield, or comfort an individual victim or victimized group. | constructive : The reply is constructive or prosocial; not constructive : The reply is NOT constructive or prosocial; unclassifiable : The constructiveness of reply is not classifiable because it is too ambiguous, or its meaning otherwise unclear |
| Hateful | Does the reply contain hateful elements or does it agree with hateful elements contained in reference ? Hateful elements are defined as any expression of the motivation to degrade, harass, or intimidate individuals or collectives based on political differences or discriminatory views. | hateful : The reply is hateful; not hateful : The reply is NOT hateful; unclassifiable : The hatefulness of reply is not classifiable because it is too ambiguous, or its meaning otherwise unclear |
| Agreement | Does the author of reply agree in spirit with what is said in reference ? | agree : The author agrees; disagree : The author disagrees; unclear : It is unclear whether the author agrees or disagrees |
| Class | P | R | F1 | Support |
|---|---|---|---|---|
| Constructive | ||||
| Constructive | 0.505 | 0.881 | 0.642 | 1,441 |
| Not constructive | 0.917 | 0.768 | 0.836 | 5,465 |
| Unclassifiable | 0.675 | 0.413 | 0.512 | 482 |
| Macro avg | 0.699 | 0.688 | 0.663 | 7,388 |
| Weighted avg | 0.821 | 0.767 | 0.777 | 7,388 |
| Class | P | R | F1 | Support |
|---|---|---|---|---|
| Constructive | ||||
| Constructive | 0.570 | 0.906 | 0.700 | 1,281 |
| Not constructive | 0.925 | 0.797 | 0.856 | 4,493 |
| Unclassifiable | 0.679 | 0.468 | 0.554 | 425 |
| Macro avg | 0.725 | 0.724 | 0.703 | 6,199 |
| Weighted avg | 0.835 | 0.797 | 0.803 | 6,199 |
| Class | P | R | F1 | Support |
| Constructive | ||||
| Constructive | 0.228 | 0.681 | 0.342 | 160 |
| Not constructive | 0.874 | 0.638 | 0.738 | 972 |
| Unclassifiable | 0.000 | 0.000 | 0.000 | 57 |
| Macro avg | 0.368 | 0.440 | 0.360 | 1,189 |
| Weighted avg | 0.746 | 0.613 | 0.649 | 1,189 |
Hate Speech Detection
Hate Speech Detection identifies hateful or abusive language, its targets and intent, to support safer and more accountable content moderation.
See all 111 papers