TL;DR
This paper investigates the impact of dataset scaling on hateful content within large-scale vision-language datasets, specifically comparing LAION-400M and LAION-2B. The study reveals that as datasets grow, so does the prevalence of hateful content, with a nearly 12% increase observed. Furthermore, relying solely on image-based NSFW filtering is insufficient to remove all harmful text.
What Problem Does This Paper Address?
The current trend in AI, particularly in generative models, is to "scale the model, scale the data, scale the compute." While the impact of scaling models has been widely studied, the consequences of scaling datasets, especially large-scale vision-language datasets like LAION, are less understood. These datasets are often built from massive internet dumps (like Common Crawl), which are known to contain quality, legal, and content issues. This problematic data can then perpetuate harmful societal biases and stereotypes in the AI models trained on them. This paper aims to quantify the increase in hateful content as these datasets scale up and to assess the effectiveness of current filtering methods.
Methods
The researchers employed a comparative audit of two LAION datasets: LAION-400M and LAION-2B-en. They focused on the alt-text descriptions associated with images. To measure hateful content, they used a state-of-the-art open-source NLP toolkit called pysentimiento. This tool provides probability scores for "hateful," "targeted," and "aggressive" speech.
They defined two key metrics:
- Hate Content Rate (HCR): This metric calculates the percentage of samples where a specific type of harmful speech (hateful, targeted, or aggressive) exceeds a predefined probability threshold (
Pthreshold). - Any-of-the-three HCR: This metric flags a sample as containing harmful content if any of the three speech types exceed the
Pthreshold.
They also analyzed the correlation between the "Not Safe For Work" (NSFW) labels assigned to images and the presence of harmful alt-text.
Datasets
- LAION-400M: A large-scale open-source vision-language dataset.
- LAION-2B-en: A larger version of the LAION dataset, containing approximately 2 billion image-text pairs.
The paper does not introduce new datasets or benchmarks but rather analyzes existing ones.
Key Insights and Ideas
- Scale Exacerbates Hate: The most striking finding is that increasing dataset size directly correlates with an increase in hateful content. This challenges the notion that simply scaling up data is a universally positive approach.
- NSFW Filtering is Insufficient: Relying solely on image-based NSFW filters does not effectively remove all harmful alt-text. Even in "safe" portions of the dataset, trace amounts of toxic language persist.
- Dataset Degradation with Scale: The study suggests that as datasets grow, they might inadvertently sample lower-quality or more problematic parts of the underlying data sources, leading to a degradation in content quality.
- Correlation Between Image and Text Harm: While not substantial, there is a slight correlation between images flagged as NSFW and alt-text containing hateful or targeted speech.
Key Results
- The Hate Content Rate (HCR) for hateful, targeted, and aggressive speech increased from LAION-400M to LAION-2B-en.
- Specifically, the "Any-of-the-three" HCR showed a 12.26% normalized increase when comparing the 2B-en dataset to the 400M dataset, even under optimistic estimation settings.
- Hateful content was found to be the most prevalent sentiment type across both datasets.
- Even after filtering with an NSFW threshold of 0.5, a significant percentage of alt-text still contained hateful (e.g., 0.24%) and targeted (e.g., 0.03%) content.
- Pearson correlation coefficients between hateful/targeted speech and NSFW scores were around 0.22, indicating a slight but not substantial correlation.
Limitations and Future Work
- Computational Constraints: The researchers acknowledge that their analysis was limited by available computational resources, which restricted the size of the sub-samples they could analyze.
- Pysentimiento Variability: The study relied on
pysentimiento. Future work could explore the variability of this tool across different linguistic variants and topics, and investigate other NLP models for hate speech detection to confirm findings. - Extrapolation Risks: Extrapolating findings from smaller datasets to larger ones can be misleading due to potential non-i.i.d. (independent and identically distributed) correlations within large web-scraped datasets.
- Thresholding Dangers: The paper advocates for providing raw safety scores rather than just discrete thresholds, allowing users to make informed decisions about filtering based on their specific use cases.
- Need for Combined Filtering: The authors suggest that combining text- and image-based safety filtering concurrently is crucial for more effective detection and removal of harmful content.
- Corporate Responsibility: The paper calls for corporations and institutes to conduct rigorous audits of their datasets and models, and for the development of an ecosystem that supports independent auditors.
Summary updated