arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.02245cs.CRcs.AIcs.LG
收藏

命名实体识别模型中的非预期伪随机化和定时攻击

Unintended Memorization and Timing Attacks in Named Entity Recognition Models

Macquarie University(麦考瑞大学)

Rana Salal Ali, Benjamin Zi Hao Zhao, Hassan Jameel Asghar, Tham Nguyen, Ian David Wood, Dali Kaafar

摘要:

命名实体识别模型(NER)被广泛用于识别命名实体(例如,个人、位置和其他信息)。基于机器学习的NER模型越来越多地应用于隐私敏感应用中,这些应用需要自动和可扩展地识别敏感信息以编辑文本以用于数据共享。在本文中,我们研究了设置时,NER模型可作为一个黑盒服务,用于识别用户文档中的敏感信息,并表明这些模型是脆弱的成员资格推断其训练数据集。通过更新spaCy的预训练NER模型,我们展示了对这些模型的两种不同的成员攻击。我们的第一次攻击利用了NER底层神经网络中的无意识记忆,这是一种已知的NN容易受到攻击的现象。我们的第二次攻击利用定时侧通道来针对维护从训练数据构建的词汇表的NER模型。我们发现,与以前没有看到的单词相比,训练数据集中单词的不同功能路径在执行时间上有可测量的差异。揭示训练样本的成员状态具有明显的隐私含义,例如,在文本编辑中,要被发现和移除的敏感词或短语有在训练数据集中被检测到的风险。我们的实验评估包括密码和健康数据的编辑,同时存在安全风险和隐私/监管问题。如果研究结果显示,学生只记住了一个短语,那么这种情况就更加严重了。我们在第一次攻击文本编辑用例时实现了70%的AUC。我们还显示了压倒性的成功,在99.23%的AUC的时间攻击。最后,我们讨论了潜在的缓解方法,以实现安全使用的NER模型的隐私和安全的影响,成员推断攻击。

英文摘要:

Named entity recognition models (NER), are widely used for identifying named entities (e.g., individuals, locations, and other information) in text documents. Machine learning based NER models are increasingly being applied in privacy-sensitive applications that need automatic and scalable identification of sensitive information to redact text for data sharing. In this paper, we study the setting when NER models are available as a black-box service for identifying sensitive information in user documents and show that these models are vulnerable to membership inference on their training datasets. With updated pre-trained NER models from spaCy, we demonstrate two distinct membership attacks on these models. Our first attack capitalizes on unintended memorization in the NER's underlying neural network, a phenomenon NNs are known to be vulnerable to. Our second attack leverages a timing side-channel to target NER models that maintain vocabularies constructed from the training data. We show that different functional paths of words within the training dataset in contrast to words not previously seen have measurable differences in execution time. Revealing membership status of training samples has clear privacy implications, e.g., in text redaction, sensitive words or phrases to be found and removed, are at risk of being detected in the training dataset. Our experimental evaluation includes the redaction of both password and health data, presenting both security risks and privacy/regulatory issues. This is exacerbated by results that show memorization with only a single phrase. We achieved 70% AUC in our first attack on a text redaction use-case. We also show overwhelming success in the timing attack with 99.23% AUC. Finally we discuss potential mitigation approaches to realize the safe use of NER models in light of the privacy and security implications of membership inference attacks.

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

↑