TL;DR
This paper introduces SS-BERT, a novel approach to combat bias in toxic comment classification models. By incorporating a comment's "subjectivity level" alongside the presence of identity terms, SS-BERT significantly reduces false positives, particularly for comments mentioning specific demographic groups. This method demonstrates superior performance over existing models on multiple datasets, offering a more nuanced and less biased approach to identifying toxic content.
What Problem Does This Paper Address?
Online platforms are rife with toxic comments, and accurately classifying them is crucial for maintaining healthy digital spaces. However, many state-of-the-art toxic comment classification (TCC) models exhibit a significant bias towards "identity terms" – words referring to specific groups like "Muslim," "black," or "women." This "identity term bias" often leads to a higher rate of false positives, where non-toxic comments containing these terms are incorrectly flagged as toxic. For instance, a comment like "You are a good woman" might be misclassified as sexist. Existing methods to address this bias often involve simply ignoring or downplaying identity terms, which can be counterproductive as these terms can sometimes be essential for accurate classification. This paper aims to bridge this gap by proposing a method that leverages the context of identity terms, specifically their relationship with the comment's subjectivity.
Methods
The core of this paper's contribution lies in its novel SS-BERT model. Building upon the powerful BERT architecture, SS-BERT introduces a mechanism to consider two key pieces of information when an identity term is present:
- Subjectivity Level: This refers to how much a comment expresses personal feelings and opinions versus factual information. The authors use the TextBlob library to quantify this, assigning a score between 0 (highly objective) and 1 (highly subjective).
- Presence of Identity Terms: A binary indicator (0 or 1) to signal whether the comment contains any of the predefined identity terms.
SS-BERT integrates these features by appending a special "token" to the BERT input sequence. The embedding of this token represents the comment's subjectivity score. Crucially, the attention mask for this token is dynamically set: it's masked if no identity term is present, but attended to if an identity term is detected. This ensures that subjectivity is only considered in conjunction with identity terms, aligning with the hypothesis that subjective opinions are more likely to be toxic when directed at specific groups.
The authors also propose two other models for comparison:
- Subjectivity-Only BERT (SO-BERT): This model considers subjectivity for all comments, regardless of identity terms.
- SS-BERT+SOC: This model combines SS-BERT's approach with the Sampling and Occlusion (SOC) regularization technique from prior work, which aims to reduce the model's reliance on identity terms directly.
Datasets
The research was conducted on four publicly available datasets, chosen to represent different social media platforms, dataset sizes, and text lengths:
- WS (Stormfront): A dataset from a white supremacist forum.
- Twitter 18k: A dataset collected from Twitter.
- Twitter 42k: Another dataset from Twitter.
- Wiki (Wikipedia Talk pages): A dataset from Wikipedia talk pages.
These datasets were converted into a binary classification task (toxic vs. non-toxic) for consistency.
Key Insights and Ideas
- Subjectivity is Key, But Only with Identity: The most striking insight is that subjectivity alone isn't enough to improve TCC. The model that only considers subjectivity (SO-BERT) performs poorly. The benefit emerges when subjectivity is considered specifically in the context of identity terms. This suggests that toxic comments often rely on subjective opinions and emotional appeals rather than factual reporting when targeting specific groups.
- False Positives are Subjectivity-Driven: The quantitative analysis reveals that false positives (non-toxic comments misclassified as toxic) tend to have lower subjectivity scores when identity terms are present, while true positives (actually toxic comments) have higher subjectivity scores. This directly supports the hypothesis that objective statements about identity groups are less likely to be toxic than subjective opinions.
- Identity Terms Aren't Always the Problem, But Their Context Is: The paper argues against simply ignoring identity terms. Instead, it proposes understanding how they are used. SS-BERT's success shows that by considering the subjective nature of comments containing identity terms, bias can be effectively mitigated.
Key Results
- Consistent Improvement: SS-BERT consistently outperformed the baseline BERT model and the BERT+SOC model across all four datasets.
- Maximum F1 Improvement: The model achieved a maximum improvement in F1 score of 2.43% over BERT and 1.91% over BERT+SOC.
- Reduced False Positives: Table 4 clearly shows that SS-BERT significantly reduces false positives compared to BERT, particularly on the Twitter 42k dataset. This directly addresses the identity term bias.
- SO-BERT Underperformance: The SO-BERT model, which considers subjectivity universally, did not show consistent benefits, highlighting the importance of linking subjectivity to identity terms.
Limitations and Future Work
The authors acknowledge a few limitations:
- Identity Term List Completeness: The predefined list of identity terms used in the model might not be exhaustive. Comments containing identity terms not on this list might not benefit from the SS-BERT approach. Future work could involve developing a more comprehensive list, potentially through supervised or manual screening.
- Subjectivity Score Accuracy: The accuracy of subjectivity scores from tools like TextBlob can vary. Inaccurate scores can lead to misclassifications. Future work could explore more robust methods for computing subjectivity.
- Generalization to Other Models: While the approach was tested on RoBERTa with positive results, further research could explore its applicability to other pre-trained language models with different architectures.
Summary updated