arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.03004cs.CLcs.LG
收藏

探索用于在基于掩码语言模型的命名实体识别中引发记忆的提示

Exploring prompts to elicit memorization in masked language model-based named entity recognition

University of Vienna(维也纳大学);Faculty of Computer Science, University of Vienna(维也纳大学计算机科学学院);UniVie Doctoral School Computer Science(维也纳大学计算机科学博士学院);Faculty of Philological and Cultural Studies, University of Vienna(维也纳大学语言与文化研究学院)

Yuxi Xia, Anastasiia Sedova, Pedro Henrique Luz de Araujo, Vasiliki Kougia, Lisa Nußbaumer, Benjamin Roth

AI总结:

本文通过400个自动生成提示和成对名字数据集,系统评估了提示对检测基于掩码语言模型的命名实体识别模型训练数据记忆的影响,发现提示性能因提示和模型而异,并揭示了提示属性、token及自注意力权重的作用。

摘要:

语言模型中的训练数据记忆会影响模型能力(泛化性)和安全性(隐私风险)。本文重点分析提示对检测6个基于掩码语言模型的命名实体识别模型记忆的影响。具体而言,我们使用了一组多样化的400个自动生成的提示,以及一个成对数据集,其中每一对包含一个来自训练集的人名和另一个不在训练集中的人名。用一个人名补全的提示作为输入,用于获取模型预测该名字的置信度。最后,通过模型对来自训练集的名字具有更高置信度的名字对所占百分比来量化提示检测模型记忆的性能。我们表明,在同一模型上,不同提示的性能差异高达16个百分点,而提示工程进一步扩大了这一差距。此外,我们的实验证明,提示性能依赖于模型,但在不同名字集之间具有泛化性。综合分析表明,提示性能如何受到提示属性、所包含的token以及模型在提示上的自注意力权重的影响。

英文摘要:

Training data memorization in language models impacts model capability (generalization) and safety (privacy risk). This paper focuses on analyzing prompts' impact on detecting the memorization of 6 masked language model-based named entity recognition models. Specifically, we employ a diverse set of 400 automatically generated prompts, and a pairwise dataset where each pair consists of one person's name from the training set and another name out of the set. A prompt completed with a person's name serves as input for getting the model's confidence in predicting this name. Finally, the prompt performance of detecting model memorization is quantified by the percentage of name pairs for which the model has higher confidence for the name from the training set. We show that the performance of different prompts varies by as much as 16 percentage points on the same model, and prompt engineering further increases the gap. Moreover, our experiments demonstrate that prompt performance is model-dependent but does generalize across different name sets. A comprehensive analysis indicates how prompt performance is influenced by prompt properties, contained tokens, and the model's self-attention weights on the prompt.

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

↑