Developing Linguistic Patterns to Mitigate Inherent Human Bias in Offensive Language Detection

Toygar Tanyel, Besher Alkurdi, Serkan Ayvaz

TL;DR

This paper tackles the pervasive issue of human bias in offensive language detection datasets, which leads to unfair and inaccurate models. The authors propose a novel linguistic data augmentation approach that leverages machine learning to identify and extract relevant linguistic patterns, thereby enriching existing datasets and mitigating bias. This method shows promise in improving the fairness and accuracy of offensive language detection across multiple languages.

What Problem Does This Paper Address?

The proliferation of social media has led to an explosion of offensive content, often targeting vulnerable groups and exacerbating societal issues like hate speech, racism, and sexism. Detecting this content is crucial, but current natural language processing (NLP) models struggle with nuanced forms of offensive language like irony and implication. A major hurdle is the reliance on large, manually labeled datasets, which are costly, error-prone, and, critically, inherit human biases. These biases, encompassing prejudice, stereotypes, and discrimination, are absorbed by deep learning models, leading to unfair and potentially harmful outcomes. The paper aims to address this by developing a method to reduce bias in offensive language detection datasets and models.

Methods

The core of the paper's contribution lies in its linguistic data augmentation approach. Instead of relying solely on manual labeling, the authors propose a method that uses linguistic features to identify offensive content within unlabeled corpora. This involves:

  • Query Generation: Creating specific queries using lists of common swear words and entities frequently targeted by offensive language.
  • Tweet Extraction: Using these queries to mine relevant tweets from large datasets.
  • Morphological Analysis: Analyzing the extracted tweets to understand their linguistic structure.
  • Data Augmentation: Incorporating these linguistically identified offensive texts to supplement existing imbalanced datasets, aiming for a more balanced representation across offensive and non-offensive classes.

This approach is contrasted with synthetic interpolation methods like ADASYN and SMOTE, emphasizing its focus on enhancing context diversity and generalizability. The authors also explore various mining techniques, including different arrangements of offensive words, pronouns, and entities, and investigate the impact of text normalization on model performance.

Datasets

The study utilizes and augments several datasets:

  • Turkish Datasets:
    • OffensEval 2020 Turkish Twitter dataset (baseline).
  • Kaggle dataset.
  • Mayda et al. dataset.
  • English Dataset:
    • Offensive Language Identification Dataset (OLID).

The authors integrated additional datasets and mined new offensive tweets to create a more balanced and comprehensive dataset for their experiments.

Key Insights and Ideas

  • Human bias is deeply embedded in offensive language datasets: This bias is not easily removed and can be amplified by deep learning models, leading to unfair outcomes.
  • Linguistic patterns are key to identifying offensive content: The paper demonstrates that by leveraging specific linguistic features and word combinations, it's possible to extract relevant offensive content from unlabeled data.
  • Context is paramount: The study highlights that swear words and entities alone are often insufficient for confident offensive labeling; context and linguistic nuances are crucial.
  • Text normalization can be detrimental to contextual models: While beneficial for statistical models, text normalization negatively impacted BERT-based models, suggesting that preserving original text structure is important for modern NLP.
  • Cross-lingual applicability is achievable: The proposed linguistic augmentation method shows effectiveness in both Turkish and English, indicating its potential for broader application.

Key Results

The proposed linguistic data augmentation approach demonstrated significant improvements in offensive language detection:

  • Turkish: The macro average recall score increased by 7.60% compared to the baseline, and the offensive recall score saw a substantial increase from 68.85% to 86.31% (a 17.46% improvement).
  • English: The BERT-CNN-BiLSTM pipeline showed an 8.1% increase in recall scores from the baseline.
  • Model Performance: The BERT-CNN-BiLSTM pipeline consistently outperformed other models, including Word2Vec-SVM and BERT-SVM, across both datasets.
  • Mining Techniques: The "loose order" mining technique (allowing flexibility in the arrangement of offensive words, pronouns, and entities) yielded the highest positive recall scores in English.

Limitations and Future Work

  • Dataset Imbalance and Bias: While the augmentation method helps balance datasets, the authors acknowledge that the produced dataset may still contain racial bias, as it primarily focuses on offensive contexts related to races.
  • Precision vs. Recall Trade-off: The augmentation process led to a decrease in precision scores in English, highlighting a trade-off between recall and precision. The authors prioritize recall due to the greater harm caused by missing offensive content.
  • Future Work:
    • Augmenting data with positive contexts for entities to help models learn from both positive and negative examples, thus avoiding bias based solely on entity mentions.
  • Further research into selecting appropriate scoring metrics for imbalanced datasets.
  • Exploring methods to improve precision while maintaining high recall.

Summary updated

BibTeX
@article{tanyel2024developing,
  author = {Toygar Tanyel and Besher Alkurdi and Serkan Ayvaz},
  title = {{Developing Linguistic Patterns to Mitigate Inherent Human Bias in Offensive Language Detection}},
  journal = {Turkish J. Electr. Eng. Comput. Sci.},
  year = {2024},
  doi = {10.55730/1300-0632.4105},
}
Figure