通过邻域比较对语言模型进行成员推断攻击
Membership Inference Attacks against Language Models via Neighbourhood Comparison
AI总结:
本文提出邻域攻击,通过比较目标样本与合成邻域文本的模型分数进行成员推断,避免依赖训练数据分布,并证明其优于现有无参照和不完善参照攻击。
摘要:
成员推断攻击(Membership Inference attacks,MIAs)旨在预测某个数据样本是否出现在机器学习模型的训练数据中,并被广泛用于评估语言模型的隐私风险。现有大多数攻击依赖于如下观察:模型倾向于给其训练样本赋予比非训练样本更高的概率。然而,孤立地对模型分数进行简单阈值化往往会导致较高的假阳性率,因为它没有考虑样本本身固有的复杂度。近期工作表明,基于参照的攻击通过将模型分数与在相似数据上训练的参照模型所得分数进行比较,可以显著提升成员推断攻击的性能。但是,为了训练参照模型,这类攻击做出了一个很强且可以说是不现实的假设,即攻击者能够获得与原始训练数据非常相似的样本。因此,我们在更现实的场景中考察了这些攻击的性能,发现它们在参照模型训练所用的数据分布方面表现出高度的脆弱性。为了探究这种脆弱性是否提供了一层安全保障,我们提出并评估了邻域攻击,该攻击将给定样本的模型分数与合成生成的邻域文本分数进行比较,从而消除了对训练数据分布的访问需求。我们表明,除了能够与对训练数据分布具有完美知识的基于参照的攻击相竞争之外,我们的攻击还明显优于现有的无参照攻击以及知识不完善的基于参照的攻击,这表明有必要重新评估对抗性攻击的威胁模型。
英文摘要:
Membership Inference attacks (MIAs) aim to predict whether a data sample was present in the training data of a machine learning model or not, and are widely used for assessing the privacy risks of language models. Most existing attacks rely on the observation that models tend to assign higher probabilities to their training samples than non-training points. However, simple thresholding of the model score in isolation tends to lead to high false-positive rates as it does not account for the intrinsic complexity of a sample. Recent work has demonstrated that reference-based attacks which compare model scores to those obtained from a reference model trained on similar data can substantially improve the performance of MIAs. However, in order to train reference models, attacks of this kind make the strong and arguably unrealistic assumption that an adversary has access to samples closely resembling the original training data. Therefore, we investigate their performance in more realistic scenarios and find that they are highly fragile in relation to the data distribution used to train reference models. To investigate whether this fragility provides a layer of safety, we propose and evaluate neighbourhood attacks, which compare model scores for a given sample to scores of synthetically generated neighbour texts and therefore eliminate the need for access to the training data distribution. We show that, in addition to being competitive with reference-based attacks that have perfect knowledge about the training data distribution, our attack clearly outperforms existing reference-free attacks as well as reference-based attacks with imperfect knowledge, which demonstrates the need for a reevaluation of the threat model of adversarial attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。