Unmasking and Improving Data Credibility: A Study with Datasets for Training Harmless Language Models

Zhaowei Zhu, Jialu Wang, Hao Cheng, Yang Liu
2/12/2026

Official code: Docta-ai/docta (3,478 stars, last commit 2025-01-14).

Abstract

Language models have shown promise in various tasks but can be affected by undesired data during training, fine-tuning, or alignment. For example, if some unsafe conversations are wrongly annotated as safe ones, the model fine-tuned on these samples may be harmful. Therefore, the correctness of annotations, i.e., the credibility of the dataset, is important. This study focuses on the credibility of real-world datasets, including the popular benchmarks Jigsaw Civil Comments, Anthropic Harmless&Red Team, PKU BeaverTails&SafeRLHF, that can be used for training a harmless language model. Given the cost and difficulty of cleaning these datasets by humans, we introduce a systematic framework for evaluating the credibility of datasets, identifying label errors, and evaluating the influence of noisy labels in the curated language data, specifically focusing on unsafe comments and conversation classification. With the framework, we find and fix an average of 6.16% label errors in 11 datasets constructed from the above benchmarks. The data credibility and downstream learning performance can be remarkably improved by directly fixing label errors, indicating the significance of cleaning existing real-world datasets. We provide an open-source tool, Docta, for data cleaning at https://github.com/Docta-ai/docta.

View on arXivView PDF

Code Implementations(1)

Docta-ai/doctaOfficial100%

A Doctor for your data

3,478256Shell, PythonMay 2, 20231 years agoNOASSERTION
datadata-centric-aidata-centric-machine-learningdata-curationdata-diagnosis+2 more

Similar Papers

Cite this paper

@article{zhu2026unmasking,
  title  = {Unmasking and Improving Data Credibility: A Study with Datasets for Training Harmless Language Models},
  author = {Zhaowei Zhu and Jialu Wang and Hao Cheng and Yang Liu},
  year   = {2026},
  eprint = {2311.11202},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.11202},
  journal = {ICLR 2023 2023}
}

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/2311.11202.svg)](https://codeofpaper.com/paper/2311.11202)

Discussion