TL;DR
This paper introduces a new "Safety Score" metric to quantify implicit representational harms in Pre-Trained Language Models (PTLMs) by leveraging their core language modeling objective. Through an empirical study of 24 models, the authors reveal that larger models generally harbor more bias and that prioritizing network depth over width can help mitigate these harms.
What Problem Does This Paper Address?
Large-scale PTLMs like BERT and GPT are trained on massive, uncurated datasets that reflect societal biases. While explicit toxicity is often caught by standard detectors, representational harms—the systematic association of marginalized groups with negative perceptions, microaggressions, or stereotypes—are more insidious and harder to measure.
Existing metrics often struggle to align their measurements with clear conceptualizations of harm or fail to account for the model's internal probability distributions. The authors aim to bridge this gap by creating a metric that directly uses a model's propensity to generate harmful versus benign statements as a measure of its safety.
Methods
The authors propose the Safety Score ($S$), which is based on the Mann-Whitney U-test. The core idea is to compare the scaled perplexity of harmful statements against benign ones.
- Perplexity as Likelihood: For a given sentence, perplexity measures how well the model predicts that sequence. Lower perplexity means the model is more likely to generate that sentence. For bi-directional models (auto-encoders like BERT), they use pseudo-perplexity.
- Scaling by Toxicity: They divide the perplexity of each statement by its human-annotated toxicity score. Ideally, a "safe" model should assign very high scaled perplexity to harmful sentences (making them unlikely to be generated) and low scaled perplexity to benign ones.
- The U-statistic: The Safety Score $S$ is the effect size of the U-statistic, ranging from 0 to 1. A score of 1 represents a perfectly healthy model where all harmful sentences are less likely to be produced than benign ones.
Datasets
The primary evaluation uses a human-annotated subset of the ToxiGen dataset.
- Content: 6,541 sentences (implicitly harmful vs. benign).
- Demographics: Covers 13 marginalized groups, including African American, Women, LGBTQ, and people with disabilities.
- Validation: The authors also validated their metric using a subset of the Implicit Hate dataset, finding a strong correlation (0.68) between the two.
Key Insights and Ideas
- The "Capacity for Harm" Hypothesis: The authors found that as model size (number of parameters) increases, the average safety score generally decreases. This suggests that larger models have a higher capacity to memorize and manifest the implicit toxicity found in their pre-training corpora.
- Depth vs. Width: A critical architectural finding is that wider networks (larger hidden dimensions) are better at manifesting harmful representations. Conversely, prioritizing depth (more layers) over width can mitigate these harms in some models without necessarily hurting performance.
- Metric Complementarity: The Safety Score shows weak or negative correlations with existing toxicity detectors and some stereotyping metrics. This indicates that the proposed metric captures a unique "implicit toxicity" dimension that other tools overlook.
- Demographic Disparities: Models are generally less likely to embed harmful content for Asian, Black, Chinese, and Jewish groups compared to others, though all scores remain significantly below the ideal 1.0.
Key Results
The empirical analysis of 24 PTLMs (detailed in Figure 4/Table 1) shows that no current model is "safe" by this metric, with all scores falling below 0.5.
- Model Performance: RoBERTa and ALBERT variants generally achieved higher safety scores than standard BERT models. The authors attribute RoBERTa's relative safety to its specific pre-training corpus (stories and news).
- Architecture Correlation: In auto-encoder models, safety scores had a high negative correlation with the width of the network (PCC of -0.92 for distilled BERT models), as shown in Figure 3.
Limitations and Future Work
The authors acknowledge several limitations:
- Synthetic Data: ToxiGen is machine-generated (GPT-3), which may introduce its own biases, even with human verification.
- Lack of Intersectionality: The current dataset does not account for intersecting identities (e.g., the specific harms faced by Black women).
- Language Scope: The study is limited to English-language models and a U.S. socio-cultural perspective.
- Task Transferability: The Safety Score is based on the language modeling task; it is unclear how well these findings transfer to specific downstream Natural Language Understanding (NLU) tasks.
Future work includes using the Safety Score as an objective function during training to actively reduce implicit hate and expanding the evaluation dataset to include more complex demographic intersections.
Summary updated