被质量困扰:一种基于困惑度的多语种异构Web数据成人和有害内容检测方法
Perplexed by Quality: A Perplexity-based Method for Adult and Harmful Content Detection in Multilingual Heterogeneous Web Data
摘要:
随着对大型语料库的需求随着当前最先进的语言模型的大小而增加,使用web数据作为这些模型的预训练语料库的主要部分已经成为普遍的实践。这反过来又给NLP从业者带来了一个重要的挑战,因为他们现在面临着开发高度优化的模型和管道来预处理大量文本数据的任务,这意味着在网络规模上有效地分类和过滤多语言,异构和嘈杂的数据。用于大语言模型的预训练语料库的该预处理步骤的主要组成部分之一是去除成人和有害内容。本文探讨了多语种异构Web数据中成人内容和有害内容的检测方法。我们首先展示了传统的有害内容检测方法,这些方法在小型和专业化的数据集中表现得很好,但在面对异构的嘈杂Web数据时却很快崩溃。然后,我们求助于使用基于困惑度的方法,但有一个转折:不是使用所谓的“干净”语料库来训练一个小的语言模型,然后使用困惑度,所以选择具有低困惑度的文档,即,最像这个所谓的“干净”语料库的文档。我们仅用成人和有害的文本数据进行训练,然后选择具有高于给定阈值的困惑值的文档。这种方法实际上将我们的文档聚类成两个不同的组,这将大大方便困惑阈值的选择,也将使我们能够获得比传统分类方法更高的精度来检测成人和有害内容。
英文摘要:
As demand for large corpora increases with the size of current state-of-the-art language models, using web data as the main part of the pre-training corpus for these models has become a ubiquitous practice. This, in turn, has introduced an important challenge for NLP practitioners, as they are now confronted with the task of developing highly optimized models and pipelines for pre-processing large quantities of textual data, which implies, effectively classifying and filtering multilingual, heterogeneous and noisy data, at web scale. One of the main components of this pre-processing step for the pre-training corpora of large language models, is the removal of adult and harmful content. In this paper we explore different methods for detecting adult and harmful of content in multilingual heterogeneous web data. We first show how traditional methods in harmful content detection, that seemingly perform quite well in small and specialized datasets quickly break down when confronted with heterogeneous noisy web data. We then resort to using a perplexity based approach but with a twist: Instead of using a so-called "clean" corpus to train a small language model and then use perplexity so select the documents with low perplexity, i.e., the documents that resemble this so-called "clean" corpus the most. We train solely with adult and harmful textual data, and then select the documents having a perplexity value above a given threshold. This approach will virtually cluster our documents into two distinct groups, which will greatly facilitate the choice of the threshold for the perplexity and will also allow us to obtain higher precision than with the traditional classification methods for detecting adult and harmful content.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。