Soft-Label Integration for Robust Toxicity Classification

Zelei Cheng, Xian Wu, Jiahao Yu, Shuo Han, Xin-Qiang Cai +1 more
10/18/2024
cs.AIcs.CRcs.LG

No official code found. Best implementation: chengzelei/crowdsource_toxicity_classification (5 stars, MIT, last commit 2024-12-18).

Abstract

Toxicity classification in textual content remains a significant problem. Data with labels from a single annotator fall short of capturing the diversity of human perspectives. Therefore, there is a growing need to incorporate crowdsourced annotations for training an effective toxicity classifier. Additionally, the standard approach to training a classifier using empirical risk minimization (ERM) may fail to address the potential shifts between the training set and testing set due to exploiting spurious correlations. This work introduces a novel bi-level optimization framework that integrates crowdsourced annotations with the soft-labeling technique and optimizes the soft-label weights by Group Distributionally Robust Optimization (GroupDRO) to enhance the robustness against out-of-distribution (OOD) risk. We theoretically prove the convergence of our bi-level optimization algorithm. Experimental results demonstrate that our approach outperforms existing baseline methods in terms of both average and worst-group accuracy, confirming its effectiveness in leveraging crowdsourced annotations to achieve more effective and robust toxicity classification.

View on arXivView PDF

Code Implementations(1)

MIT
50Shell, PythonMay 4, 20241 years agoMIT

Similar Papers

Cite this paper

@article{cheng2024softlabel,
  title  = {Soft-Label Integration for Robust Toxicity Classification},
  author = {Zelei Cheng and Xian Wu and Jiahao Yu and Shuo Han and Xin-Qiang Cai and Xinyu Xing},
  year   = {2024},
  eprint = {2410.14894},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.14894},
  url    = {http://arxiv.org/abs/2410.14894v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.14894.svg)](https://codeofpaper.com/paper/2410.14894)

Discussion