arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.07536cs.LGcs.AIcs.DSstat.ML
收藏

针对任意低秩语言模型的模型窃取

Model Stealing for Any Low-Rank Language Model

Allen Liu, Ankur Moitra

AI总结:

本文研究低秩语言模型(如HMMs)的模型窃取理论,提出一种在条件查询模型下的高效算法,通过构建重心扩张子表示条件分布并迭代解决相对熵投影凸优化问题,实现对任意低秩输出分布的窃取,改进了先前需高保真度的限制。

摘要:

模型窃取是指学习者试图通过精心选择的查询来恢复未知模型,这是机器学习中的一个关键问题,因为它威胁到专有模型的安全性以及它们所训练数据的隐私。近年来,人们对窃取大型语言模型(LLMs)产生了特别的兴趣。在本文中,我们旨在通过研究一个简单且数学上易于处理的设定,来建立对窃取语言模型的理论理解。我们研究隐马尔可夫模型(HMMs)以及更一般的低秩语言模型的模型窃取。我们假设学习者在由Kakade、Krishnamurthy、Mahajan和Zhang提出的条件查询模型中工作。我们的主要结果是在条件查询模型中,用于学习任何低秩分布的高效算法。换句话说,我们的算法能够成功窃取任何输出分布为低秩的语言模型。这改进了Kakade、Krishnamurthy、Mahajan和Zhang先前的结果,该结果还要求未知分布具有高“保真度”,这是一种仅在受限情况下才成立的属性。我们算法背后的两个关键见解是:首先,我们通过在指数级大维度的向量集合中构建重心扩张子来表示每个时间步的条件分布。其次,为了从我们的表示中进行采样,我们迭代地解决一系列涉及相对熵投影的凸优化问题,以防止误差在序列长度上累积。这是一个有趣的例子,至少在理论上,允许机器学习模型在推理时解决更复杂的问题可以带来其性能的显著提升。

英文摘要:

Model stealing, where a learner tries to recover an unknown model via carefully chosen queries, is a critical problem in machine learning, as it threatens the security of proprietary models and the privacy of data they are trained on. In recent years, there has been particular interest in stealing large language models (LLMs). In this paper, we aim to build a theoretical understanding of stealing language models by studying a simple and mathematically tractable setting. We study model stealing for Hidden Markov Models (HMMs), and more generally low-rank language models. We assume that the learner works in the conditional query model, introduced by Kakade, Krishnamurthy, Mahajan and Zhang. Our main result is an efficient algorithm in the conditional query model, for learning any low-rank distribution. In other words, our algorithm succeeds at stealing any language model whose output distribution is low-rank. This improves upon the previous result by Kakade, Krishnamurthy, Mahajan and Zhang, which also requires the unknown distribution to have high "fidelity", a property that holds only in restricted cases. There are two key insights behind our algorithm: First, we represent the conditional distributions at each timestep by constructing barycentric spanners among a collection of vectors of exponentially large dimension. Second, for sampling from our representation, we iteratively solve a sequence of convex optimization problems that involve projection in relative entropy to prevent compounding of errors over the length of the sequence. This is an interesting example where, at least theoretically, allowing a machine learning model to solve more complex problems at inference time can lead to drastic improvements in its performance.

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

↑