Table of Contents
Fetching ...

Blackbox Model Provenance via Palimpsestic Membership Inference

Rohith Kuditipudi, Jing Huang, Sally Zhu, Diyi Yang, Christopher Potts, Percy Liang

TL;DR

This work presents provably calibrated independence tests to determine whether Bob's derivative model or its text is provenance-linked to Alice's training run. The core idea rests on palimpsestic memorization, where later training data leave stronger traces, enabling ordering-based signals to detect dependence. The authors develop two pipelines: a query-based method using log-likelihood correlations and a reference model to reduce variance, and an observational method using n-gram overlap or retraining on reshuffled data. Across multiple model families and training scenarios, the methods achieve highly significant evidence of provenance with practical token budgets, while remaining transparent and noninvasive. The results highlight both the feasibility of provenance verification and the tradeoffs in computational cost and data requirements, with implications for copyright, privacy, and ecosystem-level auditing of open-weight models.

Abstract

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.

Blackbox Model Provenance via Palimpsestic Membership Inference

TL;DR

This work presents provably calibrated independence tests to determine whether Bob's derivative model or its text is provenance-linked to Alice's training run. The core idea rests on palimpsestic memorization, where later training data leave stronger traces, enabling ordering-based signals to detect dependence. The authors develop two pipelines: a query-based method using log-likelihood correlations and a reference model to reduce variance, and an observational method using n-gram overlap or retraining on reshuffled data. Across multiple model families and training scenarios, the methods achieve highly significant evidence of provenance with practical token budgets, while remaining transparent and noninvasive. The results highlight both the feasibility of provenance verification and the tradeoffs in computational cost and data requirements, with implications for copyright, privacy, and ecosystem-level auditing of open-weight models.

Abstract

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.
Paper Structure (42 sections, 1 theorem, 4 equations, 12 figures, 8 tables, 3 algorithms)

This paper contains 42 sections, 1 theorem, 4 equations, 12 figures, 8 tables, 3 algorithms.

Key Result

Theorem 1

Let $A$ satisfy Assumption defn:perfect-shuffle. Let $\alpha \sim A$ and $\beta \perp \alpha$. Then the output of Algorithm alg:permtest is uniformly distributed over $\{(j+1)/(m+1)\}_{j=0}^m$.

Figures (12)

  • Figure 1: We regress the negative log-likelihoods of pythia-6.9b-deduped and pythia-6.9b on pythia-6.9b-deduped training examples against its training order, which is independent of pythia-6.9b training order. Though the log-likelihoods of individual examples are noisy, the overall trend is clear over many examples: pythia-6.9b-deduped exhibits significant correlation, while the independently trained pythia-6.9b exhibits near zero correlation.
  • Figure 2: We report results (all p-values in $\log_{10}$) from $\phi_{\textup{query}}^{\textup{ref}}$ for $40$ Pythia and OLMo derivative models in the query setting. We label each derivative model as {model size}-{post-training method}-{post-training dataset}.
  • Figure 3: We report approximate p-values from applying $\phi_\textup{obs}^\textup{shuff}$ to TinyStories models, varying the number of tokens in Bob's text. (Left) We vary the amount of data we use to retrain the test models; we let $\chi$ be the log-likelihood of Bob's text under each model (no finetuning) and assume Bob uses Alice's model without modification. (Right) We fix the amount of retraining at $2\%$ of Alice's pretraining data and vary the amount of data on which Bob finetunes Alice's model; we try $\phi_\textup{obs}^\textup{shuff}$ with (solid) and without (dashed) finetuning on Bob's text.
  • Figure 4: We vary the sequence length and number of sequences in the transcript $\Gamma$ in computing $\phi_{\textup{query}}^{\textup{ref}}$ for OLMo-7B. P-values are affected by the total number of tokens $\Gamma$ and the training step at which the sequence occurs, i.e., Epoch 1 sequences provide more signals than Epoch 0 sequences.
  • Figure 5: We vary the sample token position and number of queries in computing $\phi_{\textup{query}}^{\textup{ref}}$ for OLMo-7B models. Sampling from the start of an sequence consistently yields smaller p-value across all sample size.
  • ...and 7 more figures

Theorems & Definitions (3)

  • Definition 1
  • Theorem 1
  • proof