NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ToxSyn-PT: A Large-Scale Synthetic Dataset for Hate Speech Detection in Portuguese

Iago Alves Brito, Julia Soares Dollis, Fernanda Bufon Färber, Diogo Fernandes Costa Silva, Arlindo Rodrigues Galvão FilhoarXiv 2025 · OpenReview

TL;DR

This paper introduces ToxSyn-PT, the first large-scale, fine-grained synthetic dataset for detecting minority-targeted hate speech in Portuguese. It addresses a critical gap in existing datasets by including crucial non-toxic counterexamples and detailed discourse-type annotations, revealing that hate speech detection is highly domain-specific and that common evaluation metrics can be misleading.

What Problem Does This Paper Address?

Building effective hate speech detection systems is hampered by a lack of diverse, high-quality training data, especially for languages other than English. Existing datasets often:

  • Oversimplify toxicity: They typically use binary toxic/non-toxic labels, failing to capture the nuances of different types of hate speech.
  • Lack minority-specific data: Datasets that do focus on minority groups often have very limited samples and critically miss benign, non-toxic examples of discussions about these groups. This makes it difficult for models to distinguish genuine hate from everyday conversations.
  • Are Anglocentric: The vast majority of research and data is in English, leading to models that perform poorly in other linguistic and cultural contexts, leaving speakers of those languages more vulnerable.
  • Are domain-specific: Models trained on general social media data struggle to generalize to more specific contexts, and vice-versa.

The authors aim to bridge this gap by creating a comprehensive Portuguese dataset that addresses these limitations.

Methods

The core of the paper is the creation of the ToxSyn-PT dataset using a four-stage synthetic generation pipeline:

  1. Seed Dataset: A small, high-quality set of human-written examples (40 toxic, 40 non-toxic for two target groups: Black people and women) was created to guide the LLM. This dataset focused on capturing intra-group variation in expression.
  2. Prompt-Based Expansion: Using GPT-4, the pipeline generated a larger dataset by prompting with seed examples and specific instructions to create toxic and non-toxic statements targeting nine protected minority groups. This stage also incorporated 26 distinct discourse-type templates (14 non-toxic, 12 toxic) to capture rhetorical strategies.
  3. Paraphrase Augmentation: Each generated sentence was paraphrased twice (once toxic, once non-toxic) using a predefined pool of discourse strategies. This increased lexical and pragmatic variation and introduced nuanced examples. This stage also involved systematic swapping of minority targets and normalization to ensure consistency.
  4. Enrichment: The process was repeated using the expanded dataset as context for GPT-4, encouraging the model to generate even more diverse discourse styles. Two new toxic discourse types were added to capture more subtle forms of prejudice.

Crucially, the pipeline was designed to balance class distributions, inject low-frequency expressions, and apply safety constraints, while also ensuring the inclusion of non-toxic counterexamples.

Datasets

  • ToxSyn-PT (New Dataset): The primary contribution is this new, large-scale synthetic dataset for Portuguese hate speech detection. It contains 53,274 synthetic sentences, annotated for toxicity, minority group (nine categories), and discourse type. It includes both toxic and non-toxic (benign) examples for each minority group.
  • Existing Portuguese Datasets (for evaluation): HateBR, OFFCOMBR-3, OLID-BR, and TuPy-E were used to create a "Portuguese Merged" evaluation benchmark.
  • Translated ToxiGen: The human-annotated portion of the English ToxiGen dataset was translated into Portuguese to serve as another evaluation benchmark, particularly for minority-targeted hate speech.

Key Insights and Ideas

  • Hate Speech is Not Monolithic: The most striking finding is the "catastrophic, mutual generalization failure" between general social media toxicity and minority-targeted hate speech. This suggests they are fundamentally different tasks with distinct linguistic signatures.
  • Domain Dependency is Severe: Models trained on one domain (e.g., social media) perform extremely poorly on another (e.g., minority-specific contexts), and vice-versa. This highlights the need for domain-specific datasets.
  • Macro F1 is Deceptive: Standard metrics like Macro F1 can mask complete model failure by averaging performance across classes. This is a critical methodological warning for future research.
  • Non-Toxic Counterexamples are Essential: The inclusion of benign text about minority groups is crucial for models to learn to distinguish genuine hate from everyday discussions, a feature largely absent in prior datasets.
  • Synthetic Data Can Be High-Fidelity: The controlled generation pipeline, validated by human annotation, demonstrates that synthetic data can achieve high fidelity and be a valuable resource for low-resource languages.

Key Results

  • Cross-Domain Performance Gap: Models trained on general social media data achieved very low toxic-class recall (e.g., 10-20%) on the ToxSyn test set. Conversely, the ToxSyn model achieved only 0.17 toxic-class recall on the ToLD-BR dataset.
  • Group-Specific Classification: The ToxSyn-trained model achieved an average macro recall of 0.70 on the translated ToxiGen dataset and 0.64 on the Portuguese Merged dataset, demonstrating its ability to generalize to other minority-focused benchmarks. Performance varied across groups, correlating with data scarcity in the evaluation sets.
  • Human Annotation Agreement: Human annotators agreed with the synthetic labels for approximately 94% of toxicity labels and 99% of minority target labels, validating the quality of the generation pipeline.

Limitations and Future Work

  • Single Target Group Annotation: ToxSyn currently annotates only one target group per sentence, preventing the analysis of intersectional or multi-target abuse.
  • No Severity Tiers: The dataset lacks annotations for toxicity severity, limiting studies requiring fine-grained harm assessment.
  • Synthetic Resource: While validated, ToxSyn is a synthetic resource and may inherit biases from the underlying LLM. The training data, while human-validated in the test set, may contain some labeling noise.
  • Future Work:
    • Adapt the methodology to other low-resource languages.
  • Create hybrid datasets to bridge the domain gap between social media and minority-specific contexts.
  • Leverage the rich discourse-type labels to train models that classify how and why hate speech occurs, not just if it is toxic.
  • Collect in-the-wild, human-authored data to complement the synthetic resource.

Summary updated

BibTeX
@misc{brito2025toxsyn,
  author = {Iago Alves Brito and Julia Soares Dollis and Fernanda Bufon Färber and Diogo Fernandes Costa Silva and Arlindo Rodrigues Galvão Filho},
  title = {{ToxSyn-PT: A Large-Scale Synthetic Dataset for Hate Speech Detection in Portuguese}},
  year = {2025},
  eprint = {2506.10245},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.10245},
}

Loading related content...

Figure