arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.05978cs.CL
收藏

数据清洗对语言模型的经验影响

The Empirical Impact of Data Sanitization on Language Models

Amazon Web Services(亚马逊网络服务)

Anwesan Pal, Radhika Bhargava, Kyle Hinsz, Jacques Esterhuizen, Sudipta Bhattacharya

AI总结:

本研究实证分析了数据清洗对语言模型在多项NLP任务上的性能影响,发现其对某些任务影响较小,但对理解问答影响显著,并提出修复策略。

摘要:

在语言建模的背景下,数据清洗涉及识别敏感内容,如个人身份信息(PII),并将其从数据集语料库中删除。这是自然语言处理(NLP)中用于维护隐私的常见做法。然而,数据清洗对语言模型语言理解能力的影响仍研究不足。本文通过多个基准语言建模任务,包括理解问答(Q&A)、蕴含、情感分析和文本分类,实证分析了数据清洗的效果。我们的实验涵盖了广泛的范围,包括在原始和清洗后的数据集上微调小规模语言模型,以及提示大型语言模型(LLMs),并比较它们在各项任务上的性能。有趣的是,我们的结果表明,对于某些任务,如情感分析或蕴含,删除的影响相当低,通常在1-5%左右,而对于理解问答等任务,在删除的查询中观察到的性能相比原始数据有超过25%的大幅下降。对于影响较大的任务,我们进行更深入的分析,以检查任务关键实体的存在。最后,我们调查了性能与删除实体数量之间的相关性,并提出了通过基于内容的子采样来修复已清洗数据集的策略。更多细节可在 https://sites.google.com/view/datasan 查看。

英文摘要:

Data sanitization in the context of language modeling involves identifying sensitive content, such as personally identifiable information (PII), and redacting them from a dataset corpus. It is a common practice used in natural language processing (NLP) to maintain privacy. Nevertheless, the impact of data sanitization on the language understanding capability of a language model remains less studied. This paper empirically analyzes the effects of data sanitization across several benchmark language-modeling tasks including comprehension question answering (Q&A), entailment, sentiment analysis, and text classification. Our experiments cover a wide spectrum comprising finetuning small-scale language models, to prompting large language models (LLMs), on both original and sanitized datasets, and comparing their performance across the tasks. Interestingly, our results suggest that for some tasks such as sentiment analysis or entailment, the impact of redaction is quite low, typically around 1-5%, while for tasks such as comprehension Q&A there is a big drop of >25% in performance observed in redacted queries as compared to the original. For tasks that have a higher impact, we perform a deeper dive to inspect the presence of task-critical entities. Finally, we investigate correlation between performance and number of redacted entities, and also suggest a strategy to repair an already redacted dataset by means of content-based subsampling. Additional details are available at https://sites.google.com/view/datasan.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑