arXiv:2410.14765cs.LGcs.AI2024-10ICLR被引 1

通过对比生成发现数据新特性,无需访问原始数据即可识别有毒内容和新语言。

What's New in My Data? Novelty Exploration via Contrastive Generation

  • 用预训练模型与微调后模型对比生成新样本,发现数据中隐藏的新型特征。
  • 在无直接数据访问下仍能检测出有毒语言和新语言,效果优于传统方法。
  • 适合需要隐私保护的数据分析场景,尤其适用于医疗、客服等敏感领域。

微调广泛用于将语言模型适配特定任务,常使用真实世界数据如病历记录、客服对话或非预训练语言的网络内容。这些数据集通常规模巨大、噪声多且机密,难以直接审查。然而理解数据对指导模型部署及决定数据清洗或抑制有害行为至关重要。本文提出生成式新颖性发现任务,旨在通过生成示例揭示微调数据的新特性。所提方法对比生成探索(CGE)无需直接访问数据,仅依赖预训练模型与微调后模型的输出差异。为提升生成多样性,引入迭代版本:先前生成样本用于更新预训练模型,再与完全微调模型对比生成新例。实验表明,CGE可有效检测出毒性语言、新自然语言及编程语言;即使在差分隐私微调后仍保持有效性。

原文摘要 · Abstract (English)

Fine-tuning is widely used to adapt language models for specific goals, often leveraging real-world data such as patient records, customer-service interactions, or web content in languages not covered in pre-training. These datasets are typically massive, noisy, and often confidential, making their direct inspection challenging. However, understanding them is essential for guiding model deployment and informing decisions about data cleaning or suppressing any harmful behaviors learned during fine-tuning. In this study, we introduce the task of novelty discovery through generation, which aims to identify novel properties of a fine-tuning dataset by generating examples that illustrate these properties. Our approach, Contrastive Generative Exploration (CGE), assumes no direct access to the data but instead relies on a pre-trained model and the same model after fine-tuning. By contrasting the predictions of these two models, CGE can generate examples that highlight novel characteristics of the fine-tuning data. However, this simple approach may produce examples that are too similar to one another, failing to capture the full range of novel phenomena present in the dataset. We address this by introducing an iterative version of CGE, where the previously generated examples are used to update the pre-trained model, and this updated model is then contrasted with the fully fine-tuned model to generate the next example, promoting diversity in the generated outputs. Our experiments demonstrate the effectiveness of CGE in detecting novel content, such as toxic language, as well as new natural and programming languages. Furthermore, we show that CGE remains effective even when models are fine-tuned using differential privacy techniques.

数据发现对比生成隐私保护模型分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。