NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Blackbox Model Provenance via Palimpsestic Membership Inference

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

TL;DR

This paper introduces a non-invasive, transparent method to prove whether a black-box AI model or a piece of text was derived from a specific open-weight language model. By exploiting "palimpsestic memorization"—the tendency of language models to remember data seen later in training more clearly than data seen earlier—the authors turn a model's unique training order into a statistical fingerprint.

What Problem Does This Paper Address?

Open-weight language models (LLMs) are highly vulnerable to unauthorized reuse. A bad actor ("Bob") can download a model trained by a developer ("Alice"), fine-tune it, and serve it through a black-box API or use it to power social media bots without attribution.

Proving that Bob stole Alice's model is incredibly difficult. Existing provenance techniques like "watermarking" or inserting "canaries" (random strings) into the training data require modifying the model during training (which is invasive) or keeping a test set secret (which lacks transparency). This paper addresses the challenge of proving model provenance without modifying the original model or training data, operating under two distinct scenarios:

  1. Query Setting: Alice can probe Bob’s model API to get token probabilities.
  2. Observational Setting: Alice can only observe the raw text generated by Bob's model.

Methods

The core insight of this work is palimpsestic memorization: language models exhibit a recency effect during training. While all training data influences the final weights, examples processed near the end of the training run leave a stronger, more detectable memorization trace than those processed at the beginning.

[Early Training Data] -------------> [Late Training Data]
  (Faded Memory)                       (Strong Memory)

Because training data is randomly shuffled, the exact sequence of training examples acts as a unique, randomized fingerprint. The authors propose two main testing frameworks:

1. Query Setting ($\phi_{query}$)

Alice feeds her original training sequences into Bob's model and calculates their log-likelihoods. She then computes the Spearman rank correlation between these likelihoods and the chronological order in which the data was seen during her training run. To eliminate natural variations in text difficulty, Alice subtracts the log-likelihood of an independent reference model ($\phi_{query}^{ref}$).

2. Observational Setting

When Alice only has text samples, she uses two alternative approaches:

  • Partitioning ($\phi_{obs}^{part}$): Alice trains simple $n$-gram models on contiguous chronological chunks of her training data. She then checks if the $n$-gram matches in Bob's text correlate with the chronological order of those chunks.
  • Shuffling ($\phi_{obs}^{shuff}$): Alice takes an intermediate checkpoint of her model (e.g., at 99% of training) and finishes the last 1% of training multiple times using different random shuffles of the data. If Bob's text shows a significantly higher likelihood under Alice's original final model compared to the reshuffled variants, it proves Bob's model inherited Alice's exact training order.

Datasets

The authors evaluated their methods across several prominent open-source model families and datasets:

  • Pythia: Models ranging from 1.4B to 12B parameters, evaluated against The Pile and The Pile-deduped datasets.
  • OLMo: Evaluated using the Dolma v1.5, Dolma v1.7, and OLMo-Mix datasets across OLMo, OLMo-1.7, and OLMo-2 model families.
  • TinyStories: A synthetic dataset used to train small-scale (3M and 24M parameter) models for compute-intensive ablation studies (such as tracking memorization across 10 training epochs).

Key Insights and Ideas

  • Training Order as a Natural Watermark: You don't need to inject artificial patterns into a model. The inherent randomness of the gradient descent batch sequence acts as a high-entropy, unforgeable watermark.
  • The Palimpsest Effect is Robust: Even if Bob fine-tunes Alice's model using Supervised Fine-Tuning (SFT) or Preference Optimization (DPO), the underlying chronological signature of the pre-training data remains intact.
  • Catching Documentation Errors: The method is so precise that it revealed a real-world documentation error: the widely used pythia-2.8b-deduped model was actually trained on the non-deduped version of The Pile (yielding a definitive $p$-value of $10^{-60}$).
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.

Key Results

  • Query Setting Success: The authors tested over 40 fine-tunes of Pythia and OLMo models. In all but six cases, they achieved a $p$-value of at most $1 \times 10^{-8}$, providing mathematically ironclad proof of provenance.
  • Observational Text Tracking: Using the shuffling approach ($\phi_{obs}^{shuff}$), Alice can reliably identify that a text sample came from her model family using as few as 320 tokens (roughly a page of text).
  • The Cost of Evasion: For Bob to successfully evade detection in the query setting, he had to significantly degrade his model's performance, incurring a much higher pre-training loss relative to the base model.

Limitations and Future Work

  • Computational Cost: The shuffling approach in the observational setting requires retraining the final phase of an LLM multiple times. While feasible for a 1% "cooldown" phase, it remains computationally expensive for massive models.
  • Data Transparency Tradeoff: To run these tests, Alice must know the exact order of her training data. Many commercial developers are hesitant to release their training logs due to copyright concerns or competitive advantages. The authors suggest a compromise: developers could disclose the training order for just a small, legally safe subset of data (like Wikipedia articles) to allow third-party verification.

Summary updated

BibTeX
@inproceedings{kuditipudi2025blackbox,
  author = {Rohith Kuditipudi and Jing Huang and Sally Zhu and Diyi Yang and Christopher Potts and Percy Liang},
  title = {{Blackbox Model Provenance via Palimpsestic Membership Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=VRhVS59yhP},
}
Figure