数据清洗会严重削弱模型问答能力,但对情感分析影响小。
The Empirical Impact of Data Sanitization on Language Models
- 对比原始与清洗数据集,测试多种语言模型任务表现
- 问答任务性能下降超25%,情感分析仅降1-5%
- 发现关键实体缺失是主因,提出基于内容的修复策略
语言模型中的数据清洗指识别并删除敏感信息(如个人身份信息),以保障隐私。然而,其对模型语言理解能力的影响尚未充分研究。本文通过实证分析,在多个基准任务(包括问答、蕴含、情感分析和文本分类)中比较了在原始数据与清洗数据上训练或提示的语言模型表现。实验涵盖小规模模型微调和大规模语言模型提示,结果表明:对于情感分析或蕴含等任务,清洗带来的性能下降仅为1%-5%;而问答任务在清洗后性能下降超过25%。进一步分析显示,任务关键实体的缺失是性能下降的主要原因。我们还探究了性能损失与被删除实体数量的相关性,并提出一种基于内容的子采样策略来修复已清洗数据集。更多细节见https://sites.google.com/view/datasan。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。