通过叠写式成员推断实现黑盒模型溯源
Blackbox Model Provenance via Palimpsestic Membership Inference
AI总结:
该研究将黑盒模型溯源建模为独立性检验问题,基于语言模型叠写式记忆特性,通过训练样本顺序相关性检验实现溯源,在查询和观测场景下均验证了方法的有效性。
摘要:
假设Alice训练了一个权重公开的语言模型,Bob使用Alice模型的一个黑盒衍生模型生成文本。Alice能否证明Bob在使用她的模型?无论是通过查询Bob的衍生模型(查询场景)还是仅通过生成的文本(观测场景)。我们将这一问题建模为独立性检验问题——其中零假设是Bob的模型或文本与Alice的随机化训练过程相互独立——并从语言模型的叠写式记忆视角展开研究:模型更有可能记住训练后期见到的数据,因此我们可以通过捕捉Bob的模型或文本与Alice训练过程中训练样本顺序之间相关性的检验统计量,来检验Bob是否在使用Alice的模型。如果Alice随机打乱了她的训练数据,那么任何显著的相关性都构成可精确量化的、推翻零假设的统计证据,且与Alice训练数据的构成无关。在查询场景中,我们通过提示工程直接估计Bob的模型对Alice的训练样本及顺序给出的似然;我们将参数规模从1B到12B不等的Pythia和OLMo基础模型的40余个微调模型的似然值与基础模型的训练数据顺序进行关联,除6个案例外,其余所有案例的p值均至多为1e-8量级。在观测场景中,我们尝试了两种方法,分别基于估计:1)Bob的文本与Alice的训练样本片段重叠的似然;2)Bob的文本相对于Alice模型不同版本的似然,这些版本是我们通过在重新打乱的数据上重复训练的最后阶段(例如1%)得到的。第二种方法仅需少至几百个token就能可靠区分Bob的文本;第一种方法无需任何重新训练,但需要多得多的token(数十万个)才能达到高检验功效。
英文摘要:
Suppose Alice trains an open-weight language model and Bob uses a blackbox derivative of Alice's model to produce text. Can Alice prove that Bob is using her model, either by querying Bob's derivative model (query setting) or from the text alone (observational setting)? We formulate this question as an independence testing problem--in which the null hypothesis is that Bob's model or text is independent of Alice's randomized training run--and investigate it through the lens of palimpsestic memorization in language models: models are more likely to memorize data seen later in training, so we can test whether Bob is using Alice's model using test statistics that capture correlation between Bob's model or text and the ordering of training examples in Alice's training run. If Alice has randomly shuffled her training data, then any significant correlation amounts to exactly quantifiable statistical evidence against the null hypothesis, regardless of the composition of Alice's training data. In the query setting, we directly estimate (via prompting) the likelihood Bob's model gives to Alice's training examples and order; we correlate the likelihoods of over 40 fine-tunes of various Pythia and OLMo base models ranging from 1B to 12B parameters with the base model's training data order, achieving a p-value on the order of at most 1e-8 in all but six cases. In the observational setting, we try two approaches based on estimating 1) the likelihood of Bob's text overlapping with spans of Alice's training examples and 2) the likelihood of Bob's text with respect to different versions of Alice's model we obtain by repeating the last phase (e.g., 1%) of her training run on reshuffled data. The second approach can reliably distinguish Bob's text from as little as a few hundred tokens; the first does not involve any retraining but requires many more tokens (several hundred thousand) to achieve high power.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。