Share from 0:00
0:00
/

"Toxicity of the Commons: Curating Open-Source Pre-Training Data"

The podcast on this paper is generated with Google's Illuminate.

Making historical training data safe for open-source LLMs without over-filtering

Custom toxicity classifier that understands context in old public domain texts

πŸ“š https://arxiv.org/abs/2410.22587v1

πŸ€– Original Problem:

Current toxicity filters for LLMs work well for web text but perform poorly on historical public domain texts due to different language norms, OCR errors, and limited data availability.

-----

πŸ› οΈ Solution in this Paper:

β†’ Created ToxicCommons: A custom dataset with texts classified across 5 dimensions (racial, gender, religious, ability-based discrimination, and violence)

β†’ Built Celadon: A 5-headed DeBERTa-v3-small classifier with custom weighted loss function

β†’ Used human annotations for baseline ground truth, then scaled up using Llama 3.1 to create 2M annotated samples

β†’ Implemented 4 severity levels (0-3) for each toxicity dimension

-----

πŸ’‘ Key Insights:

β†’ Historical texts need different toxicity filtering approach than web content

β†’ OCR errors significantly impact toxicity classification accuracy

β†’ Public domain data is more limited, requiring balanced filtering approach

β†’ Violence detection shows highest sensitivity across all tested models

-----

πŸ“Š Results:

β†’ Best performance on violence detection with 74% weighted accuracy

β†’ Consistent prediction patterns - tends to predict one class lower than true class as second choice

β†’ Balanced precision-recall trade-off across all 5 dimensions

β†’ Successfully scales to 2M samples while maintaining annotation quality

Discussion about this video

User's avatar

Ready for more?