arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.19726cs.LGcs.CL
收藏

学习之令牌,遗忘之令牌:通过双重目的训练缓解大语言模型中的成员推断攻击

Tokens for Learning, Tokens for Unlearning: Mitigating Membership Inference Attacks in Large Language Models via Dual-Purpose Training

Emory University(埃默里大学)

Toan Tran, Ruixuan Liu, Li Xiong

AI总结:

本文提出一种轻量级双重目的训练防御方法,通过令牌选择策略区分学习与遗忘令牌,优化令牌级损失以平衡效用与隐私,在抵御成员推断攻击的同时提升语言建模性能约10%。

摘要:

大语言模型(LLMs)已成为现代自然语言处理的骨干,但存在泄露敏感训练数据的隐私担忧。成员推断攻击(MIAs)旨在推断某个样本是否包含在模型的训练数据集中,可作为更广泛隐私威胁的基础。现有针对传统分类模型设计的防御方法未考虑文本数据的序列特性。因此,它们要么需要大量计算资源,要么无法有效缓解LLMs中的隐私风险。在本工作中,我们提出\methodname,一种轻量而有效的经验性隐私防御方法,通过利用令牌特定特征来保护语言模型的训练数据。通过分析训练过程中的令牌动态,我们提出一种令牌选择策略,将令牌分类为用于学习的困难令牌和用于遗忘的记忆化令牌。随后,我们的训练阶段防御优化一种新颖的双重目的令牌级损失,以实现效用与隐私之间的帕累托最优平衡。大量实验表明,与基线相比,我们的方法不仅能针对MIAs提供强大保护,还能在各种LLM架构和数据集上将语言建模性能提升约10\\%。

英文摘要:

Large language models (LLMs) have become the backbone of modern natural language processing but pose privacy concerns about leaking sensitive training data. Membership inference attacks (MIAs), which aim to infer whether a sample is included in a model's training dataset, can serve as a foundation for broader privacy threats. Existing defenses designed for traditional classification models do not account for the sequential nature of text data. As a result, they either require significant computational resources or fail to effectively mitigate privacy risks in LLMs. In this work, we propose \methodname, a lightweight yet effective empirical privacy defense for protecting training data of language models by leveraging token-specific characteristics. By analyzing token dynamics during training, we propose a token selection strategy that categorizes tokens into hard tokens for learning and memorized tokens for unlearning. Subsequently, our training-phase defense optimizes a novel dual-purpose token-level loss to achieve a Pareto-optimal balance between utility and privacy. Extensive experiments demonstrate that our approach not only provides strong protection against MIAs but also improves language modeling performance by around 10\% across various LLM architectures and datasets compared to the baselines.

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

↑