arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.05699cs.CRcs.AI
收藏

大型语言模型分词器的成员推理攻击

Membership Inference Attacks on Tokenizers of Large Language Models

University of Science and Technology of China(中国科学技术大学);Purdue University(普渡大学)

Meng Tong, Yuntao Du, Kejiang Chen, Weiming Zhang, Ninghui Li

AI总结:

针对预训练大型语言模型成员推理攻击的挑战,提出以分词器作为新攻击向量,探索五种攻击方法,并设计自适应防御。

摘要:

成员推理攻击(MIAs)被广泛用于评估机器学习模型的隐私风险。然而,当这些攻击应用于预训练的大型语言模型(LLMs)时,会遇到显著挑战,包括错误标记的样本、分布偏移以及实验环境与真实环境之间模型规模的差异。为了解决这些限制,我们引入分词器作为成员推理的新攻击向量。具体来说,分词器将原始文本转换为LLMs的令牌。与完整模型不同,分词器可以从头开始高效训练,从而避免上述挑战。此外,分词器的训练数据通常代表用于预训练LLMs的数据。尽管有这些优势,分词器作为攻击向量的潜力尚未被探索。为此,我们首次开展了关于通过分词器泄露成员信息的研究,并探索了五种攻击方法来推断数据集成员身份。在数百万互联网样本上的广泛实验揭示了最先进LLMs分词器中的漏洞。为了缓解这一新兴风险,我们进一步提出了一种自适应防御。我们的发现强调了分词器是一个被忽视但关键的隐私威胁,突显了专门为其设计隐私保护机制的迫切需求。

英文摘要:

Membership inference attacks (MIAs) are widely used to assess the privacy risks associated with machine learning models. However, when these attacks are applied to pre-trained large language models (LLMs), they encounter significant challenges, including mislabeled samples, distribution shifts, and discrepancies in model size between experimental and real-world settings. To address these limitations, we introduce tokenizers as a new attack vector for membership inference. Specifically, a tokenizer converts raw text into tokens for LLMs. Unlike full models, tokenizers can be efficiently trained from scratch, thereby avoiding the aforementioned challenges. In addition, the tokenizer's training data is typically representative of the data used to pre-train LLMs. Despite these advantages, the potential of tokenizers as an attack vector remains unexplored. To this end, we present the first study on membership leakage through tokenizers and explore five attack methods to infer dataset membership. Extensive experiments on millions of Internet samples reveal the vulnerabilities in the tokenizers of state-of-the-art LLMs. To mitigate this emerging risk, we further propose an adaptive defense. Our findings highlight tokenizers as an overlooked yet critical privacy threat, underscoring the urgent need for privacy-preserving mechanisms specifically designed for them.

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

↑