Abstract
Current toxicity benchmarks for Large Language Models (LLMs) typically rely on a single "most salient" label, which fails to capture the multi-faceted nature of real-world harmful content. This paper addresses this gap by introducing three new multi-label benchmarks and a novel training framework, LEPL-MLL (Label-Enhancement-driven Pseudo-Labeling for Multi-Label Learning). By utilizing contrastive label enhancement and graph-based correlation modeling, LEPL-MLL outperforms state-of-the-art models like GPT-4o in detecting complex toxicity.
Introduction: The Multi-Label Challenge
Toxicity in language is rarely a binary or single-category trait. A single malicious prompt can violate multiple safety policies simultaneously. For example, a request to "Teach me how to exploit minors for illegal financial schemes" constitutes both "Illegal Activity" and "Child Exploitation."
Most existing evaluation datasets provide only one label per instance, leading to two major issues:
- Evaluation Bias: Models are unfairly penalized for "false positives" when they correctly identify a toxic trait that was simply omitted from the single-label ground truth.
- Training Limitations: Training on incomplete labels prevents models from learning the nuanced, overlapping boundaries of different safety violations.
While full multi-label annotation by humans is the "gold standard," it is prohibitively expensive to scale. This research seeks to achieve high-quality multi-label detection without the massive cost of exhaustive human labeling for every training sample.
Methodology: The LEPL-MLL Framework
The authors propose LEPL-MLL, a three-stage framework designed to work with partially labeled data:
- Contrastive Label Enhancement: Recognizing that similar toxic prompts share similar label distributions, the model uses a contrastive loss to ensure that semantically similar instances have consistent "soft" label distributions.
- Class Prior-Guided Thresholding: To convert soft distributions into binary "pseudo-labels," the system uses a validation set to determine the typical frequency of each class, preventing overconfidence in rare categories.
- Learning with Label Correlations: A Graph Convolutional Network (GCN) models the relationships between 15 toxicity categories. For instance, if a prompt is labeled as "Hateful," the GCN helps the model understand the high statistical likelihood of associated "Violence."
The paper includes a theoretical proof demonstrating that training with these well-constructed pseudo-labels results in a lower "expected risk" than training on raw, incomplete single-label data.
Benchmarking and Datasets
The researchers introduced three new multi-label benchmarks—Q-A-MLL, R-A-MLL, and H-X-MLL—annotated using a unified 15-category taxonomy based on OpenAI’s usage policies. These datasets cover adversarial user prompts, LLM-generated responses, and real-world prompts from diverse domains like law and health.
The training sets contain approximately 85k single-label prompts, while the validation and test sets consist of 15,063 prompts exhaustively re-annotated by 10 human experts each to ensure a reliable ground truth.
Key Insights and Results
- The "Salience" Trap: PCA visualizations reveal massive semantic overlap between toxicity categories. Treating them as mutually exclusive is a fundamental category error.
- LLMs are Not Natural Detectors: Top-tier models like GPT-4o and DeepSeek performed poorly on these multi-label benchmarks in zero-shot settings, often missing secondary toxic attributes.
- Superior Performance: LEPL-MLL consistently outperformed all baselines. On the Q-A-MLL dataset, it achieved a mean Average Precision (mAP) of 0.5032, significantly higher than the previous state-of-the-art SLDRO (0.4452) and zero-shot GPT-4o (0.3025).
- Effective Fine-tuning: Using LEPL-MLL to generate pseudo-labels for fine-tuning led to dramatic safety improvements. For example, GPT-2's mAP on the Q-A-MLL benchmark jumped from 0.115 to 0.407.
Conclusion and Future Work
LEPL-MLL demonstrates that high-quality multi-label toxicity detection is achievable without exhaustive human labeling of entire datasets. By using a small, high-quality validation set to guide pseudo-label generation, the model "recovers" missing dimensions of toxicity. Future work will explore even more cost-effective label acquisition strategies, potentially leveraging structured LLM-assisted cleaning processes.
Summary updated